bug fix
[iptables.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for iptables 1.4.1.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
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   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='iptables'
728 PACKAGE_TARNAME='iptables'
729 PACKAGE_VERSION='1.4.1.1'
730 PACKAGE_STRING='iptables 1.4.1.1'
731 PACKAGE_BUGREPORT=''
732
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 install_sh
818 STRIP
819 INSTALL_STRIP_PROGRAM
820 mkdir_p
821 AWK
822 SET_MAKE
823 am__leading_dot
824 AMTAR
825 am__tar
826 am__untar
827 CC
828 CFLAGS
829 LDFLAGS
830 CPPFLAGS
831 ac_ct_CC
832 EXEEXT
833 OBJEXT
834 DEPDIR
835 am__include
836 am__quote
837 AMDEP_TRUE
838 AMDEP_FALSE
839 AMDEPBACKSLASH
840 CCDEPMODE
841 am__fastdepCC_TRUE
842 am__fastdepCC_FALSE
843 build
844 build_cpu
845 build_vendor
846 build_os
847 host
848 host_cpu
849 host_vendor
850 host_os
851 SED
852 GREP
853 EGREP
854 LN_S
855 ECHO
856 AR
857 RANLIB
858 DSYMUTIL
859 NMEDIT
860 CPP
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 blacklist_modules
873 ENABLE_STATIC_TRUE
874 ENABLE_STATIC_FALSE
875 ENABLE_SHARED_TRUE
876 ENABLE_SHARED_FALSE
877 ENABLE_DEVEL_TRUE
878 ENABLE_DEVEL_FALSE
879 ENABLE_LIBIPQ_TRUE
880 ENABLE_LIBIPQ_FALSE
881 regular_CFLAGS
882 kinclude_CFLAGS
883 kbuilddir
884 ksourcedir
885 xtlibdir
886 XTABLES_VERSION_MAJOR
887 XTABLES_VERSION_MINOR
888 XTABLES_VERSION_PATCH
889 XTABLES_VERSION_EXTRA
890 LIBOBJS
891 LTLIBOBJS'
892 ac_subst_files=''
893       ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 CPP
902 CXX
903 CXXFLAGS
904 CCC
905 CXXCPP
906 F77
907 FFLAGS'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960   # If the previous option needs an argument, assign it.
961   if test -n "$ac_prev"; then
962     eval $ac_prev=\$ac_option
963     ac_prev=
964     continue
965   fi
966
967   case $ac_option in
968   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969   *)    ac_optarg=yes ;;
970   esac
971
972   # Accept the important Cygnus configure options, so we can diagnose typos.
973
974   case $ac_dashdash$ac_option in
975   --)
976     ac_dashdash=yes ;;
977
978   -bindir | --bindir | --bindi | --bind | --bin | --bi)
979     ac_prev=bindir ;;
980   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981     bindir=$ac_optarg ;;
982
983   -build | --build | --buil | --bui | --bu)
984     ac_prev=build_alias ;;
985   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986     build_alias=$ac_optarg ;;
987
988   -cache-file | --cache-file | --cache-fil | --cache-fi \
989   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990     ac_prev=cache_file ;;
991   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993     cache_file=$ac_optarg ;;
994
995   --config-cache | -C)
996     cache_file=config.cache ;;
997
998   -datadir | --datadir | --datadi | --datad)
999     ac_prev=datadir ;;
1000   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001     datadir=$ac_optarg ;;
1002
1003   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004   | --dataroo | --dataro | --datar)
1005     ac_prev=datarootdir ;;
1006   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008     datarootdir=$ac_optarg ;;
1009
1010   -disable-* | --disable-*)
1011     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015    { (exit 1); exit 1; }; }
1016     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017     eval enable_$ac_feature=no ;;
1018
1019   -docdir | --docdir | --docdi | --doc | --do)
1020     ac_prev=docdir ;;
1021   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022     docdir=$ac_optarg ;;
1023
1024   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025     ac_prev=dvidir ;;
1026   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027     dvidir=$ac_optarg ;;
1028
1029   -enable-* | --enable-*)
1030     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034    { (exit 1); exit 1; }; }
1035     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036     eval enable_$ac_feature=\$ac_optarg ;;
1037
1038   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040   | --exec | --exe | --ex)
1041     ac_prev=exec_prefix ;;
1042   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044   | --exec=* | --exe=* | --ex=*)
1045     exec_prefix=$ac_optarg ;;
1046
1047   -gas | --gas | --ga | --g)
1048     # Obsolete; use --with-gas.
1049     with_gas=yes ;;
1050
1051   -help | --help | --hel | --he | -h)
1052     ac_init_help=long ;;
1053   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054     ac_init_help=recursive ;;
1055   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056     ac_init_help=short ;;
1057
1058   -host | --host | --hos | --ho)
1059     ac_prev=host_alias ;;
1060   -host=* | --host=* | --hos=* | --ho=*)
1061     host_alias=$ac_optarg ;;
1062
1063   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064     ac_prev=htmldir ;;
1065   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066   | --ht=*)
1067     htmldir=$ac_optarg ;;
1068
1069   -includedir | --includedir | --includedi | --included | --include \
1070   | --includ | --inclu | --incl | --inc)
1071     ac_prev=includedir ;;
1072   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073   | --includ=* | --inclu=* | --incl=* | --inc=*)
1074     includedir=$ac_optarg ;;
1075
1076   -infodir | --infodir | --infodi | --infod | --info | --inf)
1077     ac_prev=infodir ;;
1078   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079     infodir=$ac_optarg ;;
1080
1081   -libdir | --libdir | --libdi | --libd)
1082     ac_prev=libdir ;;
1083   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084     libdir=$ac_optarg ;;
1085
1086   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087   | --libexe | --libex | --libe)
1088     ac_prev=libexecdir ;;
1089   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090   | --libexe=* | --libex=* | --libe=*)
1091     libexecdir=$ac_optarg ;;
1092
1093   -localedir | --localedir | --localedi | --localed | --locale)
1094     ac_prev=localedir ;;
1095   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096     localedir=$ac_optarg ;;
1097
1098   -localstatedir | --localstatedir | --localstatedi | --localstated \
1099   | --localstate | --localstat | --localsta | --localst | --locals)
1100     ac_prev=localstatedir ;;
1101   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103     localstatedir=$ac_optarg ;;
1104
1105   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106     ac_prev=mandir ;;
1107   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108     mandir=$ac_optarg ;;
1109
1110   -nfp | --nfp | --nf)
1111     # Obsolete; use --without-fp.
1112     with_fp=no ;;
1113
1114   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115   | --no-cr | --no-c | -n)
1116     no_create=yes ;;
1117
1118   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120     no_recursion=yes ;;
1121
1122   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124   | --oldin | --oldi | --old | --ol | --o)
1125     ac_prev=oldincludedir ;;
1126   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129     oldincludedir=$ac_optarg ;;
1130
1131   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132     ac_prev=prefix ;;
1133   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134     prefix=$ac_optarg ;;
1135
1136   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137   | --program-pre | --program-pr | --program-p)
1138     ac_prev=program_prefix ;;
1139   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141     program_prefix=$ac_optarg ;;
1142
1143   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144   | --program-suf | --program-su | --program-s)
1145     ac_prev=program_suffix ;;
1146   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148     program_suffix=$ac_optarg ;;
1149
1150   -program-transform-name | --program-transform-name \
1151   | --program-transform-nam | --program-transform-na \
1152   | --program-transform-n | --program-transform- \
1153   | --program-transform | --program-transfor \
1154   | --program-transfo | --program-transf \
1155   | --program-trans | --program-tran \
1156   | --progr-tra | --program-tr | --program-t)
1157     ac_prev=program_transform_name ;;
1158   -program-transform-name=* | --program-transform-name=* \
1159   | --program-transform-nam=* | --program-transform-na=* \
1160   | --program-transform-n=* | --program-transform-=* \
1161   | --program-transform=* | --program-transfor=* \
1162   | --program-transfo=* | --program-transf=* \
1163   | --program-trans=* | --program-tran=* \
1164   | --progr-tra=* | --program-tr=* | --program-t=*)
1165     program_transform_name=$ac_optarg ;;
1166
1167   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168     ac_prev=pdfdir ;;
1169   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170     pdfdir=$ac_optarg ;;
1171
1172   -psdir | --psdir | --psdi | --psd | --ps)
1173     ac_prev=psdir ;;
1174   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175     psdir=$ac_optarg ;;
1176
1177   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178   | -silent | --silent | --silen | --sile | --sil)
1179     silent=yes ;;
1180
1181   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182     ac_prev=sbindir ;;
1183   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184   | --sbi=* | --sb=*)
1185     sbindir=$ac_optarg ;;
1186
1187   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189   | --sharedst | --shareds | --shared | --share | --shar \
1190   | --sha | --sh)
1191     ac_prev=sharedstatedir ;;
1192   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195   | --sha=* | --sh=*)
1196     sharedstatedir=$ac_optarg ;;
1197
1198   -site | --site | --sit)
1199     ac_prev=site ;;
1200   -site=* | --site=* | --sit=*)
1201     site=$ac_optarg ;;
1202
1203   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204     ac_prev=srcdir ;;
1205   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206     srcdir=$ac_optarg ;;
1207
1208   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209   | --syscon | --sysco | --sysc | --sys | --sy)
1210     ac_prev=sysconfdir ;;
1211   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213     sysconfdir=$ac_optarg ;;
1214
1215   -target | --target | --targe | --targ | --tar | --ta | --t)
1216     ac_prev=target_alias ;;
1217   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218     target_alias=$ac_optarg ;;
1219
1220   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221     verbose=yes ;;
1222
1223   -version | --version | --versio | --versi | --vers | -V)
1224     ac_init_version=: ;;
1225
1226   -with-* | --with-*)
1227     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       { echo "$as_me: error: invalid package name: $ac_package" >&2
1231    { (exit 1); exit 1; }; }
1232     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233     eval with_$ac_package=\$ac_optarg ;;
1234
1235   -without-* | --without-*)
1236     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid package name: $ac_package" >&2
1240    { (exit 1); exit 1; }; }
1241     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242     eval with_$ac_package=no ;;
1243
1244   --x)
1245     # Obsolete; use --with-x.
1246     with_x=yes ;;
1247
1248   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249   | --x-incl | --x-inc | --x-in | --x-i)
1250     ac_prev=x_includes ;;
1251   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253     x_includes=$ac_optarg ;;
1254
1255   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257     ac_prev=x_libraries ;;
1258   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260     x_libraries=$ac_optarg ;;
1261
1262   -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264    { (exit 1); exit 1; }; }
1265     ;;
1266
1267   *=*)
1268     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272    { (exit 1); exit 1; }; }
1273     eval $ac_envvar=\$ac_optarg
1274     export $ac_envvar ;;
1275
1276   *)
1277     # FIXME: should be removed in autoconf 3.0.
1278     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282     ;;
1283
1284   esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289   { echo "$as_me: error: missing argument to $ac_option" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292
1293 # Be sure to have absolute directory names.
1294 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295                 datadir sysconfdir sharedstatedir localstatedir includedir \
1296                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297                 libdir localedir mandir
1298 do
1299   eval ac_val=\$$ac_var
1300   case $ac_val in
1301     [\\/$]* | ?:[\\/]* )  continue;;
1302     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303   esac
1304   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305    { (exit 1); exit 1; }; }
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317   if test "x$build_alias" = x; then
1318     cross_compiling=maybe
1319     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320     If a cross compiler is detected then cross compile mode will be used." >&2
1321   elif test "x$build_alias" != "x$host_alias"; then
1322     cross_compiling=yes
1323   fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335   { echo "$as_me: error: Working directory cannot be determined" >&2
1336    { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338   { echo "$as_me: error: pwd does not report name of working directory" >&2
1339    { (exit 1); exit 1; }; }
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344   ac_srcdir_defaulted=yes
1345   # Try the directory containing this script, then the parent directory.
1346   ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348          X"$0" : 'X\(//\)[^/]' \| \
1349          X"$0" : 'X\(//\)$' \| \
1350          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1351 echo X"$0" |
1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)[^/].*/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\).*/{
1365             s//\1/
1366             q
1367           }
1368           s/.*/./; q'`
1369   srcdir=$ac_confdir
1370   if test ! -r "$srcdir/$ac_unique_file"; then
1371     srcdir=..
1372   fi
1373 else
1374   ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379    { (exit 1); exit 1; }; }
1380 fi
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384    { (exit 1); exit 1; }; }
1385         pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388   srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_env_${ac_var}_value=\$${ac_var}
1399   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407   # Omit some internal or obsolete options to make the list less imposing.
1408   # This message is too long to be a string in the A/UX 3.1 sh.
1409   cat <<_ACEOF
1410 \`configure' configures iptables 1.4.1.1 to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420   -h, --help              display this help and exit
1421       --help=short        display options specific to this package
1422       --help=recursive    display the short help of all the included packages
1423   -V, --version           display version information and exit
1424   -q, --quiet, --silent   do not print \`checking...' messages
1425       --cache-file=FILE   cache test results in FILE [disabled]
1426   -C, --config-cache      alias for \`--cache-file=config.cache'
1427   -n, --no-create         do not create output files
1428       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431   --prefix=PREFIX         install architecture-independent files in PREFIX
1432                           [$ac_default_prefix]
1433   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                           [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444   --bindir=DIR           user executables [EPREFIX/bin]
1445   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1446   --libexecdir=DIR       program executables [EPREFIX/libexec]
1447   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1448   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1449   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1450   --libdir=DIR           object code libraries [EPREFIX/lib]
1451   --includedir=DIR       C header files [PREFIX/include]
1452   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1453   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1454   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1455   --infodir=DIR          info documentation [DATAROOTDIR/info]
1456   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1457   --mandir=DIR           man documentation [DATAROOTDIR/man]
1458   --docdir=DIR           documentation root [DATAROOTDIR/doc/iptables]
1459   --htmldir=DIR          html documentation [DOCDIR]
1460   --dvidir=DIR           dvi documentation [DOCDIR]
1461   --pdfdir=DIR           pdf documentation [DOCDIR]
1462   --psdir=DIR            ps documentation [DOCDIR]
1463 _ACEOF
1464
1465   cat <<\_ACEOF
1466
1467 Program names:
1468   --program-prefix=PREFIX            prepend PREFIX to installed program names
1469   --program-suffix=SUFFIX            append SUFFIX to installed program names
1470   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479   case $ac_init_help in
1480      short | recursive ) echo "Configuration of iptables 1.4.1.1:";;
1481    esac
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --disable-dependency-tracking  speeds up one-time build
1488   --enable-dependency-tracking   do not reject slow dependency extractors
1489   --enable-static[=PKGS]  build static libraries [default=no]
1490   --enable-shared[=PKGS]  build shared libraries [default=yes]
1491   --enable-fast-install[=PKGS]
1492                           optimize for fast installation [default=yes]
1493   --disable-libtool-lock  avoid locking (might break parallel builds)
1494   --enable-devel          Install Xtables development headers
1495   --enable-libipq         Build and install libipq
1496
1497 Optional Packages:
1498   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1499   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1500   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1501   --with-pic              try to use only PIC/non-PIC objects [default=use
1502                           both]
1503   --with-tags[=TAGS]      include additional configurations [automatic]
1504   --with-kernel=PATH      Path to kernel source/build directory
1505   --with-kbuild=PATH      Path to kernel build directory
1506                           [/lib/modules/CURRENT/build]
1507   --with-ksource=PATH     Path to kernel source directory
1508                           [/lib/modules/CURRENT/source]
1509   --with-xtlibdir=PATH    Path where to install Xtables extensions
1510                           [LIBEXECDIR/xtables]
1511
1512 Some influential environment variables:
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516               nonstandard directory <lib dir>
1517   LIBS        libraries to pass to the linker, e.g. -l<library>
1518   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519               you have headers in a nonstandard directory <include dir>
1520   CPP         C preprocessor
1521   CXX         C++ compiler command
1522   CXXFLAGS    C++ compiler flags
1523   CXXCPP      C++ preprocessor
1524   F77         Fortran 77 compiler command
1525   FFLAGS      Fortran 77 compiler flags
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535   # If there are subdirs, report their specific --help.
1536   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537     test -d "$ac_dir" || continue
1538     ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1544   # A ".." for each directory in $ac_dir_suffix.
1545   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1546   case $ac_top_builddir_sub in
1547   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549   esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557   .)  # We are building in place.
1558     ac_srcdir=.
1559     ac_top_srcdir=$ac_top_builddir_sub
1560     ac_abs_top_srcdir=$ac_pwd ;;
1561   [\\/]* | ?:[\\/]* )  # Absolute name.
1562     ac_srcdir=$srcdir$ac_dir_suffix;
1563     ac_top_srcdir=$srcdir
1564     ac_abs_top_srcdir=$srcdir ;;
1565   *) # Relative name.
1566     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567     ac_top_srcdir=$ac_top_build_prefix$srcdir
1568     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572     cd "$ac_dir" || { ac_status=$?; continue; }
1573     # Check for guested configure.
1574     if test -f "$ac_srcdir/configure.gnu"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577     elif test -f "$ac_srcdir/configure"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure" --help=recursive
1580     else
1581       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582     fi || ac_status=$?
1583     cd "$ac_pwd" || { ac_status=$?; break; }
1584   done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589   cat <<\_ACEOF
1590 iptables configure 1.4.1.1
1591 generated by GNU Autoconf 2.61
1592
1593 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1594 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1597 _ACEOF
1598   exit
1599 fi
1600 cat >config.log <<_ACEOF
1601 This file contains any messages produced by compilers while
1602 running configure, to aid debugging if configure makes a mistake.
1603
1604 It was created by iptables $as_me 1.4.1.1, which was
1605 generated by GNU Autoconf 2.61.  Invocation command line was
1606
1607   $ $0 $@
1608
1609 _ACEOF
1610 exec 5>>config.log
1611 {
1612 cat <<_ASUNAME
1613 ## --------- ##
1614 ## Platform. ##
1615 ## --------- ##
1616
1617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622
1623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1625
1626 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1627 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1630 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1631 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1632 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1633
1634 _ASUNAME
1635
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641   echo "PATH: $as_dir"
1642 done
1643 IFS=$as_save_IFS
1644
1645 } >&5
1646
1647 cat >&5 <<_ACEOF
1648
1649
1650 ## ----------- ##
1651 ## Core tests. ##
1652 ## ----------- ##
1653
1654 _ACEOF
1655
1656
1657 # Keep a trace of the command line.
1658 # Strip out --no-create and --no-recursion so they do not pile up.
1659 # Strip out --silent because we don't want to record it for future runs.
1660 # Also quote any args containing shell meta-characters.
1661 # Make two passes to allow for proper duplicate-argument suppression.
1662 ac_configure_args=
1663 ac_configure_args0=
1664 ac_configure_args1=
1665 ac_must_keep_next=false
1666 for ac_pass in 1 2
1667 do
1668   for ac_arg
1669   do
1670     case $ac_arg in
1671     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673     | -silent | --silent | --silen | --sile | --sil)
1674       continue ;;
1675     *\'*)
1676       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677     esac
1678     case $ac_pass in
1679     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680     2)
1681       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1682       if test $ac_must_keep_next = true; then
1683         ac_must_keep_next=false # Got value, back to normal.
1684       else
1685         case $ac_arg in
1686           *=* | --config-cache | -C | -disable-* | --disable-* \
1687           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689           | -with-* | --with-* | -without-* | --without-* | --x)
1690             case "$ac_configure_args0 " in
1691               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692             esac
1693             ;;
1694           -* ) ac_must_keep_next=true ;;
1695         esac
1696       fi
1697       ac_configure_args="$ac_configure_args '$ac_arg'"
1698       ;;
1699     esac
1700   done
1701 done
1702 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1703 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704
1705 # When interrupted or exit'd, cleanup temporary files, and complete
1706 # config.log.  We remove comments because anyway the quotes in there
1707 # would cause problems or look ugly.
1708 # WARNING: Use '\'' to represent an apostrophe within the trap.
1709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710 trap 'exit_status=$?
1711   # Save into config.log some information that might help in debugging.
1712   {
1713     echo
1714
1715     cat <<\_ASBOX
1716 ## ---------------- ##
1717 ## Cache variables. ##
1718 ## ---------------- ##
1719 _ASBOX
1720     echo
1721     # The following way of writing the cache mishandles newlines in values,
1722 (
1723   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724     eval ac_val=\$$ac_var
1725     case $ac_val in #(
1726     *${as_nl}*)
1727       case $ac_var in #(
1728       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1729 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730       esac
1731       case $ac_var in #(
1732       _ | IFS | as_nl) ;; #(
1733       *) $as_unset $ac_var ;;
1734       esac ;;
1735     esac
1736   done
1737   (set) 2>&1 |
1738     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739     *${as_nl}ac_space=\ *)
1740       sed -n \
1741         "s/'\''/'\''\\\\'\'''\''/g;
1742           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743       ;; #(
1744     *)
1745       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746       ;;
1747     esac |
1748     sort
1749 )
1750     echo
1751
1752     cat <<\_ASBOX
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1756 _ASBOX
1757     echo
1758     for ac_var in $ac_subst_vars
1759     do
1760       eval ac_val=\$$ac_var
1761       case $ac_val in
1762       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763       esac
1764       echo "$ac_var='\''$ac_val'\''"
1765     done | sort
1766     echo
1767
1768     if test -n "$ac_subst_files"; then
1769       cat <<\_ASBOX
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1773 _ASBOX
1774       echo
1775       for ac_var in $ac_subst_files
1776       do
1777         eval ac_val=\$$ac_var
1778         case $ac_val in
1779         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780         esac
1781         echo "$ac_var='\''$ac_val'\''"
1782       done | sort
1783       echo
1784     fi
1785
1786     if test -s confdefs.h; then
1787       cat <<\_ASBOX
1788 ## ----------- ##
1789 ## confdefs.h. ##
1790 ## ----------- ##
1791 _ASBOX
1792       echo
1793       cat confdefs.h
1794       echo
1795     fi
1796     test "$ac_signal" != 0 &&
1797       echo "$as_me: caught signal $ac_signal"
1798     echo "$as_me: exit $exit_status"
1799   } >&5
1800   rm -f core *.core core.conftest.* &&
1801     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802     exit $exit_status
1803 ' 0
1804 for ac_signal in 1 2 13 15; do
1805   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806 done
1807 ac_signal=0
1808
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1811
1812 # Predefined preprocessor variables.
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 _ACEOF
1837
1838
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer explicitly selected file to automatically selected ones.
1841 if test -n "$CONFIG_SITE"; then
1842   set x "$CONFIG_SITE"
1843 elif test "x$prefix" != xNONE; then
1844   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1845 else
1846   set x "$ac_default_prefix/share/config.site" \
1847         "$ac_default_prefix/etc/config.site"
1848 fi
1849 shift
1850 for ac_site_file
1851 do
1852   if test -r "$ac_site_file"; then
1853     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854 echo "$as_me: loading site script $ac_site_file" >&6;}
1855     sed 's/^/| /' "$ac_site_file" >&5
1856     . "$ac_site_file"
1857   fi
1858 done
1859
1860 if test -r "$cache_file"; then
1861   # Some versions of bash will fail to source /dev/null (special
1862   # files actually), so we avoid doing that.
1863   if test -f "$cache_file"; then
1864     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865 echo "$as_me: loading cache $cache_file" >&6;}
1866     case $cache_file in
1867       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1868       *)                      . "./$cache_file";;
1869     esac
1870   fi
1871 else
1872   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873 echo "$as_me: creating cache $cache_file" >&6;}
1874   >$cache_file
1875 fi
1876
1877 # Check that the precious variables saved in the cache have kept the same
1878 # value.
1879 ac_cache_corrupted=false
1880 for ac_var in $ac_precious_vars; do
1881   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882   eval ac_new_set=\$ac_env_${ac_var}_set
1883   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884   eval ac_new_val=\$ac_env_${ac_var}_value
1885   case $ac_old_set,$ac_new_set in
1886     set,)
1887       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889       ac_cache_corrupted=: ;;
1890     ,set)
1891       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893       ac_cache_corrupted=: ;;
1894     ,);;
1895     *)
1896       if test "x$ac_old_val" != "x$ac_new_val"; then
1897         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1898 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1899         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1900 echo "$as_me:   former value:  $ac_old_val" >&2;}
1901         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1902 echo "$as_me:   current value: $ac_new_val" >&2;}
1903         ac_cache_corrupted=:
1904       fi;;
1905   esac
1906   # Pass precious variables to config.status.
1907   if test "$ac_new_set" = set; then
1908     case $ac_new_val in
1909     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1910     *) ac_arg=$ac_var=$ac_new_val ;;
1911     esac
1912     case " $ac_configure_args " in
1913       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1914       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1915     esac
1916   fi
1917 done
1918 if $ac_cache_corrupted; then
1919   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1920 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1921   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1922 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1923    { (exit 1); exit 1; }; }
1924 fi
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950 ac_ext=c
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955
1956
1957 ac_config_headers="$ac_config_headers config.h"
1958
1959 ac_aux_dir=
1960 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1961   if test -f "$ac_dir/install-sh"; then
1962     ac_aux_dir=$ac_dir
1963     ac_install_sh="$ac_aux_dir/install-sh -c"
1964     break
1965   elif test -f "$ac_dir/install.sh"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/install.sh -c"
1968     break
1969   elif test -f "$ac_dir/shtool"; then
1970     ac_aux_dir=$ac_dir
1971     ac_install_sh="$ac_aux_dir/shtool install -c"
1972     break
1973   fi
1974 done
1975 if test -z "$ac_aux_dir"; then
1976   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1977 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1978    { (exit 1); exit 1; }; }
1979 fi
1980
1981 # These three variables are undocumented and unsupported,
1982 # and are intended to be withdrawn in a future Autoconf release.
1983 # They can cause serious problems if a builder's source tree is in a directory
1984 # whose full name contains unusual characters.
1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1987 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1988
1989
1990 # Find a good install program.  We prefer a C program (faster),
1991 # so one script is as good as another.  But avoid the broken or
1992 # incompatible versions:
1993 # SysV /etc/install, /usr/sbin/install
1994 # SunOS /usr/etc/install
1995 # IRIX /sbin/install
1996 # AIX /bin/install
1997 # AmigaOS /C/install, which installs bootblocks on floppy discs
1998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2001 # OS/2's system install, which has a completely different semantic
2002 # ./install, which can be erroneously created by make from ./install.sh.
2003 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2004 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2005 if test -z "$INSTALL"; then
2006 if test "${ac_cv_path_install+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   # Account for people who put trailing slashes in PATH elements.
2015 case $as_dir/ in
2016   ./ | .// | /cC/* | \
2017   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2018   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2019   /usr/ucb/* ) ;;
2020   *)
2021     # OSF1 and SCO ODT 3.0 have their own names for install.
2022     # Don't use installbsd from OSF since it installs stuff as root
2023     # by default.
2024     for ac_prog in ginstall scoinst install; do
2025       for ac_exec_ext in '' $ac_executable_extensions; do
2026         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2027           if test $ac_prog = install &&
2028             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029             # AIX install.  It has an incompatible calling convention.
2030             :
2031           elif test $ac_prog = install &&
2032             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2033             # program-specific install script used by HP pwplus--don't use.
2034             :
2035           else
2036             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2037             break 3
2038           fi
2039         fi
2040       done
2041     done
2042     ;;
2043 esac
2044 done
2045 IFS=$as_save_IFS
2046
2047
2048 fi
2049   if test "${ac_cv_path_install+set}" = set; then
2050     INSTALL=$ac_cv_path_install
2051   else
2052     # As a last resort, use the slow shell script.  Don't cache a
2053     # value for INSTALL within a source directory, because that will
2054     # break other packages using the cache if that directory is
2055     # removed, or if the value is a relative name.
2056     INSTALL=$ac_install_sh
2057   fi
2058 fi
2059 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2060 echo "${ECHO_T}$INSTALL" >&6; }
2061
2062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2063 # It thinks the first close brace ends the variable substitution.
2064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2065
2066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2067
2068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2069
2070 am__api_version="1.9"
2071 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2072 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2073 # Just in case
2074 sleep 1
2075 echo timestamp > conftest.file
2076 # Do `set' in a subshell so we don't clobber the current shell's
2077 # arguments.  Must try -L first in case configure is actually a
2078 # symlink; some systems play weird games with the mod time of symlinks
2079 # (eg FreeBSD returns the mod time of the symlink's containing
2080 # directory).
2081 if (
2082    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2083    if test "$*" = "X"; then
2084       # -L didn't work.
2085       set X `ls -t $srcdir/configure conftest.file`
2086    fi
2087    rm -f conftest.file
2088    if test "$*" != "X $srcdir/configure conftest.file" \
2089       && test "$*" != "X conftest.file $srcdir/configure"; then
2090
2091       # If neither matched, then we have a broken ls.  This can happen
2092       # if, for instance, CONFIG_SHELL is bash and it inherits a
2093       # broken ls alias from the environment.  This has actually
2094       # happened.  Such a system could not be considered "sane".
2095       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2096 alias in your environment" >&5
2097 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2098 alias in your environment" >&2;}
2099    { (exit 1); exit 1; }; }
2100    fi
2101
2102    test "$2" = conftest.file
2103    )
2104 then
2105    # Ok.
2106    :
2107 else
2108    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2109 Check your system clock" >&5
2110 echo "$as_me: error: newly created file is older than distributed files!
2111 Check your system clock" >&2;}
2112    { (exit 1); exit 1; }; }
2113 fi
2114 { echo "$as_me:$LINENO: result: yes" >&5
2115 echo "${ECHO_T}yes" >&6; }
2116 test "$program_prefix" != NONE &&
2117   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2118 # Use a double $ so make ignores it.
2119 test "$program_suffix" != NONE &&
2120   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2121 # Double any \ or $.  echo might interpret backslashes.
2122 # By default was `s,x,x', remove it if useless.
2123 cat <<\_ACEOF >conftest.sed
2124 s/[\\$]/&&/g;s/;s,x,x,$//
2125 _ACEOF
2126 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2127 rm -f conftest.sed
2128
2129 # expand $ac_aux_dir to an absolute path
2130 am_aux_dir=`cd $ac_aux_dir && pwd`
2131
2132 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2133 # Use eval to expand $SHELL
2134 if eval "$MISSING --run true"; then
2135   am_missing_run="$MISSING --run "
2136 else
2137   am_missing_run=
2138   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2139 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2140 fi
2141
2142 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2143   # We used to keeping the `.' as first argument, in order to
2144   # allow $(mkdir_p) to be used without argument.  As in
2145   #   $(mkdir_p) $(somedir)
2146   # where $(somedir) is conditionally defined.  However this is wrong
2147   # for two reasons:
2148   #  1. if the package is installed by a user who cannot write `.'
2149   #     make install will fail,
2150   #  2. the above comment should most certainly read
2151   #     $(mkdir_p) $(DESTDIR)$(somedir)
2152   #     so it does not work when $(somedir) is undefined and
2153   #     $(DESTDIR) is not.
2154   #  To support the latter case, we have to write
2155   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2156   #  so the `.' trick is pointless.
2157   mkdir_p='mkdir -p --'
2158 else
2159   # On NextStep and OpenStep, the `mkdir' command does not
2160   # recognize any option.  It will interpret all options as
2161   # directories to create, and then abort because `.' already
2162   # exists.
2163   for d in ./-p ./--version;
2164   do
2165     test -d $d && rmdir $d
2166   done
2167   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2168   if test -f "$ac_aux_dir/mkinstalldirs"; then
2169     mkdir_p='$(mkinstalldirs)'
2170   else
2171     mkdir_p='$(install_sh) -d'
2172   fi
2173 fi
2174
2175 for ac_prog in gawk mawk nawk awk
2176 do
2177   # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_AWK+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   if test -n "$AWK"; then
2185   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190   IFS=$as_save_IFS
2191   test -z "$as_dir" && as_dir=.
2192   for ac_exec_ext in '' $ac_executable_extensions; do
2193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194     ac_cv_prog_AWK="$ac_prog"
2195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196     break 2
2197   fi
2198 done
2199 done
2200 IFS=$as_save_IFS
2201
2202 fi
2203 fi
2204 AWK=$ac_cv_prog_AWK
2205 if test -n "$AWK"; then
2206   { echo "$as_me:$LINENO: result: $AWK" >&5
2207 echo "${ECHO_T}$AWK" >&6; }
2208 else
2209   { echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6; }
2211 fi
2212
2213
2214   test -n "$AWK" && break
2215 done
2216
2217 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2219 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   cat >conftest.make <<\_ACEOF
2224 SHELL = /bin/sh
2225 all:
2226         @echo '@@@%%%=$(MAKE)=@@@%%%'
2227 _ACEOF
2228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230   *@@@%%%=?*=@@@%%%*)
2231     eval ac_cv_prog_make_${ac_make}_set=yes;;
2232   *)
2233     eval ac_cv_prog_make_${ac_make}_set=no;;
2234 esac
2235 rm -f conftest.make
2236 fi
2237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238   { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240   SET_MAKE=
2241 else
2242   { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2244   SET_MAKE="MAKE=${MAKE-make}"
2245 fi
2246
2247 rm -rf .tst 2>/dev/null
2248 mkdir .tst 2>/dev/null
2249 if test -d .tst; then
2250   am__leading_dot=.
2251 else
2252   am__leading_dot=_
2253 fi
2254 rmdir .tst 2>/dev/null
2255
2256 # test to see if srcdir already configured
2257 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2258    test -f $srcdir/config.status; then
2259   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2260 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261    { (exit 1); exit 1; }; }
2262 fi
2263
2264 # test whether we have cygpath
2265 if test -z "$CYGPATH_W"; then
2266   if (cygpath --version) >/dev/null 2>/dev/null; then
2267     CYGPATH_W='cygpath -w'
2268   else
2269     CYGPATH_W=echo
2270   fi
2271 fi
2272
2273
2274 # Define the identity of the package.
2275  PACKAGE='iptables'
2276  VERSION='1.4.1.1'
2277
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE "$PACKAGE"
2281 _ACEOF
2282
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define VERSION "$VERSION"
2286 _ACEOF
2287
2288 # Some tools Automake needs.
2289
2290 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2291
2292
2293 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2294
2295
2296 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2297
2298
2299 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2300
2301
2302 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2303
2304 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2305
2306 # Installed binaries are usually stripped using `strip' when the user
2307 # run `make install-strip'.  However `strip' might not be the right
2308 # tool to use in cross-compilation environments, therefore Automake
2309 # will honor the `STRIP' environment variable to overrule this program.
2310 if test "$cross_compiling" != no; then
2311   if test -n "$ac_tool_prefix"; then
2312   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_prog_STRIP+set}" = set; then
2317   echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319   if test -n "$STRIP"; then
2320   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325   IFS=$as_save_IFS
2326   test -z "$as_dir" && as_dir=.
2327   for ac_exec_ext in '' $ac_executable_extensions; do
2328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331     break 2
2332   fi
2333 done
2334 done
2335 IFS=$as_save_IFS
2336
2337 fi
2338 fi
2339 STRIP=$ac_cv_prog_STRIP
2340 if test -n "$STRIP"; then
2341   { echo "$as_me:$LINENO: result: $STRIP" >&5
2342 echo "${ECHO_T}$STRIP" >&6; }
2343 else
2344   { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2346 fi
2347
2348
2349 fi
2350 if test -z "$ac_cv_prog_STRIP"; then
2351   ac_ct_STRIP=$STRIP
2352   # Extract the first word of "strip", so it can be a program name with args.
2353 set dummy strip; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$ac_ct_STRIP"; then
2360   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   for ac_exec_ext in '' $ac_executable_extensions; do
2368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369     ac_cv_prog_ac_ct_STRIP="strip"
2370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2376
2377 fi
2378 fi
2379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380 if test -n "$ac_ct_STRIP"; then
2381   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2382 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2383 else
2384   { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2386 fi
2387
2388   if test "x$ac_ct_STRIP" = x; then
2389     STRIP=":"
2390   else
2391     case $cross_compiling:$ac_tool_warned in
2392 yes:)
2393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet.  If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&5
2396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet.  If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2399 ac_tool_warned=yes ;;
2400 esac
2401     STRIP=$ac_ct_STRIP
2402   fi
2403 else
2404   STRIP="$ac_cv_prog_STRIP"
2405 fi
2406
2407 fi
2408 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2409
2410 # We need awk for the "check" target.  The system "awk" is bad on
2411 # some platforms.
2412 # Always define AMTAR for backward compatibility.
2413
2414 AMTAR=${AMTAR-"${am_missing_run}tar"}
2415
2416 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2417
2418
2419
2420
2421
2422 ac_ext=c
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2428   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   if test -n "$CC"; then
2436   ac_cv_prog_CC="$CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
2442   test -z "$as_dir" && as_dir=.
2443   for ac_exec_ext in '' $ac_executable_extensions; do
2444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448   fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457   { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2459 else
2460   { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2462 fi
2463
2464
2465 fi
2466 if test -z "$ac_cv_prog_CC"; then
2467   ac_ct_CC=$CC
2468   # Extract the first word of "gcc", so it can be a program name with args.
2469 set dummy gcc; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$ac_ct_CC"; then
2476   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485     ac_cv_prog_ac_ct_CC="gcc"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498 echo "${ECHO_T}$ac_ct_CC" >&6; }
2499 else
2500   { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2502 fi
2503
2504   if test "x$ac_ct_CC" = x; then
2505     CC=""
2506   else
2507     case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet.  If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&5
2512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet.  If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515 ac_tool_warned=yes ;;
2516 esac
2517     CC=$ac_ct_CC
2518   fi
2519 else
2520   CC="$ac_cv_prog_CC"
2521 fi
2522
2523 if test -z "$CC"; then
2524           if test -n "$ac_tool_prefix"; then
2525     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542     ac_cv_prog_CC="${ac_tool_prefix}cc"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2556 else
2557   { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2559 fi
2560
2561
2562   fi
2563 fi
2564 if test -z "$CC"; then
2565   # Extract the first word of "cc", so it can be a program name with args.
2566 set dummy cc; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570   echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572   if test -n "$CC"; then
2573   ac_cv_prog_CC="$CC" # Let the user override the test.
2574 else
2575   ac_prog_rejected=no
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581   for ac_exec_ext in '' $ac_executable_extensions; do
2582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584        ac_prog_rejected=yes
2585        continue
2586      fi
2587     ac_cv_prog_CC="cc"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 if test $ac_prog_rejected = yes; then
2596   # We found a bogon in the path, so make sure we never use it.
2597   set dummy $ac_cv_prog_CC
2598   shift
2599   if test $# != 0; then
2600     # We chose a different compiler from the bogus one.
2601     # However, it has the same basename, so the bogon will be chosen
2602     # first if we set CC to just the basename; use the full file name.
2603     shift
2604     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605   fi
2606 fi
2607 fi
2608 fi
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611   { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2613 else
2614   { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2616 fi
2617
2618
2619 fi
2620 if test -z "$CC"; then
2621   if test -n "$ac_tool_prefix"; then
2622   for ac_prog in cl.exe
2623   do
2624     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$CC"; then
2632   ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653   { echo "$as_me:$LINENO: result: $CC" >&5
2654 echo "${ECHO_T}$CC" >&6; }
2655 else
2656   { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2658 fi
2659
2660
2661     test -n "$CC" && break
2662   done
2663 fi
2664 if test -z "$CC"; then
2665   ac_ct_CC=$CC
2666   for ac_prog in cl.exe
2667 do
2668   # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   if test -n "$ac_ct_CC"; then
2676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683   for ac_exec_ext in '' $ac_executable_extensions; do
2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685     ac_cv_prog_ac_ct_CC="$ac_prog"
2686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6; }
2699 else
2700   { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2702 fi
2703
2704
2705   test -n "$ac_ct_CC" && break
2706 done
2707
2708   if test "x$ac_ct_CC" = x; then
2709     CC=""
2710   else
2711     case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet.  If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet.  If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719 ac_tool_warned=yes ;;
2720 esac
2721     CC=$ac_ct_CC
2722   fi
2723 fi
2724
2725 fi
2726
2727
2728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&2;}
2732    { (exit 1); exit 1; }; }
2733
2734 # Provide some information about the compiler.
2735 echo "$as_me:$LINENO: checking for C compiler version" >&5
2736 ac_compiler=`set X $ac_compile; echo $2`
2737 { (ac_try="$ac_compiler --version >&5"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743   (eval "$ac_compiler --version >&5") 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }
2747 { (ac_try="$ac_compiler -v >&5"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_compiler -v >&5") 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }
2757 { (ac_try="$ac_compiler -V >&5"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763   (eval "$ac_compiler -V >&5") 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }
2767
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774
2775 int
2776 main ()
2777 {
2778
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 ac_clean_files_save=$ac_clean_files
2784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2785 # Try to create an executable without -o first, disregard a.out.
2786 # It will help us diagnose broken compilers, and finding out an intuition
2787 # of exeext.
2788 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2791 #
2792 # List of possible output files, starting from the most likely.
2793 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2794 # only as a last resort.  b.out is created by i960 compilers.
2795 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2796 #
2797 # The IRIX 6 linker writes into existing files which may not be
2798 # executable, retaining their permissions.  Remove them first so a
2799 # subsequent execution test works.
2800 ac_rmfiles=
2801 for ac_file in $ac_files
2802 do
2803   case $ac_file in
2804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2805     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2806   esac
2807 done
2808 rm -f $ac_rmfiles
2809
2810 if { (ac_try="$ac_link_default"
2811 case "(($ac_try" in
2812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813   *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816   (eval "$ac_link_default") 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; then
2820   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2823 # so that the user can short-circuit this test for compilers unknown to
2824 # Autoconf.
2825 for ac_file in $ac_files ''
2826 do
2827   test -f "$ac_file" || continue
2828   case $ac_file in
2829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2830         ;;
2831     [ab].out )
2832         # We found the default executable, but exeext='' is most
2833         # certainly right.
2834         break;;
2835     *.* )
2836         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2837         then :; else
2838            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2839         fi
2840         # We set ac_cv_exeext here because the later test for it is not
2841         # safe: cross compilers may not add the suffix if given an `-o'
2842         # argument, so we may need to know it at that point already.
2843         # Even if this section looks crufty: it has the advantage of
2844         # actually working.
2845         break;;
2846     * )
2847         break;;
2848   esac
2849 done
2850 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851
2852 else
2853   ac_file=''
2854 fi
2855
2856 { echo "$as_me:$LINENO: result: $ac_file" >&5
2857 echo "${ECHO_T}$ac_file" >&6; }
2858 if test -z "$ac_file"; then
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&2;}
2866    { (exit 77); exit 77; }; }
2867 fi
2868
2869 ac_exeext=$ac_cv_exeext
2870
2871 # Check that the compiler produces executables we can run.  If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2875 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876 # If not cross compiling, check that we can run a simple program.
2877 if test "$cross_compiling" != yes; then
2878   if { ac_try='./$ac_file'
2879   { (case "(($ac_try" in
2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881   *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884   (eval "$ac_try") 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; }; then
2888     cross_compiling=no
2889   else
2890     if test "$cross_compiling" = maybe; then
2891         cross_compiling=yes
2892     else
2893         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&2;}
2899    { (exit 1); exit 1; }; }
2900     fi
2901   fi
2902 fi
2903 { echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6; }
2905
2906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2907 ac_clean_files=$ac_clean_files_save
2908 # Check that the compiler produces executables we can run.  If not, either
2909 # the compiler is broken, or we cross compile.
2910 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2912 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2913 echo "${ECHO_T}$cross_compiling" >&6; }
2914
2915 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2917 if { (ac_try="$ac_link"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_link") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; then
2927   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2928 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2929 # work properly (i.e., refer to `conftest.exe'), while it won't with
2930 # `rm'.
2931 for ac_file in conftest.exe conftest conftest.*; do
2932   test -f "$ac_file" || continue
2933   case $ac_file in
2934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936           break;;
2937     * ) break;;
2938   esac
2939 done
2940 else
2941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&2;}
2945    { (exit 1); exit 1; }; }
2946 fi
2947
2948 rm -f conftest$ac_cv_exeext
2949 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2950 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2951
2952 rm -f conftest.$ac_ext
2953 EXEEXT=$ac_cv_exeext
2954 ac_exeext=$EXEEXT
2955 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2957 if test "${ac_cv_objext+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.o conftest.obj
2976 if { (ac_try="$ac_compile"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_compile") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; then
2986   for ac_file in conftest.o conftest.obj conftest.*; do
2987   test -f "$ac_file" || continue;
2988   case $ac_file in
2989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2990     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2991        break;;
2992   esac
2993 done
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&2;}
3002    { (exit 1); exit 1; }; }
3003 fi
3004
3005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3006 fi
3007 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3008 echo "${ECHO_T}$ac_cv_objext" >&6; }
3009 OBJEXT=$ac_cv_objext
3010 ac_objext=$OBJEXT
3011 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3012 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3013 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022
3023 int
3024 main ()
3025 {
3026 #ifndef __GNUC__
3027        choke me
3028 #endif
3029
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_compile") 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } && {
3048          test -z "$ac_c_werror_flag" ||
3049          test ! -s conftest.err
3050        } && test -s conftest.$ac_objext; then
3051   ac_compiler_gnu=yes
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056         ac_compiler_gnu=no
3057 fi
3058
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3061
3062 fi
3063 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3065 GCC=`test $ac_compiler_gnu = yes && echo yes`
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_cc_g+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   ac_save_c_werror_flag=$ac_c_werror_flag
3074    ac_c_werror_flag=yes
3075    ac_cv_prog_cc_g=no
3076    CFLAGS="-g"
3077    cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_compile") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } && {
3106          test -z "$ac_c_werror_flag" ||
3107          test ! -s conftest.err
3108        } && test -s conftest.$ac_objext; then
3109   ac_cv_prog_cc_g=yes
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114         CFLAGS=""
3115       cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_compile") 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } && {
3144          test -z "$ac_c_werror_flag" ||
3145          test ! -s conftest.err
3146        } && test -s conftest.$ac_objext; then
3147   :
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152         ac_c_werror_flag=$ac_save_c_werror_flag
3153          CFLAGS="-g"
3154          cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3171 case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_compile") 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } && {
3183          test -z "$ac_c_werror_flag" ||
3184          test ! -s conftest.err
3185        } && test -s conftest.$ac_objext; then
3186   ac_cv_prog_cc_g=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201    ac_c_werror_flag=$ac_save_c_werror_flag
3202 fi
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3204 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3205 if test "$ac_test_CFLAGS" = set; then
3206   CFLAGS=$ac_save_CFLAGS
3207 elif test $ac_cv_prog_cc_g = yes; then
3208   if test "$GCC" = yes; then
3209     CFLAGS="-g -O2"
3210   else
3211     CFLAGS="-g"
3212   fi
3213 else
3214   if test "$GCC" = yes; then
3215     CFLAGS="-O2"
3216   else
3217     CFLAGS=
3218   fi
3219 fi
3220 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3221 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_cc_c89+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   ac_cv_prog_cc_c89=no
3226 ac_save_CC=$CC
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233 #include <stdarg.h>
3234 #include <stdio.h>
3235 #include <sys/types.h>
3236 #include <sys/stat.h>
3237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3238 struct buf { int x; };
3239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240 static char *e (p, i)
3241      char **p;
3242      int i;
3243 {
3244   return p[i];
3245 }
3246 static char *f (char * (*g) (char **, int), char **p, ...)
3247 {
3248   char *s;
3249   va_list v;
3250   va_start (v,p);
3251   s = g (p, va_arg (v,int));
3252   va_end (v);
3253   return s;
3254 }
3255
3256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3257    function prototypes and stuff, but not '\xHH' hex character constants.
3258    These don't provoke an error unfortunately, instead are silently treated
3259    as 'x'.  The following induces an error, until -std is added to get
3260    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3261    array size at least.  It's necessary to write '\x00'==0 to get something
3262    that's true only with -std.  */
3263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3264
3265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266    inside strings and character constants.  */
3267 #define FOO(x) 'x'
3268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3269
3270 int test (int i, double x);
3271 struct s1 {int (*f) (int a);};
3272 struct s2 {int (*f) (double a);};
3273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 int argc;
3275 char **argv;
3276 int
3277 main ()
3278 {
3279 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286 do
3287   CC="$ac_save_CC $ac_arg"
3288   rm -f conftest.$ac_objext
3289 if { (ac_try="$ac_compile"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_compile") 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } && {
3302          test -z "$ac_c_werror_flag" ||
3303          test ! -s conftest.err
3304        } && test -s conftest.$ac_objext; then
3305   ac_cv_prog_cc_c89=$ac_arg
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310
3311 fi
3312
3313 rm -f core conftest.err conftest.$ac_objext
3314   test "x$ac_cv_prog_cc_c89" != "xno" && break
3315 done
3316 rm -f conftest.$ac_ext
3317 CC=$ac_save_CC
3318
3319 fi
3320 # AC_CACHE_VAL
3321 case "x$ac_cv_prog_cc_c89" in
3322   x)
3323     { echo "$as_me:$LINENO: result: none needed" >&5
3324 echo "${ECHO_T}none needed" >&6; } ;;
3325   xno)
3326     { echo "$as_me:$LINENO: result: unsupported" >&5
3327 echo "${ECHO_T}unsupported" >&6; } ;;
3328   *)
3329     CC="$CC $ac_cv_prog_cc_c89"
3330     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3331 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3332 esac
3333
3334
3335 ac_ext=c
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 DEPDIR="${am__leading_dot}deps"
3341
3342 ac_config_commands="$ac_config_commands depfiles"
3343
3344
3345 am_make=${MAKE-make}
3346 cat > confinc << 'END'
3347 am__doit:
3348         @echo done
3349 .PHONY: am__doit
3350 END
3351 # If we don't find an include directive, just comment out the code.
3352 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3353 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3354 am__include="#"
3355 am__quote=
3356 _am_result=none
3357 # First try GNU make style include.
3358 echo "include confinc" > confmf
3359 # We grep out `Entering directory' and `Leaving directory'
3360 # messages which can occur if `w' ends up in MAKEFLAGS.
3361 # In particular we don't look at `^make:' because GNU make might
3362 # be invoked under some other name (usually "gmake"), in which
3363 # case it prints its new name instead of `make'.
3364 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3365    am__include=include
3366    am__quote=
3367    _am_result=GNU
3368 fi
3369 # Now try BSD make style include.
3370 if test "$am__include" = "#"; then
3371    echo '.include "confinc"' > confmf
3372    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3373       am__include=.include
3374       am__quote="\""
3375       _am_result=BSD
3376    fi
3377 fi
3378
3379
3380 { echo "$as_me:$LINENO: result: $_am_result" >&5
3381 echo "${ECHO_T}$_am_result" >&6; }
3382 rm -f confinc confmf
3383
3384 # Check whether --enable-dependency-tracking was given.
3385 if test "${enable_dependency_tracking+set}" = set; then
3386   enableval=$enable_dependency_tracking;
3387 fi
3388
3389 if test "x$enable_dependency_tracking" != xno; then
3390   am_depcomp="$ac_aux_dir/depcomp"
3391   AMDEPBACKSLASH='\'
3392 fi
3393
3394
3395 if test "x$enable_dependency_tracking" != xno; then
3396   AMDEP_TRUE=
3397   AMDEP_FALSE='#'
3398 else
3399   AMDEP_TRUE='#'
3400   AMDEP_FALSE=
3401 fi
3402
3403
3404
3405
3406 depcc="$CC"   am_compiler_list=
3407
3408 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414   # We make a subdir and do the tests there.  Otherwise we can end up
3415   # making bogus files that we don't know about and never remove.  For
3416   # instance it was reported that on HP-UX the gcc test will end up
3417   # making a dummy file named `D' -- because `-MD' means `put the output
3418   # in D'.
3419   mkdir conftest.dir
3420   # Copy depcomp to subdir because otherwise we won't find it if we're
3421   # using a relative directory.
3422   cp "$am_depcomp" conftest.dir
3423   cd conftest.dir
3424   # We will build objects and dependencies in a subdirectory because
3425   # it helps to detect inapplicable dependency modes.  For instance
3426   # both Tru64's cc and ICC support -MD to output dependencies as a
3427   # side effect of compilation, but ICC will put the dependencies in
3428   # the current directory while Tru64 will put them in the object
3429   # directory.
3430   mkdir sub
3431
3432   am_cv_CC_dependencies_compiler_type=none
3433   if test "$am_compiler_list" = ""; then
3434      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435   fi
3436   for depmode in $am_compiler_list; do
3437     # Setup a source with many dependencies, because some compilers
3438     # like to wrap large dependency lists on column 80 (with \), and
3439     # we should not choose a depcomp mode which is confused by this.
3440     #
3441     # We need to recreate these files for each test, as the compiler may
3442     # overwrite some of them when testing with obscure command lines.
3443     # This happens at least with the AIX C compiler.
3444     : > sub/conftest.c
3445     for i in 1 2 3 4 5 6; do
3446       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448       # Solaris 8's {/usr,}/bin/sh.
3449       touch sub/conftst$i.h
3450     done
3451     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3452
3453     case $depmode in
3454     nosideeffect)
3455       # after this tag, mechanisms are not by side-effect, so they'll
3456       # only be used when explicitly requested
3457       if test "x$enable_dependency_tracking" = xyes; then
3458         continue
3459       else
3460         break
3461       fi
3462       ;;
3463     none) break ;;
3464     esac
3465     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466     # mode.  It turns out that the SunPro C++ compiler does not properly
3467     # handle `-M -o', and we need to detect this.
3468     if depmode=$depmode \
3469        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472          >/dev/null 2>conftest.err &&
3473        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476       # icc doesn't choke on unknown options, it will just issue warnings
3477       # or remarks (even with -Werror).  So we grep stderr for any message
3478       # that says an option was ignored or not supported.
3479       # When given -MP, icc 7.0 and 7.1 complain thusly:
3480       #   icc: Command line warning: ignoring option '-M'; no argument required
3481       # The diagnosis changed in icc 8.0:
3482       #   icc: Command line remark: option '-MP' not supported
3483       if (grep 'ignoring option' conftest.err ||
3484           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485         am_cv_CC_dependencies_compiler_type=$depmode
3486         break
3487       fi
3488     fi
3489   done
3490
3491   cd ..
3492   rm -rf conftest.dir
3493 else
3494   am_cv_CC_dependencies_compiler_type=none
3495 fi
3496
3497 fi
3498 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3501
3502
3503
3504 if
3505   test "x$enable_dependency_tracking" != xno \
3506   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3507   am__fastdepCC_TRUE=
3508   am__fastdepCC_FALSE='#'
3509 else
3510   am__fastdepCC_TRUE='#'
3511   am__fastdepCC_FALSE=
3512 fi
3513
3514
3515 if test "x$CC" != xcc; then
3516   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3517 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3518 else
3519   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3520 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3521 fi
3522 set dummy $CC; ac_cc=`echo $2 |
3523                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3524 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 # Make sure it works both with $CC and with simple cc.
3543 # We do the test twice because some compilers refuse to overwrite an
3544 # existing .o file with -o, though they will create one.
3545 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3546 rm -f conftest2.*
3547 if { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } &&
3556    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561   (eval "$ac_try") 2>&5
3562   ac_status=$?
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); };
3565 then
3566   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3567   if test "x$CC" != xcc; then
3568     # Test first that cc exists at all.
3569     if { ac_try='cc -c conftest.$ac_ext >&5'
3570   { (case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575   (eval "$ac_try") 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }; }; then
3579       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3580       rm -f conftest2.*
3581       if { (case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586   (eval "$ac_try") 2>&5
3587   ac_status=$?
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } &&
3590          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595   (eval "$ac_try") 2>&5
3596   ac_status=$?
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); };
3599       then
3600         # cc works too.
3601         :
3602       else
3603         # cc exists but doesn't like -o.
3604         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3605       fi
3606     fi
3607   fi
3608 else
3609   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3610 fi
3611 rm -f core conftest*
3612
3613 fi
3614 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3615   { echo "$as_me:$LINENO: result: yes" >&5
3616 echo "${ECHO_T}yes" >&6; }
3617 else
3618   { echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6; }
3620
3621 cat >>confdefs.h <<\_ACEOF
3622 #define NO_MINUS_C_MINUS_O 1
3623 _ACEOF
3624
3625 fi
3626
3627 # FIXME: we rely on the cache variable name because
3628 # there is no other way.
3629 set dummy $CC
3630 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3631 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3632    # Losing compiler, so override with the script.
3633    # FIXME: It is wrong to rewrite CC.
3634    # But if we don't then we get into trouble of one sort or another.
3635    # A longer-term fix would be to have automake use am__CC in this case,
3636    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3637    CC="$am_aux_dir/compile $CC"
3638 fi
3639
3640 # Check whether --enable-static was given.
3641 if test "${enable_static+set}" = set; then
3642   enableval=$enable_static; p=${PACKAGE-default}
3643     case $enableval in
3644     yes) enable_static=yes ;;
3645     no) enable_static=no ;;
3646     *)
3647      enable_static=no
3648       # Look at the argument we got.  We use all the common list separators.
3649       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3650       for pkg in $enableval; do
3651         IFS="$lt_save_ifs"
3652         if test "X$pkg" = "X$p"; then
3653           enable_static=yes
3654         fi
3655       done
3656       IFS="$lt_save_ifs"
3657       ;;
3658     esac
3659 else
3660   enable_static=no
3661 fi
3662
3663
3664
3665 # Check whether --enable-shared was given.
3666 if test "${enable_shared+set}" = set; then
3667   enableval=$enable_shared; p=${PACKAGE-default}
3668     case $enableval in
3669     yes) enable_shared=yes ;;
3670     no) enable_shared=no ;;
3671     *)
3672       enable_shared=no
3673       # Look at the argument we got.  We use all the common list separators.
3674       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3675       for pkg in $enableval; do
3676         IFS="$lt_save_ifs"
3677         if test "X$pkg" = "X$p"; then
3678           enable_shared=yes
3679         fi
3680       done
3681       IFS="$lt_save_ifs"
3682       ;;
3683     esac
3684 else
3685   enable_shared=yes
3686 fi
3687
3688
3689 # Check whether --enable-fast-install was given.
3690 if test "${enable_fast_install+set}" = set; then
3691   enableval=$enable_fast_install; p=${PACKAGE-default}
3692     case $enableval in
3693     yes) enable_fast_install=yes ;;
3694     no) enable_fast_install=no ;;
3695     *)
3696       enable_fast_install=no
3697       # Look at the argument we got.  We use all the common list separators.
3698       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3699       for pkg in $enableval; do
3700         IFS="$lt_save_ifs"
3701         if test "X$pkg" = "X$p"; then
3702           enable_fast_install=yes
3703         fi
3704       done
3705       IFS="$lt_save_ifs"
3706       ;;
3707     esac
3708 else
3709   enable_fast_install=yes
3710 fi
3711
3712
3713 # Make sure we can run config.sub.
3714 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3715   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3716 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3717    { (exit 1); exit 1; }; }
3718
3719 { echo "$as_me:$LINENO: checking build system type" >&5
3720 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3721 if test "${ac_cv_build+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   ac_build_alias=$build_alias
3725 test "x$ac_build_alias" = x &&
3726   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3727 test "x$ac_build_alias" = x &&
3728   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3729 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3730    { (exit 1); exit 1; }; }
3731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3732   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3733 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3734    { (exit 1); exit 1; }; }
3735
3736 fi
3737 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3738 echo "${ECHO_T}$ac_cv_build" >&6; }
3739 case $ac_cv_build in
3740 *-*-*) ;;
3741 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3742 echo "$as_me: error: invalid value of canonical build" >&2;}
3743    { (exit 1); exit 1; }; };;
3744 esac
3745 build=$ac_cv_build
3746 ac_save_IFS=$IFS; IFS='-'
3747 set x $ac_cv_build
3748 shift
3749 build_cpu=$1
3750 build_vendor=$2
3751 shift; shift
3752 # Remember, the first character of IFS is used to create $*,
3753 # except with old shells:
3754 build_os=$*
3755 IFS=$ac_save_IFS
3756 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3757
3758
3759 { echo "$as_me:$LINENO: checking host system type" >&5
3760 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3761 if test "${ac_cv_host+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   if test "x$host_alias" = x; then
3765   ac_cv_host=$ac_cv_build
3766 else
3767   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3768     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3769 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3770    { (exit 1); exit 1; }; }
3771 fi
3772
3773 fi
3774 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3775 echo "${ECHO_T}$ac_cv_host" >&6; }
3776 case $ac_cv_host in
3777 *-*-*) ;;
3778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3779 echo "$as_me: error: invalid value of canonical host" >&2;}
3780    { (exit 1); exit 1; }; };;
3781 esac
3782 host=$ac_cv_host
3783 ac_save_IFS=$IFS; IFS='-'
3784 set x $ac_cv_host
3785 shift
3786 host_cpu=$1
3787 host_vendor=$2
3788 shift; shift
3789 # Remember, the first character of IFS is used to create $*,
3790 # except with old shells:
3791 host_os=$*
3792 IFS=$ac_save_IFS
3793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3794
3795
3796 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3797 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3798 if test "${lt_cv_path_SED+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   # Loop through the user's path and test for sed and gsed.
3802 # Then use that list of sed's as ones to test for truncation.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808   for lt_ac_prog in sed gsed; do
3809     for ac_exec_ext in '' $ac_executable_extensions; do
3810       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3811         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3812       fi
3813     done
3814   done
3815 done
3816 IFS=$as_save_IFS
3817 lt_ac_max=0
3818 lt_ac_count=0
3819 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3820 # along with /bin/sed that truncates output.
3821 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3822   test ! -f $lt_ac_sed && continue
3823   cat /dev/null > conftest.in
3824   lt_ac_count=0
3825   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3826   # Check for GNU sed and select it if it is found.
3827   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3828     lt_cv_path_SED=$lt_ac_sed
3829     break
3830   fi
3831   while true; do
3832     cat conftest.in conftest.in >conftest.tmp
3833     mv conftest.tmp conftest.in
3834     cp conftest.in conftest.nl
3835     echo >>conftest.nl
3836     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3837     cmp -s conftest.out conftest.nl || break
3838     # 10000 chars as input seems more than enough
3839     test $lt_ac_count -gt 10 && break
3840     lt_ac_count=`expr $lt_ac_count + 1`
3841     if test $lt_ac_count -gt $lt_ac_max; then
3842       lt_ac_max=$lt_ac_count
3843       lt_cv_path_SED=$lt_ac_sed
3844     fi
3845   done
3846 done
3847
3848 fi
3849
3850 SED=$lt_cv_path_SED
3851
3852 { echo "$as_me:$LINENO: result: $SED" >&5
3853 echo "${ECHO_T}$SED" >&6; }
3854
3855 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3856 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3857 if test "${ac_cv_path_GREP+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   # Extract the first word of "grep ggrep" to use in msg output
3861 if test -z "$GREP"; then
3862 set dummy grep ggrep; ac_prog_name=$2
3863 if test "${ac_cv_path_GREP+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   ac_path_GREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for ac_prog in grep ggrep; do
3874   for ac_exec_ext in '' $ac_executable_extensions; do
3875     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3876     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3877     # Check for GNU ac_path_GREP and select it if it is found.
3878   # Check for GNU $ac_path_GREP
3879 case `"$ac_path_GREP" --version 2>&1` in
3880 *GNU*)
3881   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3882 *)
3883   ac_count=0
3884   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3885   while :
3886   do
3887     cat "conftest.in" "conftest.in" >"conftest.tmp"
3888     mv "conftest.tmp" "conftest.in"
3889     cp "conftest.in" "conftest.nl"
3890     echo 'GREP' >> "conftest.nl"
3891     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893     ac_count=`expr $ac_count + 1`
3894     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3895       # Best one so far, save it but keep looking for a better one
3896       ac_cv_path_GREP="$ac_path_GREP"
3897       ac_path_GREP_max=$ac_count
3898     fi
3899     # 10*(2^10) chars as input seems more than enough
3900     test $ac_count -gt 10 && break
3901   done
3902   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 esac
3904
3905
3906     $ac_path_GREP_found && break 3
3907   done
3908 done
3909
3910 done
3911 IFS=$as_save_IFS
3912
3913
3914 fi
3915
3916 GREP="$ac_cv_path_GREP"
3917 if test -z "$GREP"; then
3918   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3919 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3920    { (exit 1); exit 1; }; }
3921 fi
3922
3923 else
3924   ac_cv_path_GREP=$GREP
3925 fi
3926
3927
3928 fi
3929 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3930 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3931  GREP="$ac_cv_path_GREP"
3932
3933
3934 { echo "$as_me:$LINENO: checking for egrep" >&5
3935 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3936 if test "${ac_cv_path_EGREP+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3940    then ac_cv_path_EGREP="$GREP -E"
3941    else
3942      # Extract the first word of "egrep" to use in msg output
3943 if test -z "$EGREP"; then
3944 set dummy egrep; ac_prog_name=$2
3945 if test "${ac_cv_path_EGREP+set}" = set; then
3946   echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948   ac_path_EGREP_found=false
3949 # Loop through the user's path and test for each of PROGNAME-LIST
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955   for ac_prog in egrep; do
3956   for ac_exec_ext in '' $ac_executable_extensions; do
3957     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3958     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3959     # Check for GNU ac_path_EGREP and select it if it is found.
3960   # Check for GNU $ac_path_EGREP
3961 case `"$ac_path_EGREP" --version 2>&1` in
3962 *GNU*)
3963   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3964 *)
3965   ac_count=0
3966   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3967   while :
3968   do
3969     cat "conftest.in" "conftest.in" >"conftest.tmp"
3970     mv "conftest.tmp" "conftest.in"
3971     cp "conftest.in" "conftest.nl"
3972     echo 'EGREP' >> "conftest.nl"
3973     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3974     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3975     ac_count=`expr $ac_count + 1`
3976     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3977       # Best one so far, save it but keep looking for a better one
3978       ac_cv_path_EGREP="$ac_path_EGREP"
3979       ac_path_EGREP_max=$ac_count
3980     fi
3981     # 10*(2^10) chars as input seems more than enough
3982     test $ac_count -gt 10 && break
3983   done
3984   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3985 esac
3986
3987
3988     $ac_path_EGREP_found && break 3
3989   done
3990 done
3991
3992 done
3993 IFS=$as_save_IFS
3994
3995
3996 fi
3997
3998 EGREP="$ac_cv_path_EGREP"
3999 if test -z "$EGREP"; then
4000   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4001 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4002    { (exit 1); exit 1; }; }
4003 fi
4004
4005 else
4006   ac_cv_path_EGREP=$EGREP
4007 fi
4008
4009
4010    fi
4011 fi
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4014  EGREP="$ac_cv_path_EGREP"
4015
4016
4017
4018 # Check whether --with-gnu-ld was given.
4019 if test "${with_gnu_ld+set}" = set; then
4020   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4021 else
4022   with_gnu_ld=no
4023 fi
4024
4025 ac_prog=ld
4026 if test "$GCC" = yes; then
4027   # Check if gcc -print-prog-name=ld gives a path.
4028   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4029 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4030   case $host in
4031   *-*-mingw*)
4032     # gcc leaves a trailing carriage return which upsets mingw
4033     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4034   *)
4035     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4036   esac
4037   case $ac_prog in
4038     # Accept absolute paths.
4039     [\\/]* | ?:[\\/]*)
4040       re_direlt='/[^/][^/]*/\.\./'
4041       # Canonicalize the pathname of ld
4042       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4043       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4044         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4045       done
4046       test -z "$LD" && LD="$ac_prog"
4047       ;;
4048   "")
4049     # If it fails, then pretend we aren't using GCC.
4050     ac_prog=ld
4051     ;;
4052   *)
4053     # If it is relative, then search for the first ld in PATH.
4054     with_gnu_ld=unknown
4055     ;;
4056   esac
4057 elif test "$with_gnu_ld" = yes; then
4058   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4059 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4060 else
4061   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4062 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4063 fi
4064 if test "${lt_cv_path_LD+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   if test -z "$LD"; then
4068   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4069   for ac_dir in $PATH; do
4070     IFS="$lt_save_ifs"
4071     test -z "$ac_dir" && ac_dir=.
4072     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4073       lt_cv_path_LD="$ac_dir/$ac_prog"
4074       # Check to see if the program is GNU ld.  I'd rather use --version,
4075       # but apparently some variants of GNU ld only accept -v.
4076       # Break only if it was the GNU/non-GNU ld that we prefer.
4077       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4078       *GNU* | *'with BFD'*)
4079         test "$with_gnu_ld" != no && break
4080         ;;
4081       *)
4082         test "$with_gnu_ld" != yes && break
4083         ;;
4084       esac
4085     fi
4086   done
4087   IFS="$lt_save_ifs"
4088 else
4089   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4090 fi
4091 fi
4092
4093 LD="$lt_cv_path_LD"
4094 if test -n "$LD"; then
4095   { echo "$as_me:$LINENO: result: $LD" >&5
4096 echo "${ECHO_T}$LD" >&6; }
4097 else
4098   { echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6; }
4100 fi
4101 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4102 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4103    { (exit 1); exit 1; }; }
4104 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4105 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4106 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4110 case `$LD -v 2>&1 </dev/null` in
4111 *GNU* | *'with BFD'*)
4112   lt_cv_prog_gnu_ld=yes
4113   ;;
4114 *)
4115   lt_cv_prog_gnu_ld=no
4116   ;;
4117 esac
4118 fi
4119 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4120 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4121 with_gnu_ld=$lt_cv_prog_gnu_ld
4122
4123
4124 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4125 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4126 if test "${lt_cv_ld_reload_flag+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   lt_cv_ld_reload_flag='-r'
4130 fi
4131 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4132 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4133 reload_flag=$lt_cv_ld_reload_flag
4134 case $reload_flag in
4135 "" | " "*) ;;
4136 *) reload_flag=" $reload_flag" ;;
4137 esac
4138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4139 case $host_os in
4140   darwin*)
4141     if test "$GCC" = yes; then
4142       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4143     else
4144       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4145     fi
4146     ;;
4147 esac
4148
4149 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4150 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4151 if test "${lt_cv_path_NM+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   if test -n "$NM"; then
4155   # Let the user override the test.
4156   lt_cv_path_NM="$NM"
4157 else
4158   lt_nm_to_check="${ac_tool_prefix}nm"
4159   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4160     lt_nm_to_check="$lt_nm_to_check nm"
4161   fi
4162   for lt_tmp_nm in $lt_nm_to_check; do
4163     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4164     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4165       IFS="$lt_save_ifs"
4166       test -z "$ac_dir" && ac_dir=.
4167       tmp_nm="$ac_dir/$lt_tmp_nm"
4168       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4169         # Check to see if the nm accepts a BSD-compat flag.
4170         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4171         #   nm: unknown option "B" ignored
4172         # Tru64's nm complains that /dev/null is an invalid object file
4173         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4174         */dev/null* | *'Invalid file or object type'*)
4175           lt_cv_path_NM="$tmp_nm -B"
4176           break
4177           ;;
4178         *)
4179           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4180           */dev/null*)
4181             lt_cv_path_NM="$tmp_nm -p"
4182             break
4183             ;;
4184           *)
4185             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4186             continue # so that we can try to find one that supports BSD flags
4187             ;;
4188           esac
4189           ;;
4190         esac
4191       fi
4192     done
4193     IFS="$lt_save_ifs"
4194   done
4195   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4196 fi
4197 fi
4198 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4199 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4200 NM="$lt_cv_path_NM"
4201
4202 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4203 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4204 LN_S=$as_ln_s
4205 if test "$LN_S" = "ln -s"; then
4206   { echo "$as_me:$LINENO: result: yes" >&5
4207 echo "${ECHO_T}yes" >&6; }
4208 else
4209   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4210 echo "${ECHO_T}no, using $LN_S" >&6; }
4211 fi
4212
4213 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4214 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4215 if test "${lt_cv_deplibs_check_method+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   lt_cv_file_magic_cmd='$MAGIC_CMD'
4219 lt_cv_file_magic_test_file=
4220 lt_cv_deplibs_check_method='unknown'
4221 # Need to set the preceding variable on all platforms that support
4222 # interlibrary dependencies.
4223 # 'none' -- dependencies not supported.
4224 # `unknown' -- same as none, but documents that we really don't know.
4225 # 'pass_all' -- all dependencies passed with no checks.
4226 # 'test_compile' -- check by making test program.
4227 # 'file_magic [[regex]]' -- check by looking for files in library path
4228 # which responds to the $file_magic_cmd with a given extended regex.
4229 # If you have `file' or equivalent on your system and you're not sure
4230 # whether `pass_all' will *always* work, you probably want this one.
4231
4232 case $host_os in
4233 aix[4-9]*)
4234   lt_cv_deplibs_check_method=pass_all
4235   ;;
4236
4237 beos*)
4238   lt_cv_deplibs_check_method=pass_all
4239   ;;
4240
4241 bsdi[45]*)
4242   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4243   lt_cv_file_magic_cmd='/usr/bin/file -L'
4244   lt_cv_file_magic_test_file=/shlib/libc.so
4245   ;;
4246
4247 cygwin*)
4248   # func_win32_libid is a shell function defined in ltmain.sh
4249   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4250   lt_cv_file_magic_cmd='func_win32_libid'
4251   ;;
4252
4253 mingw* | pw32*)
4254   # Base MSYS/MinGW do not provide the 'file' command needed by
4255   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4256   # unless we find 'file', for example because we are cross-compiling.
4257   if ( file / ) >/dev/null 2>&1; then
4258     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4259     lt_cv_file_magic_cmd='func_win32_libid'
4260   else
4261     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4262     lt_cv_file_magic_cmd='$OBJDUMP -f'
4263   fi
4264   ;;
4265
4266 darwin* | rhapsody*)
4267   lt_cv_deplibs_check_method=pass_all
4268   ;;
4269
4270 freebsd* | dragonfly*)
4271   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4272     case $host_cpu in
4273     i*86 )
4274       # Not sure whether the presence of OpenBSD here was a mistake.
4275       # Let's accept both of them until this is cleared up.
4276       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4277       lt_cv_file_magic_cmd=/usr/bin/file
4278       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4279       ;;
4280     esac
4281   else
4282     lt_cv_deplibs_check_method=pass_all
4283   fi
4284   ;;
4285
4286 gnu*)
4287   lt_cv_deplibs_check_method=pass_all
4288   ;;
4289
4290 hpux10.20* | hpux11*)
4291   lt_cv_file_magic_cmd=/usr/bin/file
4292   case $host_cpu in
4293   ia64*)
4294     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4295     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4296     ;;
4297   hppa*64*)
4298     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]'
4299     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4300     ;;
4301   *)
4302     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4303     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4304     ;;
4305   esac
4306   ;;
4307
4308 interix[3-9]*)
4309   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4310   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4311   ;;
4312
4313 irix5* | irix6* | nonstopux*)
4314   case $LD in
4315   *-32|*"-32 ") libmagic=32-bit;;
4316   *-n32|*"-n32 ") libmagic=N32;;
4317   *-64|*"-64 ") libmagic=64-bit;;
4318   *) libmagic=never-match;;
4319   esac
4320   lt_cv_deplibs_check_method=pass_all
4321   ;;
4322
4323 # This must be Linux ELF.
4324 linux* | k*bsd*-gnu)
4325   lt_cv_deplibs_check_method=pass_all
4326   ;;
4327
4328 netbsd* | netbsdelf*-gnu)
4329   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4330     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4331   else
4332     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4333   fi
4334   ;;
4335
4336 newos6*)
4337   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4338   lt_cv_file_magic_cmd=/usr/bin/file
4339   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4340   ;;
4341
4342 nto-qnx*)
4343   lt_cv_deplibs_check_method=unknown
4344   ;;
4345
4346 openbsd*)
4347   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4348     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4349   else
4350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4351   fi
4352   ;;
4353
4354 osf3* | osf4* | osf5*)
4355   lt_cv_deplibs_check_method=pass_all
4356   ;;
4357
4358 rdos*)
4359   lt_cv_deplibs_check_method=pass_all
4360   ;;
4361
4362 solaris*)
4363   lt_cv_deplibs_check_method=pass_all
4364   ;;
4365
4366 sysv4 | sysv4.3*)
4367   case $host_vendor in
4368   motorola)
4369     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]'
4370     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4371     ;;
4372   ncr)
4373     lt_cv_deplibs_check_method=pass_all
4374     ;;
4375   sequent)
4376     lt_cv_file_magic_cmd='/bin/file'
4377     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4378     ;;
4379   sni)
4380     lt_cv_file_magic_cmd='/bin/file'
4381     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4382     lt_cv_file_magic_test_file=/lib/libc.so
4383     ;;
4384   siemens)
4385     lt_cv_deplibs_check_method=pass_all
4386     ;;
4387   pc)
4388     lt_cv_deplibs_check_method=pass_all
4389     ;;
4390   esac
4391   ;;
4392
4393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4394   lt_cv_deplibs_check_method=pass_all
4395   ;;
4396 esac
4397
4398 fi
4399 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4400 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4401 file_magic_cmd=$lt_cv_file_magic_cmd
4402 deplibs_check_method=$lt_cv_deplibs_check_method
4403 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4404
4405
4406
4407
4408 # If no C compiler was specified, use CC.
4409 LTCC=${LTCC-"$CC"}
4410
4411 # If no C compiler flags were specified, use CFLAGS.
4412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4413
4414 # Allow CC to be a program name with arguments.
4415 compiler=$CC
4416
4417
4418 # Check whether --enable-libtool-lock was given.
4419 if test "${enable_libtool_lock+set}" = set; then
4420   enableval=$enable_libtool_lock;
4421 fi
4422
4423 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4424
4425 # Some flags need to be propagated to the compiler or linker for good
4426 # libtool support.
4427 case $host in
4428 ia64-*-hpux*)
4429   # Find out which ABI we are using.
4430   echo 'int i;' > conftest.$ac_ext
4431   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432   (eval $ac_compile) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; then
4436     case `/usr/bin/file conftest.$ac_objext` in
4437     *ELF-32*)
4438       HPUX_IA64_MODE="32"
4439       ;;
4440     *ELF-64*)
4441       HPUX_IA64_MODE="64"
4442       ;;
4443     esac
4444   fi
4445   rm -rf conftest*
4446   ;;
4447 *-*-irix6*)
4448   # Find out which ABI we are using.
4449   echo '#line 4449 "configure"' > conftest.$ac_ext
4450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451   (eval $ac_compile) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); }; then
4455    if test "$lt_cv_prog_gnu_ld" = yes; then
4456     case `/usr/bin/file conftest.$ac_objext` in
4457     *32-bit*)
4458       LD="${LD-ld} -melf32bsmip"
4459       ;;
4460     *N32*)
4461       LD="${LD-ld} -melf32bmipn32"
4462       ;;
4463     *64-bit*)
4464       LD="${LD-ld} -melf64bmip"
4465       ;;
4466     esac
4467    else
4468     case `/usr/bin/file conftest.$ac_objext` in
4469     *32-bit*)
4470       LD="${LD-ld} -32"
4471       ;;
4472     *N32*)
4473       LD="${LD-ld} -n32"
4474       ;;
4475     *64-bit*)
4476       LD="${LD-ld} -64"
4477       ;;
4478     esac
4479    fi
4480   fi
4481   rm -rf conftest*
4482   ;;
4483
4484 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4485 s390*-*linux*|sparc*-*linux*)
4486   # Find out which ABI we are using.
4487   echo 'int i;' > conftest.$ac_ext
4488   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489   (eval $ac_compile) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; then
4493     case `/usr/bin/file conftest.o` in
4494     *32-bit*)
4495       case $host in
4496         x86_64-*kfreebsd*-gnu)
4497           LD="${LD-ld} -m elf_i386_fbsd"
4498           ;;
4499         x86_64-*linux*)
4500           LD="${LD-ld} -m elf_i386"
4501           ;;
4502         ppc64-*linux*|powerpc64-*linux*)
4503           LD="${LD-ld} -m elf32ppclinux"
4504           ;;
4505         s390x-*linux*)
4506           LD="${LD-ld} -m elf_s390"
4507           ;;
4508         sparc64-*linux*)
4509           LD="${LD-ld} -m elf32_sparc"
4510           ;;
4511       esac
4512       ;;
4513     *64-bit*)
4514       case $host in
4515         x86_64-*kfreebsd*-gnu)
4516           LD="${LD-ld} -m elf_x86_64_fbsd"
4517           ;;
4518         x86_64-*linux*)
4519           LD="${LD-ld} -m elf_x86_64"
4520           ;;
4521         ppc*-*linux*|powerpc*-*linux*)
4522           LD="${LD-ld} -m elf64ppc"
4523           ;;
4524         s390*-*linux*)
4525           LD="${LD-ld} -m elf64_s390"
4526           ;;
4527         sparc*-*linux*)
4528           LD="${LD-ld} -m elf64_sparc"
4529           ;;
4530       esac
4531       ;;
4532     esac
4533   fi
4534   rm -rf conftest*
4535   ;;
4536
4537 *-*-sco3.2v5*)
4538   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4539   SAVE_CFLAGS="$CFLAGS"
4540   CFLAGS="$CFLAGS -belf"
4541   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4542 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4543 if test "${lt_cv_cc_needs_belf+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
4552      cat >conftest.$ac_ext <<_ACEOF
4553 /* confdefs.h.  */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h.  */
4558
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4569 case "(($ac_try" in
4570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571   *) ac_try_echo=$ac_try;;
4572 esac
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574   (eval "$ac_link") 2>conftest.er1
4575   ac_status=$?
4576   grep -v '^ *+' conftest.er1 >conftest.err
4577   rm -f conftest.er1
4578   cat conftest.err >&5
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } && {
4581          test -z "$ac_c_werror_flag" ||
4582          test ! -s conftest.err
4583        } && test -s conftest$ac_exeext &&
4584        $as_test_x conftest$ac_exeext; then
4585   lt_cv_cc_needs_belf=yes
4586 else
4587   echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590         lt_cv_cc_needs_belf=no
4591 fi
4592
4593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4594       conftest$ac_exeext conftest.$ac_ext
4595      ac_ext=c
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600
4601 fi
4602 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4603 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4604   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4605     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4606     CFLAGS="$SAVE_CFLAGS"
4607   fi
4608   ;;
4609 sparc*-*solaris*)
4610   # Find out which ABI we are using.
4611   echo 'int i;' > conftest.$ac_ext
4612   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613   (eval $ac_compile) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; then
4617     case `/usr/bin/file conftest.o` in
4618     *64-bit*)
4619       case $lt_cv_prog_gnu_ld in
4620       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4621       *)
4622         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4623           LD="${LD-ld} -64"
4624         fi
4625         ;;
4626       esac
4627       ;;
4628     esac
4629   fi
4630   rm -rf conftest*
4631   ;;
4632
4633
4634 esac
4635
4636 need_locks="$enable_libtool_lock"
4637
4638
4639 ac_ext=c
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4645 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4646 # On Suns, sometimes $CPP names a directory.
4647 if test -n "$CPP" && test -d "$CPP"; then
4648   CPP=
4649 fi
4650 if test -z "$CPP"; then
4651   if test "${ac_cv_prog_CPP+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654       # Double quotes because CPP needs to be expanded
4655     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4656     do
4657       ac_preproc_ok=false
4658 for ac_c_preproc_warn_flag in '' yes
4659 do
4660   # Use a header file that comes with gcc, so configuring glibc
4661   # with a fresh cross-compiler works.
4662   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4663   # <limits.h> exists even on freestanding compilers.
4664   # On the NeXT, cc -E runs the code through the compiler's parser,
4665   # not just through cpp. "Syntax error" is here to catch this case.
4666   cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h.  */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h.  */
4672 #ifdef __STDC__
4673 # include <limits.h>
4674 #else
4675 # include <assert.h>
4676 #endif
4677                      Syntax error
4678 _ACEOF
4679 if { (ac_try="$ac_cpp conftest.$ac_ext"
4680 case "(($ac_try" in
4681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682   *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4686   ac_status=$?
4687   grep -v '^ *+' conftest.er1 >conftest.err
4688   rm -f conftest.er1
4689   cat conftest.err >&5
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } >/dev/null && {
4692          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4693          test ! -s conftest.err
4694        }; then
4695   :
4696 else
4697   echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700   # Broken: fails on valid input.
4701 continue
4702 fi
4703
4704 rm -f conftest.err conftest.$ac_ext
4705
4706   # OK, works on sane cases.  Now check whether nonexistent headers
4707   # can be detected and how.
4708   cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h.  */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h.  */
4714 #include <ac_nonexistent.h>
4715 _ACEOF
4716 if { (ac_try="$ac_cpp conftest.$ac_ext"
4717 case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4723   ac_status=$?
4724   grep -v '^ *+' conftest.er1 >conftest.err
4725   rm -f conftest.er1
4726   cat conftest.err >&5
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } >/dev/null && {
4729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730          test ! -s conftest.err
4731        }; then
4732   # Broken: success on invalid input.
4733 continue
4734 else
4735   echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738   # Passes both tests.
4739 ac_preproc_ok=:
4740 break
4741 fi
4742
4743 rm -f conftest.err conftest.$ac_ext
4744
4745 done
4746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747 rm -f conftest.err conftest.$ac_ext
4748 if $ac_preproc_ok; then
4749   break
4750 fi
4751
4752     done
4753     ac_cv_prog_CPP=$CPP
4754
4755 fi
4756   CPP=$ac_cv_prog_CPP
4757 else
4758   ac_cv_prog_CPP=$CPP
4759 fi
4760 { echo "$as_me:$LINENO: result: $CPP" >&5
4761 echo "${ECHO_T}$CPP" >&6; }
4762 ac_preproc_ok=false
4763 for ac_c_preproc_warn_flag in '' yes
4764 do
4765   # Use a header file that comes with gcc, so configuring glibc
4766   # with a fresh cross-compiler works.
4767   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4768   # <limits.h> exists even on freestanding compilers.
4769   # On the NeXT, cc -E runs the code through the compiler's parser,
4770   # not just through cpp. "Syntax error" is here to catch this case.
4771   cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h.  */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h.  */
4777 #ifdef __STDC__
4778 # include <limits.h>
4779 #else
4780 # include <assert.h>
4781 #endif
4782                      Syntax error
4783 _ACEOF
4784 if { (ac_try="$ac_cpp conftest.$ac_ext"
4785 case "(($ac_try" in
4786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787   *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } >/dev/null && {
4797          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4798          test ! -s conftest.err
4799        }; then
4800   :
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805   # Broken: fails on valid input.
4806 continue
4807 fi
4808
4809 rm -f conftest.err conftest.$ac_ext
4810
4811   # OK, works on sane cases.  Now check whether nonexistent headers
4812   # can be detected and how.
4813   cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819 #include <ac_nonexistent.h>
4820 _ACEOF
4821 if { (ac_try="$ac_cpp conftest.$ac_ext"
4822 case "(($ac_try" in
4823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824   *) ac_try_echo=$ac_try;;
4825 esac
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } >/dev/null && {
4834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4835          test ! -s conftest.err
4836        }; then
4837   # Broken: success on invalid input.
4838 continue
4839 else
4840   echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843   # Passes both tests.
4844 ac_preproc_ok=:
4845 break
4846 fi
4847
4848 rm -f conftest.err conftest.$ac_ext
4849
4850 done
4851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4852 rm -f conftest.err conftest.$ac_ext
4853 if $ac_preproc_ok; then
4854   :
4855 else
4856   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4857 See \`config.log' for more details." >&5
4858 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4859 See \`config.log' for more details." >&2;}
4860    { (exit 1); exit 1; }; }
4861 fi
4862
4863 ac_ext=c
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868
4869
4870 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4872 if test "${ac_cv_header_stdc+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h.  */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h.  */
4881 #include <stdlib.h>
4882 #include <stdarg.h>
4883 #include <string.h>
4884 #include <float.h>
4885
4886 int
4887 main ()
4888 {
4889
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 rm -f conftest.$ac_objext
4895 if { (ac_try="$ac_compile"
4896 case "(($ac_try" in
4897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898   *) ac_try_echo=$ac_try;;
4899 esac
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901   (eval "$ac_compile") 2>conftest.er1
4902   ac_status=$?
4903   grep -v '^ *+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } && {
4908          test -z "$ac_c_werror_flag" ||
4909          test ! -s conftest.err
4910        } && test -s conftest.$ac_objext; then
4911   ac_cv_header_stdc=yes
4912 else
4913   echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4915
4916         ac_cv_header_stdc=no
4917 fi
4918
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920
4921 if test $ac_cv_header_stdc = yes; then
4922   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4923   cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h.  */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h.  */
4929 #include <string.h>
4930
4931 _ACEOF
4932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4933   $EGREP "memchr" >/dev/null 2>&1; then
4934   :
4935 else
4936   ac_cv_header_stdc=no
4937 fi
4938 rm -f conftest*
4939
4940 fi
4941
4942 if test $ac_cv_header_stdc = yes; then
4943   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4944   cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 #include <stdlib.h>
4951
4952 _ACEOF
4953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4954   $EGREP "free" >/dev/null 2>&1; then
4955   :
4956 else
4957   ac_cv_header_stdc=no
4958 fi
4959 rm -f conftest*
4960
4961 fi
4962
4963 if test $ac_cv_header_stdc = yes; then
4964   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4965   if test "$cross_compiling" = yes; then
4966   :
4967 else
4968   cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h.  */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h.  */
4974 #include <ctype.h>
4975 #include <stdlib.h>
4976 #if ((' ' & 0x0FF) == 0x020)
4977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4979 #else
4980 # define ISLOWER(c) \
4981                    (('a' <= (c) && (c) <= 'i') \
4982                      || ('j' <= (c) && (c) <= 'r') \
4983                      || ('s' <= (c) && (c) <= 'z'))
4984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4985 #endif
4986
4987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4988 int
4989 main ()
4990 {
4991   int i;
4992   for (i = 0; i < 256; i++)
4993     if (XOR (islower (i), ISLOWER (i))
4994         || toupper (i) != TOUPPER (i))
4995       return 2;
4996   return 0;
4997 }
4998 _ACEOF
4999 rm -f conftest$ac_exeext
5000 if { (ac_try="$ac_link"
5001 case "(($ac_try" in
5002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003   *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006   (eval "$ac_link") 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5010   { (case "(($ac_try" in
5011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012   *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015   (eval "$ac_try") 2>&5
5016   ac_status=$?
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); }; }; then
5019   :
5020 else
5021   echo "$as_me: program exited with status $ac_status" >&5
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 ( exit $ac_status )
5026 ac_cv_header_stdc=no
5027 fi
5028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5029 fi
5030
5031
5032 fi
5033 fi
5034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5036 if test $ac_cv_header_stdc = yes; then
5037
5038 cat >>confdefs.h <<\_ACEOF
5039 #define STDC_HEADERS 1
5040 _ACEOF
5041
5042 fi
5043
5044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5055                   inttypes.h stdint.h unistd.h
5056 do
5057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h.  */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h.  */
5069 $ac_includes_default
5070
5071 #include <$ac_header>
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5075 case "(($ac_try" in
5076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077   *) ac_try_echo=$ac_try;;
5078 esac
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080   (eval "$ac_compile") 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } && {
5087          test -z "$ac_c_werror_flag" ||
5088          test ! -s conftest.err
5089        } && test -s conftest.$ac_objext; then
5090   eval "$as_ac_Header=yes"
5091 else
5092   echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095         eval "$as_ac_Header=no"
5096 fi
5097
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 fi
5100 ac_res=`eval echo '${'$as_ac_Header'}'`
5101                { echo "$as_me:$LINENO: result: $ac_res" >&5
5102 echo "${ECHO_T}$ac_res" >&6; }
5103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5104   cat >>confdefs.h <<_ACEOF
5105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5106 _ACEOF
5107
5108 fi
5109
5110 done
5111
5112
5113
5114 for ac_header in dlfcn.h
5115 do
5116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5118   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5121   echo $ECHO_N "(cached) $ECHO_C" >&6
5122 fi
5123 ac_res=`eval echo '${'$as_ac_Header'}'`
5124                { echo "$as_me:$LINENO: result: $ac_res" >&5
5125 echo "${ECHO_T}$ac_res" >&6; }
5126 else
5127   # Is the header compilable?
5128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5130 cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136 $ac_includes_default
5137 #include <$ac_header>
5138 _ACEOF
5139 rm -f conftest.$ac_objext
5140 if { (ac_try="$ac_compile"
5141 case "(($ac_try" in
5142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143   *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146   (eval "$ac_compile") 2>conftest.er1
5147   ac_status=$?
5148   grep -v '^ *+' conftest.er1 >conftest.err
5149   rm -f conftest.er1
5150   cat conftest.err >&5
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } && {
5153          test -z "$ac_c_werror_flag" ||
5154          test ! -s conftest.err
5155        } && test -s conftest.$ac_objext; then
5156   ac_header_compiler=yes
5157 else
5158   echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161         ac_header_compiler=no
5162 fi
5163
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5166 echo "${ECHO_T}$ac_header_compiler" >&6; }
5167
5168 # Is the header present?
5169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177 #include <$ac_header>
5178 _ACEOF
5179 if { (ac_try="$ac_cpp conftest.$ac_ext"
5180 case "(($ac_try" in
5181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182   *) ac_try_echo=$ac_try;;
5183 esac
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186   ac_status=$?
5187   grep -v '^ *+' conftest.er1 >conftest.err
5188   rm -f conftest.er1
5189   cat conftest.err >&5
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } >/dev/null && {
5192          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193          test ! -s conftest.err
5194        }; then
5195   ac_header_preproc=yes
5196 else
5197   echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200   ac_header_preproc=no
5201 fi
5202
5203 rm -f conftest.err conftest.$ac_ext
5204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5205 echo "${ECHO_T}$ac_header_preproc" >&6; }
5206
5207 # So?  What about this header?
5208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5209   yes:no: )
5210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5214     ac_header_preproc=yes
5215     ;;
5216   no:yes:* )
5217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5219     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5221     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5223     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5227     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5229
5230     ;;
5231 esac
5232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   eval "$as_ac_Header=\$ac_header_preproc"
5238 fi
5239 ac_res=`eval echo '${'$as_ac_Header'}'`
5240                { echo "$as_me:$LINENO: result: $ac_res" >&5
5241 echo "${ECHO_T}$ac_res" >&6; }
5242
5243 fi
5244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5245   cat >>confdefs.h <<_ACEOF
5246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5247 _ACEOF
5248
5249 fi
5250
5251 done
5252
5253 ac_ext=cpp
5254 ac_cpp='$CXXCPP $CPPFLAGS'
5255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258 if test -z "$CXX"; then
5259   if test -n "$CCC"; then
5260     CXX=$CCC
5261   else
5262     if test -n "$ac_tool_prefix"; then
5263   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5264   do
5265     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_prog_CXX+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   if test -n "$CXX"; then
5273   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280   for ac_exec_ext in '' $ac_executable_extensions; do
5281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284     break 2
5285   fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 CXX=$ac_cv_prog_CXX
5293 if test -n "$CXX"; then
5294   { echo "$as_me:$LINENO: result: $CXX" >&5
5295 echo "${ECHO_T}$CXX" >&6; }
5296 else
5297   { echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6; }
5299 fi
5300
5301
5302     test -n "$CXX" && break
5303   done
5304 fi
5305 if test -z "$CXX"; then
5306   ac_ct_CXX=$CXX
5307   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5308 do
5309   # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5313 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   if test -n "$ac_ct_CXX"; then
5317   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322   IFS=$as_save_IFS
5323   test -z "$as_dir" && as_dir=.
5324   for ac_exec_ext in '' $ac_executable_extensions; do
5325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326     ac_cv_prog_ac_ct_CXX="$ac_prog"
5327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328     break 2
5329   fi
5330 done
5331 done
5332 IFS=$as_save_IFS
5333
5334 fi
5335 fi
5336 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5337 if test -n "$ac_ct_CXX"; then
5338   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5339 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5340 else
5341   { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5343 fi
5344
5345
5346   test -n "$ac_ct_CXX" && break
5347 done
5348
5349   if test "x$ac_ct_CXX" = x; then
5350     CXX="g++"
5351   else
5352     case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5355 whose name does not start with the host triplet.  If you think this
5356 configuration is useful to you, please write to autoconf@gnu.org." >&5
5357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5358 whose name does not start with the host triplet.  If you think this
5359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5360 ac_tool_warned=yes ;;
5361 esac
5362     CXX=$ac_ct_CXX
5363   fi
5364 fi
5365
5366   fi
5367 fi
5368 # Provide some information about the compiler.
5369 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5370 ac_compiler=`set X $ac_compile; echo $2`
5371 { (ac_try="$ac_compiler --version >&5"
5372 case "(($ac_try" in
5373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374   *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377   (eval "$ac_compiler --version >&5") 2>&5
5378   ac_status=$?
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); }
5381 { (ac_try="$ac_compiler -v >&5"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387   (eval "$ac_compiler -v >&5") 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }
5391 { (ac_try="$ac_compiler -V >&5"
5392 case "(($ac_try" in
5393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394   *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397   (eval "$ac_compiler -V >&5") 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }
5401
5402 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5403 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5404 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h.  */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h.  */
5413
5414 int
5415 main ()
5416 {
5417 #ifndef __GNUC__
5418        choke me
5419 #endif
5420
5421   ;
5422   return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (ac_try="$ac_compile"
5427 case "(($ac_try" in
5428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429   *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432   (eval "$ac_compile") 2>conftest.er1
5433   ac_status=$?
5434   grep -v '^ *+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } && {
5439          test -z "$ac_cxx_werror_flag" ||
5440          test ! -s conftest.err
5441        } && test -s conftest.$ac_objext; then
5442   ac_compiler_gnu=yes
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447         ac_compiler_gnu=no
5448 fi
5449
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5452
5453 fi
5454 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5455 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5456 GXX=`test $ac_compiler_gnu = yes && echo yes`
5457 ac_test_CXXFLAGS=${CXXFLAGS+set}
5458 ac_save_CXXFLAGS=$CXXFLAGS
5459 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5460 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5461 if test "${ac_cv_prog_cxx_g+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5465    ac_cxx_werror_flag=yes
5466    ac_cv_prog_cxx_g=no
5467    CXXFLAGS="-g"
5468    cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474
5475 int
5476 main ()
5477 {
5478
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487   *) ac_try_echo=$ac_try;;
5488 esac
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490   (eval "$ac_compile") 2>conftest.er1
5491   ac_status=$?
5492   grep -v '^ *+' conftest.er1 >conftest.err
5493   rm -f conftest.er1
5494   cat conftest.err >&5
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); } && {
5497          test -z "$ac_cxx_werror_flag" ||
5498          test ! -s conftest.err
5499        } && test -s conftest.$ac_objext; then
5500   ac_cv_prog_cxx_g=yes
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505         CXXFLAGS=""
5506       cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512
5513 int
5514 main ()
5515 {
5516
5517   ;
5518   return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5523 case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528   (eval "$ac_compile") 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } && {
5535          test -z "$ac_cxx_werror_flag" ||
5536          test ! -s conftest.err
5537        } && test -s conftest.$ac_objext; then
5538   :
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5544          CXXFLAGS="-g"
5545          cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h.  */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h.  */
5551
5552 int
5553 main ()
5554 {
5555
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564   *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567   (eval "$ac_compile") 2>conftest.er1
5568   ac_status=$?
5569   grep -v '^ *+' conftest.er1 >conftest.err
5570   rm -f conftest.er1
5571   cat conftest.err >&5
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } && {
5574          test -z "$ac_cxx_werror_flag" ||
5575          test ! -s conftest.err
5576        } && test -s conftest.$ac_objext; then
5577   ac_cv_prog_cxx_g=yes
5578 else
5579   echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582
5583 fi
5584
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 fi
5590
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5593 fi
5594 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5595 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5596 if test "$ac_test_CXXFLAGS" = set; then
5597   CXXFLAGS=$ac_save_CXXFLAGS
5598 elif test $ac_cv_prog_cxx_g = yes; then
5599   if test "$GXX" = yes; then
5600     CXXFLAGS="-g -O2"
5601   else
5602     CXXFLAGS="-g"
5603   fi
5604 else
5605   if test "$GXX" = yes; then
5606     CXXFLAGS="-O2"
5607   else
5608     CXXFLAGS=
5609   fi
5610 fi
5611 ac_ext=cpp
5612 ac_cpp='$CXXCPP $CPPFLAGS'
5613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616
5617 depcc="$CXX"  am_compiler_list=
5618
5619 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5620 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5621 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5625   # We make a subdir and do the tests there.  Otherwise we can end up
5626   # making bogus files that we don't know about and never remove.  For
5627   # instance it was reported that on HP-UX the gcc test will end up
5628   # making a dummy file named `D' -- because `-MD' means `put the output
5629   # in D'.
5630   mkdir conftest.dir
5631   # Copy depcomp to subdir because otherwise we won't find it if we're
5632   # using a relative directory.
5633   cp "$am_depcomp" conftest.dir
5634   cd conftest.dir
5635   # We will build objects and dependencies in a subdirectory because
5636   # it helps to detect inapplicable dependency modes.  For instance
5637   # both Tru64's cc and ICC support -MD to output dependencies as a
5638   # side effect of compilation, but ICC will put the dependencies in
5639   # the current directory while Tru64 will put them in the object
5640   # directory.
5641   mkdir sub
5642
5643   am_cv_CXX_dependencies_compiler_type=none
5644   if test "$am_compiler_list" = ""; then
5645      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5646   fi
5647   for depmode in $am_compiler_list; do
5648     # Setup a source with many dependencies, because some compilers
5649     # like to wrap large dependency lists on column 80 (with \), and
5650     # we should not choose a depcomp mode which is confused by this.
5651     #
5652     # We need to recreate these files for each test, as the compiler may
5653     # overwrite some of them when testing with obscure command lines.
5654     # This happens at least with the AIX C compiler.
5655     : > sub/conftest.c
5656     for i in 1 2 3 4 5 6; do
5657       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5658       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5659       # Solaris 8's {/usr,}/bin/sh.
5660       touch sub/conftst$i.h
5661     done
5662     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5663
5664     case $depmode in
5665     nosideeffect)
5666       # after this tag, mechanisms are not by side-effect, so they'll
5667       # only be used when explicitly requested
5668       if test "x$enable_dependency_tracking" = xyes; then
5669         continue
5670       else
5671         break
5672       fi
5673       ;;
5674     none) break ;;
5675     esac
5676     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5677     # mode.  It turns out that the SunPro C++ compiler does not properly
5678     # handle `-M -o', and we need to detect this.
5679     if depmode=$depmode \
5680        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5681        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5682        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5683          >/dev/null 2>conftest.err &&
5684        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5685        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5686        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5687       # icc doesn't choke on unknown options, it will just issue warnings
5688       # or remarks (even with -Werror).  So we grep stderr for any message
5689       # that says an option was ignored or not supported.
5690       # When given -MP, icc 7.0 and 7.1 complain thusly:
5691       #   icc: Command line warning: ignoring option '-M'; no argument required
5692       # The diagnosis changed in icc 8.0:
5693       #   icc: Command line remark: option '-MP' not supported
5694       if (grep 'ignoring option' conftest.err ||
5695           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5696         am_cv_CXX_dependencies_compiler_type=$depmode
5697         break
5698       fi
5699     fi
5700   done
5701
5702   cd ..
5703   rm -rf conftest.dir
5704 else
5705   am_cv_CXX_dependencies_compiler_type=none
5706 fi
5707
5708 fi
5709 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5710 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5711 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5712
5713
5714
5715 if
5716   test "x$enable_dependency_tracking" != xno \
5717   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5718   am__fastdepCXX_TRUE=
5719   am__fastdepCXX_FALSE='#'
5720 else
5721   am__fastdepCXX_TRUE='#'
5722   am__fastdepCXX_FALSE=
5723 fi
5724
5725
5726
5727
5728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5729     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5730     (test "X$CXX" != "Xg++"))) ; then
5731   ac_ext=cpp
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5737 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5738 if test -z "$CXXCPP"; then
5739   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742       # Double quotes because CXXCPP needs to be expanded
5743     for CXXCPP in "$CXX -E" "/lib/cpp"
5744     do
5745       ac_preproc_ok=false
5746 for ac_cxx_preproc_warn_flag in '' yes
5747 do
5748   # Use a header file that comes with gcc, so configuring glibc
5749   # with a fresh cross-compiler works.
5750   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751   # <limits.h> exists even on freestanding compilers.
5752   # On the NeXT, cc -E runs the code through the compiler's parser,
5753   # not just through cpp. "Syntax error" is here to catch this case.
5754   cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h.  */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h.  */
5760 #ifdef __STDC__
5761 # include <limits.h>
5762 #else
5763 # include <assert.h>
5764 #endif
5765                      Syntax error
5766 _ACEOF
5767 if { (ac_try="$ac_cpp conftest.$ac_ext"
5768 case "(($ac_try" in
5769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770   *) ac_try_echo=$ac_try;;
5771 esac
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5774   ac_status=$?
5775   grep -v '^ *+' conftest.er1 >conftest.err
5776   rm -f conftest.er1
5777   cat conftest.err >&5
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } >/dev/null && {
5780          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5781          test ! -s conftest.err
5782        }; then
5783   :
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788   # Broken: fails on valid input.
5789 continue
5790 fi
5791
5792 rm -f conftest.err conftest.$ac_ext
5793
5794   # OK, works on sane cases.  Now check whether nonexistent headers
5795   # can be detected and how.
5796   cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h.  */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h.  */
5802 #include <ac_nonexistent.h>
5803 _ACEOF
5804 if { (ac_try="$ac_cpp conftest.$ac_ext"
5805 case "(($ac_try" in
5806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807   *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5811   ac_status=$?
5812   grep -v '^ *+' conftest.er1 >conftest.err
5813   rm -f conftest.er1
5814   cat conftest.err >&5
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } >/dev/null && {
5817          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818          test ! -s conftest.err
5819        }; then
5820   # Broken: success on invalid input.
5821 continue
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826   # Passes both tests.
5827 ac_preproc_ok=:
5828 break
5829 fi
5830
5831 rm -f conftest.err conftest.$ac_ext
5832
5833 done
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then
5837   break
5838 fi
5839
5840     done
5841     ac_cv_prog_CXXCPP=$CXXCPP
5842
5843 fi
5844   CXXCPP=$ac_cv_prog_CXXCPP
5845 else
5846   ac_cv_prog_CXXCPP=$CXXCPP
5847 fi
5848 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5849 echo "${ECHO_T}$CXXCPP" >&6; }
5850 ac_preproc_ok=false
5851 for ac_cxx_preproc_warn_flag in '' yes
5852 do
5853   # Use a header file that comes with gcc, so configuring glibc
5854   # with a fresh cross-compiler works.
5855   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856   # <limits.h> exists even on freestanding compilers.
5857   # On the NeXT, cc -E runs the code through the compiler's parser,
5858   # not just through cpp. "Syntax error" is here to catch this case.
5859   cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h.  */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h.  */
5865 #ifdef __STDC__
5866 # include <limits.h>
5867 #else
5868 # include <assert.h>
5869 #endif
5870                      Syntax error
5871 _ACEOF
5872 if { (ac_try="$ac_cpp conftest.$ac_ext"
5873 case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } >/dev/null && {
5885          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5886          test ! -s conftest.err
5887        }; then
5888   :
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893   # Broken: fails on valid input.
5894 continue
5895 fi
5896
5897 rm -f conftest.err conftest.$ac_ext
5898
5899   # OK, works on sane cases.  Now check whether nonexistent headers
5900   # can be detected and how.
5901   cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907 #include <ac_nonexistent.h>
5908 _ACEOF
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5910 case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } >/dev/null && {
5922          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923          test ! -s conftest.err
5924        }; then
5925   # Broken: success on invalid input.
5926 continue
5927 else
5928   echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931   # Passes both tests.
5932 ac_preproc_ok=:
5933 break
5934 fi
5935
5936 rm -f conftest.err conftest.$ac_ext
5937
5938 done
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then
5942   :
5943 else
5944   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5945 See \`config.log' for more details." >&5
5946 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5947 See \`config.log' for more details." >&2;}
5948    { (exit 1); exit 1; }; }
5949 fi
5950
5951 ac_ext=cpp
5952 ac_cpp='$CXXCPP $CPPFLAGS'
5953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956
5957 fi
5958
5959
5960 ac_ext=f
5961 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5962 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5964 if test -n "$ac_tool_prefix"; then
5965   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5966   do
5967     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971 if test "${ac_cv_prog_F77+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   if test -n "$F77"; then
5975   ac_cv_prog_F77="$F77" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982   for ac_exec_ext in '' $ac_executable_extensions; do
5983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 F77=$ac_cv_prog_F77
5995 if test -n "$F77"; then
5996   { echo "$as_me:$LINENO: result: $F77" >&5
5997 echo "${ECHO_T}$F77" >&6; }
5998 else
5999   { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6001 fi
6002
6003
6004     test -n "$F77" && break
6005   done
6006 fi
6007 if test -z "$F77"; then
6008   ac_ct_F77=$F77
6009   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6010 do
6011   # Extract the first word of "$ac_prog", so it can be a program name with args.
6012 set dummy $ac_prog; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   if test -n "$ac_ct_F77"; then
6019   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026   for ac_exec_ext in '' $ac_executable_extensions; do
6027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028     ac_cv_prog_ac_ct_F77="$ac_prog"
6029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6039 if test -n "$ac_ct_F77"; then
6040   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6041 echo "${ECHO_T}$ac_ct_F77" >&6; }
6042 else
6043   { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6045 fi
6046
6047
6048   test -n "$ac_ct_F77" && break
6049 done
6050
6051   if test "x$ac_ct_F77" = x; then
6052     F77=""
6053   else
6054     case $cross_compiling:$ac_tool_warned in
6055 yes:)
6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057 whose name does not start with the host triplet.  If you think this
6058 configuration is useful to you, please write to autoconf@gnu.org." >&5
6059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060 whose name does not start with the host triplet.  If you think this
6061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062 ac_tool_warned=yes ;;
6063 esac
6064     F77=$ac_ct_F77
6065   fi
6066 fi
6067
6068
6069 # Provide some information about the compiler.
6070 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6071 ac_compiler=`set X $ac_compile; echo $2`
6072 { (ac_try="$ac_compiler --version >&5"
6073 case "(($ac_try" in
6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075   *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078   (eval "$ac_compiler --version >&5") 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }
6082 { (ac_try="$ac_compiler -v >&5"
6083 case "(($ac_try" in
6084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085   *) ac_try_echo=$ac_try;;
6086 esac
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088   (eval "$ac_compiler -v >&5") 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }
6092 { (ac_try="$ac_compiler -V >&5"
6093 case "(($ac_try" in
6094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095   *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098   (eval "$ac_compiler -V >&5") 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }
6102 rm -f a.out
6103
6104 # If we don't use `.F' as extension, the preprocessor is not run on the
6105 # input file.  (Note that this only needs to work for GNU compilers.)
6106 ac_save_ext=$ac_ext
6107 ac_ext=F
6108 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6109 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6110 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   cat >conftest.$ac_ext <<_ACEOF
6114       program main
6115 #ifndef __GNUC__
6116        choke me
6117 #endif
6118
6119       end
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125   *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128   (eval "$ac_compile") 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } && {
6135          test -z "$ac_f77_werror_flag" ||
6136          test ! -s conftest.err
6137        } && test -s conftest.$ac_objext; then
6138   ac_compiler_gnu=yes
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143         ac_compiler_gnu=no
6144 fi
6145
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6148
6149 fi
6150 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6151 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6152 ac_ext=$ac_save_ext
6153 ac_test_FFLAGS=${FFLAGS+set}
6154 ac_save_FFLAGS=$FFLAGS
6155 FFLAGS=
6156 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6157 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_f77_g+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   FFLAGS=-g
6162 cat >conftest.$ac_ext <<_ACEOF
6163       program main
6164
6165       end
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174   (eval "$ac_compile") 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } && {
6181          test -z "$ac_f77_werror_flag" ||
6182          test ! -s conftest.err
6183        } && test -s conftest.$ac_objext; then
6184   ac_cv_prog_f77_g=yes
6185 else
6186   echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189         ac_cv_prog_f77_g=no
6190 fi
6191
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193
6194 fi
6195 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6196 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6197 if test "$ac_test_FFLAGS" = set; then
6198   FFLAGS=$ac_save_FFLAGS
6199 elif test $ac_cv_prog_f77_g = yes; then
6200   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6201     FFLAGS="-g -O2"
6202   else
6203     FFLAGS="-g"
6204   fi
6205 else
6206   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6207     FFLAGS="-O2"
6208   else
6209     FFLAGS=
6210   fi
6211 fi
6212
6213 G77=`test $ac_compiler_gnu = yes && echo yes`
6214 ac_ext=c
6215 ac_cpp='$CPP $CPPFLAGS'
6216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219
6220
6221
6222 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6223 # find the maximum length of command line arguments
6224 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6225 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6226 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229     i=0
6230   teststring="ABCD"
6231
6232   case $build_os in
6233   msdosdjgpp*)
6234     # On DJGPP, this test can blow up pretty badly due to problems in libc
6235     # (any single argument exceeding 2000 bytes causes a buffer overrun
6236     # during glob expansion).  Even if it were fixed, the result of this
6237     # check would be larger than it should be.
6238     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6239     ;;
6240
6241   gnu*)
6242     # Under GNU Hurd, this test is not required because there is
6243     # no limit to the length of command line arguments.
6244     # Libtool will interpret -1 as no limit whatsoever
6245     lt_cv_sys_max_cmd_len=-1;
6246     ;;
6247
6248   cygwin* | mingw*)
6249     # On Win9x/ME, this test blows up -- it succeeds, but takes
6250     # about 5 minutes as the teststring grows exponentially.
6251     # Worse, since 9x/ME are not pre-emptively multitasking,
6252     # you end up with a "frozen" computer, even though with patience
6253     # the test eventually succeeds (with a max line length of 256k).
6254     # Instead, let's just punt: use the minimum linelength reported by
6255     # all of the supported platforms: 8192 (on NT/2K/XP).
6256     lt_cv_sys_max_cmd_len=8192;
6257     ;;
6258
6259   amigaos*)
6260     # On AmigaOS with pdksh, this test takes hours, literally.
6261     # So we just punt and use a minimum line length of 8192.
6262     lt_cv_sys_max_cmd_len=8192;
6263     ;;
6264
6265   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6266     # This has been around since 386BSD, at least.  Likely further.
6267     if test -x /sbin/sysctl; then
6268       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6269     elif test -x /usr/sbin/sysctl; then
6270       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6271     else
6272       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6273     fi
6274     # And add a safety zone
6275     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6276     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6277     ;;
6278
6279   interix*)
6280     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6281     lt_cv_sys_max_cmd_len=196608
6282     ;;
6283
6284   osf*)
6285     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6286     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6287     # nice to cause kernel panics so lets avoid the loop below.
6288     # First set a reasonable default.
6289     lt_cv_sys_max_cmd_len=16384
6290     #
6291     if test -x /sbin/sysconfig; then
6292       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6293         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6294       esac
6295     fi
6296     ;;
6297   sco3.2v5*)
6298     lt_cv_sys_max_cmd_len=102400
6299     ;;
6300   sysv5* | sco5v6* | sysv4.2uw2*)
6301     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6302     if test -n "$kargmax"; then
6303       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6304     else
6305       lt_cv_sys_max_cmd_len=32768
6306     fi
6307     ;;
6308   *)
6309     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6310     if test -n "$lt_cv_sys_max_cmd_len"; then
6311       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6312       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6313     else
6314       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6315       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6316                = "XX$teststring") >/dev/null 2>&1 &&
6317               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6318               lt_cv_sys_max_cmd_len=$new_result &&
6319               test $i != 17 # 1/2 MB should be enough
6320       do
6321         i=`expr $i + 1`
6322         teststring=$teststring$teststring
6323       done
6324       teststring=
6325       # Add a significant safety factor because C++ compilers can tack on massive
6326       # amounts of additional arguments before passing them to the linker.
6327       # It appears as though 1/2 is a usable value.
6328       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6329     fi
6330     ;;
6331   esac
6332
6333 fi
6334
6335 if test -n $lt_cv_sys_max_cmd_len ; then
6336   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6337 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6338 else
6339   { echo "$as_me:$LINENO: result: none" >&5
6340 echo "${ECHO_T}none" >&6; }
6341 fi
6342
6343
6344
6345
6346
6347 # Check for command to grab the raw symbol name followed by C symbol from nm.
6348 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6349 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6350 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353
6354 # These are sane defaults that work on at least a few old systems.
6355 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6356
6357 # Character class describing NM global symbol codes.
6358 symcode='[BCDEGRST]'
6359
6360 # Regexp to match symbols that can be accessed directly from C.
6361 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6362
6363 # Transform an extracted symbol line into a proper C declaration
6364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6365
6366 # Transform an extracted symbol line into symbol name and symbol address
6367 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'"
6368
6369 # Define system-specific variables.
6370 case $host_os in
6371 aix*)
6372   symcode='[BCDT]'
6373   ;;
6374 cygwin* | mingw* | pw32*)
6375   symcode='[ABCDGISTW]'
6376   ;;
6377 hpux*) # Its linker distinguishes data from code symbols
6378   if test "$host_cpu" = ia64; then
6379     symcode='[ABCDEGRST]'
6380   fi
6381   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6382   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'"
6383   ;;
6384 linux* | k*bsd*-gnu)
6385   if test "$host_cpu" = ia64; then
6386     symcode='[ABCDGIRSTW]'
6387     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6388     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'"
6389   fi
6390   ;;
6391 irix* | nonstopux*)
6392   symcode='[BCDEGRST]'
6393   ;;
6394 osf*)
6395   symcode='[BCDEGQRST]'
6396   ;;
6397 solaris*)
6398   symcode='[BDRT]'
6399   ;;
6400 sco3.2v5*)
6401   symcode='[DT]'
6402   ;;
6403 sysv4.2uw2*)
6404   symcode='[DT]'
6405   ;;
6406 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6407   symcode='[ABDT]'
6408   ;;
6409 sysv4)
6410   symcode='[DFNSTU]'
6411   ;;
6412 esac
6413
6414 # Handle CRLF in mingw tool chain
6415 opt_cr=
6416 case $build_os in
6417 mingw*)
6418   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6419   ;;
6420 esac
6421
6422 # If we're using GNU nm, then use its standard symbol codes.
6423 case `$NM -V 2>&1` in
6424 *GNU* | *'with BFD'*)
6425   symcode='[ABCDGIRSTW]' ;;
6426 esac
6427
6428 # Try without a prefix undercore, then with it.
6429 for ac_symprfx in "" "_"; do
6430
6431   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6432   symxfrm="\\1 $ac_symprfx\\2 \\2"
6433
6434   # Write the raw and C identifiers.
6435   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6436
6437   # Check to see that the pipe works correctly.
6438   pipe_works=no
6439
6440   rm -f conftest*
6441   cat > conftest.$ac_ext <<EOF
6442 #ifdef __cplusplus
6443 extern "C" {
6444 #endif
6445 char nm_test_var;
6446 void nm_test_func(){}
6447 #ifdef __cplusplus
6448 }
6449 #endif
6450 int main(){nm_test_var='a';nm_test_func();return(0);}
6451 EOF
6452
6453   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6454   (eval $ac_compile) 2>&5
6455   ac_status=$?
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); }; then
6458     # Now try to grab the symbols.
6459     nlist=conftest.nm
6460     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6461   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); } && test -s "$nlist"; then
6465       # Try sorting and uniquifying the output.
6466       if sort "$nlist" | uniq > "$nlist"T; then
6467         mv -f "$nlist"T "$nlist"
6468       else
6469         rm -f "$nlist"T
6470       fi
6471
6472       # Make sure that we snagged all the symbols we need.
6473       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6474         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6475           cat <<EOF > conftest.$ac_ext
6476 #ifdef __cplusplus
6477 extern "C" {
6478 #endif
6479
6480 EOF
6481           # Now generate the symbol file.
6482           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6483
6484           cat <<EOF >> conftest.$ac_ext
6485 #if defined (__STDC__) && __STDC__
6486 # define lt_ptr_t void *
6487 #else
6488 # define lt_ptr_t char *
6489 # define const
6490 #endif
6491
6492 /* The mapping between symbol names and symbols. */
6493 const struct {
6494   const char *name;
6495   lt_ptr_t address;
6496 }
6497 lt_preloaded_symbols[] =
6498 {
6499 EOF
6500           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6501           cat <<\EOF >> conftest.$ac_ext
6502   {0, (lt_ptr_t) 0}
6503 };
6504
6505 #ifdef __cplusplus
6506 }
6507 #endif
6508 EOF
6509           # Now try linking the two files.
6510           mv conftest.$ac_objext conftstm.$ac_objext
6511           lt_save_LIBS="$LIBS"
6512           lt_save_CFLAGS="$CFLAGS"
6513           LIBS="conftstm.$ac_objext"
6514           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6515           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516   (eval $ac_link) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6520             pipe_works=yes
6521           fi
6522           LIBS="$lt_save_LIBS"
6523           CFLAGS="$lt_save_CFLAGS"
6524         else
6525           echo "cannot find nm_test_func in $nlist" >&5
6526         fi
6527       else
6528         echo "cannot find nm_test_var in $nlist" >&5
6529       fi
6530     else
6531       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6532     fi
6533   else
6534     echo "$progname: failed program was:" >&5
6535     cat conftest.$ac_ext >&5
6536   fi
6537   rm -rf conftest* conftst*
6538
6539   # Do not use the global_symbol_pipe unless it works.
6540   if test "$pipe_works" = yes; then
6541     break
6542   else
6543     lt_cv_sys_global_symbol_pipe=
6544   fi
6545 done
6546
6547 fi
6548
6549 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6550   lt_cv_sys_global_symbol_to_cdecl=
6551 fi
6552 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6553   { echo "$as_me:$LINENO: result: failed" >&5
6554 echo "${ECHO_T}failed" >&6; }
6555 else
6556   { echo "$as_me:$LINENO: result: ok" >&5
6557 echo "${ECHO_T}ok" >&6; }
6558 fi
6559
6560 { echo "$as_me:$LINENO: checking for objdir" >&5
6561 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6562 if test "${lt_cv_objdir+set}" = set; then
6563   echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565   rm -f .libs 2>/dev/null
6566 mkdir .libs 2>/dev/null
6567 if test -d .libs; then
6568   lt_cv_objdir=.libs
6569 else
6570   # MS-DOS does not allow filenames that begin with a dot.
6571   lt_cv_objdir=_libs
6572 fi
6573 rmdir .libs 2>/dev/null
6574 fi
6575 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6576 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6577 objdir=$lt_cv_objdir
6578
6579
6580
6581
6582
6583 case $host_os in
6584 aix3*)
6585   # AIX sometimes has problems with the GCC collect2 program.  For some
6586   # reason, if we set the COLLECT_NAMES environment variable, the problems
6587   # vanish in a puff of smoke.
6588   if test "X${COLLECT_NAMES+set}" != Xset; then
6589     COLLECT_NAMES=
6590     export COLLECT_NAMES
6591   fi
6592   ;;
6593 esac
6594
6595 # Sed substitution that helps us do robust quoting.  It backslashifies
6596 # metacharacters that are still active within double-quoted strings.
6597 Xsed='sed -e 1s/^X//'
6598 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6599
6600 # Same as above, but do not quote variable references.
6601 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6602
6603 # Sed substitution to delay expansion of an escaped shell variable in a
6604 # double_quote_subst'ed string.
6605 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6606
6607 # Sed substitution to avoid accidental globbing in evaled expressions
6608 no_glob_subst='s/\*/\\\*/g'
6609
6610 # Constants:
6611 rm="rm -f"
6612
6613 # Global variables:
6614 default_ofile=libtool
6615 can_build_shared=yes
6616
6617 # All known linkers require a `.a' archive for static linking (except MSVC,
6618 # which needs '.lib').
6619 libext=a
6620 ltmain="$ac_aux_dir/ltmain.sh"
6621 ofile="$default_ofile"
6622 with_gnu_ld="$lt_cv_prog_gnu_ld"
6623
6624 if test -n "$ac_tool_prefix"; then
6625   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}ar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_prog_AR+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   if test -n "$AR"; then
6633   ac_cv_prog_AR="$AR" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_prog_AR="${ac_tool_prefix}ar"
6643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 AR=$ac_cv_prog_AR
6653 if test -n "$AR"; then
6654   { echo "$as_me:$LINENO: result: $AR" >&5
6655 echo "${ECHO_T}$AR" >&6; }
6656 else
6657   { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6659 fi
6660
6661
6662 fi
6663 if test -z "$ac_cv_prog_AR"; then
6664   ac_ct_AR=$AR
6665   # Extract the first word of "ar", so it can be a program name with args.
6666 set dummy ar; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   if test -n "$ac_ct_AR"; then
6673   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_prog_ac_ct_AR="ar"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6693 if test -n "$ac_ct_AR"; then
6694   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6695 echo "${ECHO_T}$ac_ct_AR" >&6; }
6696 else
6697   { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6700
6701   if test "x$ac_ct_AR" = x; then
6702     AR="false"
6703   else
6704     case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet.  If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&5
6709 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6710 whose name does not start with the host triplet.  If you think this
6711 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714     AR=$ac_ct_AR
6715   fi
6716 else
6717   AR="$ac_cv_prog_AR"
6718 fi
6719
6720 if test -n "$ac_tool_prefix"; then
6721   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_RANLIB+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   if test -n "$RANLIB"; then
6729   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736   for ac_exec_ext in '' $ac_executable_extensions; do
6737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 RANLIB=$ac_cv_prog_RANLIB
6749 if test -n "$RANLIB"; then
6750   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6751 echo "${ECHO_T}$RANLIB" >&6; }
6752 else
6753   { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755 fi
6756
6757
6758 fi
6759 if test -z "$ac_cv_prog_RANLIB"; then
6760   ac_ct_RANLIB=$RANLIB
6761   # Extract the first word of "ranlib", so it can be a program name with args.
6762 set dummy ranlib; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   if test -n "$ac_ct_RANLIB"; then
6769   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776   for ac_exec_ext in '' $ac_executable_extensions; do
6777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778     ac_cv_prog_ac_ct_RANLIB="ranlib"
6779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6789 if test -n "$ac_ct_RANLIB"; then
6790   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6791 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6792 else
6793   { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6795 fi
6796
6797   if test "x$ac_ct_RANLIB" = x; then
6798     RANLIB=":"
6799   else
6800     case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet.  If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&5
6805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6806 whose name does not start with the host triplet.  If you think this
6807 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810     RANLIB=$ac_ct_RANLIB
6811   fi
6812 else
6813   RANLIB="$ac_cv_prog_RANLIB"
6814 fi
6815
6816 if test -n "$ac_tool_prefix"; then
6817   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}strip; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_STRIP+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   if test -n "$STRIP"; then
6825   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 STRIP=$ac_cv_prog_STRIP
6845 if test -n "$STRIP"; then
6846   { echo "$as_me:$LINENO: result: $STRIP" >&5
6847 echo "${ECHO_T}$STRIP" >&6; }
6848 else
6849   { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_STRIP"; then
6856   ac_ct_STRIP=$STRIP
6857   # Extract the first word of "strip", so it can be a program name with args.
6858 set dummy strip; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   if test -n "$ac_ct_STRIP"; then
6865   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870   IFS=$as_save_IFS
6871   test -z "$as_dir" && as_dir=.
6872   for ac_exec_ext in '' $ac_executable_extensions; do
6873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874     ac_cv_prog_ac_ct_STRIP="strip"
6875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876     break 2
6877   fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6885 if test -n "$ac_ct_STRIP"; then
6886   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6887 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6888 else
6889   { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6891 fi
6892
6893   if test "x$ac_ct_STRIP" = x; then
6894     STRIP=":"
6895   else
6896     case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet.  If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&5
6901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6902 whose name does not start with the host triplet.  If you think this
6903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906     STRIP=$ac_ct_STRIP
6907   fi
6908 else
6909   STRIP="$ac_cv_prog_STRIP"
6910 fi
6911
6912
6913 old_CC="$CC"
6914 old_CFLAGS="$CFLAGS"
6915
6916 # Set sane defaults for various variables
6917 test -z "$AR" && AR=ar
6918 test -z "$AR_FLAGS" && AR_FLAGS=cru
6919 test -z "$AS" && AS=as
6920 test -z "$CC" && CC=cc
6921 test -z "$LTCC" && LTCC=$CC
6922 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6923 test -z "$DLLTOOL" && DLLTOOL=dlltool
6924 test -z "$LD" && LD=ld
6925 test -z "$LN_S" && LN_S="ln -s"
6926 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6927 test -z "$NM" && NM=nm
6928 test -z "$SED" && SED=sed
6929 test -z "$OBJDUMP" && OBJDUMP=objdump
6930 test -z "$RANLIB" && RANLIB=:
6931 test -z "$STRIP" && STRIP=:
6932 test -z "$ac_objext" && ac_objext=o
6933
6934 # Determine commands to create old-style static archives.
6935 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6936 old_postinstall_cmds='chmod 644 $oldlib'
6937 old_postuninstall_cmds=
6938
6939 if test -n "$RANLIB"; then
6940   case $host_os in
6941   openbsd*)
6942     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6943     ;;
6944   *)
6945     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6946     ;;
6947   esac
6948   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6949 fi
6950
6951 for cc_temp in $compiler""; do
6952   case $cc_temp in
6953     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6954     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6955     \-*) ;;
6956     *) break;;
6957   esac
6958 done
6959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6960
6961
6962 # Only perform the check for file, if the check method requires it
6963 case $deplibs_check_method in
6964 file_magic*)
6965   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6966     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6967 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   case $MAGIC_CMD in
6972 [\\/*] |  ?:[\\/]*)
6973   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6974   ;;
6975 *)
6976   lt_save_MAGIC_CMD="$MAGIC_CMD"
6977   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6978   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6979   for ac_dir in $ac_dummy; do
6980     IFS="$lt_save_ifs"
6981     test -z "$ac_dir" && ac_dir=.
6982     if test -f $ac_dir/${ac_tool_prefix}file; then
6983       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6984       if test -n "$file_magic_test_file"; then
6985         case $deplibs_check_method in
6986         "file_magic "*)
6987           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6988           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6989           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6990             $EGREP "$file_magic_regex" > /dev/null; then
6991             :
6992           else
6993             cat <<EOF 1>&2
6994
6995 *** Warning: the command libtool uses to detect shared libraries,
6996 *** $file_magic_cmd, produces output that libtool cannot recognize.
6997 *** The result is that libtool may fail to recognize shared libraries
6998 *** as such.  This will affect the creation of libtool libraries that
6999 *** depend on shared libraries, but programs linked with such libtool
7000 *** libraries will work regardless of this problem.  Nevertheless, you
7001 *** may want to report the problem to your system manager and/or to
7002 *** bug-libtool@gnu.org
7003
7004 EOF
7005           fi ;;
7006         esac
7007       fi
7008       break
7009     fi
7010   done
7011   IFS="$lt_save_ifs"
7012   MAGIC_CMD="$lt_save_MAGIC_CMD"
7013   ;;
7014 esac
7015 fi
7016
7017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7018 if test -n "$MAGIC_CMD"; then
7019   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7020 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7021 else
7022   { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026 if test -z "$lt_cv_path_MAGIC_CMD"; then
7027   if test -n "$ac_tool_prefix"; then
7028     { echo "$as_me:$LINENO: checking for file" >&5
7029 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7030 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7031   echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033   case $MAGIC_CMD in
7034 [\\/*] |  ?:[\\/]*)
7035   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7036   ;;
7037 *)
7038   lt_save_MAGIC_CMD="$MAGIC_CMD"
7039   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7040   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7041   for ac_dir in $ac_dummy; do
7042     IFS="$lt_save_ifs"
7043     test -z "$ac_dir" && ac_dir=.
7044     if test -f $ac_dir/file; then
7045       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7046       if test -n "$file_magic_test_file"; then
7047         case $deplibs_check_method in
7048         "file_magic "*)
7049           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7050           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7051           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7052             $EGREP "$file_magic_regex" > /dev/null; then
7053             :
7054           else
7055             cat <<EOF 1>&2
7056
7057 *** Warning: the command libtool uses to detect shared libraries,
7058 *** $file_magic_cmd, produces output that libtool cannot recognize.
7059 *** The result is that libtool may fail to recognize shared libraries
7060 *** as such.  This will affect the creation of libtool libraries that
7061 *** depend on shared libraries, but programs linked with such libtool
7062 *** libraries will work regardless of this problem.  Nevertheless, you
7063 *** may want to report the problem to your system manager and/or to
7064 *** bug-libtool@gnu.org
7065
7066 EOF
7067           fi ;;
7068         esac
7069       fi
7070       break
7071     fi
7072   done
7073   IFS="$lt_save_ifs"
7074   MAGIC_CMD="$lt_save_MAGIC_CMD"
7075   ;;
7076 esac
7077 fi
7078
7079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7080 if test -n "$MAGIC_CMD"; then
7081   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7082 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088   else
7089     MAGIC_CMD=:
7090   fi
7091 fi
7092
7093   fi
7094   ;;
7095 esac
7096
7097
7098   case $host_os in
7099     rhapsody* | darwin*)
7100     if test -n "$ac_tool_prefix"; then
7101   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   if test -n "$DSYMUTIL"; then
7109   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116   for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7129 if test -n "$DSYMUTIL"; then
7130   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7131 echo "${ECHO_T}$DSYMUTIL" >&6; }
7132 else
7133   { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7135 fi
7136
7137
7138 fi
7139 if test -z "$ac_cv_prog_DSYMUTIL"; then
7140   ac_ct_DSYMUTIL=$DSYMUTIL
7141   # Extract the first word of "dsymutil", so it can be a program name with args.
7142 set dummy dsymutil; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   if test -n "$ac_ct_DSYMUTIL"; then
7149   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156   for ac_exec_ext in '' $ac_executable_extensions; do
7157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163 done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7169 if test -n "$ac_ct_DSYMUTIL"; then
7170   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7171 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7172 else
7173   { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7175 fi
7176
7177   if test "x$ac_ct_DSYMUTIL" = x; then
7178     DSYMUTIL=":"
7179   else
7180     case $cross_compiling:$ac_tool_warned in
7181 yes:)
7182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7183 whose name does not start with the host triplet.  If you think this
7184 configuration is useful to you, please write to autoconf@gnu.org." >&5
7185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7186 whose name does not start with the host triplet.  If you think this
7187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7188 ac_tool_warned=yes ;;
7189 esac
7190     DSYMUTIL=$ac_ct_DSYMUTIL
7191   fi
7192 else
7193   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7194 fi
7195
7196     if test -n "$ac_tool_prefix"; then
7197   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   if test -n "$NMEDIT"; then
7205   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212   for ac_exec_ext in '' $ac_executable_extensions; do
7213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 NMEDIT=$ac_cv_prog_NMEDIT
7225 if test -n "$NMEDIT"; then
7226   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7227 echo "${ECHO_T}$NMEDIT" >&6; }
7228 else
7229   { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7231 fi
7232
7233
7234 fi
7235 if test -z "$ac_cv_prog_NMEDIT"; then
7236   ac_ct_NMEDIT=$NMEDIT
7237   # Extract the first word of "nmedit", so it can be a program name with args.
7238 set dummy nmedit; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   if test -n "$ac_ct_NMEDIT"; then
7245   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252   for ac_exec_ext in '' $ac_executable_extensions; do
7253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259 done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7265 if test -n "$ac_ct_NMEDIT"; then
7266   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7267 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7268 else
7269   { echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6; }
7271 fi
7272
7273   if test "x$ac_ct_NMEDIT" = x; then
7274     NMEDIT=":"
7275   else
7276     case $cross_compiling:$ac_tool_warned in
7277 yes:)
7278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7279 whose name does not start with the host triplet.  If you think this
7280 configuration is useful to you, please write to autoconf@gnu.org." >&5
7281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7282 whose name does not start with the host triplet.  If you think this
7283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7284 ac_tool_warned=yes ;;
7285 esac
7286     NMEDIT=$ac_ct_NMEDIT
7287   fi
7288 else
7289   NMEDIT="$ac_cv_prog_NMEDIT"
7290 fi
7291
7292
7293     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7294 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7295 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   lt_cv_apple_cc_single_mod=no
7299       if test -z "${LT_MULTI_MODULE}"; then
7300    # By default we will add the -single_module flag. You can override
7301    # by either setting the environment variable LT_MULTI_MODULE
7302    # non-empty at configure time, or by adding -multi_module to the
7303    # link flags.
7304    echo "int foo(void){return 1;}" > conftest.c
7305    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7306      -dynamiclib ${wl}-single_module conftest.c
7307    if test -f libconftest.dylib; then
7308      lt_cv_apple_cc_single_mod=yes
7309      rm -rf libconftest.dylib*
7310    fi
7311    rm conftest.c
7312       fi
7313 fi
7314 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7315 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7316     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7317 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7318 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   lt_cv_ld_exported_symbols_list=no
7322       save_LDFLAGS=$LDFLAGS
7323       echo "_main" > conftest.sym
7324       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7325       cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h.  */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h.  */
7331
7332 int
7333 main ()
7334 {
7335
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7342 case "(($ac_try" in
7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344   *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347   (eval "$ac_link") 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } && {
7354          test -z "$ac_c_werror_flag" ||
7355          test ! -s conftest.err
7356        } && test -s conftest$ac_exeext &&
7357        $as_test_x conftest$ac_exeext; then
7358   lt_cv_ld_exported_symbols_list=yes
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363         lt_cv_ld_exported_symbols_list=no
7364 fi
7365
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367       conftest$ac_exeext conftest.$ac_ext
7368    LDFLAGS="$save_LDFLAGS"
7369
7370 fi
7371 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7372 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7373     case $host_os in
7374     rhapsody* | darwin1.[0123])
7375       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7376     darwin1.*)
7377      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7378     darwin*)
7379       # if running on 10.5 or later, the deployment target defaults
7380       # to the OS version, if on x86, and 10.4, the deployment
7381       # target defaults to 10.4. Don't you love it?
7382       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7383    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7384      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7385    10.[012]*)
7386      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7387    10.*)
7388      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7389       esac
7390     ;;
7391   esac
7392     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7393       _lt_dar_single_mod='$single_module'
7394     fi
7395     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7396       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7397     else
7398       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7399     fi
7400     if test "$DSYMUTIL" != ":"; then
7401       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7402     else
7403       _lt_dsymutil=
7404     fi
7405     ;;
7406   esac
7407
7408
7409 enable_dlopen=no
7410 enable_win32_dll=no
7411
7412 # Check whether --enable-libtool-lock was given.
7413 if test "${enable_libtool_lock+set}" = set; then
7414   enableval=$enable_libtool_lock;
7415 fi
7416
7417 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7418
7419
7420 # Check whether --with-pic was given.
7421 if test "${with_pic+set}" = set; then
7422   withval=$with_pic; pic_mode="$withval"
7423 else
7424   pic_mode=default
7425 fi
7426
7427 test -z "$pic_mode" && pic_mode=default
7428
7429 # Use C for the default configuration in the libtool script
7430 tagname=
7431 lt_save_CC="$CC"
7432 ac_ext=c
7433 ac_cpp='$CPP $CPPFLAGS'
7434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437
7438
7439 # Source file extension for C test sources.
7440 ac_ext=c
7441
7442 # Object file extension for compiled C test sources.
7443 objext=o
7444 objext=$objext
7445
7446 # Code to be used in simple compile tests
7447 lt_simple_compile_test_code="int some_variable = 0;"
7448
7449 # Code to be used in simple link tests
7450 lt_simple_link_test_code='int main(){return(0);}'
7451
7452
7453 # If no C compiler was specified, use CC.
7454 LTCC=${LTCC-"$CC"}
7455
7456 # If no C compiler flags were specified, use CFLAGS.
7457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7458
7459 # Allow CC to be a program name with arguments.
7460 compiler=$CC
7461
7462
7463 # save warnings/boilerplate of simple test code
7464 ac_outfile=conftest.$ac_objext
7465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7467 _lt_compiler_boilerplate=`cat conftest.err`
7468 $rm conftest*
7469
7470 ac_outfile=conftest.$ac_objext
7471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7473 _lt_linker_boilerplate=`cat conftest.err`
7474 $rm -r conftest*
7475
7476
7477
7478 lt_prog_compiler_no_builtin_flag=
7479
7480 if test "$GCC" = yes; then
7481   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7482
7483
7484 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7485 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7486 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   lt_cv_prog_compiler_rtti_exceptions=no
7490   ac_outfile=conftest.$ac_objext
7491    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7492    lt_compiler_flag="-fno-rtti -fno-exceptions"
7493    # Insert the option either (1) after the last *FLAGS variable, or
7494    # (2) before a word containing "conftest.", or (3) at the end.
7495    # Note that $ac_compile itself does not contain backslashes and begins
7496    # with a dollar sign (not a hyphen), so the echo should work correctly.
7497    # The option is referenced via a variable to avoid confusing sed.
7498    lt_compile=`echo "$ac_compile" | $SED \
7499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7501    -e 's:$: $lt_compiler_flag:'`
7502    (eval echo "\"\$as_me:7502: $lt_compile\"" >&5)
7503    (eval "$lt_compile" 2>conftest.err)
7504    ac_status=$?
7505    cat conftest.err >&5
7506    echo "$as_me:7506: \$? = $ac_status" >&5
7507    if (exit $ac_status) && test -s "$ac_outfile"; then
7508      # The compiler can only warn and ignore the option if not recognized
7509      # So say no if there are warnings other than the usual output.
7510      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7511      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7512      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7513        lt_cv_prog_compiler_rtti_exceptions=yes
7514      fi
7515    fi
7516    $rm conftest*
7517
7518 fi
7519 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7520 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7521
7522 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7523     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7524 else
7525     :
7526 fi
7527
7528 fi
7529
7530 lt_prog_compiler_wl=
7531 lt_prog_compiler_pic=
7532 lt_prog_compiler_static=
7533
7534 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7535 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7536
7537   if test "$GCC" = yes; then
7538     lt_prog_compiler_wl='-Wl,'
7539     lt_prog_compiler_static='-static'
7540
7541     case $host_os in
7542       aix*)
7543       # All AIX code is PIC.
7544       if test "$host_cpu" = ia64; then
7545         # AIX 5 now supports IA64 processor
7546         lt_prog_compiler_static='-Bstatic'
7547       fi
7548       ;;
7549
7550     amigaos*)
7551       # FIXME: we need at least 68020 code to build shared libraries, but
7552       # adding the `-m68020' flag to GCC prevents building anything better,
7553       # like `-m68040'.
7554       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7555       ;;
7556
7557     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7558       # PIC is the default for these OSes.
7559       ;;
7560
7561     mingw* | cygwin* | pw32* | os2*)
7562       # This hack is so that the source file can tell whether it is being
7563       # built for inclusion in a dll (and should export symbols for example).
7564       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7565       # (--disable-auto-import) libraries
7566       lt_prog_compiler_pic='-DDLL_EXPORT'
7567       ;;
7568
7569     darwin* | rhapsody*)
7570       # PIC is the default on this platform
7571       # Common symbols not allowed in MH_DYLIB files
7572       lt_prog_compiler_pic='-fno-common'
7573       ;;
7574
7575     interix[3-9]*)
7576       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7577       # Instead, we relocate shared libraries at runtime.
7578       ;;
7579
7580     msdosdjgpp*)
7581       # Just because we use GCC doesn't mean we suddenly get shared libraries
7582       # on systems that don't support them.
7583       lt_prog_compiler_can_build_shared=no
7584       enable_shared=no
7585       ;;
7586
7587     sysv4*MP*)
7588       if test -d /usr/nec; then
7589         lt_prog_compiler_pic=-Kconform_pic
7590       fi
7591       ;;
7592
7593     hpux*)
7594       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7595       # not for PA HP-UX.
7596       case $host_cpu in
7597       hppa*64*|ia64*)
7598         # +Z the default
7599         ;;
7600       *)
7601         lt_prog_compiler_pic='-fPIC'
7602         ;;
7603       esac
7604       ;;
7605
7606     *)
7607       lt_prog_compiler_pic='-fPIC'
7608       ;;
7609     esac
7610   else
7611     # PORTME Check for flag to pass linker flags through the system compiler.
7612     case $host_os in
7613     aix*)
7614       lt_prog_compiler_wl='-Wl,'
7615       if test "$host_cpu" = ia64; then
7616         # AIX 5 now supports IA64 processor
7617         lt_prog_compiler_static='-Bstatic'
7618       else
7619         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7620       fi
7621       ;;
7622       darwin*)
7623         # PIC is the default on this platform
7624         # Common symbols not allowed in MH_DYLIB files
7625        case $cc_basename in
7626          xlc*)
7627          lt_prog_compiler_pic='-qnocommon'
7628          lt_prog_compiler_wl='-Wl,'
7629          ;;
7630        esac
7631        ;;
7632
7633     mingw* | cygwin* | pw32* | os2*)
7634       # This hack is so that the source file can tell whether it is being
7635       # built for inclusion in a dll (and should export symbols for example).
7636       lt_prog_compiler_pic='-DDLL_EXPORT'
7637       ;;
7638
7639     hpux9* | hpux10* | hpux11*)
7640       lt_prog_compiler_wl='-Wl,'
7641       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7642       # not for PA HP-UX.
7643       case $host_cpu in
7644       hppa*64*|ia64*)
7645         # +Z the default
7646         ;;
7647       *)
7648         lt_prog_compiler_pic='+Z'
7649         ;;
7650       esac
7651       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7652       lt_prog_compiler_static='${wl}-a ${wl}archive'
7653       ;;
7654
7655     irix5* | irix6* | nonstopux*)
7656       lt_prog_compiler_wl='-Wl,'
7657       # PIC (with -KPIC) is the default.
7658       lt_prog_compiler_static='-non_shared'
7659       ;;
7660
7661     newsos6)
7662       lt_prog_compiler_pic='-KPIC'
7663       lt_prog_compiler_static='-Bstatic'
7664       ;;
7665
7666     linux* | k*bsd*-gnu)
7667       case $cc_basename in
7668       icc* | ecc*)
7669         lt_prog_compiler_wl='-Wl,'
7670         lt_prog_compiler_pic='-KPIC'
7671         lt_prog_compiler_static='-static'
7672         ;;
7673       pgcc* | pgf77* | pgf90* | pgf95*)
7674         # Portland Group compilers (*not* the Pentium gcc compiler,
7675         # which looks to be a dead project)
7676         lt_prog_compiler_wl='-Wl,'
7677         lt_prog_compiler_pic='-fpic'
7678         lt_prog_compiler_static='-Bstatic'
7679         ;;
7680       ccc*)
7681         lt_prog_compiler_wl='-Wl,'
7682         # All Alpha code is PIC.
7683         lt_prog_compiler_static='-non_shared'
7684         ;;
7685       *)
7686         case `$CC -V 2>&1 | sed 5q` in
7687         *Sun\ C*)
7688           # Sun C 5.9
7689           lt_prog_compiler_pic='-KPIC'
7690           lt_prog_compiler_static='-Bstatic'
7691           lt_prog_compiler_wl='-Wl,'
7692           ;;
7693         *Sun\ F*)
7694           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7695           lt_prog_compiler_pic='-KPIC'
7696           lt_prog_compiler_static='-Bstatic'
7697           lt_prog_compiler_wl=''
7698           ;;
7699         esac
7700         ;;
7701       esac
7702       ;;
7703
7704     osf3* | osf4* | osf5*)
7705       lt_prog_compiler_wl='-Wl,'
7706       # All OSF/1 code is PIC.
7707       lt_prog_compiler_static='-non_shared'
7708       ;;
7709
7710     rdos*)
7711       lt_prog_compiler_static='-non_shared'
7712       ;;
7713
7714     solaris*)
7715       lt_prog_compiler_pic='-KPIC'
7716       lt_prog_compiler_static='-Bstatic'
7717       case $cc_basename in
7718       f77* | f90* | f95*)
7719         lt_prog_compiler_wl='-Qoption ld ';;
7720       *)
7721         lt_prog_compiler_wl='-Wl,';;
7722       esac
7723       ;;
7724
7725     sunos4*)
7726       lt_prog_compiler_wl='-Qoption ld '
7727       lt_prog_compiler_pic='-PIC'
7728       lt_prog_compiler_static='-Bstatic'
7729       ;;
7730
7731     sysv4 | sysv4.2uw2* | sysv4.3*)
7732       lt_prog_compiler_wl='-Wl,'
7733       lt_prog_compiler_pic='-KPIC'
7734       lt_prog_compiler_static='-Bstatic'
7735       ;;
7736
7737     sysv4*MP*)
7738       if test -d /usr/nec ;then
7739         lt_prog_compiler_pic='-Kconform_pic'
7740         lt_prog_compiler_static='-Bstatic'
7741       fi
7742       ;;
7743
7744     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7745       lt_prog_compiler_wl='-Wl,'
7746       lt_prog_compiler_pic='-KPIC'
7747       lt_prog_compiler_static='-Bstatic'
7748       ;;
7749
7750     unicos*)
7751       lt_prog_compiler_wl='-Wl,'
7752       lt_prog_compiler_can_build_shared=no
7753       ;;
7754
7755     uts4*)
7756       lt_prog_compiler_pic='-pic'
7757       lt_prog_compiler_static='-Bstatic'
7758       ;;
7759
7760     *)
7761       lt_prog_compiler_can_build_shared=no
7762       ;;
7763     esac
7764   fi
7765
7766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7767 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7768
7769 #
7770 # Check to make sure the PIC flag actually works.
7771 #
7772 if test -n "$lt_prog_compiler_pic"; then
7773
7774 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7775 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7776 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   lt_cv_prog_compiler_pic_works=no
7780   ac_outfile=conftest.$ac_objext
7781    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7782    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7783    # Insert the option either (1) after the last *FLAGS variable, or
7784    # (2) before a word containing "conftest.", or (3) at the end.
7785    # Note that $ac_compile itself does not contain backslashes and begins
7786    # with a dollar sign (not a hyphen), so the echo should work correctly.
7787    # The option is referenced via a variable to avoid confusing sed.
7788    lt_compile=`echo "$ac_compile" | $SED \
7789    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7790    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7791    -e 's:$: $lt_compiler_flag:'`
7792    (eval echo "\"\$as_me:7792: $lt_compile\"" >&5)
7793    (eval "$lt_compile" 2>conftest.err)
7794    ac_status=$?
7795    cat conftest.err >&5
7796    echo "$as_me:7796: \$? = $ac_status" >&5
7797    if (exit $ac_status) && test -s "$ac_outfile"; then
7798      # The compiler can only warn and ignore the option if not recognized
7799      # So say no if there are warnings other than the usual output.
7800      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7801      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7802      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7803        lt_cv_prog_compiler_pic_works=yes
7804      fi
7805    fi
7806    $rm conftest*
7807
7808 fi
7809 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7810 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7811
7812 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7813     case $lt_prog_compiler_pic in
7814      "" | " "*) ;;
7815      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7816      esac
7817 else
7818     lt_prog_compiler_pic=
7819      lt_prog_compiler_can_build_shared=no
7820 fi
7821
7822 fi
7823 case $host_os in
7824   # For platforms which do not support PIC, -DPIC is meaningless:
7825   *djgpp*)
7826     lt_prog_compiler_pic=
7827     ;;
7828   *)
7829     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7830     ;;
7831 esac
7832
7833 #
7834 # Check to make sure the static flag actually works.
7835 #
7836 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7837 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7838 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7839 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   lt_cv_prog_compiler_static_works=no
7843    save_LDFLAGS="$LDFLAGS"
7844    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7845    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7846    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7847      # The linker can only warn and ignore the option if not recognized
7848      # So say no if there are warnings
7849      if test -s conftest.err; then
7850        # Append any errors to the config.log.
7851        cat conftest.err 1>&5
7852        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7853        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7854        if diff conftest.exp conftest.er2 >/dev/null; then
7855          lt_cv_prog_compiler_static_works=yes
7856        fi
7857      else
7858        lt_cv_prog_compiler_static_works=yes
7859      fi
7860    fi
7861    $rm -r conftest*
7862    LDFLAGS="$save_LDFLAGS"
7863
7864 fi
7865 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7866 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7867
7868 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7869     :
7870 else
7871     lt_prog_compiler_static=
7872 fi
7873
7874
7875 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7876 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7877 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   lt_cv_prog_compiler_c_o=no
7881    $rm -r conftest 2>/dev/null
7882    mkdir conftest
7883    cd conftest
7884    mkdir out
7885    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7886
7887    lt_compiler_flag="-o out/conftest2.$ac_objext"
7888    # Insert the option either (1) after the last *FLAGS variable, or
7889    # (2) before a word containing "conftest.", or (3) at the end.
7890    # Note that $ac_compile itself does not contain backslashes and begins
7891    # with a dollar sign (not a hyphen), so the echo should work correctly.
7892    lt_compile=`echo "$ac_compile" | $SED \
7893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7895    -e 's:$: $lt_compiler_flag:'`
7896    (eval echo "\"\$as_me:7896: $lt_compile\"" >&5)
7897    (eval "$lt_compile" 2>out/conftest.err)
7898    ac_status=$?
7899    cat out/conftest.err >&5
7900    echo "$as_me:7900: \$? = $ac_status" >&5
7901    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7902    then
7903      # The compiler can only warn and ignore the option if not recognized
7904      # So say no if there are warnings
7905      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7906      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7907      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7908        lt_cv_prog_compiler_c_o=yes
7909      fi
7910    fi
7911    chmod u+w . 2>&5
7912    $rm conftest*
7913    # SGI C++ compiler will create directory out/ii_files/ for
7914    # template instantiation
7915    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7916    $rm out/* && rmdir out
7917    cd ..
7918    rmdir conftest
7919    $rm conftest*
7920
7921 fi
7922 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7923 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7924
7925
7926 hard_links="nottested"
7927 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7928   # do not overwrite the value of need_locks provided by the user
7929   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7930 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7931   hard_links=yes
7932   $rm conftest*
7933   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7934   touch conftest.a
7935   ln conftest.a conftest.b 2>&5 || hard_links=no
7936   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7937   { echo "$as_me:$LINENO: result: $hard_links" >&5
7938 echo "${ECHO_T}$hard_links" >&6; }
7939   if test "$hard_links" = no; then
7940     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7941 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7942     need_locks=warn
7943   fi
7944 else
7945   need_locks=no
7946 fi
7947
7948 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7949 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7950
7951   runpath_var=
7952   allow_undefined_flag=
7953   enable_shared_with_static_runtimes=no
7954   archive_cmds=
7955   archive_expsym_cmds=
7956   old_archive_From_new_cmds=
7957   old_archive_from_expsyms_cmds=
7958   export_dynamic_flag_spec=
7959   whole_archive_flag_spec=
7960   thread_safe_flag_spec=
7961   hardcode_libdir_flag_spec=
7962   hardcode_libdir_flag_spec_ld=
7963   hardcode_libdir_separator=
7964   hardcode_direct=no
7965   hardcode_minus_L=no
7966   hardcode_shlibpath_var=unsupported
7967   link_all_deplibs=unknown
7968   hardcode_automatic=no
7969   module_cmds=
7970   module_expsym_cmds=
7971   always_export_symbols=no
7972   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7973   # include_expsyms should be a list of space-separated symbols to be *always*
7974   # included in the symbol list
7975   include_expsyms=
7976   # exclude_expsyms can be an extended regexp of symbols to exclude
7977   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7978   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7979   # as well as any symbol that contains `d'.
7980   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7981   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7982   # platforms (ab)use it in PIC code, but their linkers get confused if
7983   # the symbol is explicitly referenced.  Since portable code cannot
7984   # rely on this symbol name, it's probably fine to never include it in
7985   # preloaded symbol tables.
7986   # Exclude shared library initialization/finalization symbols.
7987   extract_expsyms_cmds=
7988   # Just being paranoid about ensuring that cc_basename is set.
7989   for cc_temp in $compiler""; do
7990   case $cc_temp in
7991     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7992     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7993     \-*) ;;
7994     *) break;;
7995   esac
7996 done
7997 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7998
7999   case $host_os in
8000   cygwin* | mingw* | pw32*)
8001     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8002     # When not using gcc, we currently assume that we are using
8003     # Microsoft Visual C++.
8004     if test "$GCC" != yes; then
8005       with_gnu_ld=no
8006     fi
8007     ;;
8008   interix*)
8009     # we just hope/assume this is gcc and not c89 (= MSVC++)
8010     with_gnu_ld=yes
8011     ;;
8012   openbsd*)
8013     with_gnu_ld=no
8014     ;;
8015   esac
8016
8017   ld_shlibs=yes
8018   if test "$with_gnu_ld" = yes; then
8019     # If archive_cmds runs LD, not CC, wlarc should be empty
8020     wlarc='${wl}'
8021
8022     # Set some defaults for GNU ld with shared library support. These
8023     # are reset later if shared libraries are not supported. Putting them
8024     # here allows them to be overridden if necessary.
8025     runpath_var=LD_RUN_PATH
8026     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8027     export_dynamic_flag_spec='${wl}--export-dynamic'
8028     # ancient GNU ld didn't support --whole-archive et. al.
8029     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8030         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8031       else
8032         whole_archive_flag_spec=
8033     fi
8034     supports_anon_versioning=no
8035     case `$LD -v 2>/dev/null` in
8036       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8037       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8038       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8039       *\ 2.11.*) ;; # other 2.11 versions
8040       *) supports_anon_versioning=yes ;;
8041     esac
8042
8043     # See if GNU ld supports shared libraries.
8044     case $host_os in
8045     aix[3-9]*)
8046       # On AIX/PPC, the GNU linker is very broken
8047       if test "$host_cpu" != ia64; then
8048         ld_shlibs=no
8049         cat <<EOF 1>&2
8050
8051 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8052 *** to be unable to reliably create shared libraries on AIX.
8053 *** Therefore, libtool is disabling shared libraries support.  If you
8054 *** really care for shared libraries, you may want to modify your PATH
8055 *** so that a non-GNU linker is found, and then restart.
8056
8057 EOF
8058       fi
8059       ;;
8060
8061     amigaos*)
8062       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)'
8063       hardcode_libdir_flag_spec='-L$libdir'
8064       hardcode_minus_L=yes
8065
8066       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8067       # that the semantics of dynamic libraries on AmigaOS, at least up
8068       # to version 4, is to share data among multiple programs linked
8069       # with the same dynamic library.  Since this doesn't match the
8070       # behavior of shared libraries on other platforms, we can't use
8071       # them.
8072       ld_shlibs=no
8073       ;;
8074
8075     beos*)
8076       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8077         allow_undefined_flag=unsupported
8078         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8079         # support --undefined.  This deserves some investigation.  FIXME
8080         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8081       else
8082         ld_shlibs=no
8083       fi
8084       ;;
8085
8086     cygwin* | mingw* | pw32*)
8087       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8088       # as there is no search path for DLLs.
8089       hardcode_libdir_flag_spec='-L$libdir'
8090       allow_undefined_flag=unsupported
8091       always_export_symbols=no
8092       enable_shared_with_static_runtimes=yes
8093       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8094
8095       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8096         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8097         # If the export-symbols file already is a .def file (1st line
8098         # is EXPORTS), use it as is; otherwise, prepend...
8099         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8100           cp $export_symbols $output_objdir/$soname.def;
8101         else
8102           echo EXPORTS > $output_objdir/$soname.def;
8103           cat $export_symbols >> $output_objdir/$soname.def;
8104         fi~
8105         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8106       else
8107         ld_shlibs=no
8108       fi
8109       ;;
8110
8111     interix[3-9]*)
8112       hardcode_direct=no
8113       hardcode_shlibpath_var=no
8114       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8115       export_dynamic_flag_spec='${wl}-E'
8116       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8117       # Instead, shared libraries are loaded at an image base (0x10000000 by
8118       # default) and relocated if they conflict, which is a slow very memory
8119       # consuming and fragmenting process.  To avoid this, we pick a random,
8120       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8121       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8122       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8123       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8124       ;;
8125
8126     gnu* | linux* | k*bsd*-gnu)
8127       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128         tmp_addflag=
8129         case $cc_basename,$host_cpu in
8130         pgcc*)                          # Portland Group C compiler
8131           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8132           tmp_addflag=' $pic_flag'
8133           ;;
8134         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8135           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8136           tmp_addflag=' $pic_flag -Mnomain' ;;
8137         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8138           tmp_addflag=' -i_dynamic' ;;
8139         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8140           tmp_addflag=' -i_dynamic -nofor_main' ;;
8141         ifc* | ifort*)                  # Intel Fortran compiler
8142           tmp_addflag=' -nofor_main' ;;
8143         esac
8144         case `$CC -V 2>&1 | sed 5q` in
8145         *Sun\ C*)                       # Sun C 5.9
8146           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8147           tmp_sharedflag='-G' ;;
8148         *Sun\ F*)                       # Sun Fortran 8.3
8149           tmp_sharedflag='-G' ;;
8150         *)
8151           tmp_sharedflag='-shared' ;;
8152         esac
8153         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154
8155         if test $supports_anon_versioning = yes; then
8156           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8157   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8158   $echo "local: *; };" >> $output_objdir/$libname.ver~
8159           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8160         fi
8161         link_all_deplibs=no
8162       else
8163         ld_shlibs=no
8164       fi
8165       ;;
8166
8167     netbsd* | netbsdelf*-gnu)
8168       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8169         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8170         wlarc=
8171       else
8172         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8174       fi
8175       ;;
8176
8177     solaris*)
8178       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8179         ld_shlibs=no
8180         cat <<EOF 1>&2
8181
8182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8183 *** create shared libraries on Solaris systems.  Therefore, libtool
8184 *** is disabling shared libraries support.  We urge you to upgrade GNU
8185 *** binutils to release 2.9.1 or newer.  Another option is to modify
8186 *** your PATH or compiler configuration so that the native linker is
8187 *** used, and then restart.
8188
8189 EOF
8190       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8192         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8193       else
8194         ld_shlibs=no
8195       fi
8196       ;;
8197
8198     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8199       case `$LD -v 2>&1` in
8200         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8201         ld_shlibs=no
8202         cat <<_LT_EOF 1>&2
8203
8204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8205 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8206 *** is disabling shared libraries support.  We urge you to upgrade GNU
8207 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8208 *** your PATH or compiler configuration so that the native linker is
8209 *** used, and then restart.
8210
8211 _LT_EOF
8212         ;;
8213         *)
8214           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8215             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8216             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8217             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8218           else
8219             ld_shlibs=no
8220           fi
8221         ;;
8222       esac
8223       ;;
8224
8225     sunos4*)
8226       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8227       wlarc=
8228       hardcode_direct=yes
8229       hardcode_shlibpath_var=no
8230       ;;
8231
8232     *)
8233       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8236       else
8237         ld_shlibs=no
8238       fi
8239       ;;
8240     esac
8241
8242     if test "$ld_shlibs" = no; then
8243       runpath_var=
8244       hardcode_libdir_flag_spec=
8245       export_dynamic_flag_spec=
8246       whole_archive_flag_spec=
8247     fi
8248   else
8249     # PORTME fill in a description of your system's linker (not GNU ld)
8250     case $host_os in
8251     aix3*)
8252       allow_undefined_flag=unsupported
8253       always_export_symbols=yes
8254       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'
8255       # Note: this linker hardcodes the directories in LIBPATH if there
8256       # are no directories specified by -L.
8257       hardcode_minus_L=yes
8258       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8259         # Neither direct hardcoding nor static linking is supported with a
8260         # broken collect2.
8261         hardcode_direct=unsupported
8262       fi
8263       ;;
8264
8265     aix[4-9]*)
8266       if test "$host_cpu" = ia64; then
8267         # On IA64, the linker does run time linking by default, so we don't
8268         # have to do anything special.
8269         aix_use_runtimelinking=no
8270         exp_sym_flag='-Bexport'
8271         no_entry_flag=""
8272       else
8273         # If we're using GNU nm, then we don't want the "-C" option.
8274         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8275         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8276           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'
8277         else
8278           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'
8279         fi
8280         aix_use_runtimelinking=no
8281
8282         # Test if we are trying to use run time linking or normal
8283         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8284         # need to do runtime linking.
8285         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8286           for ld_flag in $LDFLAGS; do
8287           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8288             aix_use_runtimelinking=yes
8289             break
8290           fi
8291           done
8292           ;;
8293         esac
8294
8295         exp_sym_flag='-bexport'
8296         no_entry_flag='-bnoentry'
8297       fi
8298
8299       # When large executables or shared objects are built, AIX ld can
8300       # have problems creating the table of contents.  If linking a library
8301       # or program results in "error TOC overflow" add -mminimal-toc to
8302       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8303       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8304
8305       archive_cmds=''
8306       hardcode_direct=yes
8307       hardcode_libdir_separator=':'
8308       link_all_deplibs=yes
8309
8310       if test "$GCC" = yes; then
8311         case $host_os in aix4.[012]|aix4.[012].*)
8312         # We only want to do this on AIX 4.2 and lower, the check
8313         # below for broken collect2 doesn't work under 4.3+
8314           collect2name=`${CC} -print-prog-name=collect2`
8315           if test -f "$collect2name" && \
8316            strings "$collect2name" | grep resolve_lib_name >/dev/null
8317           then
8318           # We have reworked collect2
8319           :
8320           else
8321           # We have old collect2
8322           hardcode_direct=unsupported
8323           # It fails to find uninstalled libraries when the uninstalled
8324           # path is not listed in the libpath.  Setting hardcode_minus_L
8325           # to unsupported forces relinking
8326           hardcode_minus_L=yes
8327           hardcode_libdir_flag_spec='-L$libdir'
8328           hardcode_libdir_separator=
8329           fi
8330           ;;
8331         esac
8332         shared_flag='-shared'
8333         if test "$aix_use_runtimelinking" = yes; then
8334           shared_flag="$shared_flag "'${wl}-G'
8335         fi
8336       else
8337         # not using gcc
8338         if test "$host_cpu" = ia64; then
8339         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8340         # chokes on -Wl,-G. The following line is correct:
8341           shared_flag='-G'
8342         else
8343           if test "$aix_use_runtimelinking" = yes; then
8344             shared_flag='${wl}-G'
8345           else
8346             shared_flag='${wl}-bM:SRE'
8347           fi
8348         fi
8349       fi
8350
8351       # It seems that -bexpall does not export symbols beginning with
8352       # underscore (_), so it is better to generate a list of symbols to export.
8353       always_export_symbols=yes
8354       if test "$aix_use_runtimelinking" = yes; then
8355         # Warning - without using the other runtime loading flags (-brtl),
8356         # -berok will link without error, but may produce a broken library.
8357         allow_undefined_flag='-berok'
8358        # Determine the default libpath from the value encoded in an empty executable.
8359        cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h.  */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h.  */
8365
8366 int
8367 main ()
8368 {
8369
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (ac_try="$ac_link"
8376 case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381   (eval "$ac_link") 2>conftest.er1
8382   ac_status=$?
8383   grep -v '^ *+' conftest.er1 >conftest.err
8384   rm -f conftest.er1
8385   cat conftest.err >&5
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } && {
8388          test -z "$ac_c_werror_flag" ||
8389          test ! -s conftest.err
8390        } && test -s conftest$ac_exeext &&
8391        $as_test_x conftest$ac_exeext; then
8392
8393 lt_aix_libpath_sed='
8394     /Import File Strings/,/^$/ {
8395         /^0/ {
8396             s/^0  *\(.*\)$/\1/
8397             p
8398         }
8399     }'
8400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8401 # Check for a 64-bit object if we didn't find anything.
8402 if test -z "$aix_libpath"; then
8403   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8404 fi
8405 else
8406   echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409
8410 fi
8411
8412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8413       conftest$ac_exeext conftest.$ac_ext
8414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8415
8416        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8417         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8418        else
8419         if test "$host_cpu" = ia64; then
8420           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8421           allow_undefined_flag="-z nodefs"
8422           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8423         else
8424          # Determine the default libpath from the value encoded in an empty executable.
8425          cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431
8432 int
8433 main ()
8434 {
8435
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_link") 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } && {
8454          test -z "$ac_c_werror_flag" ||
8455          test ! -s conftest.err
8456        } && test -s conftest$ac_exeext &&
8457        $as_test_x conftest$ac_exeext; then
8458
8459 lt_aix_libpath_sed='
8460     /Import File Strings/,/^$/ {
8461         /^0/ {
8462             s/^0  *\(.*\)$/\1/
8463             p
8464         }
8465     }'
8466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8467 # Check for a 64-bit object if we didn't find anything.
8468 if test -z "$aix_libpath"; then
8469   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8470 fi
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475
8476 fi
8477
8478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8479       conftest$ac_exeext conftest.$ac_ext
8480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8481
8482          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8483           # Warning - without using the other run time loading flags,
8484           # -berok will link without error, but may produce a broken library.
8485           no_undefined_flag=' ${wl}-bernotok'
8486           allow_undefined_flag=' ${wl}-berok'
8487           # Exported symbols can be pulled into shared objects from archives
8488           whole_archive_flag_spec='$convenience'
8489           archive_cmds_need_lc=yes
8490           # This is similar to how AIX traditionally builds its shared libraries.
8491           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8492         fi
8493       fi
8494       ;;
8495
8496     amigaos*)
8497       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)'
8498       hardcode_libdir_flag_spec='-L$libdir'
8499       hardcode_minus_L=yes
8500       # see comment about different semantics on the GNU ld section
8501       ld_shlibs=no
8502       ;;
8503
8504     bsdi[45]*)
8505       export_dynamic_flag_spec=-rdynamic
8506       ;;
8507
8508     cygwin* | mingw* | pw32*)
8509       # When not using gcc, we currently assume that we are using
8510       # Microsoft Visual C++.
8511       # hardcode_libdir_flag_spec is actually meaningless, as there is
8512       # no search path for DLLs.
8513       hardcode_libdir_flag_spec=' '
8514       allow_undefined_flag=unsupported
8515       # Tell ltmain to make .lib files, not .a files.
8516       libext=lib
8517       # Tell ltmain to make .dll files, not .so files.
8518       shrext_cmds=".dll"
8519       # FIXME: Setting linknames here is a bad hack.
8520       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8521       # The linker will automatically build a .lib file if we build a DLL.
8522       old_archive_From_new_cmds='true'
8523       # FIXME: Should let the user specify the lib program.
8524       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8525       fix_srcfile_path='`cygpath -w "$srcfile"`'
8526       enable_shared_with_static_runtimes=yes
8527       ;;
8528
8529     darwin* | rhapsody*)
8530       case $host_os in
8531         rhapsody* | darwin1.[012])
8532          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8533          ;;
8534        *) # Darwin 1.3 on
8535          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8536            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8537          else
8538            case ${MACOSX_DEPLOYMENT_TARGET} in
8539              10.[012])
8540                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8541                ;;
8542              10.*)
8543                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8544                ;;
8545            esac
8546          fi
8547          ;;
8548       esac
8549       archive_cmds_need_lc=no
8550       hardcode_direct=no
8551       hardcode_automatic=yes
8552       hardcode_shlibpath_var=unsupported
8553       whole_archive_flag_spec=''
8554       link_all_deplibs=yes
8555     if test "$GCC" = yes ; then
8556         output_verbose_link_cmd='echo'
8557         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8558         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8559         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8560         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8561     else
8562       case $cc_basename in
8563         xlc*)
8564          output_verbose_link_cmd='echo'
8565          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8566          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8567           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8568          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8569           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}'
8570           ;;
8571        *)
8572          ld_shlibs=no
8573           ;;
8574       esac
8575     fi
8576       ;;
8577
8578     dgux*)
8579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8580       hardcode_libdir_flag_spec='-L$libdir'
8581       hardcode_shlibpath_var=no
8582       ;;
8583
8584     freebsd1*)
8585       ld_shlibs=no
8586       ;;
8587
8588     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8589     # support.  Future versions do this automatically, but an explicit c++rt0.o
8590     # does not break anything, and helps significantly (at the cost of a little
8591     # extra space).
8592     freebsd2.2*)
8593       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8594       hardcode_libdir_flag_spec='-R$libdir'
8595       hardcode_direct=yes
8596       hardcode_shlibpath_var=no
8597       ;;
8598
8599     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8600     freebsd2*)
8601       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8602       hardcode_direct=yes
8603       hardcode_minus_L=yes
8604       hardcode_shlibpath_var=no
8605       ;;
8606
8607     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8608     freebsd* | dragonfly*)
8609       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8610       hardcode_libdir_flag_spec='-R$libdir'
8611       hardcode_direct=yes
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     hpux9*)
8616       if test "$GCC" = yes; then
8617         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'
8618       else
8619         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'
8620       fi
8621       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8622       hardcode_libdir_separator=:
8623       hardcode_direct=yes
8624
8625       # hardcode_minus_L: Not really in the search PATH,
8626       # but as the default location of the library.
8627       hardcode_minus_L=yes
8628       export_dynamic_flag_spec='${wl}-E'
8629       ;;
8630
8631     hpux10*)
8632       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8633         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8634       else
8635         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8636       fi
8637       if test "$with_gnu_ld" = no; then
8638         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8639         hardcode_libdir_separator=:
8640
8641         hardcode_direct=yes
8642         export_dynamic_flag_spec='${wl}-E'
8643
8644         # hardcode_minus_L: Not really in the search PATH,
8645         # but as the default location of the library.
8646         hardcode_minus_L=yes
8647       fi
8648       ;;
8649
8650     hpux11*)
8651       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8652         case $host_cpu in
8653         hppa*64*)
8654           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8655           ;;
8656         ia64*)
8657           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8658           ;;
8659         *)
8660           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8661           ;;
8662         esac
8663       else
8664         case $host_cpu in
8665         hppa*64*)
8666           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8667           ;;
8668         ia64*)
8669           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8670           ;;
8671         *)
8672           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8673           ;;
8674         esac
8675       fi
8676       if test "$with_gnu_ld" = no; then
8677         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8678         hardcode_libdir_separator=:
8679
8680         case $host_cpu in
8681         hppa*64*|ia64*)
8682           hardcode_libdir_flag_spec_ld='+b $libdir'
8683           hardcode_direct=no
8684           hardcode_shlibpath_var=no
8685           ;;
8686         *)
8687           hardcode_direct=yes
8688           export_dynamic_flag_spec='${wl}-E'
8689
8690           # hardcode_minus_L: Not really in the search PATH,
8691           # but as the default location of the library.
8692           hardcode_minus_L=yes
8693           ;;
8694         esac
8695       fi
8696       ;;
8697
8698     irix5* | irix6* | nonstopux*)
8699       if test "$GCC" = yes; then
8700         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'
8701       else
8702         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'
8703         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8704       fi
8705       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706       hardcode_libdir_separator=:
8707       link_all_deplibs=yes
8708       ;;
8709
8710     netbsd* | netbsdelf*-gnu)
8711       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8712         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8713       else
8714         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8715       fi
8716       hardcode_libdir_flag_spec='-R$libdir'
8717       hardcode_direct=yes
8718       hardcode_shlibpath_var=no
8719       ;;
8720
8721     newsos6)
8722       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723       hardcode_direct=yes
8724       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8725       hardcode_libdir_separator=:
8726       hardcode_shlibpath_var=no
8727       ;;
8728
8729     openbsd*)
8730       if test -f /usr/libexec/ld.so; then
8731         hardcode_direct=yes
8732         hardcode_shlibpath_var=no
8733         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8734           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8735           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8736           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8737           export_dynamic_flag_spec='${wl}-E'
8738         else
8739           case $host_os in
8740            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8741              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8742              hardcode_libdir_flag_spec='-R$libdir'
8743              ;;
8744            *)
8745              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8746              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8747              ;;
8748           esac
8749         fi
8750       else
8751         ld_shlibs=no
8752       fi
8753       ;;
8754
8755     os2*)
8756       hardcode_libdir_flag_spec='-L$libdir'
8757       hardcode_minus_L=yes
8758       allow_undefined_flag=unsupported
8759       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'
8760       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8761       ;;
8762
8763     osf3*)
8764       if test "$GCC" = yes; then
8765         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8766         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'
8767       else
8768         allow_undefined_flag=' -expect_unresolved \*'
8769         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'
8770       fi
8771       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8772       hardcode_libdir_separator=:
8773       ;;
8774
8775     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8776       if test "$GCC" = yes; then
8777         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778         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'
8779         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780       else
8781         allow_undefined_flag=' -expect_unresolved \*'
8782         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'
8783         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8784         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8785
8786         # Both c and cxx compiler support -rpath directly
8787         hardcode_libdir_flag_spec='-rpath $libdir'
8788       fi
8789       hardcode_libdir_separator=:
8790       ;;
8791
8792     solaris*)
8793       no_undefined_flag=' -z text'
8794       if test "$GCC" = yes; then
8795         wlarc='${wl}'
8796         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8797         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8798           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8799       else
8800         wlarc=''
8801         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8803         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8804       fi
8805       hardcode_libdir_flag_spec='-R$libdir'
8806       hardcode_shlibpath_var=no
8807       case $host_os in
8808       solaris2.[0-5] | solaris2.[0-5].*) ;;
8809       *)
8810         # The compiler driver will combine and reorder linker options,
8811         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8812         # but is careful enough not to reorder.
8813         # Supported since Solaris 2.6 (maybe 2.5.1?)
8814         if test "$GCC" = yes; then
8815           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8816         else
8817           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8818         fi
8819         ;;
8820       esac
8821       link_all_deplibs=yes
8822       ;;
8823
8824     sunos4*)
8825       if test "x$host_vendor" = xsequent; then
8826         # Use $CC to link under sequent, because it throws in some extra .o
8827         # files that make .init and .fini sections work.
8828         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8829       else
8830         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8831       fi
8832       hardcode_libdir_flag_spec='-L$libdir'
8833       hardcode_direct=yes
8834       hardcode_minus_L=yes
8835       hardcode_shlibpath_var=no
8836       ;;
8837
8838     sysv4)
8839       case $host_vendor in
8840         sni)
8841           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8842           hardcode_direct=yes # is this really true???
8843         ;;
8844         siemens)
8845           ## LD is ld it makes a PLAMLIB
8846           ## CC just makes a GrossModule.
8847           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8848           reload_cmds='$CC -r -o $output$reload_objs'
8849           hardcode_direct=no
8850         ;;
8851         motorola)
8852           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8854         ;;
8855       esac
8856       runpath_var='LD_RUN_PATH'
8857       hardcode_shlibpath_var=no
8858       ;;
8859
8860     sysv4.3*)
8861       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862       hardcode_shlibpath_var=no
8863       export_dynamic_flag_spec='-Bexport'
8864       ;;
8865
8866     sysv4*MP*)
8867       if test -d /usr/nec; then
8868         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8869         hardcode_shlibpath_var=no
8870         runpath_var=LD_RUN_PATH
8871         hardcode_runpath_var=yes
8872         ld_shlibs=yes
8873       fi
8874       ;;
8875
8876     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8877       no_undefined_flag='${wl}-z,text'
8878       archive_cmds_need_lc=no
8879       hardcode_shlibpath_var=no
8880       runpath_var='LD_RUN_PATH'
8881
8882       if test "$GCC" = yes; then
8883         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8884         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8885       else
8886         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8887         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8888       fi
8889       ;;
8890
8891     sysv5* | sco3.2v5* | sco5v6*)
8892       # Note: We can NOT use -z defs as we might desire, because we do not
8893       # link with -lc, and that would cause any symbols used from libc to
8894       # always be unresolved, which means just about no library would
8895       # ever link correctly.  If we're not using GNU ld we use -z text
8896       # though, which does catch some bad symbols but isn't as heavy-handed
8897       # as -z defs.
8898       no_undefined_flag='${wl}-z,text'
8899       allow_undefined_flag='${wl}-z,nodefs'
8900       archive_cmds_need_lc=no
8901       hardcode_shlibpath_var=no
8902       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8903       hardcode_libdir_separator=':'
8904       link_all_deplibs=yes
8905       export_dynamic_flag_spec='${wl}-Bexport'
8906       runpath_var='LD_RUN_PATH'
8907
8908       if test "$GCC" = yes; then
8909         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911       else
8912         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8914       fi
8915       ;;
8916
8917     uts4*)
8918       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8919       hardcode_libdir_flag_spec='-L$libdir'
8920       hardcode_shlibpath_var=no
8921       ;;
8922
8923     *)
8924       ld_shlibs=no
8925       ;;
8926     esac
8927   fi
8928
8929 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8930 echo "${ECHO_T}$ld_shlibs" >&6; }
8931 test "$ld_shlibs" = no && can_build_shared=no
8932
8933 #
8934 # Do we need to explicitly link libc?
8935 #
8936 case "x$archive_cmds_need_lc" in
8937 x|xyes)
8938   # Assume -lc should be added
8939   archive_cmds_need_lc=yes
8940
8941   if test "$enable_shared" = yes && test "$GCC" = yes; then
8942     case $archive_cmds in
8943     *'~'*)
8944       # FIXME: we may have to deal with multi-command sequences.
8945       ;;
8946     '$CC '*)
8947       # Test whether the compiler implicitly links with -lc since on some
8948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8949       # to ld, don't add -lc before -lgcc.
8950       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8952       $rm conftest*
8953       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8954
8955       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956   (eval $ac_compile) 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } 2>conftest.err; then
8960         soname=conftest
8961         lib=conftest
8962         libobjs=conftest.$ac_objext
8963         deplibs=
8964         wl=$lt_prog_compiler_wl
8965         pic_flag=$lt_prog_compiler_pic
8966         compiler_flags=-v
8967         linker_flags=-v
8968         verstring=
8969         output_objdir=.
8970         libname=conftest
8971         lt_save_allow_undefined_flag=$allow_undefined_flag
8972         allow_undefined_flag=
8973         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8974   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); }
8978         then
8979           archive_cmds_need_lc=no
8980         else
8981           archive_cmds_need_lc=yes
8982         fi
8983         allow_undefined_flag=$lt_save_allow_undefined_flag
8984       else
8985         cat conftest.err 1>&5
8986       fi
8987       $rm conftest*
8988       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8989 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8990       ;;
8991     esac
8992   fi
8993   ;;
8994 esac
8995
8996 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8998 library_names_spec=
8999 libname_spec='lib$name'
9000 soname_spec=
9001 shrext_cmds=".so"
9002 postinstall_cmds=
9003 postuninstall_cmds=
9004 finish_cmds=
9005 finish_eval=
9006 shlibpath_var=
9007 shlibpath_overrides_runpath=unknown
9008 version_type=none
9009 dynamic_linker="$host_os ld.so"
9010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9011
9012 if test "$GCC" = yes; then
9013   case $host_os in
9014     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9015     *) lt_awk_arg="/^libraries:/" ;;
9016   esac
9017   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9018   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9019     # if the path contains ";" then we assume it to be the separator
9020     # otherwise default to the standard path separator (i.e. ":") - it is
9021     # assumed that no part of a normal pathname contains ";" but that should
9022     # okay in the real world where ";" in dirpaths is itself problematic.
9023     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9024   else
9025     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9026   fi
9027   # Ok, now we have the path, separated by spaces, we can step through it
9028   # and add multilib dir if necessary.
9029   lt_tmp_lt_search_path_spec=
9030   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9031   for lt_sys_path in $lt_search_path_spec; do
9032     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9033       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9034     else
9035       test -d "$lt_sys_path" && \
9036         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9037     fi
9038   done
9039   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9040 BEGIN {RS=" "; FS="/|\n";} {
9041   lt_foo="";
9042   lt_count=0;
9043   for (lt_i = NF; lt_i > 0; lt_i--) {
9044     if ($lt_i != "" && $lt_i != ".") {
9045       if ($lt_i == "..") {
9046         lt_count++;
9047       } else {
9048         if (lt_count == 0) {
9049           lt_foo="/" $lt_i lt_foo;
9050         } else {
9051           lt_count--;
9052         }
9053       }
9054     }
9055   }
9056   if (lt_foo != "") { lt_freq[lt_foo]++; }
9057   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9058 }'`
9059   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9060 else
9061   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9062 fi
9063 need_lib_prefix=unknown
9064 hardcode_into_libs=no
9065
9066 # when you set need_version to no, make sure it does not cause -set_version
9067 # flags to be left without arguments
9068 need_version=unknown
9069
9070 case $host_os in
9071 aix3*)
9072   version_type=linux
9073   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9074   shlibpath_var=LIBPATH
9075
9076   # AIX 3 has no versioning support, so we append a major version to the name.
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   ;;
9079
9080 aix[4-9]*)
9081   version_type=linux
9082   need_lib_prefix=no
9083   need_version=no
9084   hardcode_into_libs=yes
9085   if test "$host_cpu" = ia64; then
9086     # AIX 5 supports IA64
9087     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9088     shlibpath_var=LD_LIBRARY_PATH
9089   else
9090     # With GCC up to 2.95.x, collect2 would create an import file
9091     # for dependence libraries.  The import file would start with
9092     # the line `#! .'.  This would cause the generated library to
9093     # depend on `.', always an invalid library.  This was fixed in
9094     # development snapshots of GCC prior to 3.0.
9095     case $host_os in
9096       aix4 | aix4.[01] | aix4.[01].*)
9097       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9098            echo ' yes '
9099            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9100         :
9101       else
9102         can_build_shared=no
9103       fi
9104       ;;
9105     esac
9106     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9107     # soname into executable. Probably we can add versioning support to
9108     # collect2, so additional links can be useful in future.
9109     if test "$aix_use_runtimelinking" = yes; then
9110       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9111       # instead of lib<name>.a to let people know that these are not
9112       # typical AIX shared libraries.
9113       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114     else
9115       # We preserve .a as extension for shared libraries through AIX4.2
9116       # and later when we are not doing run time linking.
9117       library_names_spec='${libname}${release}.a $libname.a'
9118       soname_spec='${libname}${release}${shared_ext}$major'
9119     fi
9120     shlibpath_var=LIBPATH
9121   fi
9122   ;;
9123
9124 amigaos*)
9125   library_names_spec='$libname.ixlibrary $libname.a'
9126   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9127   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'
9128   ;;
9129
9130 beos*)
9131   library_names_spec='${libname}${shared_ext}'
9132   dynamic_linker="$host_os ld.so"
9133   shlibpath_var=LIBRARY_PATH
9134   ;;
9135
9136 bsdi[45]*)
9137   version_type=linux
9138   need_version=no
9139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9144   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9145   # the default ld.so.conf also contains /usr/contrib/lib and
9146   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9147   # libtool to hard-code these into programs
9148   ;;
9149
9150 cygwin* | mingw* | pw32*)
9151   version_type=windows
9152   shrext_cmds=".dll"
9153   need_version=no
9154   need_lib_prefix=no
9155
9156   case $GCC,$host_os in
9157   yes,cygwin* | yes,mingw* | yes,pw32*)
9158     library_names_spec='$libname.dll.a'
9159     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9160     postinstall_cmds='base_file=`basename \${file}`~
9161       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9162       dldir=$destdir/`dirname \$dlpath`~
9163       test -d \$dldir || mkdir -p \$dldir~
9164       $install_prog $dir/$dlname \$dldir/$dlname~
9165       chmod a+x \$dldir/$dlname'
9166     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9167       dlpath=$dir/\$dldll~
9168        $rm \$dlpath'
9169     shlibpath_overrides_runpath=yes
9170
9171     case $host_os in
9172     cygwin*)
9173       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9174       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9175       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9176       ;;
9177     mingw*)
9178       # MinGW DLLs use traditional 'lib' prefix
9179       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9181       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9182         # It is most probably a Windows format PATH printed by
9183         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9184         # path with ; separators, and with drive letters. We can handle the
9185         # drive letters (cygwin fileutils understands them), so leave them,
9186         # especially as we might pass files found there to a mingw objdump,
9187         # which wouldn't understand a cygwinified path. Ahh.
9188         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9189       else
9190         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9191       fi
9192       ;;
9193     pw32*)
9194       # pw32 DLLs use 'pw' prefix rather than 'lib'
9195       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9196       ;;
9197     esac
9198     ;;
9199
9200   *)
9201     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9202     ;;
9203   esac
9204   dynamic_linker='Win32 ld.exe'
9205   # FIXME: first we should search . and the directory the executable is in
9206   shlibpath_var=PATH
9207   ;;
9208
9209 darwin* | rhapsody*)
9210   dynamic_linker="$host_os dyld"
9211   version_type=darwin
9212   need_lib_prefix=no
9213   need_version=no
9214   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9215   soname_spec='${libname}${release}${major}$shared_ext'
9216   shlibpath_overrides_runpath=yes
9217   shlibpath_var=DYLD_LIBRARY_PATH
9218   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9219
9220   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9221   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9222   ;;
9223
9224 dgux*)
9225   version_type=linux
9226   need_lib_prefix=no
9227   need_version=no
9228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9229   soname_spec='${libname}${release}${shared_ext}$major'
9230   shlibpath_var=LD_LIBRARY_PATH
9231   ;;
9232
9233 freebsd1*)
9234   dynamic_linker=no
9235   ;;
9236
9237 freebsd* | dragonfly*)
9238   # DragonFly does not have aout.  When/if they implement a new
9239   # versioning mechanism, adjust this.
9240   if test -x /usr/bin/objformat; then
9241     objformat=`/usr/bin/objformat`
9242   else
9243     case $host_os in
9244     freebsd[123]*) objformat=aout ;;
9245     *) objformat=elf ;;
9246     esac
9247   fi
9248   version_type=freebsd-$objformat
9249   case $version_type in
9250     freebsd-elf*)
9251       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9252       need_version=no
9253       need_lib_prefix=no
9254       ;;
9255     freebsd-*)
9256       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9257       need_version=yes
9258       ;;
9259   esac
9260   shlibpath_var=LD_LIBRARY_PATH
9261   case $host_os in
9262   freebsd2*)
9263     shlibpath_overrides_runpath=yes
9264     ;;
9265   freebsd3.[01]* | freebsdelf3.[01]*)
9266     shlibpath_overrides_runpath=yes
9267     hardcode_into_libs=yes
9268     ;;
9269   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9270   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9271     shlibpath_overrides_runpath=no
9272     hardcode_into_libs=yes
9273     ;;
9274   *) # from 4.6 on, and DragonFly
9275     shlibpath_overrides_runpath=yes
9276     hardcode_into_libs=yes
9277     ;;
9278   esac
9279   ;;
9280
9281 gnu*)
9282   version_type=linux
9283   need_lib_prefix=no
9284   need_version=no
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9286   soname_spec='${libname}${release}${shared_ext}$major'
9287   shlibpath_var=LD_LIBRARY_PATH
9288   hardcode_into_libs=yes
9289   ;;
9290
9291 hpux9* | hpux10* | hpux11*)
9292   # Give a soname corresponding to the major version so that dld.sl refuses to
9293   # link against other versions.
9294   version_type=sunos
9295   need_lib_prefix=no
9296   need_version=no
9297   case $host_cpu in
9298   ia64*)
9299     shrext_cmds='.so'
9300     hardcode_into_libs=yes
9301     dynamic_linker="$host_os dld.so"
9302     shlibpath_var=LD_LIBRARY_PATH
9303     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305     soname_spec='${libname}${release}${shared_ext}$major'
9306     if test "X$HPUX_IA64_MODE" = X32; then
9307       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9308     else
9309       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9310     fi
9311     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9312     ;;
9313    hppa*64*)
9314      shrext_cmds='.sl'
9315      hardcode_into_libs=yes
9316      dynamic_linker="$host_os dld.sl"
9317      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9318      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9319      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320      soname_spec='${libname}${release}${shared_ext}$major'
9321      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9322      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9323      ;;
9324    *)
9325     shrext_cmds='.sl'
9326     dynamic_linker="$host_os dld.sl"
9327     shlibpath_var=SHLIB_PATH
9328     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330     soname_spec='${libname}${release}${shared_ext}$major'
9331     ;;
9332   esac
9333   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9334   postinstall_cmds='chmod 555 $lib'
9335   ;;
9336
9337 interix[3-9]*)
9338   version_type=linux
9339   need_lib_prefix=no
9340   need_version=no
9341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9342   soname_spec='${libname}${release}${shared_ext}$major'
9343   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9344   shlibpath_var=LD_LIBRARY_PATH
9345   shlibpath_overrides_runpath=no
9346   hardcode_into_libs=yes
9347   ;;
9348
9349 irix5* | irix6* | nonstopux*)
9350   case $host_os in
9351     nonstopux*) version_type=nonstopux ;;
9352     *)
9353         if test "$lt_cv_prog_gnu_ld" = yes; then
9354                 version_type=linux
9355         else
9356                 version_type=irix
9357         fi ;;
9358   esac
9359   need_lib_prefix=no
9360   need_version=no
9361   soname_spec='${libname}${release}${shared_ext}$major'
9362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9363   case $host_os in
9364   irix5* | nonstopux*)
9365     libsuff= shlibsuff=
9366     ;;
9367   *)
9368     case $LD in # libtool.m4 will add one of these switches to LD
9369     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9370       libsuff= shlibsuff= libmagic=32-bit;;
9371     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9372       libsuff=32 shlibsuff=N32 libmagic=N32;;
9373     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9374       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9375     *) libsuff= shlibsuff= libmagic=never-match;;
9376     esac
9377     ;;
9378   esac
9379   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9380   shlibpath_overrides_runpath=no
9381   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9382   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9383   hardcode_into_libs=yes
9384   ;;
9385
9386 # No shared lib support for Linux oldld, aout, or coff.
9387 linux*oldld* | linux*aout* | linux*coff*)
9388   dynamic_linker=no
9389   ;;
9390
9391 # This must be Linux ELF.
9392 linux* | k*bsd*-gnu)
9393   version_type=linux
9394   need_lib_prefix=no
9395   need_version=no
9396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397   soname_spec='${libname}${release}${shared_ext}$major'
9398   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9399   shlibpath_var=LD_LIBRARY_PATH
9400   shlibpath_overrides_runpath=no
9401   # This implies no fast_install, which is unacceptable.
9402   # Some rework will be needed to allow for fast_install
9403   # before this can be enabled.
9404   hardcode_into_libs=yes
9405
9406   # Append ld.so.conf contents to the search path
9407   if test -f /etc/ld.so.conf; then
9408     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9409     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9410   fi
9411
9412   # We used to test for /lib/ld.so.1 and disable shared libraries on
9413   # powerpc, because MkLinux only supported shared libraries with the
9414   # GNU dynamic linker.  Since this was broken with cross compilers,
9415   # most powerpc-linux boxes support dynamic linking these days and
9416   # people can always --disable-shared, the test was removed, and we
9417   # assume the GNU/Linux dynamic linker is in use.
9418   dynamic_linker='GNU/Linux ld.so'
9419   ;;
9420
9421 netbsdelf*-gnu)
9422   version_type=linux
9423   need_lib_prefix=no
9424   need_version=no
9425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9426   soname_spec='${libname}${release}${shared_ext}$major'
9427   shlibpath_var=LD_LIBRARY_PATH
9428   shlibpath_overrides_runpath=no
9429   hardcode_into_libs=yes
9430   dynamic_linker='NetBSD ld.elf_so'
9431   ;;
9432
9433 netbsd*)
9434   version_type=sunos
9435   need_lib_prefix=no
9436   need_version=no
9437   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9439     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9440     dynamic_linker='NetBSD (a.out) ld.so'
9441   else
9442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9443     soname_spec='${libname}${release}${shared_ext}$major'
9444     dynamic_linker='NetBSD ld.elf_so'
9445   fi
9446   shlibpath_var=LD_LIBRARY_PATH
9447   shlibpath_overrides_runpath=yes
9448   hardcode_into_libs=yes
9449   ;;
9450
9451 newsos6)
9452   version_type=linux
9453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454   shlibpath_var=LD_LIBRARY_PATH
9455   shlibpath_overrides_runpath=yes
9456   ;;
9457
9458 nto-qnx*)
9459   version_type=linux
9460   need_lib_prefix=no
9461   need_version=no
9462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463   soname_spec='${libname}${release}${shared_ext}$major'
9464   shlibpath_var=LD_LIBRARY_PATH
9465   shlibpath_overrides_runpath=yes
9466   ;;
9467
9468 openbsd*)
9469   version_type=sunos
9470   sys_lib_dlsearch_path_spec="/usr/lib"
9471   need_lib_prefix=no
9472   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9473   case $host_os in
9474     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9475     *)                         need_version=no  ;;
9476   esac
9477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9478   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9479   shlibpath_var=LD_LIBRARY_PATH
9480   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9481     case $host_os in
9482       openbsd2.[89] | openbsd2.[89].*)
9483         shlibpath_overrides_runpath=no
9484         ;;
9485       *)
9486         shlibpath_overrides_runpath=yes
9487         ;;
9488       esac
9489   else
9490     shlibpath_overrides_runpath=yes
9491   fi
9492   ;;
9493
9494 os2*)
9495   libname_spec='$name'
9496   shrext_cmds=".dll"
9497   need_lib_prefix=no
9498   library_names_spec='$libname${shared_ext} $libname.a'
9499   dynamic_linker='OS/2 ld.exe'
9500   shlibpath_var=LIBPATH
9501   ;;
9502
9503 osf3* | osf4* | osf5*)
9504   version_type=osf
9505   need_lib_prefix=no
9506   need_version=no
9507   soname_spec='${libname}${release}${shared_ext}$major'
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509   shlibpath_var=LD_LIBRARY_PATH
9510   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9511   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9512   ;;
9513
9514 rdos*)
9515   dynamic_linker=no
9516   ;;
9517
9518 solaris*)
9519   version_type=linux
9520   need_lib_prefix=no
9521   need_version=no
9522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523   soname_spec='${libname}${release}${shared_ext}$major'
9524   shlibpath_var=LD_LIBRARY_PATH
9525   shlibpath_overrides_runpath=yes
9526   hardcode_into_libs=yes
9527   # ldd complains unless libraries are executable
9528   postinstall_cmds='chmod +x $lib'
9529   ;;
9530
9531 sunos4*)
9532   version_type=sunos
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9534   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9535   shlibpath_var=LD_LIBRARY_PATH
9536   shlibpath_overrides_runpath=yes
9537   if test "$with_gnu_ld" = yes; then
9538     need_lib_prefix=no
9539   fi
9540   need_version=yes
9541   ;;
9542
9543 sysv4 | sysv4.3*)
9544   version_type=linux
9545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546   soname_spec='${libname}${release}${shared_ext}$major'
9547   shlibpath_var=LD_LIBRARY_PATH
9548   case $host_vendor in
9549     sni)
9550       shlibpath_overrides_runpath=no
9551       need_lib_prefix=no
9552       export_dynamic_flag_spec='${wl}-Blargedynsym'
9553       runpath_var=LD_RUN_PATH
9554       ;;
9555     siemens)
9556       need_lib_prefix=no
9557       ;;
9558     motorola)
9559       need_lib_prefix=no
9560       need_version=no
9561       shlibpath_overrides_runpath=no
9562       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9563       ;;
9564   esac
9565   ;;
9566
9567 sysv4*MP*)
9568   if test -d /usr/nec ;then
9569     version_type=linux
9570     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9571     soname_spec='$libname${shared_ext}.$major'
9572     shlibpath_var=LD_LIBRARY_PATH
9573   fi
9574   ;;
9575
9576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9577   version_type=freebsd-elf
9578   need_lib_prefix=no
9579   need_version=no
9580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9581   soname_spec='${libname}${release}${shared_ext}$major'
9582   shlibpath_var=LD_LIBRARY_PATH
9583   hardcode_into_libs=yes
9584   if test "$with_gnu_ld" = yes; then
9585     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9586     shlibpath_overrides_runpath=no
9587   else
9588     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9589     shlibpath_overrides_runpath=yes
9590     case $host_os in
9591       sco3.2v5*)
9592         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9593         ;;
9594     esac
9595   fi
9596   sys_lib_dlsearch_path_spec='/usr/lib'
9597   ;;
9598
9599 uts4*)
9600   version_type=linux
9601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602   soname_spec='${libname}${release}${shared_ext}$major'
9603   shlibpath_var=LD_LIBRARY_PATH
9604   ;;
9605
9606 *)
9607   dynamic_linker=no
9608   ;;
9609 esac
9610 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9611 echo "${ECHO_T}$dynamic_linker" >&6; }
9612 test "$dynamic_linker" = no && can_build_shared=no
9613
9614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9615   echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9618 fi
9619
9620 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9621 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9625 fi
9626
9627 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9628
9629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9630 if test "$GCC" = yes; then
9631   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9632 fi
9633
9634 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9635 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9636 hardcode_action=
9637 if test -n "$hardcode_libdir_flag_spec" || \
9638    test -n "$runpath_var" || \
9639    test "X$hardcode_automatic" = "Xyes" ; then
9640
9641   # We can hardcode non-existant directories.
9642   if test "$hardcode_direct" != no &&
9643      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9644      # have to relink, otherwise we might link with an installed library
9645      # when we should be linking with a yet-to-be-installed one
9646      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9647      test "$hardcode_minus_L" != no; then
9648     # Linking always hardcodes the temporary library directory.
9649     hardcode_action=relink
9650   else
9651     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9652     hardcode_action=immediate
9653   fi
9654 else
9655   # We cannot hardcode anything, or else we can only hardcode existing
9656   # directories.
9657   hardcode_action=unsupported
9658 fi
9659 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9660 echo "${ECHO_T}$hardcode_action" >&6; }
9661
9662 if test "$hardcode_action" = relink; then
9663   # Fast installation is not supported
9664   enable_fast_install=no
9665 elif test "$shlibpath_overrides_runpath" = yes ||
9666      test "$enable_shared" = no; then
9667   # Fast installation is not necessary
9668   enable_fast_install=needless
9669 fi
9670
9671 striplib=
9672 old_striplib=
9673 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9674 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9675 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9676   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9677   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9678   { echo "$as_me:$LINENO: result: yes" >&5
9679 echo "${ECHO_T}yes" >&6; }
9680 else
9681 # FIXME - insert some real tests, host_os isn't really good enough
9682   case $host_os in
9683    darwin*)
9684        if test -n "$STRIP" ; then
9685          striplib="$STRIP -x"
9686          old_striplib="$STRIP -S"
9687          { echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6; }
9689        else
9690   { echo "$as_me:$LINENO: result: no" >&5
9691 echo "${ECHO_T}no" >&6; }
9692 fi
9693        ;;
9694    *)
9695   { echo "$as_me:$LINENO: result: no" >&5
9696 echo "${ECHO_T}no" >&6; }
9697     ;;
9698   esac
9699 fi
9700
9701 if test "x$enable_dlopen" != xyes; then
9702   enable_dlopen=unknown
9703   enable_dlopen_self=unknown
9704   enable_dlopen_self_static=unknown
9705 else
9706   lt_cv_dlopen=no
9707   lt_cv_dlopen_libs=
9708
9709   case $host_os in
9710   beos*)
9711     lt_cv_dlopen="load_add_on"
9712     lt_cv_dlopen_libs=
9713     lt_cv_dlopen_self=yes
9714     ;;
9715
9716   mingw* | pw32*)
9717     lt_cv_dlopen="LoadLibrary"
9718     lt_cv_dlopen_libs=
9719    ;;
9720
9721   cygwin*)
9722     lt_cv_dlopen="dlopen"
9723     lt_cv_dlopen_libs=
9724    ;;
9725
9726   darwin*)
9727   # if libdl is installed we need to link against it
9728     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9731   echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733   ac_check_lib_save_LIBS=$LIBS
9734 LIBS="-ldl  $LIBS"
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741
9742 /* Override any GCC internal prototype to avoid an error.
9743    Use char because int might match the return type of a GCC
9744    builtin and then its argument prototype would still apply.  */
9745 #ifdef __cplusplus
9746 extern "C"
9747 #endif
9748 char dlopen ();
9749 int
9750 main ()
9751 {
9752 return dlopen ();
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9759 case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_link") 2>conftest.er1
9765   ac_status=$?
9766   grep -v '^ *+' conftest.er1 >conftest.err
9767   rm -f conftest.er1
9768   cat conftest.err >&5
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } && {
9771          test -z "$ac_c_werror_flag" ||
9772          test ! -s conftest.err
9773        } && test -s conftest$ac_exeext &&
9774        $as_test_x conftest$ac_exeext; then
9775   ac_cv_lib_dl_dlopen=yes
9776 else
9777   echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780         ac_cv_lib_dl_dlopen=no
9781 fi
9782
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784       conftest$ac_exeext conftest.$ac_ext
9785 LIBS=$ac_check_lib_save_LIBS
9786 fi
9787 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9788 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9789 if test $ac_cv_lib_dl_dlopen = yes; then
9790   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9791 else
9792
9793     lt_cv_dlopen="dyld"
9794     lt_cv_dlopen_libs=
9795     lt_cv_dlopen_self=yes
9796
9797 fi
9798
9799    ;;
9800
9801   *)
9802     { echo "$as_me:$LINENO: checking for shl_load" >&5
9803 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9804 if test "${ac_cv_func_shl_load+set}" = set; then
9805   echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807   cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h.  */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h.  */
9813 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9815 #define shl_load innocuous_shl_load
9816
9817 /* System header to define __stub macros and hopefully few prototypes,
9818     which can conflict with char shl_load (); below.
9819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820     <limits.h> exists even on freestanding compilers.  */
9821
9822 #ifdef __STDC__
9823 # include <limits.h>
9824 #else
9825 # include <assert.h>
9826 #endif
9827
9828 #undef shl_load
9829
9830 /* Override any GCC internal prototype to avoid an error.
9831    Use char because int might match the return type of a GCC
9832    builtin and then its argument prototype would still apply.  */
9833 #ifdef __cplusplus
9834 extern "C"
9835 #endif
9836 char shl_load ();
9837 /* The GNU C library defines this for functions which it implements
9838     to always fail with ENOSYS.  Some functions are actually named
9839     something starting with __ and the normal name is an alias.  */
9840 #if defined __stub_shl_load || defined __stub___shl_load
9841 choke me
9842 #endif
9843
9844 int
9845 main ()
9846 {
9847 return shl_load ();
9848   ;
9849   return 0;
9850 }
9851 _ACEOF
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (ac_try="$ac_link"
9854 case "(($ac_try" in
9855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856   *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859   (eval "$ac_link") 2>conftest.er1
9860   ac_status=$?
9861   grep -v '^ *+' conftest.er1 >conftest.err
9862   rm -f conftest.er1
9863   cat conftest.err >&5
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); } && {
9866          test -z "$ac_c_werror_flag" ||
9867          test ! -s conftest.err
9868        } && test -s conftest$ac_exeext &&
9869        $as_test_x conftest$ac_exeext; then
9870   ac_cv_func_shl_load=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875         ac_cv_func_shl_load=no
9876 fi
9877
9878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879       conftest$ac_exeext conftest.$ac_ext
9880 fi
9881 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9883 if test $ac_cv_func_shl_load = yes; then
9884   lt_cv_dlopen="shl_load"
9885 else
9886   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9887 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   ac_check_lib_save_LIBS=$LIBS
9892 LIBS="-ldld  $LIBS"
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h.  */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h.  */
9899
9900 /* Override any GCC internal prototype to avoid an error.
9901    Use char because int might match the return type of a GCC
9902    builtin and then its argument prototype would still apply.  */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char shl_load ();
9907 int
9908 main ()
9909 {
9910 return shl_load ();
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_link") 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } && {
9929          test -z "$ac_c_werror_flag" ||
9930          test ! -s conftest.err
9931        } && test -s conftest$ac_exeext &&
9932        $as_test_x conftest$ac_exeext; then
9933   ac_cv_lib_dld_shl_load=yes
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938         ac_cv_lib_dld_shl_load=no
9939 fi
9940
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942       conftest$ac_exeext conftest.$ac_ext
9943 LIBS=$ac_check_lib_save_LIBS
9944 fi
9945 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9946 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9947 if test $ac_cv_lib_dld_shl_load = yes; then
9948   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9949 else
9950   { echo "$as_me:$LINENO: checking for dlopen" >&5
9951 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9952 if test "${ac_cv_func_dlopen+set}" = set; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9963 #define dlopen innocuous_dlopen
9964
9965 /* System header to define __stub macros and hopefully few prototypes,
9966     which can conflict with char dlopen (); below.
9967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9968     <limits.h> exists even on freestanding compilers.  */
9969
9970 #ifdef __STDC__
9971 # include <limits.h>
9972 #else
9973 # include <assert.h>
9974 #endif
9975
9976 #undef dlopen
9977
9978 /* Override any GCC internal prototype to avoid an error.
9979    Use char because int might match the return type of a GCC
9980    builtin and then its argument prototype would still apply.  */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 char dlopen ();
9985 /* The GNU C library defines this for functions which it implements
9986     to always fail with ENOSYS.  Some functions are actually named
9987     something starting with __ and the normal name is an alias.  */
9988 #if defined __stub_dlopen || defined __stub___dlopen
9989 choke me
9990 #endif
9991
9992 int
9993 main ()
9994 {
9995 return dlopen ();
9996   ;
9997   return 0;
9998 }
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_link") 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } && {
10014          test -z "$ac_c_werror_flag" ||
10015          test ! -s conftest.err
10016        } && test -s conftest$ac_exeext &&
10017        $as_test_x conftest$ac_exeext; then
10018   ac_cv_func_dlopen=yes
10019 else
10020   echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10022
10023         ac_cv_func_dlopen=no
10024 fi
10025
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027       conftest$ac_exeext conftest.$ac_ext
10028 fi
10029 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10030 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10031 if test $ac_cv_func_dlopen = yes; then
10032   lt_cv_dlopen="dlopen"
10033 else
10034   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   ac_check_lib_save_LIBS=$LIBS
10040 LIBS="-ldl  $LIBS"
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047
10048 /* Override any GCC internal prototype to avoid an error.
10049    Use char because int might match the return type of a GCC
10050    builtin and then its argument prototype would still apply.  */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 char dlopen ();
10055 int
10056 main ()
10057 {
10058 return dlopen ();
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070   (eval "$ac_link") 2>conftest.er1
10071   ac_status=$?
10072   grep -v '^ *+' conftest.er1 >conftest.err
10073   rm -f conftest.er1
10074   cat conftest.err >&5
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } && {
10077          test -z "$ac_c_werror_flag" ||
10078          test ! -s conftest.err
10079        } && test -s conftest$ac_exeext &&
10080        $as_test_x conftest$ac_exeext; then
10081   ac_cv_lib_dl_dlopen=yes
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086         ac_cv_lib_dl_dlopen=no
10087 fi
10088
10089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090       conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_lib_save_LIBS
10092 fi
10093 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10094 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10095 if test $ac_cv_lib_dl_dlopen = yes; then
10096   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10097 else
10098   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10099 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10100 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103   ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-lsvld  $LIBS"
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113    Use char because int might match the return type of a GCC
10114    builtin and then its argument prototype would still apply.  */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char dlopen ();
10119 int
10120 main ()
10121 {
10122 return dlopen ();
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131   *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134   (eval "$ac_link") 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } && {
10141          test -z "$ac_c_werror_flag" ||
10142          test ! -s conftest.err
10143        } && test -s conftest$ac_exeext &&
10144        $as_test_x conftest$ac_exeext; then
10145   ac_cv_lib_svld_dlopen=yes
10146 else
10147   echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150         ac_cv_lib_svld_dlopen=no
10151 fi
10152
10153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10154       conftest$ac_exeext conftest.$ac_ext
10155 LIBS=$ac_check_lib_save_LIBS
10156 fi
10157 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10158 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10159 if test $ac_cv_lib_svld_dlopen = yes; then
10160   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10161 else
10162   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10163 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10164 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10165   echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167   ac_check_lib_save_LIBS=$LIBS
10168 LIBS="-ldld  $LIBS"
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h.  */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h.  */
10175
10176 /* Override any GCC internal prototype to avoid an error.
10177    Use char because int might match the return type of a GCC
10178    builtin and then its argument prototype would still apply.  */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char dld_link ();
10183 int
10184 main ()
10185 {
10186 return dld_link ();
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195   *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198   (eval "$ac_link") 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } && {
10205          test -z "$ac_c_werror_flag" ||
10206          test ! -s conftest.err
10207        } && test -s conftest$ac_exeext &&
10208        $as_test_x conftest$ac_exeext; then
10209   ac_cv_lib_dld_dld_link=yes
10210 else
10211   echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214         ac_cv_lib_dld_dld_link=no
10215 fi
10216
10217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10218       conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_lib_save_LIBS
10220 fi
10221 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10222 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10223 if test $ac_cv_lib_dld_dld_link = yes; then
10224   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10225 fi
10226
10227
10228 fi
10229
10230
10231 fi
10232
10233
10234 fi
10235
10236
10237 fi
10238
10239
10240 fi
10241
10242     ;;
10243   esac
10244
10245   if test "x$lt_cv_dlopen" != xno; then
10246     enable_dlopen=yes
10247   else
10248     enable_dlopen=no
10249   fi
10250
10251   case $lt_cv_dlopen in
10252   dlopen)
10253     save_CPPFLAGS="$CPPFLAGS"
10254     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10255
10256     save_LDFLAGS="$LDFLAGS"
10257     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10258
10259     save_LIBS="$LIBS"
10260     LIBS="$lt_cv_dlopen_libs $LIBS"
10261
10262     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10263 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10264 if test "${lt_cv_dlopen_self+set}" = set; then
10265   echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267           if test "$cross_compiling" = yes; then :
10268   lt_cv_dlopen_self=cross
10269 else
10270   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10271   lt_status=$lt_dlunknown
10272   cat > conftest.$ac_ext <<EOF
10273 #line 10273 "configure"
10274 #include "confdefs.h"
10275
10276 #if HAVE_DLFCN_H
10277 #include <dlfcn.h>
10278 #endif
10279
10280 #include <stdio.h>
10281
10282 #ifdef RTLD_GLOBAL
10283 #  define LT_DLGLOBAL           RTLD_GLOBAL
10284 #else
10285 #  ifdef DL_GLOBAL
10286 #    define LT_DLGLOBAL         DL_GLOBAL
10287 #  else
10288 #    define LT_DLGLOBAL         0
10289 #  endif
10290 #endif
10291
10292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10293    find out it does not work in some platform. */
10294 #ifndef LT_DLLAZY_OR_NOW
10295 #  ifdef RTLD_LAZY
10296 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10297 #  else
10298 #    ifdef DL_LAZY
10299 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10300 #    else
10301 #      ifdef RTLD_NOW
10302 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10303 #      else
10304 #        ifdef DL_NOW
10305 #          define LT_DLLAZY_OR_NOW      DL_NOW
10306 #        else
10307 #          define LT_DLLAZY_OR_NOW      0
10308 #        endif
10309 #      endif
10310 #    endif
10311 #  endif
10312 #endif
10313
10314 #ifdef __cplusplus
10315 extern "C" void exit (int);
10316 #endif
10317
10318 void fnord() { int i=42;}
10319 int main ()
10320 {
10321   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10322   int status = $lt_dlunknown;
10323
10324   if (self)
10325     {
10326       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10327       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10328       /* dlclose (self); */
10329     }
10330   else
10331     puts (dlerror ());
10332
10333     exit (status);
10334 }
10335 EOF
10336   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337   (eval $ac_link) 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10341     (./conftest; exit; ) >&5 2>/dev/null
10342     lt_status=$?
10343     case x$lt_status in
10344       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10345       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10346       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10347     esac
10348   else :
10349     # compilation failed
10350     lt_cv_dlopen_self=no
10351   fi
10352 fi
10353 rm -fr conftest*
10354
10355
10356 fi
10357 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10358 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10359
10360     if test "x$lt_cv_dlopen_self" = xyes; then
10361       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10362       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10363 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10364 if test "${lt_cv_dlopen_self_static+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367           if test "$cross_compiling" = yes; then :
10368   lt_cv_dlopen_self_static=cross
10369 else
10370   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10371   lt_status=$lt_dlunknown
10372   cat > conftest.$ac_ext <<EOF
10373 #line 10373 "configure"
10374 #include "confdefs.h"
10375
10376 #if HAVE_DLFCN_H
10377 #include <dlfcn.h>
10378 #endif
10379
10380 #include <stdio.h>
10381
10382 #ifdef RTLD_GLOBAL
10383 #  define LT_DLGLOBAL           RTLD_GLOBAL
10384 #else
10385 #  ifdef DL_GLOBAL
10386 #    define LT_DLGLOBAL         DL_GLOBAL
10387 #  else
10388 #    define LT_DLGLOBAL         0
10389 #  endif
10390 #endif
10391
10392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10393    find out it does not work in some platform. */
10394 #ifndef LT_DLLAZY_OR_NOW
10395 #  ifdef RTLD_LAZY
10396 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10397 #  else
10398 #    ifdef DL_LAZY
10399 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10400 #    else
10401 #      ifdef RTLD_NOW
10402 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10403 #      else
10404 #        ifdef DL_NOW
10405 #          define LT_DLLAZY_OR_NOW      DL_NOW
10406 #        else
10407 #          define LT_DLLAZY_OR_NOW      0
10408 #        endif
10409 #      endif
10410 #    endif
10411 #  endif
10412 #endif
10413
10414 #ifdef __cplusplus
10415 extern "C" void exit (int);
10416 #endif
10417
10418 void fnord() { int i=42;}
10419 int main ()
10420 {
10421   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10422   int status = $lt_dlunknown;
10423
10424   if (self)
10425     {
10426       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10427       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10428       /* dlclose (self); */
10429     }
10430   else
10431     puts (dlerror ());
10432
10433     exit (status);
10434 }
10435 EOF
10436   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10437   (eval $ac_link) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10441     (./conftest; exit; ) >&5 2>/dev/null
10442     lt_status=$?
10443     case x$lt_status in
10444       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10445       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10446       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10447     esac
10448   else :
10449     # compilation failed
10450     lt_cv_dlopen_self_static=no
10451   fi
10452 fi
10453 rm -fr conftest*
10454
10455
10456 fi
10457 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10458 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10459     fi
10460
10461     CPPFLAGS="$save_CPPFLAGS"
10462     LDFLAGS="$save_LDFLAGS"
10463     LIBS="$save_LIBS"
10464     ;;
10465   esac
10466
10467   case $lt_cv_dlopen_self in
10468   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10469   *) enable_dlopen_self=unknown ;;
10470   esac
10471
10472   case $lt_cv_dlopen_self_static in
10473   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10474   *) enable_dlopen_self_static=unknown ;;
10475   esac
10476 fi
10477
10478
10479 # Report which library types will actually be built
10480 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10481 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10482 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10483 echo "${ECHO_T}$can_build_shared" >&6; }
10484
10485 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10486 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10487 test "$can_build_shared" = "no" && enable_shared=no
10488
10489 # On AIX, shared libraries and static libraries use the same namespace, and
10490 # are all built from PIC.
10491 case $host_os in
10492 aix3*)
10493   test "$enable_shared" = yes && enable_static=no
10494   if test -n "$RANLIB"; then
10495     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10496     postinstall_cmds='$RANLIB $lib'
10497   fi
10498   ;;
10499
10500 aix[4-9]*)
10501   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10502     test "$enable_shared" = yes && enable_static=no
10503   fi
10504     ;;
10505 esac
10506 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10507 echo "${ECHO_T}$enable_shared" >&6; }
10508
10509 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10510 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10511 # Make sure either enable_shared or enable_static is yes.
10512 test "$enable_shared" = yes || enable_static=yes
10513 { echo "$as_me:$LINENO: result: $enable_static" >&5
10514 echo "${ECHO_T}$enable_static" >&6; }
10515
10516 # The else clause should only fire when bootstrapping the
10517 # libtool distribution, otherwise you forgot to ship ltmain.sh
10518 # with your package, and you will get complaints that there are
10519 # no rules to generate ltmain.sh.
10520 if test -f "$ltmain"; then
10521   # See if we are running on zsh, and set the options which allow our commands through
10522   # without removal of \ escapes.
10523   if test -n "${ZSH_VERSION+set}" ; then
10524     setopt NO_GLOB_SUBST
10525   fi
10526   # Now quote all the things that may contain metacharacters while being
10527   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10528   # variables and quote the copies for generation of the libtool script.
10529   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10530     SED SHELL STRIP \
10531     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10532     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10533     deplibs_check_method reload_flag reload_cmds need_locks \
10534     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10535     lt_cv_sys_global_symbol_to_c_name_address \
10536     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10537     old_postinstall_cmds old_postuninstall_cmds \
10538     compiler \
10539     CC \
10540     LD \
10541     lt_prog_compiler_wl \
10542     lt_prog_compiler_pic \
10543     lt_prog_compiler_static \
10544     lt_prog_compiler_no_builtin_flag \
10545     export_dynamic_flag_spec \
10546     thread_safe_flag_spec \
10547     whole_archive_flag_spec \
10548     enable_shared_with_static_runtimes \
10549     old_archive_cmds \
10550     old_archive_from_new_cmds \
10551     predep_objects \
10552     postdep_objects \
10553     predeps \
10554     postdeps \
10555     compiler_lib_search_path \
10556     compiler_lib_search_dirs \
10557     archive_cmds \
10558     archive_expsym_cmds \
10559     postinstall_cmds \
10560     postuninstall_cmds \
10561     old_archive_from_expsyms_cmds \
10562     allow_undefined_flag \
10563     no_undefined_flag \
10564     export_symbols_cmds \
10565     hardcode_libdir_flag_spec \
10566     hardcode_libdir_flag_spec_ld \
10567     hardcode_libdir_separator \
10568     hardcode_automatic \
10569     module_cmds \
10570     module_expsym_cmds \
10571     lt_cv_prog_compiler_c_o \
10572     fix_srcfile_path \
10573     exclude_expsyms \
10574     include_expsyms; do
10575
10576     case $var in
10577     old_archive_cmds | \
10578     old_archive_from_new_cmds | \
10579     archive_cmds | \
10580     archive_expsym_cmds | \
10581     module_cmds | \
10582     module_expsym_cmds | \
10583     old_archive_from_expsyms_cmds | \
10584     export_symbols_cmds | \
10585     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10586     postinstall_cmds | postuninstall_cmds | \
10587     old_postinstall_cmds | old_postuninstall_cmds | \
10588     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10589       # Double-quote double-evaled strings.
10590       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10591       ;;
10592     *)
10593       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10594       ;;
10595     esac
10596   done
10597
10598   case $lt_echo in
10599   *'\$0 --fallback-echo"')
10600     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10601     ;;
10602   esac
10603
10604 cfgfile="${ofile}T"
10605   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10606   $rm -f "$cfgfile"
10607   { echo "$as_me:$LINENO: creating $ofile" >&5
10608 echo "$as_me: creating $ofile" >&6;}
10609
10610   cat <<__EOF__ >> "$cfgfile"
10611 #! $SHELL
10612
10613 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10614 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10615 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10616 #
10617 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10618 # Free Software Foundation, Inc.
10619 #
10620 # This file is part of GNU Libtool:
10621 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10622 #
10623 # This program is free software; you can redistribute it and/or modify
10624 # it under the terms of the GNU General Public License as published by
10625 # the Free Software Foundation; either version 2 of the License, or
10626 # (at your option) any later version.
10627 #
10628 # This program is distributed in the hope that it will be useful, but
10629 # WITHOUT ANY WARRANTY; without even the implied warranty of
10630 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10631 # General Public License for more details.
10632 #
10633 # You should have received a copy of the GNU General Public License
10634 # along with this program; if not, write to the Free Software
10635 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10636 #
10637 # As a special exception to the GNU General Public License, if you
10638 # distribute this file as part of a program that contains a
10639 # configuration script generated by Autoconf, you may include it under
10640 # the same distribution terms that you use for the rest of that program.
10641
10642 # A sed program that does not truncate output.
10643 SED=$lt_SED
10644
10645 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10646 Xsed="$SED -e 1s/^X//"
10647
10648 # The HP-UX ksh and POSIX shell print the target directory to stdout
10649 # if CDPATH is set.
10650 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10651
10652 # The names of the tagged configurations supported by this script.
10653 available_tags=
10654
10655 # ### BEGIN LIBTOOL CONFIG
10656
10657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10658
10659 # Shell to use when invoking shell scripts.
10660 SHELL=$lt_SHELL
10661
10662 # Whether or not to build shared libraries.
10663 build_libtool_libs=$enable_shared
10664
10665 # Whether or not to build static libraries.
10666 build_old_libs=$enable_static
10667
10668 # Whether or not to add -lc for building shared libraries.
10669 build_libtool_need_lc=$archive_cmds_need_lc
10670
10671 # Whether or not to disallow shared libs when runtime libs are static
10672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10673
10674 # Whether or not to optimize for fast installation.
10675 fast_install=$enable_fast_install
10676
10677 # The host system.
10678 host_alias=$host_alias
10679 host=$host
10680 host_os=$host_os
10681
10682 # The build system.
10683 build_alias=$build_alias
10684 build=$build
10685 build_os=$build_os
10686
10687 # An echo program that does not interpret backslashes.
10688 echo=$lt_echo
10689
10690 # The archiver.
10691 AR=$lt_AR
10692 AR_FLAGS=$lt_AR_FLAGS
10693
10694 # A C compiler.
10695 LTCC=$lt_LTCC
10696
10697 # LTCC compiler flags.
10698 LTCFLAGS=$lt_LTCFLAGS
10699
10700 # A language-specific compiler.
10701 CC=$lt_compiler
10702
10703 # Is the compiler the GNU C compiler?
10704 with_gcc=$GCC
10705
10706 # An ERE matcher.
10707 EGREP=$lt_EGREP
10708
10709 # The linker used to build libraries.
10710 LD=$lt_LD
10711
10712 # Whether we need hard or soft links.
10713 LN_S=$lt_LN_S
10714
10715 # A BSD-compatible nm program.
10716 NM=$lt_NM
10717
10718 # A symbol stripping program
10719 STRIP=$lt_STRIP
10720
10721 # Used to examine libraries when file_magic_cmd begins "file"
10722 MAGIC_CMD=$MAGIC_CMD
10723
10724 # Used on cygwin: DLL creation program.
10725 DLLTOOL="$DLLTOOL"
10726
10727 # Used on cygwin: object dumper.
10728 OBJDUMP="$OBJDUMP"
10729
10730 # Used on cygwin: assembler.
10731 AS="$AS"
10732
10733 # The name of the directory that contains temporary libtool files.
10734 objdir=$objdir
10735
10736 # How to create reloadable object files.
10737 reload_flag=$lt_reload_flag
10738 reload_cmds=$lt_reload_cmds
10739
10740 # How to pass a linker flag through the compiler.
10741 wl=$lt_lt_prog_compiler_wl
10742
10743 # Object file suffix (normally "o").
10744 objext="$ac_objext"
10745
10746 # Old archive suffix (normally "a").
10747 libext="$libext"
10748
10749 # Shared library suffix (normally ".so").
10750 shrext_cmds='$shrext_cmds'
10751
10752 # Executable file suffix (normally "").
10753 exeext="$exeext"
10754
10755 # Additional compiler flags for building library objects.
10756 pic_flag=$lt_lt_prog_compiler_pic
10757 pic_mode=$pic_mode
10758
10759 # What is the maximum length of a command?
10760 max_cmd_len=$lt_cv_sys_max_cmd_len
10761
10762 # Does compiler simultaneously support -c and -o options?
10763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10764
10765 # Must we lock files when doing compilation?
10766 need_locks=$lt_need_locks
10767
10768 # Do we need the lib prefix for modules?
10769 need_lib_prefix=$need_lib_prefix
10770
10771 # Do we need a version for libraries?
10772 need_version=$need_version
10773
10774 # Whether dlopen is supported.
10775 dlopen_support=$enable_dlopen
10776
10777 # Whether dlopen of programs is supported.
10778 dlopen_self=$enable_dlopen_self
10779
10780 # Whether dlopen of statically linked programs is supported.
10781 dlopen_self_static=$enable_dlopen_self_static
10782
10783 # Compiler flag to prevent dynamic linking.
10784 link_static_flag=$lt_lt_prog_compiler_static
10785
10786 # Compiler flag to turn off builtin functions.
10787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10788
10789 # Compiler flag to allow reflexive dlopens.
10790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10791
10792 # Compiler flag to generate shared objects directly from archives.
10793 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10794
10795 # Compiler flag to generate thread-safe objects.
10796 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10797
10798 # Library versioning type.
10799 version_type=$version_type
10800
10801 # Format of library name prefix.
10802 libname_spec=$lt_libname_spec
10803
10804 # List of archive names.  First name is the real one, the rest are links.
10805 # The last name is the one that the linker finds with -lNAME.
10806 library_names_spec=$lt_library_names_spec
10807
10808 # The coded name of the library, if different from the real name.
10809 soname_spec=$lt_soname_spec
10810
10811 # Commands used to build and install an old-style archive.
10812 RANLIB=$lt_RANLIB
10813 old_archive_cmds=$lt_old_archive_cmds
10814 old_postinstall_cmds=$lt_old_postinstall_cmds
10815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10816
10817 # Create an old-style archive from a shared archive.
10818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10819
10820 # Create a temporary old-style archive to link instead of a shared archive.
10821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10822
10823 # Commands used to build and install a shared archive.
10824 archive_cmds=$lt_archive_cmds
10825 archive_expsym_cmds=$lt_archive_expsym_cmds
10826 postinstall_cmds=$lt_postinstall_cmds
10827 postuninstall_cmds=$lt_postuninstall_cmds
10828
10829 # Commands used to build a loadable module (assumed same as above if empty)
10830 module_cmds=$lt_module_cmds
10831 module_expsym_cmds=$lt_module_expsym_cmds
10832
10833 # Commands to strip libraries.
10834 old_striplib=$lt_old_striplib
10835 striplib=$lt_striplib
10836
10837 # Dependencies to place before the objects being linked to create a
10838 # shared library.
10839 predep_objects=$lt_predep_objects
10840
10841 # Dependencies to place after the objects being linked to create a
10842 # shared library.
10843 postdep_objects=$lt_postdep_objects
10844
10845 # Dependencies to place before the objects being linked to create a
10846 # shared library.
10847 predeps=$lt_predeps
10848
10849 # Dependencies to place after the objects being linked to create a
10850 # shared library.
10851 postdeps=$lt_postdeps
10852
10853 # The directories searched by this compiler when creating a shared
10854 # library
10855 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10856
10857 # The library search path used internally by the compiler when linking
10858 # a shared library.
10859 compiler_lib_search_path=$lt_compiler_lib_search_path
10860
10861 # Method to check whether dependent libraries are shared objects.
10862 deplibs_check_method=$lt_deplibs_check_method
10863
10864 # Command to use when deplibs_check_method == file_magic.
10865 file_magic_cmd=$lt_file_magic_cmd
10866
10867 # Flag that allows shared libraries with undefined symbols to be built.
10868 allow_undefined_flag=$lt_allow_undefined_flag
10869
10870 # Flag that forces no undefined symbols.
10871 no_undefined_flag=$lt_no_undefined_flag
10872
10873 # Commands used to finish a libtool library installation in a directory.
10874 finish_cmds=$lt_finish_cmds
10875
10876 # Same as above, but a single script fragment to be evaled but not shown.
10877 finish_eval=$lt_finish_eval
10878
10879 # Take the output of nm and produce a listing of raw symbols and C names.
10880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10881
10882 # Transform the output of nm in a proper C declaration
10883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10884
10885 # Transform the output of nm in a C name address pair
10886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10887
10888 # This is the shared library runtime path variable.
10889 runpath_var=$runpath_var
10890
10891 # This is the shared library path variable.
10892 shlibpath_var=$shlibpath_var
10893
10894 # Is shlibpath searched before the hard-coded library search path?
10895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10896
10897 # How to hardcode a shared library path into an executable.
10898 hardcode_action=$hardcode_action
10899
10900 # Whether we should hardcode library paths into libraries.
10901 hardcode_into_libs=$hardcode_into_libs
10902
10903 # Flag to hardcode \$libdir into a binary during linking.
10904 # This must work even if \$libdir does not exist.
10905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10906
10907 # If ld is used when linking, flag to hardcode \$libdir into
10908 # a binary during linking. This must work even if \$libdir does
10909 # not exist.
10910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10911
10912 # Whether we need a single -rpath flag with a separated argument.
10913 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10914
10915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10916 # resulting binary.
10917 hardcode_direct=$hardcode_direct
10918
10919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10920 # resulting binary.
10921 hardcode_minus_L=$hardcode_minus_L
10922
10923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10924 # the resulting binary.
10925 hardcode_shlibpath_var=$hardcode_shlibpath_var
10926
10927 # Set to yes if building a shared library automatically hardcodes DIR into the library
10928 # and all subsequent libraries and executables linked against it.
10929 hardcode_automatic=$hardcode_automatic
10930
10931 # Variables whose values should be saved in libtool wrapper scripts and
10932 # restored at relink time.
10933 variables_saved_for_relink="$variables_saved_for_relink"
10934
10935 # Whether libtool must link a program against all its dependency libraries.
10936 link_all_deplibs=$link_all_deplibs
10937
10938 # Compile-time system search path for libraries
10939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10940
10941 # Run-time system search path for libraries
10942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10943
10944 # Fix the shell variable \$srcfile for the compiler.
10945 fix_srcfile_path=$lt_fix_srcfile_path
10946
10947 # Set to yes if exported symbols are required.
10948 always_export_symbols=$always_export_symbols
10949
10950 # The commands to list exported symbols.
10951 export_symbols_cmds=$lt_export_symbols_cmds
10952
10953 # The commands to extract the exported symbol list from a shared archive.
10954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10955
10956 # Symbols that should not be listed in the preloaded symbols.
10957 exclude_expsyms=$lt_exclude_expsyms
10958
10959 # Symbols that must always be exported.
10960 include_expsyms=$lt_include_expsyms
10961
10962 # ### END LIBTOOL CONFIG
10963
10964 __EOF__
10965
10966
10967   case $host_os in
10968   aix3*)
10969     cat <<\EOF >> "$cfgfile"
10970
10971 # AIX sometimes has problems with the GCC collect2 program.  For some
10972 # reason, if we set the COLLECT_NAMES environment variable, the problems
10973 # vanish in a puff of smoke.
10974 if test "X${COLLECT_NAMES+set}" != Xset; then
10975   COLLECT_NAMES=
10976   export COLLECT_NAMES
10977 fi
10978 EOF
10979     ;;
10980   esac
10981
10982   # We use sed instead of cat because bash on DJGPP gets confused if
10983   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10984   # text mode, it properly converts lines to CR/LF.  This bash problem
10985   # is reportedly fixed, but why not run on old versions too?
10986   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10987
10988   mv -f "$cfgfile" "$ofile" || \
10989     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10990   chmod +x "$ofile"
10991
10992 else
10993   # If there is no Makefile yet, we rely on a make rule to execute
10994   # `config.status --recheck' to rerun these tests and create the
10995   # libtool script then.
10996   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10997   if test -f "$ltmain_in"; then
10998     test -f Makefile && make "$ltmain"
10999   fi
11000 fi
11001
11002
11003 ac_ext=c
11004 ac_cpp='$CPP $CPPFLAGS'
11005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11008
11009 CC="$lt_save_CC"
11010
11011
11012 # Check whether --with-tags was given.
11013 if test "${with_tags+set}" = set; then
11014   withval=$with_tags; tagnames="$withval"
11015 fi
11016
11017
11018 if test -f "$ltmain" && test -n "$tagnames"; then
11019   if test ! -f "${ofile}"; then
11020     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11021 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11022   fi
11023
11024   if test -z "$LTCC"; then
11025     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11026     if test -z "$LTCC"; then
11027       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11028 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11029     else
11030       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11031 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11032     fi
11033   fi
11034   if test -z "$LTCFLAGS"; then
11035     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11036   fi
11037
11038   # Extract list of available tagged configurations in $ofile.
11039   # Note that this assumes the entire list is on one line.
11040   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11041
11042   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11043   for tagname in $tagnames; do
11044     IFS="$lt_save_ifs"
11045     # Check whether tagname contains only valid characters
11046     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11047     "") ;;
11048     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11049 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11050    { (exit 1); exit 1; }; }
11051         ;;
11052     esac
11053
11054     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11055     then
11056       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11057 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11058    { (exit 1); exit 1; }; }
11059     fi
11060
11061     # Update the list of available tags.
11062     if test -n "$tagname"; then
11063       echo appending configuration tag \"$tagname\" to $ofile
11064
11065       case $tagname in
11066       CXX)
11067         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11068             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11069             (test "X$CXX" != "Xg++"))) ; then
11070           ac_ext=cpp
11071 ac_cpp='$CXXCPP $CPPFLAGS'
11072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11075
11076
11077
11078
11079 archive_cmds_need_lc_CXX=no
11080 allow_undefined_flag_CXX=
11081 always_export_symbols_CXX=no
11082 archive_expsym_cmds_CXX=
11083 export_dynamic_flag_spec_CXX=
11084 hardcode_direct_CXX=no
11085 hardcode_libdir_flag_spec_CXX=
11086 hardcode_libdir_flag_spec_ld_CXX=
11087 hardcode_libdir_separator_CXX=
11088 hardcode_minus_L_CXX=no
11089 hardcode_shlibpath_var_CXX=unsupported
11090 hardcode_automatic_CXX=no
11091 module_cmds_CXX=
11092 module_expsym_cmds_CXX=
11093 link_all_deplibs_CXX=unknown
11094 old_archive_cmds_CXX=$old_archive_cmds
11095 no_undefined_flag_CXX=
11096 whole_archive_flag_spec_CXX=
11097 enable_shared_with_static_runtimes_CXX=no
11098
11099 # Dependencies to place before and after the object being linked:
11100 predep_objects_CXX=
11101 postdep_objects_CXX=
11102 predeps_CXX=
11103 postdeps_CXX=
11104 compiler_lib_search_path_CXX=
11105 compiler_lib_search_dirs_CXX=
11106
11107 # Source file extension for C++ test sources.
11108 ac_ext=cpp
11109
11110 # Object file extension for compiled C++ test sources.
11111 objext=o
11112 objext_CXX=$objext
11113
11114 # Code to be used in simple compile tests
11115 lt_simple_compile_test_code="int some_variable = 0;"
11116
11117 # Code to be used in simple link tests
11118 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11119
11120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11121
11122 # If no C compiler was specified, use CC.
11123 LTCC=${LTCC-"$CC"}
11124
11125 # If no C compiler flags were specified, use CFLAGS.
11126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11127
11128 # Allow CC to be a program name with arguments.
11129 compiler=$CC
11130
11131
11132 # save warnings/boilerplate of simple test code
11133 ac_outfile=conftest.$ac_objext
11134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11136 _lt_compiler_boilerplate=`cat conftest.err`
11137 $rm conftest*
11138
11139 ac_outfile=conftest.$ac_objext
11140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11142 _lt_linker_boilerplate=`cat conftest.err`
11143 $rm -r conftest*
11144
11145
11146 # Allow CC to be a program name with arguments.
11147 lt_save_CC=$CC
11148 lt_save_LD=$LD
11149 lt_save_GCC=$GCC
11150 GCC=$GXX
11151 lt_save_with_gnu_ld=$with_gnu_ld
11152 lt_save_path_LD=$lt_cv_path_LD
11153 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11154   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11155 else
11156   $as_unset lt_cv_prog_gnu_ld
11157 fi
11158 if test -n "${lt_cv_path_LDCXX+set}"; then
11159   lt_cv_path_LD=$lt_cv_path_LDCXX
11160 else
11161   $as_unset lt_cv_path_LD
11162 fi
11163 test -z "${LDCXX+set}" || LD=$LDCXX
11164 CC=${CXX-"c++"}
11165 compiler=$CC
11166 compiler_CXX=$CC
11167 for cc_temp in $compiler""; do
11168   case $cc_temp in
11169     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11170     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11171     \-*) ;;
11172     *) break;;
11173   esac
11174 done
11175 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11176
11177
11178 # We don't want -fno-exception wen compiling C++ code, so set the
11179 # no_builtin_flag separately
11180 if test "$GXX" = yes; then
11181   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11182 else
11183   lt_prog_compiler_no_builtin_flag_CXX=
11184 fi
11185
11186 if test "$GXX" = yes; then
11187   # Set up default GNU C++ configuration
11188
11189
11190 # Check whether --with-gnu-ld was given.
11191 if test "${with_gnu_ld+set}" = set; then
11192   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11193 else
11194   with_gnu_ld=no
11195 fi
11196
11197 ac_prog=ld
11198 if test "$GCC" = yes; then
11199   # Check if gcc -print-prog-name=ld gives a path.
11200   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11201 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11202   case $host in
11203   *-*-mingw*)
11204     # gcc leaves a trailing carriage return which upsets mingw
11205     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11206   *)
11207     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11208   esac
11209   case $ac_prog in
11210     # Accept absolute paths.
11211     [\\/]* | ?:[\\/]*)
11212       re_direlt='/[^/][^/]*/\.\./'
11213       # Canonicalize the pathname of ld
11214       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11215       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11216         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11217       done
11218       test -z "$LD" && LD="$ac_prog"
11219       ;;
11220   "")
11221     # If it fails, then pretend we aren't using GCC.
11222     ac_prog=ld
11223     ;;
11224   *)
11225     # If it is relative, then search for the first ld in PATH.
11226     with_gnu_ld=unknown
11227     ;;
11228   esac
11229 elif test "$with_gnu_ld" = yes; then
11230   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11231 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11232 else
11233   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11234 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11235 fi
11236 if test "${lt_cv_path_LD+set}" = set; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239   if test -z "$LD"; then
11240   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11241   for ac_dir in $PATH; do
11242     IFS="$lt_save_ifs"
11243     test -z "$ac_dir" && ac_dir=.
11244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11245       lt_cv_path_LD="$ac_dir/$ac_prog"
11246       # Check to see if the program is GNU ld.  I'd rather use --version,
11247       # but apparently some variants of GNU ld only accept -v.
11248       # Break only if it was the GNU/non-GNU ld that we prefer.
11249       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11250       *GNU* | *'with BFD'*)
11251         test "$with_gnu_ld" != no && break
11252         ;;
11253       *)
11254         test "$with_gnu_ld" != yes && break
11255         ;;
11256       esac
11257     fi
11258   done
11259   IFS="$lt_save_ifs"
11260 else
11261   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11262 fi
11263 fi
11264
11265 LD="$lt_cv_path_LD"
11266 if test -n "$LD"; then
11267   { echo "$as_me:$LINENO: result: $LD" >&5
11268 echo "${ECHO_T}$LD" >&6; }
11269 else
11270   { echo "$as_me:$LINENO: result: no" >&5
11271 echo "${ECHO_T}no" >&6; }
11272 fi
11273 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11274 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11275    { (exit 1); exit 1; }; }
11276 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11277 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11278 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11282 case `$LD -v 2>&1 </dev/null` in
11283 *GNU* | *'with BFD'*)
11284   lt_cv_prog_gnu_ld=yes
11285   ;;
11286 *)
11287   lt_cv_prog_gnu_ld=no
11288   ;;
11289 esac
11290 fi
11291 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11292 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11293 with_gnu_ld=$lt_cv_prog_gnu_ld
11294
11295
11296
11297   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11298   # archiving commands below assume that GNU ld is being used.
11299   if test "$with_gnu_ld" = yes; then
11300     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11301     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'
11302
11303     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11304     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11305
11306     # If archive_cmds runs LD, not CC, wlarc should be empty
11307     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11308     #     investigate it a little bit more. (MM)
11309     wlarc='${wl}'
11310
11311     # ancient GNU ld didn't support --whole-archive et. al.
11312     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11313         grep 'no-whole-archive' > /dev/null; then
11314       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11315     else
11316       whole_archive_flag_spec_CXX=
11317     fi
11318   else
11319     with_gnu_ld=no
11320     wlarc=
11321
11322     # A generic and very simple default shared library creation
11323     # command for GNU C++ for the case where it uses the native
11324     # linker, instead of GNU ld.  If possible, this setting should
11325     # overridden to take advantage of the native linker features on
11326     # the platform it is being used on.
11327     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11328   fi
11329
11330   # Commands to make compiler produce verbose output that lists
11331   # what "hidden" libraries, object files and flags are used when
11332   # linking a shared library.
11333   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11334
11335 else
11336   GXX=no
11337   with_gnu_ld=no
11338   wlarc=
11339 fi
11340
11341 # PORTME: fill in a description of your system's C++ link characteristics
11342 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11343 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11344 ld_shlibs_CXX=yes
11345 case $host_os in
11346   aix3*)
11347     # FIXME: insert proper C++ library support
11348     ld_shlibs_CXX=no
11349     ;;
11350   aix[4-9]*)
11351     if test "$host_cpu" = ia64; then
11352       # On IA64, the linker does run time linking by default, so we don't
11353       # have to do anything special.
11354       aix_use_runtimelinking=no
11355       exp_sym_flag='-Bexport'
11356       no_entry_flag=""
11357     else
11358       aix_use_runtimelinking=no
11359
11360       # Test if we are trying to use run time linking or normal
11361       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11362       # need to do runtime linking.
11363       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11364         for ld_flag in $LDFLAGS; do
11365           case $ld_flag in
11366           *-brtl*)
11367             aix_use_runtimelinking=yes
11368             break
11369             ;;
11370           esac
11371         done
11372         ;;
11373       esac
11374
11375       exp_sym_flag='-bexport'
11376       no_entry_flag='-bnoentry'
11377     fi
11378
11379     # When large executables or shared objects are built, AIX ld can
11380     # have problems creating the table of contents.  If linking a library
11381     # or program results in "error TOC overflow" add -mminimal-toc to
11382     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11383     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11384
11385     archive_cmds_CXX=''
11386     hardcode_direct_CXX=yes
11387     hardcode_libdir_separator_CXX=':'
11388     link_all_deplibs_CXX=yes
11389
11390     if test "$GXX" = yes; then
11391       case $host_os in aix4.[012]|aix4.[012].*)
11392       # We only want to do this on AIX 4.2 and lower, the check
11393       # below for broken collect2 doesn't work under 4.3+
11394         collect2name=`${CC} -print-prog-name=collect2`
11395         if test -f "$collect2name" && \
11396            strings "$collect2name" | grep resolve_lib_name >/dev/null
11397         then
11398           # We have reworked collect2
11399           :
11400         else
11401           # We have old collect2
11402           hardcode_direct_CXX=unsupported
11403           # It fails to find uninstalled libraries when the uninstalled
11404           # path is not listed in the libpath.  Setting hardcode_minus_L
11405           # to unsupported forces relinking
11406           hardcode_minus_L_CXX=yes
11407           hardcode_libdir_flag_spec_CXX='-L$libdir'
11408           hardcode_libdir_separator_CXX=
11409         fi
11410         ;;
11411       esac
11412       shared_flag='-shared'
11413       if test "$aix_use_runtimelinking" = yes; then
11414         shared_flag="$shared_flag "'${wl}-G'
11415       fi
11416     else
11417       # not using gcc
11418       if test "$host_cpu" = ia64; then
11419         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11420         # chokes on -Wl,-G. The following line is correct:
11421         shared_flag='-G'
11422       else
11423         if test "$aix_use_runtimelinking" = yes; then
11424           shared_flag='${wl}-G'
11425         else
11426           shared_flag='${wl}-bM:SRE'
11427         fi
11428       fi
11429     fi
11430
11431     # It seems that -bexpall does not export symbols beginning with
11432     # underscore (_), so it is better to generate a list of symbols to export.
11433     always_export_symbols_CXX=yes
11434     if test "$aix_use_runtimelinking" = yes; then
11435       # Warning - without using the other runtime loading flags (-brtl),
11436       # -berok will link without error, but may produce a broken library.
11437       allow_undefined_flag_CXX='-berok'
11438       # Determine the default libpath from the value encoded in an empty executable.
11439       cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h.  */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h.  */
11445
11446 int
11447 main ()
11448 {
11449
11450   ;
11451   return 0;
11452 }
11453 _ACEOF
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (ac_try="$ac_link"
11456 case "(($ac_try" in
11457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458   *) ac_try_echo=$ac_try;;
11459 esac
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461   (eval "$ac_link") 2>conftest.er1
11462   ac_status=$?
11463   grep -v '^ *+' conftest.er1 >conftest.err
11464   rm -f conftest.er1
11465   cat conftest.err >&5
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); } && {
11468          test -z "$ac_cxx_werror_flag" ||
11469          test ! -s conftest.err
11470        } && test -s conftest$ac_exeext &&
11471        $as_test_x conftest$ac_exeext; then
11472
11473 lt_aix_libpath_sed='
11474     /Import File Strings/,/^$/ {
11475         /^0/ {
11476             s/^0  *\(.*\)$/\1/
11477             p
11478         }
11479     }'
11480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11481 # Check for a 64-bit object if we didn't find anything.
11482 if test -z "$aix_libpath"; then
11483   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11484 fi
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489
11490 fi
11491
11492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493       conftest$ac_exeext conftest.$ac_ext
11494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11495
11496       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11497
11498       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11499      else
11500       if test "$host_cpu" = ia64; then
11501         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11502         allow_undefined_flag_CXX="-z nodefs"
11503         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11504       else
11505         # Determine the default libpath from the value encoded in an empty executable.
11506         cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512
11513 int
11514 main ()
11515 {
11516
11517   ;
11518   return 0;
11519 }
11520 _ACEOF
11521 rm -f conftest.$ac_objext conftest$ac_exeext
11522 if { (ac_try="$ac_link"
11523 case "(($ac_try" in
11524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525   *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528   (eval "$ac_link") 2>conftest.er1
11529   ac_status=$?
11530   grep -v '^ *+' conftest.er1 >conftest.err
11531   rm -f conftest.er1
11532   cat conftest.err >&5
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } && {
11535          test -z "$ac_cxx_werror_flag" ||
11536          test ! -s conftest.err
11537        } && test -s conftest$ac_exeext &&
11538        $as_test_x conftest$ac_exeext; then
11539
11540 lt_aix_libpath_sed='
11541     /Import File Strings/,/^$/ {
11542         /^0/ {
11543             s/^0  *\(.*\)$/\1/
11544             p
11545         }
11546     }'
11547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11548 # Check for a 64-bit object if we didn't find anything.
11549 if test -z "$aix_libpath"; then
11550   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11551 fi
11552 else
11553   echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11555
11556
11557 fi
11558
11559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11560       conftest$ac_exeext conftest.$ac_ext
11561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11562
11563         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11564         # Warning - without using the other run time loading flags,
11565         # -berok will link without error, but may produce a broken library.
11566         no_undefined_flag_CXX=' ${wl}-bernotok'
11567         allow_undefined_flag_CXX=' ${wl}-berok'
11568         # Exported symbols can be pulled into shared objects from archives
11569         whole_archive_flag_spec_CXX='$convenience'
11570         archive_cmds_need_lc_CXX=yes
11571         # This is similar to how AIX traditionally builds its shared libraries.
11572         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11573       fi
11574     fi
11575     ;;
11576
11577   beos*)
11578     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11579       allow_undefined_flag_CXX=unsupported
11580       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11581       # support --undefined.  This deserves some investigation.  FIXME
11582       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11583     else
11584       ld_shlibs_CXX=no
11585     fi
11586     ;;
11587
11588   chorus*)
11589     case $cc_basename in
11590       *)
11591         # FIXME: insert proper C++ library support
11592         ld_shlibs_CXX=no
11593         ;;
11594     esac
11595     ;;
11596
11597   cygwin* | mingw* | pw32*)
11598     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11599     # as there is no search path for DLLs.
11600     hardcode_libdir_flag_spec_CXX='-L$libdir'
11601     allow_undefined_flag_CXX=unsupported
11602     always_export_symbols_CXX=no
11603     enable_shared_with_static_runtimes_CXX=yes
11604
11605     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11606       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11607       # If the export-symbols file already is a .def file (1st line
11608       # is EXPORTS), use it as is; otherwise, prepend...
11609       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11610         cp $export_symbols $output_objdir/$soname.def;
11611       else
11612         echo EXPORTS > $output_objdir/$soname.def;
11613         cat $export_symbols >> $output_objdir/$soname.def;
11614       fi~
11615       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11616     else
11617       ld_shlibs_CXX=no
11618     fi
11619   ;;
11620       darwin* | rhapsody*)
11621       archive_cmds_need_lc_CXX=no
11622       hardcode_direct_CXX=no
11623       hardcode_automatic_CXX=yes
11624       hardcode_shlibpath_var_CXX=unsupported
11625       whole_archive_flag_spec_CXX=''
11626       link_all_deplibs_CXX=yes
11627       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11628       if test "$GXX" = yes ; then
11629       output_verbose_link_cmd='echo'
11630       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11631       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11632       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11633       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11634       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11635         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11636         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11637       fi
11638       else
11639       case $cc_basename in
11640         xlc*)
11641          output_verbose_link_cmd='echo'
11642           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11643           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11644           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11645           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11646           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}'
11647           ;;
11648        *)
11649          ld_shlibs_CXX=no
11650           ;;
11651       esac
11652       fi
11653         ;;
11654
11655   dgux*)
11656     case $cc_basename in
11657       ec++*)
11658         # FIXME: insert proper C++ library support
11659         ld_shlibs_CXX=no
11660         ;;
11661       ghcx*)
11662         # Green Hills C++ Compiler
11663         # FIXME: insert proper C++ library support
11664         ld_shlibs_CXX=no
11665         ;;
11666       *)
11667         # FIXME: insert proper C++ library support
11668         ld_shlibs_CXX=no
11669         ;;
11670     esac
11671     ;;
11672   freebsd[12]*)
11673     # C++ shared libraries reported to be fairly broken before switch to ELF
11674     ld_shlibs_CXX=no
11675     ;;
11676   freebsd-elf*)
11677     archive_cmds_need_lc_CXX=no
11678     ;;
11679   freebsd* | dragonfly*)
11680     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11681     # conventions
11682     ld_shlibs_CXX=yes
11683     ;;
11684   gnu*)
11685     ;;
11686   hpux9*)
11687     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11688     hardcode_libdir_separator_CXX=:
11689     export_dynamic_flag_spec_CXX='${wl}-E'
11690     hardcode_direct_CXX=yes
11691     hardcode_minus_L_CXX=yes # Not in the search PATH,
11692                                 # but as the default
11693                                 # location of the library.
11694
11695     case $cc_basename in
11696     CC*)
11697       # FIXME: insert proper C++ library support
11698       ld_shlibs_CXX=no
11699       ;;
11700     aCC*)
11701       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'
11702       # Commands to make compiler produce verbose output that lists
11703       # what "hidden" libraries, object files and flags are used when
11704       # linking a shared library.
11705       #
11706       # There doesn't appear to be a way to prevent this compiler from
11707       # explicitly linking system object files so we need to strip them
11708       # from the output so that they don't get included in the library
11709       # dependencies.
11710       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'
11711       ;;
11712     *)
11713       if test "$GXX" = yes; then
11714         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'
11715       else
11716         # FIXME: insert proper C++ library support
11717         ld_shlibs_CXX=no
11718       fi
11719       ;;
11720     esac
11721     ;;
11722   hpux10*|hpux11*)
11723     if test $with_gnu_ld = no; then
11724       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11725       hardcode_libdir_separator_CXX=:
11726
11727       case $host_cpu in
11728       hppa*64*|ia64*) ;;
11729       *)
11730         export_dynamic_flag_spec_CXX='${wl}-E'
11731         ;;
11732       esac
11733     fi
11734     case $host_cpu in
11735     hppa*64*|ia64*)
11736       hardcode_direct_CXX=no
11737       hardcode_shlibpath_var_CXX=no
11738       ;;
11739     *)
11740       hardcode_direct_CXX=yes
11741       hardcode_minus_L_CXX=yes # Not in the search PATH,
11742                                               # but as the default
11743                                               # location of the library.
11744       ;;
11745     esac
11746
11747     case $cc_basename in
11748       CC*)
11749         # FIXME: insert proper C++ library support
11750         ld_shlibs_CXX=no
11751         ;;
11752       aCC*)
11753         case $host_cpu in
11754         hppa*64*)
11755           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11756           ;;
11757         ia64*)
11758           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11759           ;;
11760         *)
11761           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11762           ;;
11763         esac
11764         # Commands to make compiler produce verbose output that lists
11765         # what "hidden" libraries, object files and flags are used when
11766         # linking a shared library.
11767         #
11768         # There doesn't appear to be a way to prevent this compiler from
11769         # explicitly linking system object files so we need to strip them
11770         # from the output so that they don't get included in the library
11771         # dependencies.
11772         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'
11773         ;;
11774       *)
11775         if test "$GXX" = yes; then
11776           if test $with_gnu_ld = no; then
11777             case $host_cpu in
11778             hppa*64*)
11779               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11780               ;;
11781             ia64*)
11782               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11783               ;;
11784             *)
11785               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'
11786               ;;
11787             esac
11788           fi
11789         else
11790           # FIXME: insert proper C++ library support
11791           ld_shlibs_CXX=no
11792         fi
11793         ;;
11794     esac
11795     ;;
11796   interix[3-9]*)
11797     hardcode_direct_CXX=no
11798     hardcode_shlibpath_var_CXX=no
11799     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11800     export_dynamic_flag_spec_CXX='${wl}-E'
11801     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11802     # Instead, shared libraries are loaded at an image base (0x10000000 by
11803     # default) and relocated if they conflict, which is a slow very memory
11804     # consuming and fragmenting process.  To avoid this, we pick a random,
11805     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11806     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11807     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11808     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11809     ;;
11810   irix5* | irix6*)
11811     case $cc_basename in
11812       CC*)
11813         # SGI C++
11814         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 ${output_objdir}/so_locations -o $lib'
11815
11816         # Archives containing C++ object files must be created using
11817         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11818         # necessary to make sure instantiated templates are included
11819         # in the archive.
11820         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11821         ;;
11822       *)
11823         if test "$GXX" = yes; then
11824           if test "$with_gnu_ld" = no; then
11825             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}${output_objdir}/so_locations -o $lib'
11826           else
11827             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'
11828           fi
11829         fi
11830         link_all_deplibs_CXX=yes
11831         ;;
11832     esac
11833     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11834     hardcode_libdir_separator_CXX=:
11835     ;;
11836   linux* | k*bsd*-gnu)
11837     case $cc_basename in
11838       KCC*)
11839         # Kuck and Associates, Inc. (KAI) C++ Compiler
11840
11841         # KCC will only create a shared library if the output file
11842         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11843         # to its proper name (with version) after linking.
11844         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'
11845         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'
11846         # Commands to make compiler produce verbose output that lists
11847         # what "hidden" libraries, object files and flags are used when
11848         # linking a shared library.
11849         #
11850         # There doesn't appear to be a way to prevent this compiler from
11851         # explicitly linking system object files so we need to strip them
11852         # from the output so that they don't get included in the library
11853         # dependencies.
11854         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'
11855
11856         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11857         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11858
11859         # Archives containing C++ object files must be created using
11860         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11861         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11862         ;;
11863       icpc*)
11864         # Intel C++
11865         with_gnu_ld=yes
11866         # version 8.0 and above of icpc choke on multiply defined symbols
11867         # if we add $predep_objects and $postdep_objects, however 7.1 and
11868         # earlier do not add the objects themselves.
11869         case `$CC -V 2>&1` in
11870         *"Version 7."*)
11871           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11872           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'
11873           ;;
11874         *)  # Version 8.0 or newer
11875           tmp_idyn=
11876           case $host_cpu in
11877             ia64*) tmp_idyn=' -i_dynamic';;
11878           esac
11879           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11880           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11881           ;;
11882         esac
11883         archive_cmds_need_lc_CXX=no
11884         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11885         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11886         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11887         ;;
11888       pgCC* | pgcpp*)
11889         # Portland Group C++ compiler
11890         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11891         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11892
11893         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11894         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11895         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11896         ;;
11897       cxx*)
11898         # Compaq C++
11899         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11900         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'
11901
11902         runpath_var=LD_RUN_PATH
11903         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11904         hardcode_libdir_separator_CXX=:
11905
11906         # Commands to make compiler produce verbose output that lists
11907         # what "hidden" libraries, object files and flags are used when
11908         # linking a shared library.
11909         #
11910         # There doesn't appear to be a way to prevent this compiler from
11911         # explicitly linking system object files so we need to strip them
11912         # from the output so that they don't get included in the library
11913         # dependencies.
11914         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'
11915         ;;
11916       *)
11917         case `$CC -V 2>&1 | sed 5q` in
11918         *Sun\ C*)
11919           # Sun C++ 5.9
11920           no_undefined_flag_CXX=' -zdefs'
11921           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11922           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11923           hardcode_libdir_flag_spec_CXX='-R$libdir'
11924           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11925
11926           # Not sure whether something based on
11927           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11928           # would be better.
11929           output_verbose_link_cmd='echo'
11930
11931           # Archives containing C++ object files must be created using
11932           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11933           # necessary to make sure instantiated templates are included
11934           # in the archive.
11935           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11936           ;;
11937         esac
11938         ;;
11939     esac
11940     ;;
11941   lynxos*)
11942     # FIXME: insert proper C++ library support
11943     ld_shlibs_CXX=no
11944     ;;
11945   m88k*)
11946     # FIXME: insert proper C++ library support
11947     ld_shlibs_CXX=no
11948     ;;
11949   mvs*)
11950     case $cc_basename in
11951       cxx*)
11952         # FIXME: insert proper C++ library support
11953         ld_shlibs_CXX=no
11954         ;;
11955       *)
11956         # FIXME: insert proper C++ library support
11957         ld_shlibs_CXX=no
11958         ;;
11959     esac
11960     ;;
11961   netbsd* | netbsdelf*-gnu)
11962     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11963       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11964       wlarc=
11965       hardcode_libdir_flag_spec_CXX='-R$libdir'
11966       hardcode_direct_CXX=yes
11967       hardcode_shlibpath_var_CXX=no
11968     fi
11969     # Workaround some broken pre-1.5 toolchains
11970     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11971     ;;
11972   openbsd2*)
11973     # C++ shared libraries are fairly broken
11974     ld_shlibs_CXX=no
11975     ;;
11976   openbsd*)
11977     if test -f /usr/libexec/ld.so; then
11978       hardcode_direct_CXX=yes
11979       hardcode_shlibpath_var_CXX=no
11980       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11981       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11982       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11983         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11984         export_dynamic_flag_spec_CXX='${wl}-E'
11985         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11986       fi
11987       output_verbose_link_cmd='echo'
11988     else
11989       ld_shlibs_CXX=no
11990     fi
11991     ;;
11992   osf3*)
11993     case $cc_basename in
11994       KCC*)
11995         # Kuck and Associates, Inc. (KAI) C++ Compiler
11996
11997         # KCC will only create a shared library if the output file
11998         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11999         # to its proper name (with version) after linking.
12000         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'
12001
12002         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12003         hardcode_libdir_separator_CXX=:
12004
12005         # Archives containing C++ object files must be created using
12006         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12007         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12008
12009         ;;
12010       RCC*)
12011         # Rational C++ 2.4.1
12012         # FIXME: insert proper C++ library support
12013         ld_shlibs_CXX=no
12014         ;;
12015       cxx*)
12016         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12017         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 ${output_objdir}/so_locations -o $lib'
12018
12019         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12020         hardcode_libdir_separator_CXX=:
12021
12022         # Commands to make compiler produce verbose output that lists
12023         # what "hidden" libraries, object files and flags are used when
12024         # linking a shared library.
12025         #
12026         # There doesn't appear to be a way to prevent this compiler from
12027         # explicitly linking system object files so we need to strip them
12028         # from the output so that they don't get included in the library
12029         # dependencies.
12030         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'
12031         ;;
12032       *)
12033         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12034           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12035           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}${output_objdir}/so_locations -o $lib'
12036
12037           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12038           hardcode_libdir_separator_CXX=:
12039
12040           # Commands to make compiler produce verbose output that lists
12041           # what "hidden" libraries, object files and flags are used when
12042           # linking a shared library.
12043           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12044
12045         else
12046           # FIXME: insert proper C++ library support
12047           ld_shlibs_CXX=no
12048         fi
12049         ;;
12050     esac
12051     ;;
12052   osf4* | osf5*)
12053     case $cc_basename in
12054       KCC*)
12055         # Kuck and Associates, Inc. (KAI) C++ Compiler
12056
12057         # KCC will only create a shared library if the output file
12058         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12059         # to its proper name (with version) after linking.
12060         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'
12061
12062         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12063         hardcode_libdir_separator_CXX=:
12064
12065         # Archives containing C++ object files must be created using
12066         # the KAI C++ compiler.
12067         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12068         ;;
12069       RCC*)
12070         # Rational C++ 2.4.1
12071         # FIXME: insert proper C++ library support
12072         ld_shlibs_CXX=no
12073         ;;
12074       cxx*)
12075         allow_undefined_flag_CXX=' -expect_unresolved \*'
12076         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 ${output_objdir}/so_locations -o $lib'
12077         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12078           echo "-hidden">> $lib.exp~
12079           $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 ${output_objdir}/so_locations -o $lib~
12080           $rm $lib.exp'
12081
12082         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12083         hardcode_libdir_separator_CXX=:
12084
12085         # Commands to make compiler produce verbose output that lists
12086         # what "hidden" libraries, object files and flags are used when
12087         # linking a shared library.
12088         #
12089         # There doesn't appear to be a way to prevent this compiler from
12090         # explicitly linking system object files so we need to strip them
12091         # from the output so that they don't get included in the library
12092         # dependencies.
12093         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'
12094         ;;
12095       *)
12096         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12097           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12098          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}${output_objdir}/so_locations -o $lib'
12099
12100           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12101           hardcode_libdir_separator_CXX=:
12102
12103           # Commands to make compiler produce verbose output that lists
12104           # what "hidden" libraries, object files and flags are used when
12105           # linking a shared library.
12106           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12107
12108         else
12109           # FIXME: insert proper C++ library support
12110           ld_shlibs_CXX=no
12111         fi
12112         ;;
12113     esac
12114     ;;
12115   psos*)
12116     # FIXME: insert proper C++ library support
12117     ld_shlibs_CXX=no
12118     ;;
12119   sunos4*)
12120     case $cc_basename in
12121       CC*)
12122         # Sun C++ 4.x
12123         # FIXME: insert proper C++ library support
12124         ld_shlibs_CXX=no
12125         ;;
12126       lcc*)
12127         # Lucid
12128         # FIXME: insert proper C++ library support
12129         ld_shlibs_CXX=no
12130         ;;
12131       *)
12132         # FIXME: insert proper C++ library support
12133         ld_shlibs_CXX=no
12134         ;;
12135     esac
12136     ;;
12137   solaris*)
12138     case $cc_basename in
12139       CC*)
12140         # Sun C++ 4.2, 5.x and Centerline C++
12141         archive_cmds_need_lc_CXX=yes
12142         no_undefined_flag_CXX=' -zdefs'
12143         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12144         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12145         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12146
12147         hardcode_libdir_flag_spec_CXX='-R$libdir'
12148         hardcode_shlibpath_var_CXX=no
12149         case $host_os in
12150           solaris2.[0-5] | solaris2.[0-5].*) ;;
12151           *)
12152             # The compiler driver will combine and reorder linker options,
12153             # but understands `-z linker_flag'.
12154             # Supported since Solaris 2.6 (maybe 2.5.1?)
12155             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12156             ;;
12157         esac
12158         link_all_deplibs_CXX=yes
12159
12160         output_verbose_link_cmd='echo'
12161
12162         # Archives containing C++ object files must be created using
12163         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12164         # necessary to make sure instantiated templates are included
12165         # in the archive.
12166         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12167         ;;
12168       gcx*)
12169         # Green Hills C++ Compiler
12170         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12171
12172         # The C++ compiler must be used to create the archive.
12173         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12174         ;;
12175       *)
12176         # GNU C++ compiler with Solaris linker
12177         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12178           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12179           if $CC --version | grep -v '^2\.7' > /dev/null; then
12180             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12181             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12182                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12183
12184             # Commands to make compiler produce verbose output that lists
12185             # what "hidden" libraries, object files and flags are used when
12186             # linking a shared library.
12187             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12188           else
12189             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12190             # platform.
12191             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12192             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12193                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12194
12195             # Commands to make compiler produce verbose output that lists
12196             # what "hidden" libraries, object files and flags are used when
12197             # linking a shared library.
12198             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12199           fi
12200
12201           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12202           case $host_os in
12203           solaris2.[0-5] | solaris2.[0-5].*) ;;
12204           *)
12205             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12206             ;;
12207           esac
12208         fi
12209         ;;
12210     esac
12211     ;;
12212   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12213     no_undefined_flag_CXX='${wl}-z,text'
12214     archive_cmds_need_lc_CXX=no
12215     hardcode_shlibpath_var_CXX=no
12216     runpath_var='LD_RUN_PATH'
12217
12218     case $cc_basename in
12219       CC*)
12220         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12221         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12222         ;;
12223       *)
12224         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12225         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12226         ;;
12227     esac
12228     ;;
12229   sysv5* | sco3.2v5* | sco5v6*)
12230     # Note: We can NOT use -z defs as we might desire, because we do not
12231     # link with -lc, and that would cause any symbols used from libc to
12232     # always be unresolved, which means just about no library would
12233     # ever link correctly.  If we're not using GNU ld we use -z text
12234     # though, which does catch some bad symbols but isn't as heavy-handed
12235     # as -z defs.
12236     # For security reasons, it is highly recommended that you always
12237     # use absolute paths for naming shared libraries, and exclude the
12238     # DT_RUNPATH tag from executables and libraries.  But doing so
12239     # requires that you compile everything twice, which is a pain.
12240     # So that behaviour is only enabled if SCOABSPATH is set to a
12241     # non-empty value in the environment.  Most likely only useful for
12242     # creating official distributions of packages.
12243     # This is a hack until libtool officially supports absolute path
12244     # names for shared libraries.
12245     no_undefined_flag_CXX='${wl}-z,text'
12246     allow_undefined_flag_CXX='${wl}-z,nodefs'
12247     archive_cmds_need_lc_CXX=no
12248     hardcode_shlibpath_var_CXX=no
12249     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12250     hardcode_libdir_separator_CXX=':'
12251     link_all_deplibs_CXX=yes
12252     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12253     runpath_var='LD_RUN_PATH'
12254
12255     case $cc_basename in
12256       CC*)
12257         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12258         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12259         ;;
12260       *)
12261         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12262         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12263         ;;
12264     esac
12265     ;;
12266   tandem*)
12267     case $cc_basename in
12268       NCC*)
12269         # NonStop-UX NCC 3.20
12270         # FIXME: insert proper C++ library support
12271         ld_shlibs_CXX=no
12272         ;;
12273       *)
12274         # FIXME: insert proper C++ library support
12275         ld_shlibs_CXX=no
12276         ;;
12277     esac
12278     ;;
12279   vxworks*)
12280     # FIXME: insert proper C++ library support
12281     ld_shlibs_CXX=no
12282     ;;
12283   *)
12284     # FIXME: insert proper C++ library support
12285     ld_shlibs_CXX=no
12286     ;;
12287 esac
12288 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12289 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12290 test "$ld_shlibs_CXX" = no && can_build_shared=no
12291
12292 GCC_CXX="$GXX"
12293 LD_CXX="$LD"
12294
12295 cat > conftest.$ac_ext <<EOF
12296 class Foo
12297 {
12298 public:
12299   Foo (void) { a = 0; }
12300 private:
12301   int a;
12302 };
12303 EOF
12304
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306   (eval $ac_compile) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; then
12310   # Parse the compiler output and extract the necessary
12311   # objects, libraries and library flags.
12312
12313   # Sentinel used to keep track of whether or not we are before
12314   # the conftest object file.
12315   pre_test_object_deps_done=no
12316
12317   # The `*' in the case matches for architectures that use `case' in
12318   # $output_verbose_cmd can trigger glob expansion during the loop
12319   # eval without this substitution.
12320   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12321
12322   for p in `eval $output_verbose_link_cmd`; do
12323     case $p in
12324
12325     -L* | -R* | -l*)
12326        # Some compilers place space between "-{L,R}" and the path.
12327        # Remove the space.
12328        if test $p = "-L" \
12329           || test $p = "-R"; then
12330          prev=$p
12331          continue
12332        else
12333          prev=
12334        fi
12335
12336        if test "$pre_test_object_deps_done" = no; then
12337          case $p in
12338          -L* | -R*)
12339            # Internal compiler library paths should come after those
12340            # provided the user.  The postdeps already come after the
12341            # user supplied libs so there is no need to process them.
12342            if test -z "$compiler_lib_search_path_CXX"; then
12343              compiler_lib_search_path_CXX="${prev}${p}"
12344            else
12345              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12346            fi
12347            ;;
12348          # The "-l" case would never come before the object being
12349          # linked, so don't bother handling this case.
12350          esac
12351        else
12352          if test -z "$postdeps_CXX"; then
12353            postdeps_CXX="${prev}${p}"
12354          else
12355            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12356          fi
12357        fi
12358        ;;
12359
12360     *.$objext)
12361        # This assumes that the test object file only shows up
12362        # once in the compiler output.
12363        if test "$p" = "conftest.$objext"; then
12364          pre_test_object_deps_done=yes
12365          continue
12366        fi
12367
12368        if test "$pre_test_object_deps_done" = no; then
12369          if test -z "$predep_objects_CXX"; then
12370            predep_objects_CXX="$p"
12371          else
12372            predep_objects_CXX="$predep_objects_CXX $p"
12373          fi
12374        else
12375          if test -z "$postdep_objects_CXX"; then
12376            postdep_objects_CXX="$p"
12377          else
12378            postdep_objects_CXX="$postdep_objects_CXX $p"
12379          fi
12380        fi
12381        ;;
12382
12383     *) ;; # Ignore the rest.
12384
12385     esac
12386   done
12387
12388   # Clean up.
12389   rm -f a.out a.exe
12390 else
12391   echo "libtool.m4: error: problem compiling CXX test program"
12392 fi
12393
12394 $rm -f confest.$objext
12395
12396 compiler_lib_search_dirs_CXX=
12397 if test -n "$compiler_lib_search_path_CXX"; then
12398   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12399 fi
12400
12401 # PORTME: override above test on systems where it is broken
12402 case $host_os in
12403 interix[3-9]*)
12404   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12405   # hack all around it, let's just trust "g++" to DTRT.
12406   predep_objects_CXX=
12407   postdep_objects_CXX=
12408   postdeps_CXX=
12409   ;;
12410
12411 linux*)
12412   case `$CC -V 2>&1 | sed 5q` in
12413   *Sun\ C*)
12414     # Sun C++ 5.9
12415     #
12416     # The more standards-conforming stlport4 library is
12417     # incompatible with the Cstd library. Avoid specifying
12418     # it if it's in CXXFLAGS. Ignore libCrun as
12419     # -library=stlport4 depends on it.
12420     case " $CXX $CXXFLAGS " in
12421     *" -library=stlport4 "*)
12422       solaris_use_stlport4=yes
12423       ;;
12424     esac
12425     if test "$solaris_use_stlport4" != yes; then
12426       postdeps_CXX='-library=Cstd -library=Crun'
12427     fi
12428     ;;
12429   esac
12430   ;;
12431
12432 solaris*)
12433   case $cc_basename in
12434   CC*)
12435     # The more standards-conforming stlport4 library is
12436     # incompatible with the Cstd library. Avoid specifying
12437     # it if it's in CXXFLAGS. Ignore libCrun as
12438     # -library=stlport4 depends on it.
12439     case " $CXX $CXXFLAGS " in
12440     *" -library=stlport4 "*)
12441       solaris_use_stlport4=yes
12442       ;;
12443     esac
12444
12445     # Adding this requires a known-good setup of shared libraries for
12446     # Sun compiler versions before 5.6, else PIC objects from an old
12447     # archive will be linked into the output, leading to subtle bugs.
12448     if test "$solaris_use_stlport4" != yes; then
12449       postdeps_CXX='-library=Cstd -library=Crun'
12450     fi
12451     ;;
12452   esac
12453   ;;
12454 esac
12455
12456 case " $postdeps_CXX " in
12457 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12458 esac
12459
12460 lt_prog_compiler_wl_CXX=
12461 lt_prog_compiler_pic_CXX=
12462 lt_prog_compiler_static_CXX=
12463
12464 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12465 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12466
12467   # C++ specific cases for pic, static, wl, etc.
12468   if test "$GXX" = yes; then
12469     lt_prog_compiler_wl_CXX='-Wl,'
12470     lt_prog_compiler_static_CXX='-static'
12471
12472     case $host_os in
12473     aix*)
12474       # All AIX code is PIC.
12475       if test "$host_cpu" = ia64; then
12476         # AIX 5 now supports IA64 processor
12477         lt_prog_compiler_static_CXX='-Bstatic'
12478       fi
12479       ;;
12480     amigaos*)
12481       # FIXME: we need at least 68020 code to build shared libraries, but
12482       # adding the `-m68020' flag to GCC prevents building anything better,
12483       # like `-m68040'.
12484       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12485       ;;
12486     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12487       # PIC is the default for these OSes.
12488       ;;
12489     mingw* | cygwin* | os2* | pw32*)
12490       # This hack is so that the source file can tell whether it is being
12491       # built for inclusion in a dll (and should export symbols for example).
12492       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12493       # (--disable-auto-import) libraries
12494       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12495       ;;
12496     darwin* | rhapsody*)
12497       # PIC is the default on this platform
12498       # Common symbols not allowed in MH_DYLIB files
12499       lt_prog_compiler_pic_CXX='-fno-common'
12500       ;;
12501     *djgpp*)
12502       # DJGPP does not support shared libraries at all
12503       lt_prog_compiler_pic_CXX=
12504       ;;
12505     interix[3-9]*)
12506       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12507       # Instead, we relocate shared libraries at runtime.
12508       ;;
12509     sysv4*MP*)
12510       if test -d /usr/nec; then
12511         lt_prog_compiler_pic_CXX=-Kconform_pic
12512       fi
12513       ;;
12514     hpux*)
12515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12516       # not for PA HP-UX.
12517       case $host_cpu in
12518       hppa*64*|ia64*)
12519         ;;
12520       *)
12521         lt_prog_compiler_pic_CXX='-fPIC'
12522         ;;
12523       esac
12524       ;;
12525     *)
12526       lt_prog_compiler_pic_CXX='-fPIC'
12527       ;;
12528     esac
12529   else
12530     case $host_os in
12531       aix[4-9]*)
12532         # All AIX code is PIC.
12533         if test "$host_cpu" = ia64; then
12534           # AIX 5 now supports IA64 processor
12535           lt_prog_compiler_static_CXX='-Bstatic'
12536         else
12537           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12538         fi
12539         ;;
12540       chorus*)
12541         case $cc_basename in
12542         cxch68*)
12543           # Green Hills C++ Compiler
12544           # _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"
12545           ;;
12546         esac
12547         ;;
12548        darwin*)
12549          # PIC is the default on this platform
12550          # Common symbols not allowed in MH_DYLIB files
12551          case $cc_basename in
12552            xlc*)
12553            lt_prog_compiler_pic_CXX='-qnocommon'
12554            lt_prog_compiler_wl_CXX='-Wl,'
12555            ;;
12556          esac
12557        ;;
12558       dgux*)
12559         case $cc_basename in
12560           ec++*)
12561             lt_prog_compiler_pic_CXX='-KPIC'
12562             ;;
12563           ghcx*)
12564             # Green Hills C++ Compiler
12565             lt_prog_compiler_pic_CXX='-pic'
12566             ;;
12567           *)
12568             ;;
12569         esac
12570         ;;
12571       freebsd* | dragonfly*)
12572         # FreeBSD uses GNU C++
12573         ;;
12574       hpux9* | hpux10* | hpux11*)
12575         case $cc_basename in
12576           CC*)
12577             lt_prog_compiler_wl_CXX='-Wl,'
12578             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12579             if test "$host_cpu" != ia64; then
12580               lt_prog_compiler_pic_CXX='+Z'
12581             fi
12582             ;;
12583           aCC*)
12584             lt_prog_compiler_wl_CXX='-Wl,'
12585             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12586             case $host_cpu in
12587             hppa*64*|ia64*)
12588               # +Z the default
12589               ;;
12590             *)
12591               lt_prog_compiler_pic_CXX='+Z'
12592               ;;
12593             esac
12594             ;;
12595           *)
12596             ;;
12597         esac
12598         ;;
12599       interix*)
12600         # This is c89, which is MS Visual C++ (no shared libs)
12601         # Anyone wants to do a port?
12602         ;;
12603       irix5* | irix6* | nonstopux*)
12604         case $cc_basename in
12605           CC*)
12606             lt_prog_compiler_wl_CXX='-Wl,'
12607             lt_prog_compiler_static_CXX='-non_shared'
12608             # CC pic flag -KPIC is the default.
12609             ;;
12610           *)
12611             ;;
12612         esac
12613         ;;
12614       linux* | k*bsd*-gnu)
12615         case $cc_basename in
12616           KCC*)
12617             # KAI C++ Compiler
12618             lt_prog_compiler_wl_CXX='--backend -Wl,'
12619             lt_prog_compiler_pic_CXX='-fPIC'
12620             ;;
12621           icpc* | ecpc*)
12622             # Intel C++
12623             lt_prog_compiler_wl_CXX='-Wl,'
12624             lt_prog_compiler_pic_CXX='-KPIC'
12625             lt_prog_compiler_static_CXX='-static'
12626             ;;
12627           pgCC* | pgcpp*)
12628             # Portland Group C++ compiler.
12629             lt_prog_compiler_wl_CXX='-Wl,'
12630             lt_prog_compiler_pic_CXX='-fpic'
12631             lt_prog_compiler_static_CXX='-Bstatic'
12632             ;;
12633           cxx*)
12634             # Compaq C++
12635             # Make sure the PIC flag is empty.  It appears that all Alpha
12636             # Linux and Compaq Tru64 Unix objects are PIC.
12637             lt_prog_compiler_pic_CXX=
12638             lt_prog_compiler_static_CXX='-non_shared'
12639             ;;
12640           *)
12641             case `$CC -V 2>&1 | sed 5q` in
12642             *Sun\ C*)
12643               # Sun C++ 5.9
12644               lt_prog_compiler_pic_CXX='-KPIC'
12645               lt_prog_compiler_static_CXX='-Bstatic'
12646               lt_prog_compiler_wl_CXX='-Qoption ld '
12647               ;;
12648             esac
12649             ;;
12650         esac
12651         ;;
12652       lynxos*)
12653         ;;
12654       m88k*)
12655         ;;
12656       mvs*)
12657         case $cc_basename in
12658           cxx*)
12659             lt_prog_compiler_pic_CXX='-W c,exportall'
12660             ;;
12661           *)
12662             ;;
12663         esac
12664         ;;
12665       netbsd* | netbsdelf*-gnu)
12666         ;;
12667       osf3* | osf4* | osf5*)
12668         case $cc_basename in
12669           KCC*)
12670             lt_prog_compiler_wl_CXX='--backend -Wl,'
12671             ;;
12672           RCC*)
12673             # Rational C++ 2.4.1
12674             lt_prog_compiler_pic_CXX='-pic'
12675             ;;
12676           cxx*)
12677             # Digital/Compaq C++
12678             lt_prog_compiler_wl_CXX='-Wl,'
12679             # Make sure the PIC flag is empty.  It appears that all Alpha
12680             # Linux and Compaq Tru64 Unix objects are PIC.
12681             lt_prog_compiler_pic_CXX=
12682             lt_prog_compiler_static_CXX='-non_shared'
12683             ;;
12684           *)
12685             ;;
12686         esac
12687         ;;
12688       psos*)
12689         ;;
12690       solaris*)
12691         case $cc_basename in
12692           CC*)
12693             # Sun C++ 4.2, 5.x and Centerline C++
12694             lt_prog_compiler_pic_CXX='-KPIC'
12695             lt_prog_compiler_static_CXX='-Bstatic'
12696             lt_prog_compiler_wl_CXX='-Qoption ld '
12697             ;;
12698           gcx*)
12699             # Green Hills C++ Compiler
12700             lt_prog_compiler_pic_CXX='-PIC'
12701             ;;
12702           *)
12703             ;;
12704         esac
12705         ;;
12706       sunos4*)
12707         case $cc_basename in
12708           CC*)
12709             # Sun C++ 4.x
12710             lt_prog_compiler_pic_CXX='-pic'
12711             lt_prog_compiler_static_CXX='-Bstatic'
12712             ;;
12713           lcc*)
12714             # Lucid
12715             lt_prog_compiler_pic_CXX='-pic'
12716             ;;
12717           *)
12718             ;;
12719         esac
12720         ;;
12721       tandem*)
12722         case $cc_basename in
12723           NCC*)
12724             # NonStop-UX NCC 3.20
12725             lt_prog_compiler_pic_CXX='-KPIC'
12726             ;;
12727           *)
12728             ;;
12729         esac
12730         ;;
12731       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12732         case $cc_basename in
12733           CC*)
12734             lt_prog_compiler_wl_CXX='-Wl,'
12735             lt_prog_compiler_pic_CXX='-KPIC'
12736             lt_prog_compiler_static_CXX='-Bstatic'
12737             ;;
12738         esac
12739         ;;
12740       vxworks*)
12741         ;;
12742       *)
12743         lt_prog_compiler_can_build_shared_CXX=no
12744         ;;
12745     esac
12746   fi
12747
12748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12749 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12750
12751 #
12752 # Check to make sure the PIC flag actually works.
12753 #
12754 if test -n "$lt_prog_compiler_pic_CXX"; then
12755
12756 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12758 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761   lt_cv_prog_compiler_pic_works_CXX=no
12762   ac_outfile=conftest.$ac_objext
12763    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12764    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12765    # Insert the option either (1) after the last *FLAGS variable, or
12766    # (2) before a word containing "conftest.", or (3) at the end.
12767    # Note that $ac_compile itself does not contain backslashes and begins
12768    # with a dollar sign (not a hyphen), so the echo should work correctly.
12769    # The option is referenced via a variable to avoid confusing sed.
12770    lt_compile=`echo "$ac_compile" | $SED \
12771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12773    -e 's:$: $lt_compiler_flag:'`
12774    (eval echo "\"\$as_me:12774: $lt_compile\"" >&5)
12775    (eval "$lt_compile" 2>conftest.err)
12776    ac_status=$?
12777    cat conftest.err >&5
12778    echo "$as_me:12778: \$? = $ac_status" >&5
12779    if (exit $ac_status) && test -s "$ac_outfile"; then
12780      # The compiler can only warn and ignore the option if not recognized
12781      # So say no if there are warnings other than the usual output.
12782      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12783      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12784      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12785        lt_cv_prog_compiler_pic_works_CXX=yes
12786      fi
12787    fi
12788    $rm conftest*
12789
12790 fi
12791 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12792 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12793
12794 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12795     case $lt_prog_compiler_pic_CXX in
12796      "" | " "*) ;;
12797      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12798      esac
12799 else
12800     lt_prog_compiler_pic_CXX=
12801      lt_prog_compiler_can_build_shared_CXX=no
12802 fi
12803
12804 fi
12805 case $host_os in
12806   # For platforms which do not support PIC, -DPIC is meaningless:
12807   *djgpp*)
12808     lt_prog_compiler_pic_CXX=
12809     ;;
12810   *)
12811     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12812     ;;
12813 esac
12814
12815 #
12816 # Check to make sure the static flag actually works.
12817 #
12818 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12821 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   lt_cv_prog_compiler_static_works_CXX=no
12825    save_LDFLAGS="$LDFLAGS"
12826    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12827    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12828    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12829      # The linker can only warn and ignore the option if not recognized
12830      # So say no if there are warnings
12831      if test -s conftest.err; then
12832        # Append any errors to the config.log.
12833        cat conftest.err 1>&5
12834        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12835        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12836        if diff conftest.exp conftest.er2 >/dev/null; then
12837          lt_cv_prog_compiler_static_works_CXX=yes
12838        fi
12839      else
12840        lt_cv_prog_compiler_static_works_CXX=yes
12841      fi
12842    fi
12843    $rm -r conftest*
12844    LDFLAGS="$save_LDFLAGS"
12845
12846 fi
12847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12848 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12849
12850 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12851     :
12852 else
12853     lt_prog_compiler_static_CXX=
12854 fi
12855
12856
12857 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12858 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12859 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12860   echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862   lt_cv_prog_compiler_c_o_CXX=no
12863    $rm -r conftest 2>/dev/null
12864    mkdir conftest
12865    cd conftest
12866    mkdir out
12867    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12868
12869    lt_compiler_flag="-o out/conftest2.$ac_objext"
12870    # Insert the option either (1) after the last *FLAGS variable, or
12871    # (2) before a word containing "conftest.", or (3) at the end.
12872    # Note that $ac_compile itself does not contain backslashes and begins
12873    # with a dollar sign (not a hyphen), so the echo should work correctly.
12874    lt_compile=`echo "$ac_compile" | $SED \
12875    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12876    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12877    -e 's:$: $lt_compiler_flag:'`
12878    (eval echo "\"\$as_me:12878: $lt_compile\"" >&5)
12879    (eval "$lt_compile" 2>out/conftest.err)
12880    ac_status=$?
12881    cat out/conftest.err >&5
12882    echo "$as_me:12882: \$? = $ac_status" >&5
12883    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12884    then
12885      # The compiler can only warn and ignore the option if not recognized
12886      # So say no if there are warnings
12887      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12888      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12889      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12890        lt_cv_prog_compiler_c_o_CXX=yes
12891      fi
12892    fi
12893    chmod u+w . 2>&5
12894    $rm conftest*
12895    # SGI C++ compiler will create directory out/ii_files/ for
12896    # template instantiation
12897    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12898    $rm out/* && rmdir out
12899    cd ..
12900    rmdir conftest
12901    $rm conftest*
12902
12903 fi
12904 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12906
12907
12908 hard_links="nottested"
12909 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12910   # do not overwrite the value of need_locks provided by the user
12911   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12912 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12913   hard_links=yes
12914   $rm conftest*
12915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12916   touch conftest.a
12917   ln conftest.a conftest.b 2>&5 || hard_links=no
12918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12919   { echo "$as_me:$LINENO: result: $hard_links" >&5
12920 echo "${ECHO_T}$hard_links" >&6; }
12921   if test "$hard_links" = no; then
12922     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12923 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12924     need_locks=warn
12925   fi
12926 else
12927   need_locks=no
12928 fi
12929
12930 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12931 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12932
12933   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12934   case $host_os in
12935   aix[4-9]*)
12936     # If we're using GNU nm, then we don't want the "-C" option.
12937     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12938     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12939       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'
12940     else
12941       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'
12942     fi
12943     ;;
12944   pw32*)
12945     export_symbols_cmds_CXX="$ltdll_cmds"
12946   ;;
12947   cygwin* | mingw*)
12948     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12949   ;;
12950   linux* | k*bsd*-gnu)
12951     link_all_deplibs_CXX=no
12952   ;;
12953   *)
12954     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12955   ;;
12956   esac
12957   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12958
12959 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12960 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12961 test "$ld_shlibs_CXX" = no && can_build_shared=no
12962
12963 #
12964 # Do we need to explicitly link libc?
12965 #
12966 case "x$archive_cmds_need_lc_CXX" in
12967 x|xyes)
12968   # Assume -lc should be added
12969   archive_cmds_need_lc_CXX=yes
12970
12971   if test "$enable_shared" = yes && test "$GCC" = yes; then
12972     case $archive_cmds_CXX in
12973     *'~'*)
12974       # FIXME: we may have to deal with multi-command sequences.
12975       ;;
12976     '$CC '*)
12977       # Test whether the compiler implicitly links with -lc since on some
12978       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12979       # to ld, don't add -lc before -lgcc.
12980       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12982       $rm conftest*
12983       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12984
12985       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986   (eval $ac_compile) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } 2>conftest.err; then
12990         soname=conftest
12991         lib=conftest
12992         libobjs=conftest.$ac_objext
12993         deplibs=
12994         wl=$lt_prog_compiler_wl_CXX
12995         pic_flag=$lt_prog_compiler_pic_CXX
12996         compiler_flags=-v
12997         linker_flags=-v
12998         verstring=
12999         output_objdir=.
13000         libname=conftest
13001         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13002         allow_undefined_flag_CXX=
13003         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13004   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }
13008         then
13009           archive_cmds_need_lc_CXX=no
13010         else
13011           archive_cmds_need_lc_CXX=yes
13012         fi
13013         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13014       else
13015         cat conftest.err 1>&5
13016       fi
13017       $rm conftest*
13018       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13019 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13020       ;;
13021     esac
13022   fi
13023   ;;
13024 esac
13025
13026 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13028 library_names_spec=
13029 libname_spec='lib$name'
13030 soname_spec=
13031 shrext_cmds=".so"
13032 postinstall_cmds=
13033 postuninstall_cmds=
13034 finish_cmds=
13035 finish_eval=
13036 shlibpath_var=
13037 shlibpath_overrides_runpath=unknown
13038 version_type=none
13039 dynamic_linker="$host_os ld.so"
13040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13041
13042 need_lib_prefix=unknown
13043 hardcode_into_libs=no
13044
13045 # when you set need_version to no, make sure it does not cause -set_version
13046 # flags to be left without arguments
13047 need_version=unknown
13048
13049 case $host_os in
13050 aix3*)
13051   version_type=linux
13052   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13053   shlibpath_var=LIBPATH
13054
13055   # AIX 3 has no versioning support, so we append a major version to the name.
13056   soname_spec='${libname}${release}${shared_ext}$major'
13057   ;;
13058
13059 aix[4-9]*)
13060   version_type=linux
13061   need_lib_prefix=no
13062   need_version=no
13063   hardcode_into_libs=yes
13064   if test "$host_cpu" = ia64; then
13065     # AIX 5 supports IA64
13066     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13067     shlibpath_var=LD_LIBRARY_PATH
13068   else
13069     # With GCC up to 2.95.x, collect2 would create an import file
13070     # for dependence libraries.  The import file would start with
13071     # the line `#! .'.  This would cause the generated library to
13072     # depend on `.', always an invalid library.  This was fixed in
13073     # development snapshots of GCC prior to 3.0.
13074     case $host_os in
13075       aix4 | aix4.[01] | aix4.[01].*)
13076       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13077            echo ' yes '
13078            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13079         :
13080       else
13081         can_build_shared=no
13082       fi
13083       ;;
13084     esac
13085     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13086     # soname into executable. Probably we can add versioning support to
13087     # collect2, so additional links can be useful in future.
13088     if test "$aix_use_runtimelinking" = yes; then
13089       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13090       # instead of lib<name>.a to let people know that these are not
13091       # typical AIX shared libraries.
13092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13093     else
13094       # We preserve .a as extension for shared libraries through AIX4.2
13095       # and later when we are not doing run time linking.
13096       library_names_spec='${libname}${release}.a $libname.a'
13097       soname_spec='${libname}${release}${shared_ext}$major'
13098     fi
13099     shlibpath_var=LIBPATH
13100   fi
13101   ;;
13102
13103 amigaos*)
13104   library_names_spec='$libname.ixlibrary $libname.a'
13105   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13106   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'
13107   ;;
13108
13109 beos*)
13110   library_names_spec='${libname}${shared_ext}'
13111   dynamic_linker="$host_os ld.so"
13112   shlibpath_var=LIBRARY_PATH
13113   ;;
13114
13115 bsdi[45]*)
13116   version_type=linux
13117   need_version=no
13118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13119   soname_spec='${libname}${release}${shared_ext}$major'
13120   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13121   shlibpath_var=LD_LIBRARY_PATH
13122   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13123   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13124   # the default ld.so.conf also contains /usr/contrib/lib and
13125   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13126   # libtool to hard-code these into programs
13127   ;;
13128
13129 cygwin* | mingw* | pw32*)
13130   version_type=windows
13131   shrext_cmds=".dll"
13132   need_version=no
13133   need_lib_prefix=no
13134
13135   case $GCC,$host_os in
13136   yes,cygwin* | yes,mingw* | yes,pw32*)
13137     library_names_spec='$libname.dll.a'
13138     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13139     postinstall_cmds='base_file=`basename \${file}`~
13140       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13141       dldir=$destdir/`dirname \$dlpath`~
13142       test -d \$dldir || mkdir -p \$dldir~
13143       $install_prog $dir/$dlname \$dldir/$dlname~
13144       chmod a+x \$dldir/$dlname'
13145     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13146       dlpath=$dir/\$dldll~
13147        $rm \$dlpath'
13148     shlibpath_overrides_runpath=yes
13149
13150     case $host_os in
13151     cygwin*)
13152       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13153       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13154       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13155       ;;
13156     mingw*)
13157       # MinGW DLLs use traditional 'lib' prefix
13158       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13159       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13160       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13161         # It is most probably a Windows format PATH printed by
13162         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13163         # path with ; separators, and with drive letters. We can handle the
13164         # drive letters (cygwin fileutils understands them), so leave them,
13165         # especially as we might pass files found there to a mingw objdump,
13166         # which wouldn't understand a cygwinified path. Ahh.
13167         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13168       else
13169         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13170       fi
13171       ;;
13172     pw32*)
13173       # pw32 DLLs use 'pw' prefix rather than 'lib'
13174       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13175       ;;
13176     esac
13177     ;;
13178
13179   *)
13180     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13181     ;;
13182   esac
13183   dynamic_linker='Win32 ld.exe'
13184   # FIXME: first we should search . and the directory the executable is in
13185   shlibpath_var=PATH
13186   ;;
13187
13188 darwin* | rhapsody*)
13189   dynamic_linker="$host_os dyld"
13190   version_type=darwin
13191   need_lib_prefix=no
13192   need_version=no
13193   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13194   soname_spec='${libname}${release}${major}$shared_ext'
13195   shlibpath_overrides_runpath=yes
13196   shlibpath_var=DYLD_LIBRARY_PATH
13197   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13198
13199   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13200   ;;
13201
13202 dgux*)
13203   version_type=linux
13204   need_lib_prefix=no
13205   need_version=no
13206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13207   soname_spec='${libname}${release}${shared_ext}$major'
13208   shlibpath_var=LD_LIBRARY_PATH
13209   ;;
13210
13211 freebsd1*)
13212   dynamic_linker=no
13213   ;;
13214
13215 freebsd* | dragonfly*)
13216   # DragonFly does not have aout.  When/if they implement a new
13217   # versioning mechanism, adjust this.
13218   if test -x /usr/bin/objformat; then
13219     objformat=`/usr/bin/objformat`
13220   else
13221     case $host_os in
13222     freebsd[123]*) objformat=aout ;;
13223     *) objformat=elf ;;
13224     esac
13225   fi
13226   version_type=freebsd-$objformat
13227   case $version_type in
13228     freebsd-elf*)
13229       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13230       need_version=no
13231       need_lib_prefix=no
13232       ;;
13233     freebsd-*)
13234       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13235       need_version=yes
13236       ;;
13237   esac
13238   shlibpath_var=LD_LIBRARY_PATH
13239   case $host_os in
13240   freebsd2*)
13241     shlibpath_overrides_runpath=yes
13242     ;;
13243   freebsd3.[01]* | freebsdelf3.[01]*)
13244     shlibpath_overrides_runpath=yes
13245     hardcode_into_libs=yes
13246     ;;
13247   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13248   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13249     shlibpath_overrides_runpath=no
13250     hardcode_into_libs=yes
13251     ;;
13252   *) # from 4.6 on, and DragonFly
13253     shlibpath_overrides_runpath=yes
13254     hardcode_into_libs=yes
13255     ;;
13256   esac
13257   ;;
13258
13259 gnu*)
13260   version_type=linux
13261   need_lib_prefix=no
13262   need_version=no
13263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13264   soname_spec='${libname}${release}${shared_ext}$major'
13265   shlibpath_var=LD_LIBRARY_PATH
13266   hardcode_into_libs=yes
13267   ;;
13268
13269 hpux9* | hpux10* | hpux11*)
13270   # Give a soname corresponding to the major version so that dld.sl refuses to
13271   # link against other versions.
13272   version_type=sunos
13273   need_lib_prefix=no
13274   need_version=no
13275   case $host_cpu in
13276   ia64*)
13277     shrext_cmds='.so'
13278     hardcode_into_libs=yes
13279     dynamic_linker="$host_os dld.so"
13280     shlibpath_var=LD_LIBRARY_PATH
13281     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13283     soname_spec='${libname}${release}${shared_ext}$major'
13284     if test "X$HPUX_IA64_MODE" = X32; then
13285       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13286     else
13287       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13288     fi
13289     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13290     ;;
13291    hppa*64*)
13292      shrext_cmds='.sl'
13293      hardcode_into_libs=yes
13294      dynamic_linker="$host_os dld.sl"
13295      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13296      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13297      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298      soname_spec='${libname}${release}${shared_ext}$major'
13299      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13300      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13301      ;;
13302    *)
13303     shrext_cmds='.sl'
13304     dynamic_linker="$host_os dld.sl"
13305     shlibpath_var=SHLIB_PATH
13306     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13308     soname_spec='${libname}${release}${shared_ext}$major'
13309     ;;
13310   esac
13311   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13312   postinstall_cmds='chmod 555 $lib'
13313   ;;
13314
13315 interix[3-9]*)
13316   version_type=linux
13317   need_lib_prefix=no
13318   need_version=no
13319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13320   soname_spec='${libname}${release}${shared_ext}$major'
13321   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13322   shlibpath_var=LD_LIBRARY_PATH
13323   shlibpath_overrides_runpath=no
13324   hardcode_into_libs=yes
13325   ;;
13326
13327 irix5* | irix6* | nonstopux*)
13328   case $host_os in
13329     nonstopux*) version_type=nonstopux ;;
13330     *)
13331         if test "$lt_cv_prog_gnu_ld" = yes; then
13332                 version_type=linux
13333         else
13334                 version_type=irix
13335         fi ;;
13336   esac
13337   need_lib_prefix=no
13338   need_version=no
13339   soname_spec='${libname}${release}${shared_ext}$major'
13340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13341   case $host_os in
13342   irix5* | nonstopux*)
13343     libsuff= shlibsuff=
13344     ;;
13345   *)
13346     case $LD in # libtool.m4 will add one of these switches to LD
13347     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13348       libsuff= shlibsuff= libmagic=32-bit;;
13349     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13350       libsuff=32 shlibsuff=N32 libmagic=N32;;
13351     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13352       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13353     *) libsuff= shlibsuff= libmagic=never-match;;
13354     esac
13355     ;;
13356   esac
13357   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13358   shlibpath_overrides_runpath=no
13359   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13360   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13361   hardcode_into_libs=yes
13362   ;;
13363
13364 # No shared lib support for Linux oldld, aout, or coff.
13365 linux*oldld* | linux*aout* | linux*coff*)
13366   dynamic_linker=no
13367   ;;
13368
13369 # This must be Linux ELF.
13370 linux* | k*bsd*-gnu)
13371   version_type=linux
13372   need_lib_prefix=no
13373   need_version=no
13374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13375   soname_spec='${libname}${release}${shared_ext}$major'
13376   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13377   shlibpath_var=LD_LIBRARY_PATH
13378   shlibpath_overrides_runpath=no
13379   # This implies no fast_install, which is unacceptable.
13380   # Some rework will be needed to allow for fast_install
13381   # before this can be enabled.
13382   hardcode_into_libs=yes
13383
13384   # Append ld.so.conf contents to the search path
13385   if test -f /etc/ld.so.conf; then
13386     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13387     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13388   fi
13389
13390   # We used to test for /lib/ld.so.1 and disable shared libraries on
13391   # powerpc, because MkLinux only supported shared libraries with the
13392   # GNU dynamic linker.  Since this was broken with cross compilers,
13393   # most powerpc-linux boxes support dynamic linking these days and
13394   # people can always --disable-shared, the test was removed, and we
13395   # assume the GNU/Linux dynamic linker is in use.
13396   dynamic_linker='GNU/Linux ld.so'
13397   ;;
13398
13399 netbsdelf*-gnu)
13400   version_type=linux
13401   need_lib_prefix=no
13402   need_version=no
13403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13404   soname_spec='${libname}${release}${shared_ext}$major'
13405   shlibpath_var=LD_LIBRARY_PATH
13406   shlibpath_overrides_runpath=no
13407   hardcode_into_libs=yes
13408   dynamic_linker='NetBSD ld.elf_so'
13409   ;;
13410
13411 netbsd*)
13412   version_type=sunos
13413   need_lib_prefix=no
13414   need_version=no
13415   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13417     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13418     dynamic_linker='NetBSD (a.out) ld.so'
13419   else
13420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13421     soname_spec='${libname}${release}${shared_ext}$major'
13422     dynamic_linker='NetBSD ld.elf_so'
13423   fi
13424   shlibpath_var=LD_LIBRARY_PATH
13425   shlibpath_overrides_runpath=yes
13426   hardcode_into_libs=yes
13427   ;;
13428
13429 newsos6)
13430   version_type=linux
13431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13432   shlibpath_var=LD_LIBRARY_PATH
13433   shlibpath_overrides_runpath=yes
13434   ;;
13435
13436 nto-qnx*)
13437   version_type=linux
13438   need_lib_prefix=no
13439   need_version=no
13440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441   soname_spec='${libname}${release}${shared_ext}$major'
13442   shlibpath_var=LD_LIBRARY_PATH
13443   shlibpath_overrides_runpath=yes
13444   ;;
13445
13446 openbsd*)
13447   version_type=sunos
13448   sys_lib_dlsearch_path_spec="/usr/lib"
13449   need_lib_prefix=no
13450   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13451   case $host_os in
13452     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13453     *)                         need_version=no  ;;
13454   esac
13455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13457   shlibpath_var=LD_LIBRARY_PATH
13458   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13459     case $host_os in
13460       openbsd2.[89] | openbsd2.[89].*)
13461         shlibpath_overrides_runpath=no
13462         ;;
13463       *)
13464         shlibpath_overrides_runpath=yes
13465         ;;
13466       esac
13467   else
13468     shlibpath_overrides_runpath=yes
13469   fi
13470   ;;
13471
13472 os2*)
13473   libname_spec='$name'
13474   shrext_cmds=".dll"
13475   need_lib_prefix=no
13476   library_names_spec='$libname${shared_ext} $libname.a'
13477   dynamic_linker='OS/2 ld.exe'
13478   shlibpath_var=LIBPATH
13479   ;;
13480
13481 osf3* | osf4* | osf5*)
13482   version_type=osf
13483   need_lib_prefix=no
13484   need_version=no
13485   soname_spec='${libname}${release}${shared_ext}$major'
13486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13489   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13490   ;;
13491
13492 rdos*)
13493   dynamic_linker=no
13494   ;;
13495
13496 solaris*)
13497   version_type=linux
13498   need_lib_prefix=no
13499   need_version=no
13500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501   soname_spec='${libname}${release}${shared_ext}$major'
13502   shlibpath_var=LD_LIBRARY_PATH
13503   shlibpath_overrides_runpath=yes
13504   hardcode_into_libs=yes
13505   # ldd complains unless libraries are executable
13506   postinstall_cmds='chmod +x $lib'
13507   ;;
13508
13509 sunos4*)
13510   version_type=sunos
13511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13512   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13513   shlibpath_var=LD_LIBRARY_PATH
13514   shlibpath_overrides_runpath=yes
13515   if test "$with_gnu_ld" = yes; then
13516     need_lib_prefix=no
13517   fi
13518   need_version=yes
13519   ;;
13520
13521 sysv4 | sysv4.3*)
13522   version_type=linux
13523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524   soname_spec='${libname}${release}${shared_ext}$major'
13525   shlibpath_var=LD_LIBRARY_PATH
13526   case $host_vendor in
13527     sni)
13528       shlibpath_overrides_runpath=no
13529       need_lib_prefix=no
13530       export_dynamic_flag_spec='${wl}-Blargedynsym'
13531       runpath_var=LD_RUN_PATH
13532       ;;
13533     siemens)
13534       need_lib_prefix=no
13535       ;;
13536     motorola)
13537       need_lib_prefix=no
13538       need_version=no
13539       shlibpath_overrides_runpath=no
13540       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13541       ;;
13542   esac
13543   ;;
13544
13545 sysv4*MP*)
13546   if test -d /usr/nec ;then
13547     version_type=linux
13548     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13549     soname_spec='$libname${shared_ext}.$major'
13550     shlibpath_var=LD_LIBRARY_PATH
13551   fi
13552   ;;
13553
13554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13555   version_type=freebsd-elf
13556   need_lib_prefix=no
13557   need_version=no
13558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13559   soname_spec='${libname}${release}${shared_ext}$major'
13560   shlibpath_var=LD_LIBRARY_PATH
13561   hardcode_into_libs=yes
13562   if test "$with_gnu_ld" = yes; then
13563     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13564     shlibpath_overrides_runpath=no
13565   else
13566     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13567     shlibpath_overrides_runpath=yes
13568     case $host_os in
13569       sco3.2v5*)
13570         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13571         ;;
13572     esac
13573   fi
13574   sys_lib_dlsearch_path_spec='/usr/lib'
13575   ;;
13576
13577 uts4*)
13578   version_type=linux
13579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13580   soname_spec='${libname}${release}${shared_ext}$major'
13581   shlibpath_var=LD_LIBRARY_PATH
13582   ;;
13583
13584 *)
13585   dynamic_linker=no
13586   ;;
13587 esac
13588 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13589 echo "${ECHO_T}$dynamic_linker" >&6; }
13590 test "$dynamic_linker" = no && can_build_shared=no
13591
13592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13593   echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13596 fi
13597
13598 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13600   echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13603 fi
13604
13605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13606
13607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13608 if test "$GCC" = yes; then
13609   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13610 fi
13611
13612 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13614 hardcode_action_CXX=
13615 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13616    test -n "$runpath_var_CXX" || \
13617    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13618
13619   # We can hardcode non-existant directories.
13620   if test "$hardcode_direct_CXX" != no &&
13621      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13622      # have to relink, otherwise we might link with an installed library
13623      # when we should be linking with a yet-to-be-installed one
13624      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13625      test "$hardcode_minus_L_CXX" != no; then
13626     # Linking always hardcodes the temporary library directory.
13627     hardcode_action_CXX=relink
13628   else
13629     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13630     hardcode_action_CXX=immediate
13631   fi
13632 else
13633   # We cannot hardcode anything, or else we can only hardcode existing
13634   # directories.
13635   hardcode_action_CXX=unsupported
13636 fi
13637 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13638 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13639
13640 if test "$hardcode_action_CXX" = relink; then
13641   # Fast installation is not supported
13642   enable_fast_install=no
13643 elif test "$shlibpath_overrides_runpath" = yes ||
13644      test "$enable_shared" = no; then
13645   # Fast installation is not necessary
13646   enable_fast_install=needless
13647 fi
13648
13649
13650 # The else clause should only fire when bootstrapping the
13651 # libtool distribution, otherwise you forgot to ship ltmain.sh
13652 # with your package, and you will get complaints that there are
13653 # no rules to generate ltmain.sh.
13654 if test -f "$ltmain"; then
13655   # See if we are running on zsh, and set the options which allow our commands through
13656   # without removal of \ escapes.
13657   if test -n "${ZSH_VERSION+set}" ; then
13658     setopt NO_GLOB_SUBST
13659   fi
13660   # Now quote all the things that may contain metacharacters while being
13661   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13662   # variables and quote the copies for generation of the libtool script.
13663   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13664     SED SHELL STRIP \
13665     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13666     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13667     deplibs_check_method reload_flag reload_cmds need_locks \
13668     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13669     lt_cv_sys_global_symbol_to_c_name_address \
13670     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13671     old_postinstall_cmds old_postuninstall_cmds \
13672     compiler_CXX \
13673     CC_CXX \
13674     LD_CXX \
13675     lt_prog_compiler_wl_CXX \
13676     lt_prog_compiler_pic_CXX \
13677     lt_prog_compiler_static_CXX \
13678     lt_prog_compiler_no_builtin_flag_CXX \
13679     export_dynamic_flag_spec_CXX \
13680     thread_safe_flag_spec_CXX \
13681     whole_archive_flag_spec_CXX \
13682     enable_shared_with_static_runtimes_CXX \
13683     old_archive_cmds_CXX \
13684     old_archive_from_new_cmds_CXX \
13685     predep_objects_CXX \
13686     postdep_objects_CXX \
13687     predeps_CXX \
13688     postdeps_CXX \
13689     compiler_lib_search_path_CXX \
13690     compiler_lib_search_dirs_CXX \
13691     archive_cmds_CXX \
13692     archive_expsym_cmds_CXX \
13693     postinstall_cmds_CXX \
13694     postuninstall_cmds_CXX \
13695     old_archive_from_expsyms_cmds_CXX \
13696     allow_undefined_flag_CXX \
13697     no_undefined_flag_CXX \
13698     export_symbols_cmds_CXX \
13699     hardcode_libdir_flag_spec_CXX \
13700     hardcode_libdir_flag_spec_ld_CXX \
13701     hardcode_libdir_separator_CXX \
13702     hardcode_automatic_CXX \
13703     module_cmds_CXX \
13704     module_expsym_cmds_CXX \
13705     lt_cv_prog_compiler_c_o_CXX \
13706     fix_srcfile_path_CXX \
13707     exclude_expsyms_CXX \
13708     include_expsyms_CXX; do
13709
13710     case $var in
13711     old_archive_cmds_CXX | \
13712     old_archive_from_new_cmds_CXX | \
13713     archive_cmds_CXX | \
13714     archive_expsym_cmds_CXX | \
13715     module_cmds_CXX | \
13716     module_expsym_cmds_CXX | \
13717     old_archive_from_expsyms_cmds_CXX | \
13718     export_symbols_cmds_CXX | \
13719     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13720     postinstall_cmds | postuninstall_cmds | \
13721     old_postinstall_cmds | old_postuninstall_cmds | \
13722     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13723       # Double-quote double-evaled strings.
13724       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13725       ;;
13726     *)
13727       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13728       ;;
13729     esac
13730   done
13731
13732   case $lt_echo in
13733   *'\$0 --fallback-echo"')
13734     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13735     ;;
13736   esac
13737
13738 cfgfile="$ofile"
13739
13740   cat <<__EOF__ >> "$cfgfile"
13741 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13742
13743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13744
13745 # Shell to use when invoking shell scripts.
13746 SHELL=$lt_SHELL
13747
13748 # Whether or not to build shared libraries.
13749 build_libtool_libs=$enable_shared
13750
13751 # Whether or not to build static libraries.
13752 build_old_libs=$enable_static
13753
13754 # Whether or not to add -lc for building shared libraries.
13755 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13756
13757 # Whether or not to disallow shared libs when runtime libs are static
13758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13759
13760 # Whether or not to optimize for fast installation.
13761 fast_install=$enable_fast_install
13762
13763 # The host system.
13764 host_alias=$host_alias
13765 host=$host
13766 host_os=$host_os
13767
13768 # The build system.
13769 build_alias=$build_alias
13770 build=$build
13771 build_os=$build_os
13772
13773 # An echo program that does not interpret backslashes.
13774 echo=$lt_echo
13775
13776 # The archiver.
13777 AR=$lt_AR
13778 AR_FLAGS=$lt_AR_FLAGS
13779
13780 # A C compiler.
13781 LTCC=$lt_LTCC
13782
13783 # LTCC compiler flags.
13784 LTCFLAGS=$lt_LTCFLAGS
13785
13786 # A language-specific compiler.
13787 CC=$lt_compiler_CXX
13788
13789 # Is the compiler the GNU C compiler?
13790 with_gcc=$GCC_CXX
13791
13792 # An ERE matcher.
13793 EGREP=$lt_EGREP
13794
13795 # The linker used to build libraries.
13796 LD=$lt_LD_CXX
13797
13798 # Whether we need hard or soft links.
13799 LN_S=$lt_LN_S
13800
13801 # A BSD-compatible nm program.
13802 NM=$lt_NM
13803
13804 # A symbol stripping program
13805 STRIP=$lt_STRIP
13806
13807 # Used to examine libraries when file_magic_cmd begins "file"
13808 MAGIC_CMD=$MAGIC_CMD
13809
13810 # Used on cygwin: DLL creation program.
13811 DLLTOOL="$DLLTOOL"
13812
13813 # Used on cygwin: object dumper.
13814 OBJDUMP="$OBJDUMP"
13815
13816 # Used on cygwin: assembler.
13817 AS="$AS"
13818
13819 # The name of the directory that contains temporary libtool files.
13820 objdir=$objdir
13821
13822 # How to create reloadable object files.
13823 reload_flag=$lt_reload_flag
13824 reload_cmds=$lt_reload_cmds
13825
13826 # How to pass a linker flag through the compiler.
13827 wl=$lt_lt_prog_compiler_wl_CXX
13828
13829 # Object file suffix (normally "o").
13830 objext="$ac_objext"
13831
13832 # Old archive suffix (normally "a").
13833 libext="$libext"
13834
13835 # Shared library suffix (normally ".so").
13836 shrext_cmds='$shrext_cmds'
13837
13838 # Executable file suffix (normally "").
13839 exeext="$exeext"
13840
13841 # Additional compiler flags for building library objects.
13842 pic_flag=$lt_lt_prog_compiler_pic_CXX
13843 pic_mode=$pic_mode
13844
13845 # What is the maximum length of a command?
13846 max_cmd_len=$lt_cv_sys_max_cmd_len
13847
13848 # Does compiler simultaneously support -c and -o options?
13849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13850
13851 # Must we lock files when doing compilation?
13852 need_locks=$lt_need_locks
13853
13854 # Do we need the lib prefix for modules?
13855 need_lib_prefix=$need_lib_prefix
13856
13857 # Do we need a version for libraries?
13858 need_version=$need_version
13859
13860 # Whether dlopen is supported.
13861 dlopen_support=$enable_dlopen
13862
13863 # Whether dlopen of programs is supported.
13864 dlopen_self=$enable_dlopen_self
13865
13866 # Whether dlopen of statically linked programs is supported.
13867 dlopen_self_static=$enable_dlopen_self_static
13868
13869 # Compiler flag to prevent dynamic linking.
13870 link_static_flag=$lt_lt_prog_compiler_static_CXX
13871
13872 # Compiler flag to turn off builtin functions.
13873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13874
13875 # Compiler flag to allow reflexive dlopens.
13876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13877
13878 # Compiler flag to generate shared objects directly from archives.
13879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13880
13881 # Compiler flag to generate thread-safe objects.
13882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13883
13884 # Library versioning type.
13885 version_type=$version_type
13886
13887 # Format of library name prefix.
13888 libname_spec=$lt_libname_spec
13889
13890 # List of archive names.  First name is the real one, the rest are links.
13891 # The last name is the one that the linker finds with -lNAME.
13892 library_names_spec=$lt_library_names_spec
13893
13894 # The coded name of the library, if different from the real name.
13895 soname_spec=$lt_soname_spec
13896
13897 # Commands used to build and install an old-style archive.
13898 RANLIB=$lt_RANLIB
13899 old_archive_cmds=$lt_old_archive_cmds_CXX
13900 old_postinstall_cmds=$lt_old_postinstall_cmds
13901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13902
13903 # Create an old-style archive from a shared archive.
13904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13905
13906 # Create a temporary old-style archive to link instead of a shared archive.
13907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13908
13909 # Commands used to build and install a shared archive.
13910 archive_cmds=$lt_archive_cmds_CXX
13911 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13912 postinstall_cmds=$lt_postinstall_cmds
13913 postuninstall_cmds=$lt_postuninstall_cmds
13914
13915 # Commands used to build a loadable module (assumed same as above if empty)
13916 module_cmds=$lt_module_cmds_CXX
13917 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13918
13919 # Commands to strip libraries.
13920 old_striplib=$lt_old_striplib
13921 striplib=$lt_striplib
13922
13923 # Dependencies to place before the objects being linked to create a
13924 # shared library.
13925 predep_objects=$lt_predep_objects_CXX
13926
13927 # Dependencies to place after the objects being linked to create a
13928 # shared library.
13929 postdep_objects=$lt_postdep_objects_CXX
13930
13931 # Dependencies to place before the objects being linked to create a
13932 # shared library.
13933 predeps=$lt_predeps_CXX
13934
13935 # Dependencies to place after the objects being linked to create a
13936 # shared library.
13937 postdeps=$lt_postdeps_CXX
13938
13939 # The directories searched by this compiler when creating a shared
13940 # library
13941 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13942
13943 # The library search path used internally by the compiler when linking
13944 # a shared library.
13945 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13946
13947 # Method to check whether dependent libraries are shared objects.
13948 deplibs_check_method=$lt_deplibs_check_method
13949
13950 # Command to use when deplibs_check_method == file_magic.
13951 file_magic_cmd=$lt_file_magic_cmd
13952
13953 # Flag that allows shared libraries with undefined symbols to be built.
13954 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13955
13956 # Flag that forces no undefined symbols.
13957 no_undefined_flag=$lt_no_undefined_flag_CXX
13958
13959 # Commands used to finish a libtool library installation in a directory.
13960 finish_cmds=$lt_finish_cmds
13961
13962 # Same as above, but a single script fragment to be evaled but not shown.
13963 finish_eval=$lt_finish_eval
13964
13965 # Take the output of nm and produce a listing of raw symbols and C names.
13966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13967
13968 # Transform the output of nm in a proper C declaration
13969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13970
13971 # Transform the output of nm in a C name address pair
13972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13973
13974 # This is the shared library runtime path variable.
13975 runpath_var=$runpath_var
13976
13977 # This is the shared library path variable.
13978 shlibpath_var=$shlibpath_var
13979
13980 # Is shlibpath searched before the hard-coded library search path?
13981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13982
13983 # How to hardcode a shared library path into an executable.
13984 hardcode_action=$hardcode_action_CXX
13985
13986 # Whether we should hardcode library paths into libraries.
13987 hardcode_into_libs=$hardcode_into_libs
13988
13989 # Flag to hardcode \$libdir into a binary during linking.
13990 # This must work even if \$libdir does not exist.
13991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13992
13993 # If ld is used when linking, flag to hardcode \$libdir into
13994 # a binary during linking. This must work even if \$libdir does
13995 # not exist.
13996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13997
13998 # Whether we need a single -rpath flag with a separated argument.
13999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14000
14001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14002 # resulting binary.
14003 hardcode_direct=$hardcode_direct_CXX
14004
14005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14006 # resulting binary.
14007 hardcode_minus_L=$hardcode_minus_L_CXX
14008
14009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14010 # the resulting binary.
14011 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14012
14013 # Set to yes if building a shared library automatically hardcodes DIR into the library
14014 # and all subsequent libraries and executables linked against it.
14015 hardcode_automatic=$hardcode_automatic_CXX
14016
14017 # Variables whose values should be saved in libtool wrapper scripts and
14018 # restored at relink time.
14019 variables_saved_for_relink="$variables_saved_for_relink"
14020
14021 # Whether libtool must link a program against all its dependency libraries.
14022 link_all_deplibs=$link_all_deplibs_CXX
14023
14024 # Compile-time system search path for libraries
14025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14026
14027 # Run-time system search path for libraries
14028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14029
14030 # Fix the shell variable \$srcfile for the compiler.
14031 fix_srcfile_path=$lt_fix_srcfile_path
14032
14033 # Set to yes if exported symbols are required.
14034 always_export_symbols=$always_export_symbols_CXX
14035
14036 # The commands to list exported symbols.
14037 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14038
14039 # The commands to extract the exported symbol list from a shared archive.
14040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14041
14042 # Symbols that should not be listed in the preloaded symbols.
14043 exclude_expsyms=$lt_exclude_expsyms_CXX
14044
14045 # Symbols that must always be exported.
14046 include_expsyms=$lt_include_expsyms_CXX
14047
14048 # ### END LIBTOOL TAG CONFIG: $tagname
14049
14050 __EOF__
14051
14052
14053 else
14054   # If there is no Makefile yet, we rely on a make rule to execute
14055   # `config.status --recheck' to rerun these tests and create the
14056   # libtool script then.
14057   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14058   if test -f "$ltmain_in"; then
14059     test -f Makefile && make "$ltmain"
14060   fi
14061 fi
14062
14063
14064 ac_ext=c
14065 ac_cpp='$CPP $CPPFLAGS'
14066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14069
14070 CC=$lt_save_CC
14071 LDCXX=$LD
14072 LD=$lt_save_LD
14073 GCC=$lt_save_GCC
14074 with_gnu_ldcxx=$with_gnu_ld
14075 with_gnu_ld=$lt_save_with_gnu_ld
14076 lt_cv_path_LDCXX=$lt_cv_path_LD
14077 lt_cv_path_LD=$lt_save_path_LD
14078 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14079 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14080
14081         else
14082           tagname=""
14083         fi
14084         ;;
14085
14086       F77)
14087         if test -n "$F77" && test "X$F77" != "Xno"; then
14088
14089 ac_ext=f
14090 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14091 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14092 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14093
14094
14095 archive_cmds_need_lc_F77=no
14096 allow_undefined_flag_F77=
14097 always_export_symbols_F77=no
14098 archive_expsym_cmds_F77=
14099 export_dynamic_flag_spec_F77=
14100 hardcode_direct_F77=no
14101 hardcode_libdir_flag_spec_F77=
14102 hardcode_libdir_flag_spec_ld_F77=
14103 hardcode_libdir_separator_F77=
14104 hardcode_minus_L_F77=no
14105 hardcode_automatic_F77=no
14106 module_cmds_F77=
14107 module_expsym_cmds_F77=
14108 link_all_deplibs_F77=unknown
14109 old_archive_cmds_F77=$old_archive_cmds
14110 no_undefined_flag_F77=
14111 whole_archive_flag_spec_F77=
14112 enable_shared_with_static_runtimes_F77=no
14113
14114 # Source file extension for f77 test sources.
14115 ac_ext=f
14116
14117 # Object file extension for compiled f77 test sources.
14118 objext=o
14119 objext_F77=$objext
14120
14121 # Code to be used in simple compile tests
14122 lt_simple_compile_test_code="\
14123       subroutine t
14124       return
14125       end
14126 "
14127
14128 # Code to be used in simple link tests
14129 lt_simple_link_test_code="\
14130       program t
14131       end
14132 "
14133
14134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14135
14136 # If no C compiler was specified, use CC.
14137 LTCC=${LTCC-"$CC"}
14138
14139 # If no C compiler flags were specified, use CFLAGS.
14140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14141
14142 # Allow CC to be a program name with arguments.
14143 compiler=$CC
14144
14145
14146 # save warnings/boilerplate of simple test code
14147 ac_outfile=conftest.$ac_objext
14148 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14149 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14150 _lt_compiler_boilerplate=`cat conftest.err`
14151 $rm conftest*
14152
14153 ac_outfile=conftest.$ac_objext
14154 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14155 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14156 _lt_linker_boilerplate=`cat conftest.err`
14157 $rm -r conftest*
14158
14159
14160 # Allow CC to be a program name with arguments.
14161 lt_save_CC="$CC"
14162 CC=${F77-"f77"}
14163 compiler=$CC
14164 compiler_F77=$CC
14165 for cc_temp in $compiler""; do
14166   case $cc_temp in
14167     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14168     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14169     \-*) ;;
14170     *) break;;
14171   esac
14172 done
14173 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14174
14175
14176 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14177 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14178 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14179 echo "${ECHO_T}$can_build_shared" >&6; }
14180
14181 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14182 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14183 test "$can_build_shared" = "no" && enable_shared=no
14184
14185 # On AIX, shared libraries and static libraries use the same namespace, and
14186 # are all built from PIC.
14187 case $host_os in
14188 aix3*)
14189   test "$enable_shared" = yes && enable_static=no
14190   if test -n "$RANLIB"; then
14191     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14192     postinstall_cmds='$RANLIB $lib'
14193   fi
14194   ;;
14195 aix[4-9]*)
14196   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14197     test "$enable_shared" = yes && enable_static=no
14198   fi
14199   ;;
14200 esac
14201 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14202 echo "${ECHO_T}$enable_shared" >&6; }
14203
14204 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14205 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14206 # Make sure either enable_shared or enable_static is yes.
14207 test "$enable_shared" = yes || enable_static=yes
14208 { echo "$as_me:$LINENO: result: $enable_static" >&5
14209 echo "${ECHO_T}$enable_static" >&6; }
14210
14211 GCC_F77="$G77"
14212 LD_F77="$LD"
14213
14214 lt_prog_compiler_wl_F77=
14215 lt_prog_compiler_pic_F77=
14216 lt_prog_compiler_static_F77=
14217
14218 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14219 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14220
14221   if test "$GCC" = yes; then
14222     lt_prog_compiler_wl_F77='-Wl,'
14223     lt_prog_compiler_static_F77='-static'
14224
14225     case $host_os in
14226       aix*)
14227       # All AIX code is PIC.
14228       if test "$host_cpu" = ia64; then
14229         # AIX 5 now supports IA64 processor
14230         lt_prog_compiler_static_F77='-Bstatic'
14231       fi
14232       ;;
14233
14234     amigaos*)
14235       # FIXME: we need at least 68020 code to build shared libraries, but
14236       # adding the `-m68020' flag to GCC prevents building anything better,
14237       # like `-m68040'.
14238       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14239       ;;
14240
14241     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14242       # PIC is the default for these OSes.
14243       ;;
14244
14245     mingw* | cygwin* | pw32* | os2*)
14246       # This hack is so that the source file can tell whether it is being
14247       # built for inclusion in a dll (and should export symbols for example).
14248       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14249       # (--disable-auto-import) libraries
14250       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14251       ;;
14252
14253     darwin* | rhapsody*)
14254       # PIC is the default on this platform
14255       # Common symbols not allowed in MH_DYLIB files
14256       lt_prog_compiler_pic_F77='-fno-common'
14257       ;;
14258
14259     interix[3-9]*)
14260       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14261       # Instead, we relocate shared libraries at runtime.
14262       ;;
14263
14264     msdosdjgpp*)
14265       # Just because we use GCC doesn't mean we suddenly get shared libraries
14266       # on systems that don't support them.
14267       lt_prog_compiler_can_build_shared_F77=no
14268       enable_shared=no
14269       ;;
14270
14271     sysv4*MP*)
14272       if test -d /usr/nec; then
14273         lt_prog_compiler_pic_F77=-Kconform_pic
14274       fi
14275       ;;
14276
14277     hpux*)
14278       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14279       # not for PA HP-UX.
14280       case $host_cpu in
14281       hppa*64*|ia64*)
14282         # +Z the default
14283         ;;
14284       *)
14285         lt_prog_compiler_pic_F77='-fPIC'
14286         ;;
14287       esac
14288       ;;
14289
14290     *)
14291       lt_prog_compiler_pic_F77='-fPIC'
14292       ;;
14293     esac
14294   else
14295     # PORTME Check for flag to pass linker flags through the system compiler.
14296     case $host_os in
14297     aix*)
14298       lt_prog_compiler_wl_F77='-Wl,'
14299       if test "$host_cpu" = ia64; then
14300         # AIX 5 now supports IA64 processor
14301         lt_prog_compiler_static_F77='-Bstatic'
14302       else
14303         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14304       fi
14305       ;;
14306       darwin*)
14307         # PIC is the default on this platform
14308         # Common symbols not allowed in MH_DYLIB files
14309        case $cc_basename in
14310          xlc*)
14311          lt_prog_compiler_pic_F77='-qnocommon'
14312          lt_prog_compiler_wl_F77='-Wl,'
14313          ;;
14314        esac
14315        ;;
14316
14317     mingw* | cygwin* | pw32* | os2*)
14318       # This hack is so that the source file can tell whether it is being
14319       # built for inclusion in a dll (and should export symbols for example).
14320       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14321       ;;
14322
14323     hpux9* | hpux10* | hpux11*)
14324       lt_prog_compiler_wl_F77='-Wl,'
14325       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14326       # not for PA HP-UX.
14327       case $host_cpu in
14328       hppa*64*|ia64*)
14329         # +Z the default
14330         ;;
14331       *)
14332         lt_prog_compiler_pic_F77='+Z'
14333         ;;
14334       esac
14335       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14336       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14337       ;;
14338
14339     irix5* | irix6* | nonstopux*)
14340       lt_prog_compiler_wl_F77='-Wl,'
14341       # PIC (with -KPIC) is the default.
14342       lt_prog_compiler_static_F77='-non_shared'
14343       ;;
14344
14345     newsos6)
14346       lt_prog_compiler_pic_F77='-KPIC'
14347       lt_prog_compiler_static_F77='-Bstatic'
14348       ;;
14349
14350     linux* | k*bsd*-gnu)
14351       case $cc_basename in
14352       icc* | ecc*)
14353         lt_prog_compiler_wl_F77='-Wl,'
14354         lt_prog_compiler_pic_F77='-KPIC'
14355         lt_prog_compiler_static_F77='-static'
14356         ;;
14357       pgcc* | pgf77* | pgf90* | pgf95*)
14358         # Portland Group compilers (*not* the Pentium gcc compiler,
14359         # which looks to be a dead project)
14360         lt_prog_compiler_wl_F77='-Wl,'
14361         lt_prog_compiler_pic_F77='-fpic'
14362         lt_prog_compiler_static_F77='-Bstatic'
14363         ;;
14364       ccc*)
14365         lt_prog_compiler_wl_F77='-Wl,'
14366         # All Alpha code is PIC.
14367         lt_prog_compiler_static_F77='-non_shared'
14368         ;;
14369       *)
14370         case `$CC -V 2>&1 | sed 5q` in
14371         *Sun\ C*)
14372           # Sun C 5.9
14373           lt_prog_compiler_pic_F77='-KPIC'
14374           lt_prog_compiler_static_F77='-Bstatic'
14375           lt_prog_compiler_wl_F77='-Wl,'
14376           ;;
14377         *Sun\ F*)
14378           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14379           lt_prog_compiler_pic_F77='-KPIC'
14380           lt_prog_compiler_static_F77='-Bstatic'
14381           lt_prog_compiler_wl_F77=''
14382           ;;
14383         esac
14384         ;;
14385       esac
14386       ;;
14387
14388     osf3* | osf4* | osf5*)
14389       lt_prog_compiler_wl_F77='-Wl,'
14390       # All OSF/1 code is PIC.
14391       lt_prog_compiler_static_F77='-non_shared'
14392       ;;
14393
14394     rdos*)
14395       lt_prog_compiler_static_F77='-non_shared'
14396       ;;
14397
14398     solaris*)
14399       lt_prog_compiler_pic_F77='-KPIC'
14400       lt_prog_compiler_static_F77='-Bstatic'
14401       case $cc_basename in
14402       f77* | f90* | f95*)
14403         lt_prog_compiler_wl_F77='-Qoption ld ';;
14404       *)
14405         lt_prog_compiler_wl_F77='-Wl,';;
14406       esac
14407       ;;
14408
14409     sunos4*)
14410       lt_prog_compiler_wl_F77='-Qoption ld '
14411       lt_prog_compiler_pic_F77='-PIC'
14412       lt_prog_compiler_static_F77='-Bstatic'
14413       ;;
14414
14415     sysv4 | sysv4.2uw2* | sysv4.3*)
14416       lt_prog_compiler_wl_F77='-Wl,'
14417       lt_prog_compiler_pic_F77='-KPIC'
14418       lt_prog_compiler_static_F77='-Bstatic'
14419       ;;
14420
14421     sysv4*MP*)
14422       if test -d /usr/nec ;then
14423         lt_prog_compiler_pic_F77='-Kconform_pic'
14424         lt_prog_compiler_static_F77='-Bstatic'
14425       fi
14426       ;;
14427
14428     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14429       lt_prog_compiler_wl_F77='-Wl,'
14430       lt_prog_compiler_pic_F77='-KPIC'
14431       lt_prog_compiler_static_F77='-Bstatic'
14432       ;;
14433
14434     unicos*)
14435       lt_prog_compiler_wl_F77='-Wl,'
14436       lt_prog_compiler_can_build_shared_F77=no
14437       ;;
14438
14439     uts4*)
14440       lt_prog_compiler_pic_F77='-pic'
14441       lt_prog_compiler_static_F77='-Bstatic'
14442       ;;
14443
14444     *)
14445       lt_prog_compiler_can_build_shared_F77=no
14446       ;;
14447     esac
14448   fi
14449
14450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14451 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14452
14453 #
14454 # Check to make sure the PIC flag actually works.
14455 #
14456 if test -n "$lt_prog_compiler_pic_F77"; then
14457
14458 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14459 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14460 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14461   echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463   lt_cv_prog_compiler_pic_works_F77=no
14464   ac_outfile=conftest.$ac_objext
14465    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14466    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14467    # Insert the option either (1) after the last *FLAGS variable, or
14468    # (2) before a word containing "conftest.", or (3) at the end.
14469    # Note that $ac_compile itself does not contain backslashes and begins
14470    # with a dollar sign (not a hyphen), so the echo should work correctly.
14471    # The option is referenced via a variable to avoid confusing sed.
14472    lt_compile=`echo "$ac_compile" | $SED \
14473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14475    -e 's:$: $lt_compiler_flag:'`
14476    (eval echo "\"\$as_me:14476: $lt_compile\"" >&5)
14477    (eval "$lt_compile" 2>conftest.err)
14478    ac_status=$?
14479    cat conftest.err >&5
14480    echo "$as_me:14480: \$? = $ac_status" >&5
14481    if (exit $ac_status) && test -s "$ac_outfile"; then
14482      # The compiler can only warn and ignore the option if not recognized
14483      # So say no if there are warnings other than the usual output.
14484      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14485      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14486      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14487        lt_cv_prog_compiler_pic_works_F77=yes
14488      fi
14489    fi
14490    $rm conftest*
14491
14492 fi
14493 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14494 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14495
14496 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14497     case $lt_prog_compiler_pic_F77 in
14498      "" | " "*) ;;
14499      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14500      esac
14501 else
14502     lt_prog_compiler_pic_F77=
14503      lt_prog_compiler_can_build_shared_F77=no
14504 fi
14505
14506 fi
14507 case $host_os in
14508   # For platforms which do not support PIC, -DPIC is meaningless:
14509   *djgpp*)
14510     lt_prog_compiler_pic_F77=
14511     ;;
14512   *)
14513     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14514     ;;
14515 esac
14516
14517 #
14518 # Check to make sure the static flag actually works.
14519 #
14520 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14521 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14522 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14523 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14524   echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526   lt_cv_prog_compiler_static_works_F77=no
14527    save_LDFLAGS="$LDFLAGS"
14528    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14529    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14530    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14531      # The linker can only warn and ignore the option if not recognized
14532      # So say no if there are warnings
14533      if test -s conftest.err; then
14534        # Append any errors to the config.log.
14535        cat conftest.err 1>&5
14536        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14537        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538        if diff conftest.exp conftest.er2 >/dev/null; then
14539          lt_cv_prog_compiler_static_works_F77=yes
14540        fi
14541      else
14542        lt_cv_prog_compiler_static_works_F77=yes
14543      fi
14544    fi
14545    $rm -r conftest*
14546    LDFLAGS="$save_LDFLAGS"
14547
14548 fi
14549 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14550 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14551
14552 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14553     :
14554 else
14555     lt_prog_compiler_static_F77=
14556 fi
14557
14558
14559 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14560 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14561 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   lt_cv_prog_compiler_c_o_F77=no
14565    $rm -r conftest 2>/dev/null
14566    mkdir conftest
14567    cd conftest
14568    mkdir out
14569    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14570
14571    lt_compiler_flag="-o out/conftest2.$ac_objext"
14572    # Insert the option either (1) after the last *FLAGS variable, or
14573    # (2) before a word containing "conftest.", or (3) at the end.
14574    # Note that $ac_compile itself does not contain backslashes and begins
14575    # with a dollar sign (not a hyphen), so the echo should work correctly.
14576    lt_compile=`echo "$ac_compile" | $SED \
14577    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14578    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14579    -e 's:$: $lt_compiler_flag:'`
14580    (eval echo "\"\$as_me:14580: $lt_compile\"" >&5)
14581    (eval "$lt_compile" 2>out/conftest.err)
14582    ac_status=$?
14583    cat out/conftest.err >&5
14584    echo "$as_me:14584: \$? = $ac_status" >&5
14585    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14586    then
14587      # The compiler can only warn and ignore the option if not recognized
14588      # So say no if there are warnings
14589      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14590      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14591      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14592        lt_cv_prog_compiler_c_o_F77=yes
14593      fi
14594    fi
14595    chmod u+w . 2>&5
14596    $rm conftest*
14597    # SGI C++ compiler will create directory out/ii_files/ for
14598    # template instantiation
14599    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14600    $rm out/* && rmdir out
14601    cd ..
14602    rmdir conftest
14603    $rm conftest*
14604
14605 fi
14606 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14607 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14608
14609
14610 hard_links="nottested"
14611 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14612   # do not overwrite the value of need_locks provided by the user
14613   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14614 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14615   hard_links=yes
14616   $rm conftest*
14617   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618   touch conftest.a
14619   ln conftest.a conftest.b 2>&5 || hard_links=no
14620   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14621   { echo "$as_me:$LINENO: result: $hard_links" >&5
14622 echo "${ECHO_T}$hard_links" >&6; }
14623   if test "$hard_links" = no; then
14624     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14625 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14626     need_locks=warn
14627   fi
14628 else
14629   need_locks=no
14630 fi
14631
14632 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14633 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14634
14635   runpath_var=
14636   allow_undefined_flag_F77=
14637   enable_shared_with_static_runtimes_F77=no
14638   archive_cmds_F77=
14639   archive_expsym_cmds_F77=
14640   old_archive_From_new_cmds_F77=
14641   old_archive_from_expsyms_cmds_F77=
14642   export_dynamic_flag_spec_F77=
14643   whole_archive_flag_spec_F77=
14644   thread_safe_flag_spec_F77=
14645   hardcode_libdir_flag_spec_F77=
14646   hardcode_libdir_flag_spec_ld_F77=
14647   hardcode_libdir_separator_F77=
14648   hardcode_direct_F77=no
14649   hardcode_minus_L_F77=no
14650   hardcode_shlibpath_var_F77=unsupported
14651   link_all_deplibs_F77=unknown
14652   hardcode_automatic_F77=no
14653   module_cmds_F77=
14654   module_expsym_cmds_F77=
14655   always_export_symbols_F77=no
14656   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14657   # include_expsyms should be a list of space-separated symbols to be *always*
14658   # included in the symbol list
14659   include_expsyms_F77=
14660   # exclude_expsyms can be an extended regexp of symbols to exclude
14661   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14662   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14663   # as well as any symbol that contains `d'.
14664   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14665   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14666   # platforms (ab)use it in PIC code, but their linkers get confused if
14667   # the symbol is explicitly referenced.  Since portable code cannot
14668   # rely on this symbol name, it's probably fine to never include it in
14669   # preloaded symbol tables.
14670   # Exclude shared library initialization/finalization symbols.
14671   extract_expsyms_cmds=
14672   # Just being paranoid about ensuring that cc_basename is set.
14673   for cc_temp in $compiler""; do
14674   case $cc_temp in
14675     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14676     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14677     \-*) ;;
14678     *) break;;
14679   esac
14680 done
14681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14682
14683   case $host_os in
14684   cygwin* | mingw* | pw32*)
14685     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14686     # When not using gcc, we currently assume that we are using
14687     # Microsoft Visual C++.
14688     if test "$GCC" != yes; then
14689       with_gnu_ld=no
14690     fi
14691     ;;
14692   interix*)
14693     # we just hope/assume this is gcc and not c89 (= MSVC++)
14694     with_gnu_ld=yes
14695     ;;
14696   openbsd*)
14697     with_gnu_ld=no
14698     ;;
14699   esac
14700
14701   ld_shlibs_F77=yes
14702   if test "$with_gnu_ld" = yes; then
14703     # If archive_cmds runs LD, not CC, wlarc should be empty
14704     wlarc='${wl}'
14705
14706     # Set some defaults for GNU ld with shared library support. These
14707     # are reset later if shared libraries are not supported. Putting them
14708     # here allows them to be overridden if necessary.
14709     runpath_var=LD_RUN_PATH
14710     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14711     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14712     # ancient GNU ld didn't support --whole-archive et. al.
14713     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14714         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14715       else
14716         whole_archive_flag_spec_F77=
14717     fi
14718     supports_anon_versioning=no
14719     case `$LD -v 2>/dev/null` in
14720       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14721       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14722       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14723       *\ 2.11.*) ;; # other 2.11 versions
14724       *) supports_anon_versioning=yes ;;
14725     esac
14726
14727     # See if GNU ld supports shared libraries.
14728     case $host_os in
14729     aix[3-9]*)
14730       # On AIX/PPC, the GNU linker is very broken
14731       if test "$host_cpu" != ia64; then
14732         ld_shlibs_F77=no
14733         cat <<EOF 1>&2
14734
14735 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14736 *** to be unable to reliably create shared libraries on AIX.
14737 *** Therefore, libtool is disabling shared libraries support.  If you
14738 *** really care for shared libraries, you may want to modify your PATH
14739 *** so that a non-GNU linker is found, and then restart.
14740
14741 EOF
14742       fi
14743       ;;
14744
14745     amigaos*)
14746       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)'
14747       hardcode_libdir_flag_spec_F77='-L$libdir'
14748       hardcode_minus_L_F77=yes
14749
14750       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14751       # that the semantics of dynamic libraries on AmigaOS, at least up
14752       # to version 4, is to share data among multiple programs linked
14753       # with the same dynamic library.  Since this doesn't match the
14754       # behavior of shared libraries on other platforms, we can't use
14755       # them.
14756       ld_shlibs_F77=no
14757       ;;
14758
14759     beos*)
14760       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14761         allow_undefined_flag_F77=unsupported
14762         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14763         # support --undefined.  This deserves some investigation.  FIXME
14764         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14765       else
14766         ld_shlibs_F77=no
14767       fi
14768       ;;
14769
14770     cygwin* | mingw* | pw32*)
14771       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14772       # as there is no search path for DLLs.
14773       hardcode_libdir_flag_spec_F77='-L$libdir'
14774       allow_undefined_flag_F77=unsupported
14775       always_export_symbols_F77=no
14776       enable_shared_with_static_runtimes_F77=yes
14777       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14778
14779       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14780         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14781         # If the export-symbols file already is a .def file (1st line
14782         # is EXPORTS), use it as is; otherwise, prepend...
14783         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14784           cp $export_symbols $output_objdir/$soname.def;
14785         else
14786           echo EXPORTS > $output_objdir/$soname.def;
14787           cat $export_symbols >> $output_objdir/$soname.def;
14788         fi~
14789         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14790       else
14791         ld_shlibs_F77=no
14792       fi
14793       ;;
14794
14795     interix[3-9]*)
14796       hardcode_direct_F77=no
14797       hardcode_shlibpath_var_F77=no
14798       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14799       export_dynamic_flag_spec_F77='${wl}-E'
14800       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14801       # Instead, shared libraries are loaded at an image base (0x10000000 by
14802       # default) and relocated if they conflict, which is a slow very memory
14803       # consuming and fragmenting process.  To avoid this, we pick a random,
14804       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14805       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14806       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14807       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14808       ;;
14809
14810     gnu* | linux* | k*bsd*-gnu)
14811       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14812         tmp_addflag=
14813         case $cc_basename,$host_cpu in
14814         pgcc*)                          # Portland Group C compiler
14815           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14816           tmp_addflag=' $pic_flag'
14817           ;;
14818         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14819           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14820           tmp_addflag=' $pic_flag -Mnomain' ;;
14821         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14822           tmp_addflag=' -i_dynamic' ;;
14823         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14824           tmp_addflag=' -i_dynamic -nofor_main' ;;
14825         ifc* | ifort*)                  # Intel Fortran compiler
14826           tmp_addflag=' -nofor_main' ;;
14827         esac
14828         case `$CC -V 2>&1 | sed 5q` in
14829         *Sun\ C*)                       # Sun C 5.9
14830           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14831           tmp_sharedflag='-G' ;;
14832         *Sun\ F*)                       # Sun Fortran 8.3
14833           tmp_sharedflag='-G' ;;
14834         *)
14835           tmp_sharedflag='-shared' ;;
14836         esac
14837         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14838
14839         if test $supports_anon_versioning = yes; then
14840           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14841   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14842   $echo "local: *; };" >> $output_objdir/$libname.ver~
14843           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14844         fi
14845         link_all_deplibs_F77=no
14846       else
14847         ld_shlibs_F77=no
14848       fi
14849       ;;
14850
14851     netbsd* | netbsdelf*-gnu)
14852       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14853         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14854         wlarc=
14855       else
14856         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14857         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14858       fi
14859       ;;
14860
14861     solaris*)
14862       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14863         ld_shlibs_F77=no
14864         cat <<EOF 1>&2
14865
14866 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14867 *** create shared libraries on Solaris systems.  Therefore, libtool
14868 *** is disabling shared libraries support.  We urge you to upgrade GNU
14869 *** binutils to release 2.9.1 or newer.  Another option is to modify
14870 *** your PATH or compiler configuration so that the native linker is
14871 *** used, and then restart.
14872
14873 EOF
14874       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14877       else
14878         ld_shlibs_F77=no
14879       fi
14880       ;;
14881
14882     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14883       case `$LD -v 2>&1` in
14884         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14885         ld_shlibs_F77=no
14886         cat <<_LT_EOF 1>&2
14887
14888 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14889 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14890 *** is disabling shared libraries support.  We urge you to upgrade GNU
14891 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14892 *** your PATH or compiler configuration so that the native linker is
14893 *** used, and then restart.
14894
14895 _LT_EOF
14896         ;;
14897         *)
14898           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14899             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14900             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14901             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14902           else
14903             ld_shlibs_F77=no
14904           fi
14905         ;;
14906       esac
14907       ;;
14908
14909     sunos4*)
14910       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14911       wlarc=
14912       hardcode_direct_F77=yes
14913       hardcode_shlibpath_var_F77=no
14914       ;;
14915
14916     *)
14917       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14918         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14919         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14920       else
14921         ld_shlibs_F77=no
14922       fi
14923       ;;
14924     esac
14925
14926     if test "$ld_shlibs_F77" = no; then
14927       runpath_var=
14928       hardcode_libdir_flag_spec_F77=
14929       export_dynamic_flag_spec_F77=
14930       whole_archive_flag_spec_F77=
14931     fi
14932   else
14933     # PORTME fill in a description of your system's linker (not GNU ld)
14934     case $host_os in
14935     aix3*)
14936       allow_undefined_flag_F77=unsupported
14937       always_export_symbols_F77=yes
14938       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'
14939       # Note: this linker hardcodes the directories in LIBPATH if there
14940       # are no directories specified by -L.
14941       hardcode_minus_L_F77=yes
14942       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14943         # Neither direct hardcoding nor static linking is supported with a
14944         # broken collect2.
14945         hardcode_direct_F77=unsupported
14946       fi
14947       ;;
14948
14949     aix[4-9]*)
14950       if test "$host_cpu" = ia64; then
14951         # On IA64, the linker does run time linking by default, so we don't
14952         # have to do anything special.
14953         aix_use_runtimelinking=no
14954         exp_sym_flag='-Bexport'
14955         no_entry_flag=""
14956       else
14957         # If we're using GNU nm, then we don't want the "-C" option.
14958         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14959         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14960           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'
14961         else
14962           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'
14963         fi
14964         aix_use_runtimelinking=no
14965
14966         # Test if we are trying to use run time linking or normal
14967         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14968         # need to do runtime linking.
14969         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14970           for ld_flag in $LDFLAGS; do
14971           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14972             aix_use_runtimelinking=yes
14973             break
14974           fi
14975           done
14976           ;;
14977         esac
14978
14979         exp_sym_flag='-bexport'
14980         no_entry_flag='-bnoentry'
14981       fi
14982
14983       # When large executables or shared objects are built, AIX ld can
14984       # have problems creating the table of contents.  If linking a library
14985       # or program results in "error TOC overflow" add -mminimal-toc to
14986       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14987       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14988
14989       archive_cmds_F77=''
14990       hardcode_direct_F77=yes
14991       hardcode_libdir_separator_F77=':'
14992       link_all_deplibs_F77=yes
14993
14994       if test "$GCC" = yes; then
14995         case $host_os in aix4.[012]|aix4.[012].*)
14996         # We only want to do this on AIX 4.2 and lower, the check
14997         # below for broken collect2 doesn't work under 4.3+
14998           collect2name=`${CC} -print-prog-name=collect2`
14999           if test -f "$collect2name" && \
15000            strings "$collect2name" | grep resolve_lib_name >/dev/null
15001           then
15002           # We have reworked collect2
15003           :
15004           else
15005           # We have old collect2
15006           hardcode_direct_F77=unsupported
15007           # It fails to find uninstalled libraries when the uninstalled
15008           # path is not listed in the libpath.  Setting hardcode_minus_L
15009           # to unsupported forces relinking
15010           hardcode_minus_L_F77=yes
15011           hardcode_libdir_flag_spec_F77='-L$libdir'
15012           hardcode_libdir_separator_F77=
15013           fi
15014           ;;
15015         esac
15016         shared_flag='-shared'
15017         if test "$aix_use_runtimelinking" = yes; then
15018           shared_flag="$shared_flag "'${wl}-G'
15019         fi
15020       else
15021         # not using gcc
15022         if test "$host_cpu" = ia64; then
15023         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15024         # chokes on -Wl,-G. The following line is correct:
15025           shared_flag='-G'
15026         else
15027           if test "$aix_use_runtimelinking" = yes; then
15028             shared_flag='${wl}-G'
15029           else
15030             shared_flag='${wl}-bM:SRE'
15031           fi
15032         fi
15033       fi
15034
15035       # It seems that -bexpall does not export symbols beginning with
15036       # underscore (_), so it is better to generate a list of symbols to export.
15037       always_export_symbols_F77=yes
15038       if test "$aix_use_runtimelinking" = yes; then
15039         # Warning - without using the other runtime loading flags (-brtl),
15040         # -berok will link without error, but may produce a broken library.
15041         allow_undefined_flag_F77='-berok'
15042        # Determine the default libpath from the value encoded in an empty executable.
15043        cat >conftest.$ac_ext <<_ACEOF
15044       program main
15045
15046       end
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052   *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055   (eval "$ac_link") 2>conftest.er1
15056   ac_status=$?
15057   grep -v '^ *+' conftest.er1 >conftest.err
15058   rm -f conftest.er1
15059   cat conftest.err >&5
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } && {
15062          test -z "$ac_f77_werror_flag" ||
15063          test ! -s conftest.err
15064        } && test -s conftest$ac_exeext &&
15065        $as_test_x conftest$ac_exeext; then
15066
15067 lt_aix_libpath_sed='
15068     /Import File Strings/,/^$/ {
15069         /^0/ {
15070             s/^0  *\(.*\)$/\1/
15071             p
15072         }
15073     }'
15074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15075 # Check for a 64-bit object if we didn't find anything.
15076 if test -z "$aix_libpath"; then
15077   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15078 fi
15079 else
15080   echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083
15084 fi
15085
15086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15087       conftest$ac_exeext conftest.$ac_ext
15088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15089
15090        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15091         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15092        else
15093         if test "$host_cpu" = ia64; then
15094           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15095           allow_undefined_flag_F77="-z nodefs"
15096           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15097         else
15098          # Determine the default libpath from the value encoded in an empty executable.
15099          cat >conftest.$ac_ext <<_ACEOF
15100       program main
15101
15102       end
15103 _ACEOF
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (ac_try="$ac_link"
15106 case "(($ac_try" in
15107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108   *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111   (eval "$ac_link") 2>conftest.er1
15112   ac_status=$?
15113   grep -v '^ *+' conftest.er1 >conftest.err
15114   rm -f conftest.er1
15115   cat conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } && {
15118          test -z "$ac_f77_werror_flag" ||
15119          test ! -s conftest.err
15120        } && test -s conftest$ac_exeext &&
15121        $as_test_x conftest$ac_exeext; then
15122
15123 lt_aix_libpath_sed='
15124     /Import File Strings/,/^$/ {
15125         /^0/ {
15126             s/^0  *\(.*\)$/\1/
15127             p
15128         }
15129     }'
15130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15131 # Check for a 64-bit object if we didn't find anything.
15132 if test -z "$aix_libpath"; then
15133   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15134 fi
15135 else
15136   echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139
15140 fi
15141
15142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15143       conftest$ac_exeext conftest.$ac_ext
15144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15145
15146          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15147           # Warning - without using the other run time loading flags,
15148           # -berok will link without error, but may produce a broken library.
15149           no_undefined_flag_F77=' ${wl}-bernotok'
15150           allow_undefined_flag_F77=' ${wl}-berok'
15151           # Exported symbols can be pulled into shared objects from archives
15152           whole_archive_flag_spec_F77='$convenience'
15153           archive_cmds_need_lc_F77=yes
15154           # This is similar to how AIX traditionally builds its shared libraries.
15155           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15156         fi
15157       fi
15158       ;;
15159
15160     amigaos*)
15161       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)'
15162       hardcode_libdir_flag_spec_F77='-L$libdir'
15163       hardcode_minus_L_F77=yes
15164       # see comment about different semantics on the GNU ld section
15165       ld_shlibs_F77=no
15166       ;;
15167
15168     bsdi[45]*)
15169       export_dynamic_flag_spec_F77=-rdynamic
15170       ;;
15171
15172     cygwin* | mingw* | pw32*)
15173       # When not using gcc, we currently assume that we are using
15174       # Microsoft Visual C++.
15175       # hardcode_libdir_flag_spec is actually meaningless, as there is
15176       # no search path for DLLs.
15177       hardcode_libdir_flag_spec_F77=' '
15178       allow_undefined_flag_F77=unsupported
15179       # Tell ltmain to make .lib files, not .a files.
15180       libext=lib
15181       # Tell ltmain to make .dll files, not .so files.
15182       shrext_cmds=".dll"
15183       # FIXME: Setting linknames here is a bad hack.
15184       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15185       # The linker will automatically build a .lib file if we build a DLL.
15186       old_archive_From_new_cmds_F77='true'
15187       # FIXME: Should let the user specify the lib program.
15188       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15189       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15190       enable_shared_with_static_runtimes_F77=yes
15191       ;;
15192
15193     darwin* | rhapsody*)
15194       case $host_os in
15195         rhapsody* | darwin1.[012])
15196          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15197          ;;
15198        *) # Darwin 1.3 on
15199          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15200            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15201          else
15202            case ${MACOSX_DEPLOYMENT_TARGET} in
15203              10.[012])
15204                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15205                ;;
15206              10.*)
15207                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15208                ;;
15209            esac
15210          fi
15211          ;;
15212       esac
15213       archive_cmds_need_lc_F77=no
15214       hardcode_direct_F77=no
15215       hardcode_automatic_F77=yes
15216       hardcode_shlibpath_var_F77=unsupported
15217       whole_archive_flag_spec_F77=''
15218       link_all_deplibs_F77=yes
15219     if test "$GCC" = yes ; then
15220         output_verbose_link_cmd='echo'
15221         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15222         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15223         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15224         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15225     else
15226       case $cc_basename in
15227         xlc*)
15228          output_verbose_link_cmd='echo'
15229          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15230          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15231           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15232          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15233           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}'
15234           ;;
15235        *)
15236          ld_shlibs_F77=no
15237           ;;
15238       esac
15239     fi
15240       ;;
15241
15242     dgux*)
15243       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15244       hardcode_libdir_flag_spec_F77='-L$libdir'
15245       hardcode_shlibpath_var_F77=no
15246       ;;
15247
15248     freebsd1*)
15249       ld_shlibs_F77=no
15250       ;;
15251
15252     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15253     # support.  Future versions do this automatically, but an explicit c++rt0.o
15254     # does not break anything, and helps significantly (at the cost of a little
15255     # extra space).
15256     freebsd2.2*)
15257       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15258       hardcode_libdir_flag_spec_F77='-R$libdir'
15259       hardcode_direct_F77=yes
15260       hardcode_shlibpath_var_F77=no
15261       ;;
15262
15263     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15264     freebsd2*)
15265       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15266       hardcode_direct_F77=yes
15267       hardcode_minus_L_F77=yes
15268       hardcode_shlibpath_var_F77=no
15269       ;;
15270
15271     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15272     freebsd* | dragonfly*)
15273       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15274       hardcode_libdir_flag_spec_F77='-R$libdir'
15275       hardcode_direct_F77=yes
15276       hardcode_shlibpath_var_F77=no
15277       ;;
15278
15279     hpux9*)
15280       if test "$GCC" = yes; then
15281         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'
15282       else
15283         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'
15284       fi
15285       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15286       hardcode_libdir_separator_F77=:
15287       hardcode_direct_F77=yes
15288
15289       # hardcode_minus_L: Not really in the search PATH,
15290       # but as the default location of the library.
15291       hardcode_minus_L_F77=yes
15292       export_dynamic_flag_spec_F77='${wl}-E'
15293       ;;
15294
15295     hpux10*)
15296       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15297         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15298       else
15299         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15300       fi
15301       if test "$with_gnu_ld" = no; then
15302         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15303         hardcode_libdir_separator_F77=:
15304
15305         hardcode_direct_F77=yes
15306         export_dynamic_flag_spec_F77='${wl}-E'
15307
15308         # hardcode_minus_L: Not really in the search PATH,
15309         # but as the default location of the library.
15310         hardcode_minus_L_F77=yes
15311       fi
15312       ;;
15313
15314     hpux11*)
15315       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15316         case $host_cpu in
15317         hppa*64*)
15318           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15319           ;;
15320         ia64*)
15321           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15322           ;;
15323         *)
15324           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15325           ;;
15326         esac
15327       else
15328         case $host_cpu in
15329         hppa*64*)
15330           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15331           ;;
15332         ia64*)
15333           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15334           ;;
15335         *)
15336           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15337           ;;
15338         esac
15339       fi
15340       if test "$with_gnu_ld" = no; then
15341         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15342         hardcode_libdir_separator_F77=:
15343
15344         case $host_cpu in
15345         hppa*64*|ia64*)
15346           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15347           hardcode_direct_F77=no
15348           hardcode_shlibpath_var_F77=no
15349           ;;
15350         *)
15351           hardcode_direct_F77=yes
15352           export_dynamic_flag_spec_F77='${wl}-E'
15353
15354           # hardcode_minus_L: Not really in the search PATH,
15355           # but as the default location of the library.
15356           hardcode_minus_L_F77=yes
15357           ;;
15358         esac
15359       fi
15360       ;;
15361
15362     irix5* | irix6* | nonstopux*)
15363       if test "$GCC" = yes; then
15364         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'
15365       else
15366         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'
15367         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15368       fi
15369       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15370       hardcode_libdir_separator_F77=:
15371       link_all_deplibs_F77=yes
15372       ;;
15373
15374     netbsd* | netbsdelf*-gnu)
15375       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15376         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15377       else
15378         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15379       fi
15380       hardcode_libdir_flag_spec_F77='-R$libdir'
15381       hardcode_direct_F77=yes
15382       hardcode_shlibpath_var_F77=no
15383       ;;
15384
15385     newsos6)
15386       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387       hardcode_direct_F77=yes
15388       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15389       hardcode_libdir_separator_F77=:
15390       hardcode_shlibpath_var_F77=no
15391       ;;
15392
15393     openbsd*)
15394       if test -f /usr/libexec/ld.so; then
15395         hardcode_direct_F77=yes
15396         hardcode_shlibpath_var_F77=no
15397         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15398           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15399           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15400           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15401           export_dynamic_flag_spec_F77='${wl}-E'
15402         else
15403           case $host_os in
15404            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15405              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15406              hardcode_libdir_flag_spec_F77='-R$libdir'
15407              ;;
15408            *)
15409              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15410              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15411              ;;
15412           esac
15413         fi
15414       else
15415         ld_shlibs_F77=no
15416       fi
15417       ;;
15418
15419     os2*)
15420       hardcode_libdir_flag_spec_F77='-L$libdir'
15421       hardcode_minus_L_F77=yes
15422       allow_undefined_flag_F77=unsupported
15423       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'
15424       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15425       ;;
15426
15427     osf3*)
15428       if test "$GCC" = yes; then
15429         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15430         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'
15431       else
15432         allow_undefined_flag_F77=' -expect_unresolved \*'
15433         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'
15434       fi
15435       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15436       hardcode_libdir_separator_F77=:
15437       ;;
15438
15439     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15440       if test "$GCC" = yes; then
15441         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15442         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'
15443         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15444       else
15445         allow_undefined_flag_F77=' -expect_unresolved \*'
15446         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'
15447         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~
15448         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15449
15450         # Both c and cxx compiler support -rpath directly
15451         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15452       fi
15453       hardcode_libdir_separator_F77=:
15454       ;;
15455
15456     solaris*)
15457       no_undefined_flag_F77=' -z text'
15458       if test "$GCC" = yes; then
15459         wlarc='${wl}'
15460         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15461         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15462           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15463       else
15464         wlarc=''
15465         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15467         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15468       fi
15469       hardcode_libdir_flag_spec_F77='-R$libdir'
15470       hardcode_shlibpath_var_F77=no
15471       case $host_os in
15472       solaris2.[0-5] | solaris2.[0-5].*) ;;
15473       *)
15474         # The compiler driver will combine and reorder linker options,
15475         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15476         # but is careful enough not to reorder.
15477         # Supported since Solaris 2.6 (maybe 2.5.1?)
15478         if test "$GCC" = yes; then
15479           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15480         else
15481           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15482         fi
15483         ;;
15484       esac
15485       link_all_deplibs_F77=yes
15486       ;;
15487
15488     sunos4*)
15489       if test "x$host_vendor" = xsequent; then
15490         # Use $CC to link under sequent, because it throws in some extra .o
15491         # files that make .init and .fini sections work.
15492         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15493       else
15494         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15495       fi
15496       hardcode_libdir_flag_spec_F77='-L$libdir'
15497       hardcode_direct_F77=yes
15498       hardcode_minus_L_F77=yes
15499       hardcode_shlibpath_var_F77=no
15500       ;;
15501
15502     sysv4)
15503       case $host_vendor in
15504         sni)
15505           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506           hardcode_direct_F77=yes # is this really true???
15507         ;;
15508         siemens)
15509           ## LD is ld it makes a PLAMLIB
15510           ## CC just makes a GrossModule.
15511           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15512           reload_cmds_F77='$CC -r -o $output$reload_objs'
15513           hardcode_direct_F77=no
15514         ;;
15515         motorola)
15516           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15517           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15518         ;;
15519       esac
15520       runpath_var='LD_RUN_PATH'
15521       hardcode_shlibpath_var_F77=no
15522       ;;
15523
15524     sysv4.3*)
15525       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526       hardcode_shlibpath_var_F77=no
15527       export_dynamic_flag_spec_F77='-Bexport'
15528       ;;
15529
15530     sysv4*MP*)
15531       if test -d /usr/nec; then
15532         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533         hardcode_shlibpath_var_F77=no
15534         runpath_var=LD_RUN_PATH
15535         hardcode_runpath_var=yes
15536         ld_shlibs_F77=yes
15537       fi
15538       ;;
15539
15540     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15541       no_undefined_flag_F77='${wl}-z,text'
15542       archive_cmds_need_lc_F77=no
15543       hardcode_shlibpath_var_F77=no
15544       runpath_var='LD_RUN_PATH'
15545
15546       if test "$GCC" = yes; then
15547         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15548         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15549       else
15550         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15551         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15552       fi
15553       ;;
15554
15555     sysv5* | sco3.2v5* | sco5v6*)
15556       # Note: We can NOT use -z defs as we might desire, because we do not
15557       # link with -lc, and that would cause any symbols used from libc to
15558       # always be unresolved, which means just about no library would
15559       # ever link correctly.  If we're not using GNU ld we use -z text
15560       # though, which does catch some bad symbols but isn't as heavy-handed
15561       # as -z defs.
15562       no_undefined_flag_F77='${wl}-z,text'
15563       allow_undefined_flag_F77='${wl}-z,nodefs'
15564       archive_cmds_need_lc_F77=no
15565       hardcode_shlibpath_var_F77=no
15566       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15567       hardcode_libdir_separator_F77=':'
15568       link_all_deplibs_F77=yes
15569       export_dynamic_flag_spec_F77='${wl}-Bexport'
15570       runpath_var='LD_RUN_PATH'
15571
15572       if test "$GCC" = yes; then
15573         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15574         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15575       else
15576         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15577         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15578       fi
15579       ;;
15580
15581     uts4*)
15582       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583       hardcode_libdir_flag_spec_F77='-L$libdir'
15584       hardcode_shlibpath_var_F77=no
15585       ;;
15586
15587     *)
15588       ld_shlibs_F77=no
15589       ;;
15590     esac
15591   fi
15592
15593 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15594 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15595 test "$ld_shlibs_F77" = no && can_build_shared=no
15596
15597 #
15598 # Do we need to explicitly link libc?
15599 #
15600 case "x$archive_cmds_need_lc_F77" in
15601 x|xyes)
15602   # Assume -lc should be added
15603   archive_cmds_need_lc_F77=yes
15604
15605   if test "$enable_shared" = yes && test "$GCC" = yes; then
15606     case $archive_cmds_F77 in
15607     *'~'*)
15608       # FIXME: we may have to deal with multi-command sequences.
15609       ;;
15610     '$CC '*)
15611       # Test whether the compiler implicitly links with -lc since on some
15612       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15613       # to ld, don't add -lc before -lgcc.
15614       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15615 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15616       $rm conftest*
15617       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15618
15619       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620   (eval $ac_compile) 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } 2>conftest.err; then
15624         soname=conftest
15625         lib=conftest
15626         libobjs=conftest.$ac_objext
15627         deplibs=
15628         wl=$lt_prog_compiler_wl_F77
15629         pic_flag=$lt_prog_compiler_pic_F77
15630         compiler_flags=-v
15631         linker_flags=-v
15632         verstring=
15633         output_objdir=.
15634         libname=conftest
15635         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15636         allow_undefined_flag_F77=
15637         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15638   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); }
15642         then
15643           archive_cmds_need_lc_F77=no
15644         else
15645           archive_cmds_need_lc_F77=yes
15646         fi
15647         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15648       else
15649         cat conftest.err 1>&5
15650       fi
15651       $rm conftest*
15652       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15653 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15654       ;;
15655     esac
15656   fi
15657   ;;
15658 esac
15659
15660 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15661 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15662 library_names_spec=
15663 libname_spec='lib$name'
15664 soname_spec=
15665 shrext_cmds=".so"
15666 postinstall_cmds=
15667 postuninstall_cmds=
15668 finish_cmds=
15669 finish_eval=
15670 shlibpath_var=
15671 shlibpath_overrides_runpath=unknown
15672 version_type=none
15673 dynamic_linker="$host_os ld.so"
15674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15675
15676 need_lib_prefix=unknown
15677 hardcode_into_libs=no
15678
15679 # when you set need_version to no, make sure it does not cause -set_version
15680 # flags to be left without arguments
15681 need_version=unknown
15682
15683 case $host_os in
15684 aix3*)
15685   version_type=linux
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15687   shlibpath_var=LIBPATH
15688
15689   # AIX 3 has no versioning support, so we append a major version to the name.
15690   soname_spec='${libname}${release}${shared_ext}$major'
15691   ;;
15692
15693 aix[4-9]*)
15694   version_type=linux
15695   need_lib_prefix=no
15696   need_version=no
15697   hardcode_into_libs=yes
15698   if test "$host_cpu" = ia64; then
15699     # AIX 5 supports IA64
15700     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15701     shlibpath_var=LD_LIBRARY_PATH
15702   else
15703     # With GCC up to 2.95.x, collect2 would create an import file
15704     # for dependence libraries.  The import file would start with
15705     # the line `#! .'.  This would cause the generated library to
15706     # depend on `.', always an invalid library.  This was fixed in
15707     # development snapshots of GCC prior to 3.0.
15708     case $host_os in
15709       aix4 | aix4.[01] | aix4.[01].*)
15710       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15711            echo ' yes '
15712            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15713         :
15714       else
15715         can_build_shared=no
15716       fi
15717       ;;
15718     esac
15719     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15720     # soname into executable. Probably we can add versioning support to
15721     # collect2, so additional links can be useful in future.
15722     if test "$aix_use_runtimelinking" = yes; then
15723       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15724       # instead of lib<name>.a to let people know that these are not
15725       # typical AIX shared libraries.
15726       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727     else
15728       # We preserve .a as extension for shared libraries through AIX4.2
15729       # and later when we are not doing run time linking.
15730       library_names_spec='${libname}${release}.a $libname.a'
15731       soname_spec='${libname}${release}${shared_ext}$major'
15732     fi
15733     shlibpath_var=LIBPATH
15734   fi
15735   ;;
15736
15737 amigaos*)
15738   library_names_spec='$libname.ixlibrary $libname.a'
15739   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15740   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'
15741   ;;
15742
15743 beos*)
15744   library_names_spec='${libname}${shared_ext}'
15745   dynamic_linker="$host_os ld.so"
15746   shlibpath_var=LIBRARY_PATH
15747   ;;
15748
15749 bsdi[45]*)
15750   version_type=linux
15751   need_version=no
15752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753   soname_spec='${libname}${release}${shared_ext}$major'
15754   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15755   shlibpath_var=LD_LIBRARY_PATH
15756   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15757   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15758   # the default ld.so.conf also contains /usr/contrib/lib and
15759   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15760   # libtool to hard-code these into programs
15761   ;;
15762
15763 cygwin* | mingw* | pw32*)
15764   version_type=windows
15765   shrext_cmds=".dll"
15766   need_version=no
15767   need_lib_prefix=no
15768
15769   case $GCC,$host_os in
15770   yes,cygwin* | yes,mingw* | yes,pw32*)
15771     library_names_spec='$libname.dll.a'
15772     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15773     postinstall_cmds='base_file=`basename \${file}`~
15774       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15775       dldir=$destdir/`dirname \$dlpath`~
15776       test -d \$dldir || mkdir -p \$dldir~
15777       $install_prog $dir/$dlname \$dldir/$dlname~
15778       chmod a+x \$dldir/$dlname'
15779     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780       dlpath=$dir/\$dldll~
15781        $rm \$dlpath'
15782     shlibpath_overrides_runpath=yes
15783
15784     case $host_os in
15785     cygwin*)
15786       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15787       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15788       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15789       ;;
15790     mingw*)
15791       # MinGW DLLs use traditional 'lib' prefix
15792       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15793       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15794       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15795         # It is most probably a Windows format PATH printed by
15796         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15797         # path with ; separators, and with drive letters. We can handle the
15798         # drive letters (cygwin fileutils understands them), so leave them,
15799         # especially as we might pass files found there to a mingw objdump,
15800         # which wouldn't understand a cygwinified path. Ahh.
15801         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15802       else
15803         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15804       fi
15805       ;;
15806     pw32*)
15807       # pw32 DLLs use 'pw' prefix rather than 'lib'
15808       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15809       ;;
15810     esac
15811     ;;
15812
15813   *)
15814     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15815     ;;
15816   esac
15817   dynamic_linker='Win32 ld.exe'
15818   # FIXME: first we should search . and the directory the executable is in
15819   shlibpath_var=PATH
15820   ;;
15821
15822 darwin* | rhapsody*)
15823   dynamic_linker="$host_os dyld"
15824   version_type=darwin
15825   need_lib_prefix=no
15826   need_version=no
15827   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15828   soname_spec='${libname}${release}${major}$shared_ext'
15829   shlibpath_overrides_runpath=yes
15830   shlibpath_var=DYLD_LIBRARY_PATH
15831   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15832
15833   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15834   ;;
15835
15836 dgux*)
15837   version_type=linux
15838   need_lib_prefix=no
15839   need_version=no
15840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15841   soname_spec='${libname}${release}${shared_ext}$major'
15842   shlibpath_var=LD_LIBRARY_PATH
15843   ;;
15844
15845 freebsd1*)
15846   dynamic_linker=no
15847   ;;
15848
15849 freebsd* | dragonfly*)
15850   # DragonFly does not have aout.  When/if they implement a new
15851   # versioning mechanism, adjust this.
15852   if test -x /usr/bin/objformat; then
15853     objformat=`/usr/bin/objformat`
15854   else
15855     case $host_os in
15856     freebsd[123]*) objformat=aout ;;
15857     *) objformat=elf ;;
15858     esac
15859   fi
15860   version_type=freebsd-$objformat
15861   case $version_type in
15862     freebsd-elf*)
15863       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15864       need_version=no
15865       need_lib_prefix=no
15866       ;;
15867     freebsd-*)
15868       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15869       need_version=yes
15870       ;;
15871   esac
15872   shlibpath_var=LD_LIBRARY_PATH
15873   case $host_os in
15874   freebsd2*)
15875     shlibpath_overrides_runpath=yes
15876     ;;
15877   freebsd3.[01]* | freebsdelf3.[01]*)
15878     shlibpath_overrides_runpath=yes
15879     hardcode_into_libs=yes
15880     ;;
15881   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15882   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15883     shlibpath_overrides_runpath=no
15884     hardcode_into_libs=yes
15885     ;;
15886   *) # from 4.6 on, and DragonFly
15887     shlibpath_overrides_runpath=yes
15888     hardcode_into_libs=yes
15889     ;;
15890   esac
15891   ;;
15892
15893 gnu*)
15894   version_type=linux
15895   need_lib_prefix=no
15896   need_version=no
15897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15898   soname_spec='${libname}${release}${shared_ext}$major'
15899   shlibpath_var=LD_LIBRARY_PATH
15900   hardcode_into_libs=yes
15901   ;;
15902
15903 hpux9* | hpux10* | hpux11*)
15904   # Give a soname corresponding to the major version so that dld.sl refuses to
15905   # link against other versions.
15906   version_type=sunos
15907   need_lib_prefix=no
15908   need_version=no
15909   case $host_cpu in
15910   ia64*)
15911     shrext_cmds='.so'
15912     hardcode_into_libs=yes
15913     dynamic_linker="$host_os dld.so"
15914     shlibpath_var=LD_LIBRARY_PATH
15915     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15917     soname_spec='${libname}${release}${shared_ext}$major'
15918     if test "X$HPUX_IA64_MODE" = X32; then
15919       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15920     else
15921       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15922     fi
15923     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15924     ;;
15925    hppa*64*)
15926      shrext_cmds='.sl'
15927      hardcode_into_libs=yes
15928      dynamic_linker="$host_os dld.sl"
15929      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15930      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15931      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932      soname_spec='${libname}${release}${shared_ext}$major'
15933      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15934      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15935      ;;
15936    *)
15937     shrext_cmds='.sl'
15938     dynamic_linker="$host_os dld.sl"
15939     shlibpath_var=SHLIB_PATH
15940     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942     soname_spec='${libname}${release}${shared_ext}$major'
15943     ;;
15944   esac
15945   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15946   postinstall_cmds='chmod 555 $lib'
15947   ;;
15948
15949 interix[3-9]*)
15950   version_type=linux
15951   need_lib_prefix=no
15952   need_version=no
15953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15954   soname_spec='${libname}${release}${shared_ext}$major'
15955   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15956   shlibpath_var=LD_LIBRARY_PATH
15957   shlibpath_overrides_runpath=no
15958   hardcode_into_libs=yes
15959   ;;
15960
15961 irix5* | irix6* | nonstopux*)
15962   case $host_os in
15963     nonstopux*) version_type=nonstopux ;;
15964     *)
15965         if test "$lt_cv_prog_gnu_ld" = yes; then
15966                 version_type=linux
15967         else
15968                 version_type=irix
15969         fi ;;
15970   esac
15971   need_lib_prefix=no
15972   need_version=no
15973   soname_spec='${libname}${release}${shared_ext}$major'
15974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15975   case $host_os in
15976   irix5* | nonstopux*)
15977     libsuff= shlibsuff=
15978     ;;
15979   *)
15980     case $LD in # libtool.m4 will add one of these switches to LD
15981     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15982       libsuff= shlibsuff= libmagic=32-bit;;
15983     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15984       libsuff=32 shlibsuff=N32 libmagic=N32;;
15985     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15986       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15987     *) libsuff= shlibsuff= libmagic=never-match;;
15988     esac
15989     ;;
15990   esac
15991   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15992   shlibpath_overrides_runpath=no
15993   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15994   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15995   hardcode_into_libs=yes
15996   ;;
15997
15998 # No shared lib support for Linux oldld, aout, or coff.
15999 linux*oldld* | linux*aout* | linux*coff*)
16000   dynamic_linker=no
16001   ;;
16002
16003 # This must be Linux ELF.
16004 linux* | k*bsd*-gnu)
16005   version_type=linux
16006   need_lib_prefix=no
16007   need_version=no
16008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009   soname_spec='${libname}${release}${shared_ext}$major'
16010   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   shlibpath_overrides_runpath=no
16013   # This implies no fast_install, which is unacceptable.
16014   # Some rework will be needed to allow for fast_install
16015   # before this can be enabled.
16016   hardcode_into_libs=yes
16017
16018   # Append ld.so.conf contents to the search path
16019   if test -f /etc/ld.so.conf; then
16020     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16021     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16022   fi
16023
16024   # We used to test for /lib/ld.so.1 and disable shared libraries on
16025   # powerpc, because MkLinux only supported shared libraries with the
16026   # GNU dynamic linker.  Since this was broken with cross compilers,
16027   # most powerpc-linux boxes support dynamic linking these days and
16028   # people can always --disable-shared, the test was removed, and we
16029   # assume the GNU/Linux dynamic linker is in use.
16030   dynamic_linker='GNU/Linux ld.so'
16031   ;;
16032
16033 netbsdelf*-gnu)
16034   version_type=linux
16035   need_lib_prefix=no
16036   need_version=no
16037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16038   soname_spec='${libname}${release}${shared_ext}$major'
16039   shlibpath_var=LD_LIBRARY_PATH
16040   shlibpath_overrides_runpath=no
16041   hardcode_into_libs=yes
16042   dynamic_linker='NetBSD ld.elf_so'
16043   ;;
16044
16045 netbsd*)
16046   version_type=sunos
16047   need_lib_prefix=no
16048   need_version=no
16049   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16051     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16052     dynamic_linker='NetBSD (a.out) ld.so'
16053   else
16054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055     soname_spec='${libname}${release}${shared_ext}$major'
16056     dynamic_linker='NetBSD ld.elf_so'
16057   fi
16058   shlibpath_var=LD_LIBRARY_PATH
16059   shlibpath_overrides_runpath=yes
16060   hardcode_into_libs=yes
16061   ;;
16062
16063 newsos6)
16064   version_type=linux
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   shlibpath_overrides_runpath=yes
16068   ;;
16069
16070 nto-qnx*)
16071   version_type=linux
16072   need_lib_prefix=no
16073   need_version=no
16074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075   soname_spec='${libname}${release}${shared_ext}$major'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=yes
16078   ;;
16079
16080 openbsd*)
16081   version_type=sunos
16082   sys_lib_dlsearch_path_spec="/usr/lib"
16083   need_lib_prefix=no
16084   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16085   case $host_os in
16086     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16087     *)                         need_version=no  ;;
16088   esac
16089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16090   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16093     case $host_os in
16094       openbsd2.[89] | openbsd2.[89].*)
16095         shlibpath_overrides_runpath=no
16096         ;;
16097       *)
16098         shlibpath_overrides_runpath=yes
16099         ;;
16100       esac
16101   else
16102     shlibpath_overrides_runpath=yes
16103   fi
16104   ;;
16105
16106 os2*)
16107   libname_spec='$name'
16108   shrext_cmds=".dll"
16109   need_lib_prefix=no
16110   library_names_spec='$libname${shared_ext} $libname.a'
16111   dynamic_linker='OS/2 ld.exe'
16112   shlibpath_var=LIBPATH
16113   ;;
16114
16115 osf3* | osf4* | osf5*)
16116   version_type=osf
16117   need_lib_prefix=no
16118   need_version=no
16119   soname_spec='${libname}${release}${shared_ext}$major'
16120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121   shlibpath_var=LD_LIBRARY_PATH
16122   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16123   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16124   ;;
16125
16126 rdos*)
16127   dynamic_linker=no
16128   ;;
16129
16130 solaris*)
16131   version_type=linux
16132   need_lib_prefix=no
16133   need_version=no
16134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135   soname_spec='${libname}${release}${shared_ext}$major'
16136   shlibpath_var=LD_LIBRARY_PATH
16137   shlibpath_overrides_runpath=yes
16138   hardcode_into_libs=yes
16139   # ldd complains unless libraries are executable
16140   postinstall_cmds='chmod +x $lib'
16141   ;;
16142
16143 sunos4*)
16144   version_type=sunos
16145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16146   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16147   shlibpath_var=LD_LIBRARY_PATH
16148   shlibpath_overrides_runpath=yes
16149   if test "$with_gnu_ld" = yes; then
16150     need_lib_prefix=no
16151   fi
16152   need_version=yes
16153   ;;
16154
16155 sysv4 | sysv4.3*)
16156   version_type=linux
16157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158   soname_spec='${libname}${release}${shared_ext}$major'
16159   shlibpath_var=LD_LIBRARY_PATH
16160   case $host_vendor in
16161     sni)
16162       shlibpath_overrides_runpath=no
16163       need_lib_prefix=no
16164       export_dynamic_flag_spec='${wl}-Blargedynsym'
16165       runpath_var=LD_RUN_PATH
16166       ;;
16167     siemens)
16168       need_lib_prefix=no
16169       ;;
16170     motorola)
16171       need_lib_prefix=no
16172       need_version=no
16173       shlibpath_overrides_runpath=no
16174       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16175       ;;
16176   esac
16177   ;;
16178
16179 sysv4*MP*)
16180   if test -d /usr/nec ;then
16181     version_type=linux
16182     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16183     soname_spec='$libname${shared_ext}.$major'
16184     shlibpath_var=LD_LIBRARY_PATH
16185   fi
16186   ;;
16187
16188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16189   version_type=freebsd-elf
16190   need_lib_prefix=no
16191   need_version=no
16192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16193   soname_spec='${libname}${release}${shared_ext}$major'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   hardcode_into_libs=yes
16196   if test "$with_gnu_ld" = yes; then
16197     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16198     shlibpath_overrides_runpath=no
16199   else
16200     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16201     shlibpath_overrides_runpath=yes
16202     case $host_os in
16203       sco3.2v5*)
16204         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16205         ;;
16206     esac
16207   fi
16208   sys_lib_dlsearch_path_spec='/usr/lib'
16209   ;;
16210
16211 uts4*)
16212   version_type=linux
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   ;;
16217
16218 *)
16219   dynamic_linker=no
16220   ;;
16221 esac
16222 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16223 echo "${ECHO_T}$dynamic_linker" >&6; }
16224 test "$dynamic_linker" = no && can_build_shared=no
16225
16226 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16227   echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16230 fi
16231
16232 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16234   echo $ECHO_N "(cached) $ECHO_C" >&6
16235 else
16236   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16237 fi
16238
16239 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16240
16241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16242 if test "$GCC" = yes; then
16243   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16244 fi
16245
16246 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16248 hardcode_action_F77=
16249 if test -n "$hardcode_libdir_flag_spec_F77" || \
16250    test -n "$runpath_var_F77" || \
16251    test "X$hardcode_automatic_F77" = "Xyes" ; then
16252
16253   # We can hardcode non-existant directories.
16254   if test "$hardcode_direct_F77" != no &&
16255      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16256      # have to relink, otherwise we might link with an installed library
16257      # when we should be linking with a yet-to-be-installed one
16258      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16259      test "$hardcode_minus_L_F77" != no; then
16260     # Linking always hardcodes the temporary library directory.
16261     hardcode_action_F77=relink
16262   else
16263     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16264     hardcode_action_F77=immediate
16265   fi
16266 else
16267   # We cannot hardcode anything, or else we can only hardcode existing
16268   # directories.
16269   hardcode_action_F77=unsupported
16270 fi
16271 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16272 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16273
16274 if test "$hardcode_action_F77" = relink; then
16275   # Fast installation is not supported
16276   enable_fast_install=no
16277 elif test "$shlibpath_overrides_runpath" = yes ||
16278      test "$enable_shared" = no; then
16279   # Fast installation is not necessary
16280   enable_fast_install=needless
16281 fi
16282
16283
16284 # The else clause should only fire when bootstrapping the
16285 # libtool distribution, otherwise you forgot to ship ltmain.sh
16286 # with your package, and you will get complaints that there are
16287 # no rules to generate ltmain.sh.
16288 if test -f "$ltmain"; then
16289   # See if we are running on zsh, and set the options which allow our commands through
16290   # without removal of \ escapes.
16291   if test -n "${ZSH_VERSION+set}" ; then
16292     setopt NO_GLOB_SUBST
16293   fi
16294   # Now quote all the things that may contain metacharacters while being
16295   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16296   # variables and quote the copies for generation of the libtool script.
16297   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16298     SED SHELL STRIP \
16299     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16300     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16301     deplibs_check_method reload_flag reload_cmds need_locks \
16302     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16303     lt_cv_sys_global_symbol_to_c_name_address \
16304     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16305     old_postinstall_cmds old_postuninstall_cmds \
16306     compiler_F77 \
16307     CC_F77 \
16308     LD_F77 \
16309     lt_prog_compiler_wl_F77 \
16310     lt_prog_compiler_pic_F77 \
16311     lt_prog_compiler_static_F77 \
16312     lt_prog_compiler_no_builtin_flag_F77 \
16313     export_dynamic_flag_spec_F77 \
16314     thread_safe_flag_spec_F77 \
16315     whole_archive_flag_spec_F77 \
16316     enable_shared_with_static_runtimes_F77 \
16317     old_archive_cmds_F77 \
16318     old_archive_from_new_cmds_F77 \
16319     predep_objects_F77 \
16320     postdep_objects_F77 \
16321     predeps_F77 \
16322     postdeps_F77 \
16323     compiler_lib_search_path_F77 \
16324     compiler_lib_search_dirs_F77 \
16325     archive_cmds_F77 \
16326     archive_expsym_cmds_F77 \
16327     postinstall_cmds_F77 \
16328     postuninstall_cmds_F77 \
16329     old_archive_from_expsyms_cmds_F77 \
16330     allow_undefined_flag_F77 \
16331     no_undefined_flag_F77 \
16332     export_symbols_cmds_F77 \
16333     hardcode_libdir_flag_spec_F77 \
16334     hardcode_libdir_flag_spec_ld_F77 \
16335     hardcode_libdir_separator_F77 \
16336     hardcode_automatic_F77 \
16337     module_cmds_F77 \
16338     module_expsym_cmds_F77 \
16339     lt_cv_prog_compiler_c_o_F77 \
16340     fix_srcfile_path_F77 \
16341     exclude_expsyms_F77 \
16342     include_expsyms_F77; do
16343
16344     case $var in
16345     old_archive_cmds_F77 | \
16346     old_archive_from_new_cmds_F77 | \
16347     archive_cmds_F77 | \
16348     archive_expsym_cmds_F77 | \
16349     module_cmds_F77 | \
16350     module_expsym_cmds_F77 | \
16351     old_archive_from_expsyms_cmds_F77 | \
16352     export_symbols_cmds_F77 | \
16353     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16354     postinstall_cmds | postuninstall_cmds | \
16355     old_postinstall_cmds | old_postuninstall_cmds | \
16356     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16357       # Double-quote double-evaled strings.
16358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16359       ;;
16360     *)
16361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16362       ;;
16363     esac
16364   done
16365
16366   case $lt_echo in
16367   *'\$0 --fallback-echo"')
16368     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16369     ;;
16370   esac
16371
16372 cfgfile="$ofile"
16373
16374   cat <<__EOF__ >> "$cfgfile"
16375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16376
16377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16378
16379 # Shell to use when invoking shell scripts.
16380 SHELL=$lt_SHELL
16381
16382 # Whether or not to build shared libraries.
16383 build_libtool_libs=$enable_shared
16384
16385 # Whether or not to build static libraries.
16386 build_old_libs=$enable_static
16387
16388 # Whether or not to add -lc for building shared libraries.
16389 build_libtool_need_lc=$archive_cmds_need_lc_F77
16390
16391 # Whether or not to disallow shared libs when runtime libs are static
16392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16393
16394 # Whether or not to optimize for fast installation.
16395 fast_install=$enable_fast_install
16396
16397 # The host system.
16398 host_alias=$host_alias
16399 host=$host
16400 host_os=$host_os
16401
16402 # The build system.
16403 build_alias=$build_alias
16404 build=$build
16405 build_os=$build_os
16406
16407 # An echo program that does not interpret backslashes.
16408 echo=$lt_echo
16409
16410 # The archiver.
16411 AR=$lt_AR
16412 AR_FLAGS=$lt_AR_FLAGS
16413
16414 # A C compiler.
16415 LTCC=$lt_LTCC
16416
16417 # LTCC compiler flags.
16418 LTCFLAGS=$lt_LTCFLAGS
16419
16420 # A language-specific compiler.
16421 CC=$lt_compiler_F77
16422
16423 # Is the compiler the GNU C compiler?
16424 with_gcc=$GCC_F77
16425
16426 # An ERE matcher.
16427 EGREP=$lt_EGREP
16428
16429 # The linker used to build libraries.
16430 LD=$lt_LD_F77
16431
16432 # Whether we need hard or soft links.
16433 LN_S=$lt_LN_S
16434
16435 # A BSD-compatible nm program.
16436 NM=$lt_NM
16437
16438 # A symbol stripping program
16439 STRIP=$lt_STRIP
16440
16441 # Used to examine libraries when file_magic_cmd begins "file"
16442 MAGIC_CMD=$MAGIC_CMD
16443
16444 # Used on cygwin: DLL creation program.
16445 DLLTOOL="$DLLTOOL"
16446
16447 # Used on cygwin: object dumper.
16448 OBJDUMP="$OBJDUMP"
16449
16450 # Used on cygwin: assembler.
16451 AS="$AS"
16452
16453 # The name of the directory that contains temporary libtool files.
16454 objdir=$objdir
16455
16456 # How to create reloadable object files.
16457 reload_flag=$lt_reload_flag
16458 reload_cmds=$lt_reload_cmds
16459
16460 # How to pass a linker flag through the compiler.
16461 wl=$lt_lt_prog_compiler_wl_F77
16462
16463 # Object file suffix (normally "o").
16464 objext="$ac_objext"
16465
16466 # Old archive suffix (normally "a").
16467 libext="$libext"
16468
16469 # Shared library suffix (normally ".so").
16470 shrext_cmds='$shrext_cmds'
16471
16472 # Executable file suffix (normally "").
16473 exeext="$exeext"
16474
16475 # Additional compiler flags for building library objects.
16476 pic_flag=$lt_lt_prog_compiler_pic_F77
16477 pic_mode=$pic_mode
16478
16479 # What is the maximum length of a command?
16480 max_cmd_len=$lt_cv_sys_max_cmd_len
16481
16482 # Does compiler simultaneously support -c and -o options?
16483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16484
16485 # Must we lock files when doing compilation?
16486 need_locks=$lt_need_locks
16487
16488 # Do we need the lib prefix for modules?
16489 need_lib_prefix=$need_lib_prefix
16490
16491 # Do we need a version for libraries?
16492 need_version=$need_version
16493
16494 # Whether dlopen is supported.
16495 dlopen_support=$enable_dlopen
16496
16497 # Whether dlopen of programs is supported.
16498 dlopen_self=$enable_dlopen_self
16499
16500 # Whether dlopen of statically linked programs is supported.
16501 dlopen_self_static=$enable_dlopen_self_static
16502
16503 # Compiler flag to prevent dynamic linking.
16504 link_static_flag=$lt_lt_prog_compiler_static_F77
16505
16506 # Compiler flag to turn off builtin functions.
16507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16508
16509 # Compiler flag to allow reflexive dlopens.
16510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16511
16512 # Compiler flag to generate shared objects directly from archives.
16513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16514
16515 # Compiler flag to generate thread-safe objects.
16516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16517
16518 # Library versioning type.
16519 version_type=$version_type
16520
16521 # Format of library name prefix.
16522 libname_spec=$lt_libname_spec
16523
16524 # List of archive names.  First name is the real one, the rest are links.
16525 # The last name is the one that the linker finds with -lNAME.
16526 library_names_spec=$lt_library_names_spec
16527
16528 # The coded name of the library, if different from the real name.
16529 soname_spec=$lt_soname_spec
16530
16531 # Commands used to build and install an old-style archive.
16532 RANLIB=$lt_RANLIB
16533 old_archive_cmds=$lt_old_archive_cmds_F77
16534 old_postinstall_cmds=$lt_old_postinstall_cmds
16535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16536
16537 # Create an old-style archive from a shared archive.
16538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16539
16540 # Create a temporary old-style archive to link instead of a shared archive.
16541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16542
16543 # Commands used to build and install a shared archive.
16544 archive_cmds=$lt_archive_cmds_F77
16545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16546 postinstall_cmds=$lt_postinstall_cmds
16547 postuninstall_cmds=$lt_postuninstall_cmds
16548
16549 # Commands used to build a loadable module (assumed same as above if empty)
16550 module_cmds=$lt_module_cmds_F77
16551 module_expsym_cmds=$lt_module_expsym_cmds_F77
16552
16553 # Commands to strip libraries.
16554 old_striplib=$lt_old_striplib
16555 striplib=$lt_striplib
16556
16557 # Dependencies to place before the objects being linked to create a
16558 # shared library.
16559 predep_objects=$lt_predep_objects_F77
16560
16561 # Dependencies to place after the objects being linked to create a
16562 # shared library.
16563 postdep_objects=$lt_postdep_objects_F77
16564
16565 # Dependencies to place before the objects being linked to create a
16566 # shared library.
16567 predeps=$lt_predeps_F77
16568
16569 # Dependencies to place after the objects being linked to create a
16570 # shared library.
16571 postdeps=$lt_postdeps_F77
16572
16573 # The directories searched by this compiler when creating a shared
16574 # library
16575 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16576
16577 # The library search path used internally by the compiler when linking
16578 # a shared library.
16579 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16580
16581 # Method to check whether dependent libraries are shared objects.
16582 deplibs_check_method=$lt_deplibs_check_method
16583
16584 # Command to use when deplibs_check_method == file_magic.
16585 file_magic_cmd=$lt_file_magic_cmd
16586
16587 # Flag that allows shared libraries with undefined symbols to be built.
16588 allow_undefined_flag=$lt_allow_undefined_flag_F77
16589
16590 # Flag that forces no undefined symbols.
16591 no_undefined_flag=$lt_no_undefined_flag_F77
16592
16593 # Commands used to finish a libtool library installation in a directory.
16594 finish_cmds=$lt_finish_cmds
16595
16596 # Same as above, but a single script fragment to be evaled but not shown.
16597 finish_eval=$lt_finish_eval
16598
16599 # Take the output of nm and produce a listing of raw symbols and C names.
16600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16601
16602 # Transform the output of nm in a proper C declaration
16603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16604
16605 # Transform the output of nm in a C name address pair
16606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16607
16608 # This is the shared library runtime path variable.
16609 runpath_var=$runpath_var
16610
16611 # This is the shared library path variable.
16612 shlibpath_var=$shlibpath_var
16613
16614 # Is shlibpath searched before the hard-coded library search path?
16615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16616
16617 # How to hardcode a shared library path into an executable.
16618 hardcode_action=$hardcode_action_F77
16619
16620 # Whether we should hardcode library paths into libraries.
16621 hardcode_into_libs=$hardcode_into_libs
16622
16623 # Flag to hardcode \$libdir into a binary during linking.
16624 # This must work even if \$libdir does not exist.
16625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16626
16627 # If ld is used when linking, flag to hardcode \$libdir into
16628 # a binary during linking. This must work even if \$libdir does
16629 # not exist.
16630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16631
16632 # Whether we need a single -rpath flag with a separated argument.
16633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16634
16635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16636 # resulting binary.
16637 hardcode_direct=$hardcode_direct_F77
16638
16639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16640 # resulting binary.
16641 hardcode_minus_L=$hardcode_minus_L_F77
16642
16643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16644 # the resulting binary.
16645 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16646
16647 # Set to yes if building a shared library automatically hardcodes DIR into the library
16648 # and all subsequent libraries and executables linked against it.
16649 hardcode_automatic=$hardcode_automatic_F77
16650
16651 # Variables whose values should be saved in libtool wrapper scripts and
16652 # restored at relink time.
16653 variables_saved_for_relink="$variables_saved_for_relink"
16654
16655 # Whether libtool must link a program against all its dependency libraries.
16656 link_all_deplibs=$link_all_deplibs_F77
16657
16658 # Compile-time system search path for libraries
16659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16660
16661 # Run-time system search path for libraries
16662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16663
16664 # Fix the shell variable \$srcfile for the compiler.
16665 fix_srcfile_path=$lt_fix_srcfile_path
16666
16667 # Set to yes if exported symbols are required.
16668 always_export_symbols=$always_export_symbols_F77
16669
16670 # The commands to list exported symbols.
16671 export_symbols_cmds=$lt_export_symbols_cmds_F77
16672
16673 # The commands to extract the exported symbol list from a shared archive.
16674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16675
16676 # Symbols that should not be listed in the preloaded symbols.
16677 exclude_expsyms=$lt_exclude_expsyms_F77
16678
16679 # Symbols that must always be exported.
16680 include_expsyms=$lt_include_expsyms_F77
16681
16682 # ### END LIBTOOL TAG CONFIG: $tagname
16683
16684 __EOF__
16685
16686
16687 else
16688   # If there is no Makefile yet, we rely on a make rule to execute
16689   # `config.status --recheck' to rerun these tests and create the
16690   # libtool script then.
16691   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16692   if test -f "$ltmain_in"; then
16693     test -f Makefile && make "$ltmain"
16694   fi
16695 fi
16696
16697
16698 ac_ext=c
16699 ac_cpp='$CPP $CPPFLAGS'
16700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16703
16704 CC="$lt_save_CC"
16705
16706         else
16707           tagname=""
16708         fi
16709         ;;
16710
16711       GCJ)
16712         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16713
16714
16715 # Source file extension for Java test sources.
16716 ac_ext=java
16717
16718 # Object file extension for compiled Java test sources.
16719 objext=o
16720 objext_GCJ=$objext
16721
16722 # Code to be used in simple compile tests
16723 lt_simple_compile_test_code="class foo {}"
16724
16725 # Code to be used in simple link tests
16726 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16727
16728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16729
16730 # If no C compiler was specified, use CC.
16731 LTCC=${LTCC-"$CC"}
16732
16733 # If no C compiler flags were specified, use CFLAGS.
16734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16735
16736 # Allow CC to be a program name with arguments.
16737 compiler=$CC
16738
16739
16740 # save warnings/boilerplate of simple test code
16741 ac_outfile=conftest.$ac_objext
16742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16744 _lt_compiler_boilerplate=`cat conftest.err`
16745 $rm conftest*
16746
16747 ac_outfile=conftest.$ac_objext
16748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16750 _lt_linker_boilerplate=`cat conftest.err`
16751 $rm -r conftest*
16752
16753
16754 # Allow CC to be a program name with arguments.
16755 lt_save_CC="$CC"
16756 CC=${GCJ-"gcj"}
16757 compiler=$CC
16758 compiler_GCJ=$CC
16759 for cc_temp in $compiler""; do
16760   case $cc_temp in
16761     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16762     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16763     \-*) ;;
16764     *) break;;
16765   esac
16766 done
16767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16768
16769
16770 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16771 archive_cmds_need_lc_GCJ=no
16772
16773 old_archive_cmds_GCJ=$old_archive_cmds
16774
16775
16776 lt_prog_compiler_no_builtin_flag_GCJ=
16777
16778 if test "$GCC" = yes; then
16779   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16780
16781
16782 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16783 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16784 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16785   echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787   lt_cv_prog_compiler_rtti_exceptions=no
16788   ac_outfile=conftest.$ac_objext
16789    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16790    lt_compiler_flag="-fno-rtti -fno-exceptions"
16791    # Insert the option either (1) after the last *FLAGS variable, or
16792    # (2) before a word containing "conftest.", or (3) at the end.
16793    # Note that $ac_compile itself does not contain backslashes and begins
16794    # with a dollar sign (not a hyphen), so the echo should work correctly.
16795    # The option is referenced via a variable to avoid confusing sed.
16796    lt_compile=`echo "$ac_compile" | $SED \
16797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16799    -e 's:$: $lt_compiler_flag:'`
16800    (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
16801    (eval "$lt_compile" 2>conftest.err)
16802    ac_status=$?
16803    cat conftest.err >&5
16804    echo "$as_me:16804: \$? = $ac_status" >&5
16805    if (exit $ac_status) && test -s "$ac_outfile"; then
16806      # The compiler can only warn and ignore the option if not recognized
16807      # So say no if there are warnings other than the usual output.
16808      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16809      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16810      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16811        lt_cv_prog_compiler_rtti_exceptions=yes
16812      fi
16813    fi
16814    $rm conftest*
16815
16816 fi
16817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16818 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16819
16820 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16821     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16822 else
16823     :
16824 fi
16825
16826 fi
16827
16828 lt_prog_compiler_wl_GCJ=
16829 lt_prog_compiler_pic_GCJ=
16830 lt_prog_compiler_static_GCJ=
16831
16832 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16833 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16834
16835   if test "$GCC" = yes; then
16836     lt_prog_compiler_wl_GCJ='-Wl,'
16837     lt_prog_compiler_static_GCJ='-static'
16838
16839     case $host_os in
16840       aix*)
16841       # All AIX code is PIC.
16842       if test "$host_cpu" = ia64; then
16843         # AIX 5 now supports IA64 processor
16844         lt_prog_compiler_static_GCJ='-Bstatic'
16845       fi
16846       ;;
16847
16848     amigaos*)
16849       # FIXME: we need at least 68020 code to build shared libraries, but
16850       # adding the `-m68020' flag to GCC prevents building anything better,
16851       # like `-m68040'.
16852       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16853       ;;
16854
16855     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16856       # PIC is the default for these OSes.
16857       ;;
16858
16859     mingw* | cygwin* | pw32* | os2*)
16860       # This hack is so that the source file can tell whether it is being
16861       # built for inclusion in a dll (and should export symbols for example).
16862       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16863       # (--disable-auto-import) libraries
16864
16865       ;;
16866
16867     darwin* | rhapsody*)
16868       # PIC is the default on this platform
16869       # Common symbols not allowed in MH_DYLIB files
16870       lt_prog_compiler_pic_GCJ='-fno-common'
16871       ;;
16872
16873     interix[3-9]*)
16874       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16875       # Instead, we relocate shared libraries at runtime.
16876       ;;
16877
16878     msdosdjgpp*)
16879       # Just because we use GCC doesn't mean we suddenly get shared libraries
16880       # on systems that don't support them.
16881       lt_prog_compiler_can_build_shared_GCJ=no
16882       enable_shared=no
16883       ;;
16884
16885     sysv4*MP*)
16886       if test -d /usr/nec; then
16887         lt_prog_compiler_pic_GCJ=-Kconform_pic
16888       fi
16889       ;;
16890
16891     hpux*)
16892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16893       # not for PA HP-UX.
16894       case $host_cpu in
16895       hppa*64*|ia64*)
16896         # +Z the default
16897         ;;
16898       *)
16899         lt_prog_compiler_pic_GCJ='-fPIC'
16900         ;;
16901       esac
16902       ;;
16903
16904     *)
16905       lt_prog_compiler_pic_GCJ='-fPIC'
16906       ;;
16907     esac
16908   else
16909     # PORTME Check for flag to pass linker flags through the system compiler.
16910     case $host_os in
16911     aix*)
16912       lt_prog_compiler_wl_GCJ='-Wl,'
16913       if test "$host_cpu" = ia64; then
16914         # AIX 5 now supports IA64 processor
16915         lt_prog_compiler_static_GCJ='-Bstatic'
16916       else
16917         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16918       fi
16919       ;;
16920       darwin*)
16921         # PIC is the default on this platform
16922         # Common symbols not allowed in MH_DYLIB files
16923        case $cc_basename in
16924          xlc*)
16925          lt_prog_compiler_pic_GCJ='-qnocommon'
16926          lt_prog_compiler_wl_GCJ='-Wl,'
16927          ;;
16928        esac
16929        ;;
16930
16931     mingw* | cygwin* | pw32* | os2*)
16932       # This hack is so that the source file can tell whether it is being
16933       # built for inclusion in a dll (and should export symbols for example).
16934
16935       ;;
16936
16937     hpux9* | hpux10* | hpux11*)
16938       lt_prog_compiler_wl_GCJ='-Wl,'
16939       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16940       # not for PA HP-UX.
16941       case $host_cpu in
16942       hppa*64*|ia64*)
16943         # +Z the default
16944         ;;
16945       *)
16946         lt_prog_compiler_pic_GCJ='+Z'
16947         ;;
16948       esac
16949       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16950       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16951       ;;
16952
16953     irix5* | irix6* | nonstopux*)
16954       lt_prog_compiler_wl_GCJ='-Wl,'
16955       # PIC (with -KPIC) is the default.
16956       lt_prog_compiler_static_GCJ='-non_shared'
16957       ;;
16958
16959     newsos6)
16960       lt_prog_compiler_pic_GCJ='-KPIC'
16961       lt_prog_compiler_static_GCJ='-Bstatic'
16962       ;;
16963
16964     linux* | k*bsd*-gnu)
16965       case $cc_basename in
16966       icc* | ecc*)
16967         lt_prog_compiler_wl_GCJ='-Wl,'
16968         lt_prog_compiler_pic_GCJ='-KPIC'
16969         lt_prog_compiler_static_GCJ='-static'
16970         ;;
16971       pgcc* | pgf77* | pgf90* | pgf95*)
16972         # Portland Group compilers (*not* the Pentium gcc compiler,
16973         # which looks to be a dead project)
16974         lt_prog_compiler_wl_GCJ='-Wl,'
16975         lt_prog_compiler_pic_GCJ='-fpic'
16976         lt_prog_compiler_static_GCJ='-Bstatic'
16977         ;;
16978       ccc*)
16979         lt_prog_compiler_wl_GCJ='-Wl,'
16980         # All Alpha code is PIC.
16981         lt_prog_compiler_static_GCJ='-non_shared'
16982         ;;
16983       *)
16984         case `$CC -V 2>&1 | sed 5q` in
16985         *Sun\ C*)
16986           # Sun C 5.9
16987           lt_prog_compiler_pic_GCJ='-KPIC'
16988           lt_prog_compiler_static_GCJ='-Bstatic'
16989           lt_prog_compiler_wl_GCJ='-Wl,'
16990           ;;
16991         *Sun\ F*)
16992           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16993           lt_prog_compiler_pic_GCJ='-KPIC'
16994           lt_prog_compiler_static_GCJ='-Bstatic'
16995           lt_prog_compiler_wl_GCJ=''
16996           ;;
16997         esac
16998         ;;
16999       esac
17000       ;;
17001
17002     osf3* | osf4* | osf5*)
17003       lt_prog_compiler_wl_GCJ='-Wl,'
17004       # All OSF/1 code is PIC.
17005       lt_prog_compiler_static_GCJ='-non_shared'
17006       ;;
17007
17008     rdos*)
17009       lt_prog_compiler_static_GCJ='-non_shared'
17010       ;;
17011
17012     solaris*)
17013       lt_prog_compiler_pic_GCJ='-KPIC'
17014       lt_prog_compiler_static_GCJ='-Bstatic'
17015       case $cc_basename in
17016       f77* | f90* | f95*)
17017         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17018       *)
17019         lt_prog_compiler_wl_GCJ='-Wl,';;
17020       esac
17021       ;;
17022
17023     sunos4*)
17024       lt_prog_compiler_wl_GCJ='-Qoption ld '
17025       lt_prog_compiler_pic_GCJ='-PIC'
17026       lt_prog_compiler_static_GCJ='-Bstatic'
17027       ;;
17028
17029     sysv4 | sysv4.2uw2* | sysv4.3*)
17030       lt_prog_compiler_wl_GCJ='-Wl,'
17031       lt_prog_compiler_pic_GCJ='-KPIC'
17032       lt_prog_compiler_static_GCJ='-Bstatic'
17033       ;;
17034
17035     sysv4*MP*)
17036       if test -d /usr/nec ;then
17037         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17038         lt_prog_compiler_static_GCJ='-Bstatic'
17039       fi
17040       ;;
17041
17042     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17043       lt_prog_compiler_wl_GCJ='-Wl,'
17044       lt_prog_compiler_pic_GCJ='-KPIC'
17045       lt_prog_compiler_static_GCJ='-Bstatic'
17046       ;;
17047
17048     unicos*)
17049       lt_prog_compiler_wl_GCJ='-Wl,'
17050       lt_prog_compiler_can_build_shared_GCJ=no
17051       ;;
17052
17053     uts4*)
17054       lt_prog_compiler_pic_GCJ='-pic'
17055       lt_prog_compiler_static_GCJ='-Bstatic'
17056       ;;
17057
17058     *)
17059       lt_prog_compiler_can_build_shared_GCJ=no
17060       ;;
17061     esac
17062   fi
17063
17064 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17065 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17066
17067 #
17068 # Check to make sure the PIC flag actually works.
17069 #
17070 if test -n "$lt_prog_compiler_pic_GCJ"; then
17071
17072 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17073 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17074 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17075   echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077   lt_cv_prog_compiler_pic_works_GCJ=no
17078   ac_outfile=conftest.$ac_objext
17079    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17080    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17081    # Insert the option either (1) after the last *FLAGS variable, or
17082    # (2) before a word containing "conftest.", or (3) at the end.
17083    # Note that $ac_compile itself does not contain backslashes and begins
17084    # with a dollar sign (not a hyphen), so the echo should work correctly.
17085    # The option is referenced via a variable to avoid confusing sed.
17086    lt_compile=`echo "$ac_compile" | $SED \
17087    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17088    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17089    -e 's:$: $lt_compiler_flag:'`
17090    (eval echo "\"\$as_me:17090: $lt_compile\"" >&5)
17091    (eval "$lt_compile" 2>conftest.err)
17092    ac_status=$?
17093    cat conftest.err >&5
17094    echo "$as_me:17094: \$? = $ac_status" >&5
17095    if (exit $ac_status) && test -s "$ac_outfile"; then
17096      # The compiler can only warn and ignore the option if not recognized
17097      # So say no if there are warnings other than the usual output.
17098      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17099      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17100      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17101        lt_cv_prog_compiler_pic_works_GCJ=yes
17102      fi
17103    fi
17104    $rm conftest*
17105
17106 fi
17107 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17108 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17109
17110 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17111     case $lt_prog_compiler_pic_GCJ in
17112      "" | " "*) ;;
17113      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17114      esac
17115 else
17116     lt_prog_compiler_pic_GCJ=
17117      lt_prog_compiler_can_build_shared_GCJ=no
17118 fi
17119
17120 fi
17121 case $host_os in
17122   # For platforms which do not support PIC, -DPIC is meaningless:
17123   *djgpp*)
17124     lt_prog_compiler_pic_GCJ=
17125     ;;
17126   *)
17127     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17128     ;;
17129 esac
17130
17131 #
17132 # Check to make sure the static flag actually works.
17133 #
17134 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17135 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17136 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17137 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17138   echo $ECHO_N "(cached) $ECHO_C" >&6
17139 else
17140   lt_cv_prog_compiler_static_works_GCJ=no
17141    save_LDFLAGS="$LDFLAGS"
17142    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17143    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17144    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17145      # The linker can only warn and ignore the option if not recognized
17146      # So say no if there are warnings
17147      if test -s conftest.err; then
17148        # Append any errors to the config.log.
17149        cat conftest.err 1>&5
17150        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17151        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17152        if diff conftest.exp conftest.er2 >/dev/null; then
17153          lt_cv_prog_compiler_static_works_GCJ=yes
17154        fi
17155      else
17156        lt_cv_prog_compiler_static_works_GCJ=yes
17157      fi
17158    fi
17159    $rm -r conftest*
17160    LDFLAGS="$save_LDFLAGS"
17161
17162 fi
17163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17164 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17165
17166 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17167     :
17168 else
17169     lt_prog_compiler_static_GCJ=
17170 fi
17171
17172
17173 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17174 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17175 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17176   echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178   lt_cv_prog_compiler_c_o_GCJ=no
17179    $rm -r conftest 2>/dev/null
17180    mkdir conftest
17181    cd conftest
17182    mkdir out
17183    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17184
17185    lt_compiler_flag="-o out/conftest2.$ac_objext"
17186    # Insert the option either (1) after the last *FLAGS variable, or
17187    # (2) before a word containing "conftest.", or (3) at the end.
17188    # Note that $ac_compile itself does not contain backslashes and begins
17189    # with a dollar sign (not a hyphen), so the echo should work correctly.
17190    lt_compile=`echo "$ac_compile" | $SED \
17191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193    -e 's:$: $lt_compiler_flag:'`
17194    (eval echo "\"\$as_me:17194: $lt_compile\"" >&5)
17195    (eval "$lt_compile" 2>out/conftest.err)
17196    ac_status=$?
17197    cat out/conftest.err >&5
17198    echo "$as_me:17198: \$? = $ac_status" >&5
17199    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17200    then
17201      # The compiler can only warn and ignore the option if not recognized
17202      # So say no if there are warnings
17203      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17204      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17205      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17206        lt_cv_prog_compiler_c_o_GCJ=yes
17207      fi
17208    fi
17209    chmod u+w . 2>&5
17210    $rm conftest*
17211    # SGI C++ compiler will create directory out/ii_files/ for
17212    # template instantiation
17213    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17214    $rm out/* && rmdir out
17215    cd ..
17216    rmdir conftest
17217    $rm conftest*
17218
17219 fi
17220 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17221 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17222
17223
17224 hard_links="nottested"
17225 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17226   # do not overwrite the value of need_locks provided by the user
17227   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17228 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17229   hard_links=yes
17230   $rm conftest*
17231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17232   touch conftest.a
17233   ln conftest.a conftest.b 2>&5 || hard_links=no
17234   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17235   { echo "$as_me:$LINENO: result: $hard_links" >&5
17236 echo "${ECHO_T}$hard_links" >&6; }
17237   if test "$hard_links" = no; then
17238     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17239 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17240     need_locks=warn
17241   fi
17242 else
17243   need_locks=no
17244 fi
17245
17246 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17247 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17248
17249   runpath_var=
17250   allow_undefined_flag_GCJ=
17251   enable_shared_with_static_runtimes_GCJ=no
17252   archive_cmds_GCJ=
17253   archive_expsym_cmds_GCJ=
17254   old_archive_From_new_cmds_GCJ=
17255   old_archive_from_expsyms_cmds_GCJ=
17256   export_dynamic_flag_spec_GCJ=
17257   whole_archive_flag_spec_GCJ=
17258   thread_safe_flag_spec_GCJ=
17259   hardcode_libdir_flag_spec_GCJ=
17260   hardcode_libdir_flag_spec_ld_GCJ=
17261   hardcode_libdir_separator_GCJ=
17262   hardcode_direct_GCJ=no
17263   hardcode_minus_L_GCJ=no
17264   hardcode_shlibpath_var_GCJ=unsupported
17265   link_all_deplibs_GCJ=unknown
17266   hardcode_automatic_GCJ=no
17267   module_cmds_GCJ=
17268   module_expsym_cmds_GCJ=
17269   always_export_symbols_GCJ=no
17270   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17271   # include_expsyms should be a list of space-separated symbols to be *always*
17272   # included in the symbol list
17273   include_expsyms_GCJ=
17274   # exclude_expsyms can be an extended regexp of symbols to exclude
17275   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17276   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17277   # as well as any symbol that contains `d'.
17278   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17279   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17280   # platforms (ab)use it in PIC code, but their linkers get confused if
17281   # the symbol is explicitly referenced.  Since portable code cannot
17282   # rely on this symbol name, it's probably fine to never include it in
17283   # preloaded symbol tables.
17284   # Exclude shared library initialization/finalization symbols.
17285   extract_expsyms_cmds=
17286   # Just being paranoid about ensuring that cc_basename is set.
17287   for cc_temp in $compiler""; do
17288   case $cc_temp in
17289     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17290     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17291     \-*) ;;
17292     *) break;;
17293   esac
17294 done
17295 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17296
17297   case $host_os in
17298   cygwin* | mingw* | pw32*)
17299     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17300     # When not using gcc, we currently assume that we are using
17301     # Microsoft Visual C++.
17302     if test "$GCC" != yes; then
17303       with_gnu_ld=no
17304     fi
17305     ;;
17306   interix*)
17307     # we just hope/assume this is gcc and not c89 (= MSVC++)
17308     with_gnu_ld=yes
17309     ;;
17310   openbsd*)
17311     with_gnu_ld=no
17312     ;;
17313   esac
17314
17315   ld_shlibs_GCJ=yes
17316   if test "$with_gnu_ld" = yes; then
17317     # If archive_cmds runs LD, not CC, wlarc should be empty
17318     wlarc='${wl}'
17319
17320     # Set some defaults for GNU ld with shared library support. These
17321     # are reset later if shared libraries are not supported. Putting them
17322     # here allows them to be overridden if necessary.
17323     runpath_var=LD_RUN_PATH
17324     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17325     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17326     # ancient GNU ld didn't support --whole-archive et. al.
17327     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17328         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17329       else
17330         whole_archive_flag_spec_GCJ=
17331     fi
17332     supports_anon_versioning=no
17333     case `$LD -v 2>/dev/null` in
17334       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17335       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17336       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17337       *\ 2.11.*) ;; # other 2.11 versions
17338       *) supports_anon_versioning=yes ;;
17339     esac
17340
17341     # See if GNU ld supports shared libraries.
17342     case $host_os in
17343     aix[3-9]*)
17344       # On AIX/PPC, the GNU linker is very broken
17345       if test "$host_cpu" != ia64; then
17346         ld_shlibs_GCJ=no
17347         cat <<EOF 1>&2
17348
17349 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17350 *** to be unable to reliably create shared libraries on AIX.
17351 *** Therefore, libtool is disabling shared libraries support.  If you
17352 *** really care for shared libraries, you may want to modify your PATH
17353 *** so that a non-GNU linker is found, and then restart.
17354
17355 EOF
17356       fi
17357       ;;
17358
17359     amigaos*)
17360       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)'
17361       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17362       hardcode_minus_L_GCJ=yes
17363
17364       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17365       # that the semantics of dynamic libraries on AmigaOS, at least up
17366       # to version 4, is to share data among multiple programs linked
17367       # with the same dynamic library.  Since this doesn't match the
17368       # behavior of shared libraries on other platforms, we can't use
17369       # them.
17370       ld_shlibs_GCJ=no
17371       ;;
17372
17373     beos*)
17374       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17375         allow_undefined_flag_GCJ=unsupported
17376         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17377         # support --undefined.  This deserves some investigation.  FIXME
17378         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17379       else
17380         ld_shlibs_GCJ=no
17381       fi
17382       ;;
17383
17384     cygwin* | mingw* | pw32*)
17385       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17386       # as there is no search path for DLLs.
17387       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17388       allow_undefined_flag_GCJ=unsupported
17389       always_export_symbols_GCJ=no
17390       enable_shared_with_static_runtimes_GCJ=yes
17391       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17392
17393       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17394         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17395         # If the export-symbols file already is a .def file (1st line
17396         # is EXPORTS), use it as is; otherwise, prepend...
17397         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17398           cp $export_symbols $output_objdir/$soname.def;
17399         else
17400           echo EXPORTS > $output_objdir/$soname.def;
17401           cat $export_symbols >> $output_objdir/$soname.def;
17402         fi~
17403         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17404       else
17405         ld_shlibs_GCJ=no
17406       fi
17407       ;;
17408
17409     interix[3-9]*)
17410       hardcode_direct_GCJ=no
17411       hardcode_shlibpath_var_GCJ=no
17412       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17413       export_dynamic_flag_spec_GCJ='${wl}-E'
17414       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17415       # Instead, shared libraries are loaded at an image base (0x10000000 by
17416       # default) and relocated if they conflict, which is a slow very memory
17417       # consuming and fragmenting process.  To avoid this, we pick a random,
17418       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17419       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17420       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17421       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17422       ;;
17423
17424     gnu* | linux* | k*bsd*-gnu)
17425       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17426         tmp_addflag=
17427         case $cc_basename,$host_cpu in
17428         pgcc*)                          # Portland Group C compiler
17429           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17430           tmp_addflag=' $pic_flag'
17431           ;;
17432         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17433           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17434           tmp_addflag=' $pic_flag -Mnomain' ;;
17435         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17436           tmp_addflag=' -i_dynamic' ;;
17437         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17438           tmp_addflag=' -i_dynamic -nofor_main' ;;
17439         ifc* | ifort*)                  # Intel Fortran compiler
17440           tmp_addflag=' -nofor_main' ;;
17441         esac
17442         case `$CC -V 2>&1 | sed 5q` in
17443         *Sun\ C*)                       # Sun C 5.9
17444           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17445           tmp_sharedflag='-G' ;;
17446         *Sun\ F*)                       # Sun Fortran 8.3
17447           tmp_sharedflag='-G' ;;
17448         *)
17449           tmp_sharedflag='-shared' ;;
17450         esac
17451         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17452
17453         if test $supports_anon_versioning = yes; then
17454           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17455   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17456   $echo "local: *; };" >> $output_objdir/$libname.ver~
17457           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17458         fi
17459         link_all_deplibs_GCJ=no
17460       else
17461         ld_shlibs_GCJ=no
17462       fi
17463       ;;
17464
17465     netbsd* | netbsdelf*-gnu)
17466       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17467         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17468         wlarc=
17469       else
17470         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17471         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17472       fi
17473       ;;
17474
17475     solaris*)
17476       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17477         ld_shlibs_GCJ=no
17478         cat <<EOF 1>&2
17479
17480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17481 *** create shared libraries on Solaris systems.  Therefore, libtool
17482 *** is disabling shared libraries support.  We urge you to upgrade GNU
17483 *** binutils to release 2.9.1 or newer.  Another option is to modify
17484 *** your PATH or compiler configuration so that the native linker is
17485 *** used, and then restart.
17486
17487 EOF
17488       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17489         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17491       else
17492         ld_shlibs_GCJ=no
17493       fi
17494       ;;
17495
17496     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17497       case `$LD -v 2>&1` in
17498         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17499         ld_shlibs_GCJ=no
17500         cat <<_LT_EOF 1>&2
17501
17502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17503 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17504 *** is disabling shared libraries support.  We urge you to upgrade GNU
17505 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17506 *** your PATH or compiler configuration so that the native linker is
17507 *** used, and then restart.
17508
17509 _LT_EOF
17510         ;;
17511         *)
17512           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17513             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17514             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17515             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17516           else
17517             ld_shlibs_GCJ=no
17518           fi
17519         ;;
17520       esac
17521       ;;
17522
17523     sunos4*)
17524       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17525       wlarc=
17526       hardcode_direct_GCJ=yes
17527       hardcode_shlibpath_var_GCJ=no
17528       ;;
17529
17530     *)
17531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17532         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17534       else
17535         ld_shlibs_GCJ=no
17536       fi
17537       ;;
17538     esac
17539
17540     if test "$ld_shlibs_GCJ" = no; then
17541       runpath_var=
17542       hardcode_libdir_flag_spec_GCJ=
17543       export_dynamic_flag_spec_GCJ=
17544       whole_archive_flag_spec_GCJ=
17545     fi
17546   else
17547     # PORTME fill in a description of your system's linker (not GNU ld)
17548     case $host_os in
17549     aix3*)
17550       allow_undefined_flag_GCJ=unsupported
17551       always_export_symbols_GCJ=yes
17552       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'
17553       # Note: this linker hardcodes the directories in LIBPATH if there
17554       # are no directories specified by -L.
17555       hardcode_minus_L_GCJ=yes
17556       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17557         # Neither direct hardcoding nor static linking is supported with a
17558         # broken collect2.
17559         hardcode_direct_GCJ=unsupported
17560       fi
17561       ;;
17562
17563     aix[4-9]*)
17564       if test "$host_cpu" = ia64; then
17565         # On IA64, the linker does run time linking by default, so we don't
17566         # have to do anything special.
17567         aix_use_runtimelinking=no
17568         exp_sym_flag='-Bexport'
17569         no_entry_flag=""
17570       else
17571         # If we're using GNU nm, then we don't want the "-C" option.
17572         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17573         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17574           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'
17575         else
17576           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'
17577         fi
17578         aix_use_runtimelinking=no
17579
17580         # Test if we are trying to use run time linking or normal
17581         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17582         # need to do runtime linking.
17583         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17584           for ld_flag in $LDFLAGS; do
17585           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17586             aix_use_runtimelinking=yes
17587             break
17588           fi
17589           done
17590           ;;
17591         esac
17592
17593         exp_sym_flag='-bexport'
17594         no_entry_flag='-bnoentry'
17595       fi
17596
17597       # When large executables or shared objects are built, AIX ld can
17598       # have problems creating the table of contents.  If linking a library
17599       # or program results in "error TOC overflow" add -mminimal-toc to
17600       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17601       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17602
17603       archive_cmds_GCJ=''
17604       hardcode_direct_GCJ=yes
17605       hardcode_libdir_separator_GCJ=':'
17606       link_all_deplibs_GCJ=yes
17607
17608       if test "$GCC" = yes; then
17609         case $host_os in aix4.[012]|aix4.[012].*)
17610         # We only want to do this on AIX 4.2 and lower, the check
17611         # below for broken collect2 doesn't work under 4.3+
17612           collect2name=`${CC} -print-prog-name=collect2`
17613           if test -f "$collect2name" && \
17614            strings "$collect2name" | grep resolve_lib_name >/dev/null
17615           then
17616           # We have reworked collect2
17617           :
17618           else
17619           # We have old collect2
17620           hardcode_direct_GCJ=unsupported
17621           # It fails to find uninstalled libraries when the uninstalled
17622           # path is not listed in the libpath.  Setting hardcode_minus_L
17623           # to unsupported forces relinking
17624           hardcode_minus_L_GCJ=yes
17625           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17626           hardcode_libdir_separator_GCJ=
17627           fi
17628           ;;
17629         esac
17630         shared_flag='-shared'
17631         if test "$aix_use_runtimelinking" = yes; then
17632           shared_flag="$shared_flag "'${wl}-G'
17633         fi
17634       else
17635         # not using gcc
17636         if test "$host_cpu" = ia64; then
17637         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17638         # chokes on -Wl,-G. The following line is correct:
17639           shared_flag='-G'
17640         else
17641           if test "$aix_use_runtimelinking" = yes; then
17642             shared_flag='${wl}-G'
17643           else
17644             shared_flag='${wl}-bM:SRE'
17645           fi
17646         fi
17647       fi
17648
17649       # It seems that -bexpall does not export symbols beginning with
17650       # underscore (_), so it is better to generate a list of symbols to export.
17651       always_export_symbols_GCJ=yes
17652       if test "$aix_use_runtimelinking" = yes; then
17653         # Warning - without using the other runtime loading flags (-brtl),
17654         # -berok will link without error, but may produce a broken library.
17655         allow_undefined_flag_GCJ='-berok'
17656        # Determine the default libpath from the value encoded in an empty executable.
17657        cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h.  */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h.  */
17663
17664 int
17665 main ()
17666 {
17667
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 rm -f conftest.$ac_objext conftest$ac_exeext
17673 if { (ac_try="$ac_link"
17674 case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_link") 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } && {
17686          test -z "$ac_c_werror_flag" ||
17687          test ! -s conftest.err
17688        } && test -s conftest$ac_exeext &&
17689        $as_test_x conftest$ac_exeext; then
17690
17691 lt_aix_libpath_sed='
17692     /Import File Strings/,/^$/ {
17693         /^0/ {
17694             s/^0  *\(.*\)$/\1/
17695             p
17696         }
17697     }'
17698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17699 # Check for a 64-bit object if we didn't find anything.
17700 if test -z "$aix_libpath"; then
17701   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17702 fi
17703 else
17704   echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707
17708 fi
17709
17710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17711       conftest$ac_exeext conftest.$ac_ext
17712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17713
17714        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17715         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17716        else
17717         if test "$host_cpu" = ia64; then
17718           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17719           allow_undefined_flag_GCJ="-z nodefs"
17720           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17721         else
17722          # Determine the default libpath from the value encoded in an empty executable.
17723          cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h.  */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h.  */
17729
17730 int
17731 main ()
17732 {
17733
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742   *) ac_try_echo=$ac_try;;
17743 esac
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745   (eval "$ac_link") 2>conftest.er1
17746   ac_status=$?
17747   grep -v '^ *+' conftest.er1 >conftest.err
17748   rm -f conftest.er1
17749   cat conftest.err >&5
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); } && {
17752          test -z "$ac_c_werror_flag" ||
17753          test ! -s conftest.err
17754        } && test -s conftest$ac_exeext &&
17755        $as_test_x conftest$ac_exeext; then
17756
17757 lt_aix_libpath_sed='
17758     /Import File Strings/,/^$/ {
17759         /^0/ {
17760             s/^0  *\(.*\)$/\1/
17761             p
17762         }
17763     }'
17764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17765 # Check for a 64-bit object if we didn't find anything.
17766 if test -z "$aix_libpath"; then
17767   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17768 fi
17769 else
17770   echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17777       conftest$ac_exeext conftest.$ac_ext
17778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17779
17780          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17781           # Warning - without using the other run time loading flags,
17782           # -berok will link without error, but may produce a broken library.
17783           no_undefined_flag_GCJ=' ${wl}-bernotok'
17784           allow_undefined_flag_GCJ=' ${wl}-berok'
17785           # Exported symbols can be pulled into shared objects from archives
17786           whole_archive_flag_spec_GCJ='$convenience'
17787           archive_cmds_need_lc_GCJ=yes
17788           # This is similar to how AIX traditionally builds its shared libraries.
17789           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17790         fi
17791       fi
17792       ;;
17793
17794     amigaos*)
17795       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)'
17796       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797       hardcode_minus_L_GCJ=yes
17798       # see comment about different semantics on the GNU ld section
17799       ld_shlibs_GCJ=no
17800       ;;
17801
17802     bsdi[45]*)
17803       export_dynamic_flag_spec_GCJ=-rdynamic
17804       ;;
17805
17806     cygwin* | mingw* | pw32*)
17807       # When not using gcc, we currently assume that we are using
17808       # Microsoft Visual C++.
17809       # hardcode_libdir_flag_spec is actually meaningless, as there is
17810       # no search path for DLLs.
17811       hardcode_libdir_flag_spec_GCJ=' '
17812       allow_undefined_flag_GCJ=unsupported
17813       # Tell ltmain to make .lib files, not .a files.
17814       libext=lib
17815       # Tell ltmain to make .dll files, not .so files.
17816       shrext_cmds=".dll"
17817       # FIXME: Setting linknames here is a bad hack.
17818       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17819       # The linker will automatically build a .lib file if we build a DLL.
17820       old_archive_From_new_cmds_GCJ='true'
17821       # FIXME: Should let the user specify the lib program.
17822       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17823       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17824       enable_shared_with_static_runtimes_GCJ=yes
17825       ;;
17826
17827     darwin* | rhapsody*)
17828       case $host_os in
17829         rhapsody* | darwin1.[012])
17830          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17831          ;;
17832        *) # Darwin 1.3 on
17833          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17834            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17835          else
17836            case ${MACOSX_DEPLOYMENT_TARGET} in
17837              10.[012])
17838                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17839                ;;
17840              10.*)
17841                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17842                ;;
17843            esac
17844          fi
17845          ;;
17846       esac
17847       archive_cmds_need_lc_GCJ=no
17848       hardcode_direct_GCJ=no
17849       hardcode_automatic_GCJ=yes
17850       hardcode_shlibpath_var_GCJ=unsupported
17851       whole_archive_flag_spec_GCJ=''
17852       link_all_deplibs_GCJ=yes
17853     if test "$GCC" = yes ; then
17854         output_verbose_link_cmd='echo'
17855         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17856         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17857         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17858         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17859     else
17860       case $cc_basename in
17861         xlc*)
17862          output_verbose_link_cmd='echo'
17863          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17864          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17865           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17866          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17867           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}'
17868           ;;
17869        *)
17870          ld_shlibs_GCJ=no
17871           ;;
17872       esac
17873     fi
17874       ;;
17875
17876     dgux*)
17877       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17878       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17879       hardcode_shlibpath_var_GCJ=no
17880       ;;
17881
17882     freebsd1*)
17883       ld_shlibs_GCJ=no
17884       ;;
17885
17886     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17887     # support.  Future versions do this automatically, but an explicit c++rt0.o
17888     # does not break anything, and helps significantly (at the cost of a little
17889     # extra space).
17890     freebsd2.2*)
17891       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17892       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17893       hardcode_direct_GCJ=yes
17894       hardcode_shlibpath_var_GCJ=no
17895       ;;
17896
17897     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17898     freebsd2*)
17899       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17900       hardcode_direct_GCJ=yes
17901       hardcode_minus_L_GCJ=yes
17902       hardcode_shlibpath_var_GCJ=no
17903       ;;
17904
17905     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17906     freebsd* | dragonfly*)
17907       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17908       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17909       hardcode_direct_GCJ=yes
17910       hardcode_shlibpath_var_GCJ=no
17911       ;;
17912
17913     hpux9*)
17914       if test "$GCC" = yes; then
17915         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'
17916       else
17917         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'
17918       fi
17919       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17920       hardcode_libdir_separator_GCJ=:
17921       hardcode_direct_GCJ=yes
17922
17923       # hardcode_minus_L: Not really in the search PATH,
17924       # but as the default location of the library.
17925       hardcode_minus_L_GCJ=yes
17926       export_dynamic_flag_spec_GCJ='${wl}-E'
17927       ;;
17928
17929     hpux10*)
17930       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17931         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17932       else
17933         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17934       fi
17935       if test "$with_gnu_ld" = no; then
17936         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17937         hardcode_libdir_separator_GCJ=:
17938
17939         hardcode_direct_GCJ=yes
17940         export_dynamic_flag_spec_GCJ='${wl}-E'
17941
17942         # hardcode_minus_L: Not really in the search PATH,
17943         # but as the default location of the library.
17944         hardcode_minus_L_GCJ=yes
17945       fi
17946       ;;
17947
17948     hpux11*)
17949       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17950         case $host_cpu in
17951         hppa*64*)
17952           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17953           ;;
17954         ia64*)
17955           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17956           ;;
17957         *)
17958           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17959           ;;
17960         esac
17961       else
17962         case $host_cpu in
17963         hppa*64*)
17964           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17965           ;;
17966         ia64*)
17967           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17968           ;;
17969         *)
17970           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17971           ;;
17972         esac
17973       fi
17974       if test "$with_gnu_ld" = no; then
17975         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17976         hardcode_libdir_separator_GCJ=:
17977
17978         case $host_cpu in
17979         hppa*64*|ia64*)
17980           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17981           hardcode_direct_GCJ=no
17982           hardcode_shlibpath_var_GCJ=no
17983           ;;
17984         *)
17985           hardcode_direct_GCJ=yes
17986           export_dynamic_flag_spec_GCJ='${wl}-E'
17987
17988           # hardcode_minus_L: Not really in the search PATH,
17989           # but as the default location of the library.
17990           hardcode_minus_L_GCJ=yes
17991           ;;
17992         esac
17993       fi
17994       ;;
17995
17996     irix5* | irix6* | nonstopux*)
17997       if test "$GCC" = yes; then
17998         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'
17999       else
18000         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'
18001         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18002       fi
18003       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18004       hardcode_libdir_separator_GCJ=:
18005       link_all_deplibs_GCJ=yes
18006       ;;
18007
18008     netbsd* | netbsdelf*-gnu)
18009       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18010         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18011       else
18012         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18013       fi
18014       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18015       hardcode_direct_GCJ=yes
18016       hardcode_shlibpath_var_GCJ=no
18017       ;;
18018
18019     newsos6)
18020       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18021       hardcode_direct_GCJ=yes
18022       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18023       hardcode_libdir_separator_GCJ=:
18024       hardcode_shlibpath_var_GCJ=no
18025       ;;
18026
18027     openbsd*)
18028       if test -f /usr/libexec/ld.so; then
18029         hardcode_direct_GCJ=yes
18030         hardcode_shlibpath_var_GCJ=no
18031         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18032           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18033           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18034           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18035           export_dynamic_flag_spec_GCJ='${wl}-E'
18036         else
18037           case $host_os in
18038            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18039              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18040              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18041              ;;
18042            *)
18043              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18044              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18045              ;;
18046           esac
18047         fi
18048       else
18049         ld_shlibs_GCJ=no
18050       fi
18051       ;;
18052
18053     os2*)
18054       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18055       hardcode_minus_L_GCJ=yes
18056       allow_undefined_flag_GCJ=unsupported
18057       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'
18058       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18059       ;;
18060
18061     osf3*)
18062       if test "$GCC" = yes; then
18063         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18064         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'
18065       else
18066         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18067         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'
18068       fi
18069       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18070       hardcode_libdir_separator_GCJ=:
18071       ;;
18072
18073     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18074       if test "$GCC" = yes; then
18075         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18076         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'
18077         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18078       else
18079         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18080         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'
18081         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~
18082         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18083
18084         # Both c and cxx compiler support -rpath directly
18085         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18086       fi
18087       hardcode_libdir_separator_GCJ=:
18088       ;;
18089
18090     solaris*)
18091       no_undefined_flag_GCJ=' -z text'
18092       if test "$GCC" = yes; then
18093         wlarc='${wl}'
18094         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18096           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18097       else
18098         wlarc=''
18099         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18101         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18102       fi
18103       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104       hardcode_shlibpath_var_GCJ=no
18105       case $host_os in
18106       solaris2.[0-5] | solaris2.[0-5].*) ;;
18107       *)
18108         # The compiler driver will combine and reorder linker options,
18109         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18110         # but is careful enough not to reorder.
18111         # Supported since Solaris 2.6 (maybe 2.5.1?)
18112         if test "$GCC" = yes; then
18113           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18114         else
18115           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18116         fi
18117         ;;
18118       esac
18119       link_all_deplibs_GCJ=yes
18120       ;;
18121
18122     sunos4*)
18123       if test "x$host_vendor" = xsequent; then
18124         # Use $CC to link under sequent, because it throws in some extra .o
18125         # files that make .init and .fini sections work.
18126         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18127       else
18128         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18129       fi
18130       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18131       hardcode_direct_GCJ=yes
18132       hardcode_minus_L_GCJ=yes
18133       hardcode_shlibpath_var_GCJ=no
18134       ;;
18135
18136     sysv4)
18137       case $host_vendor in
18138         sni)
18139           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18140           hardcode_direct_GCJ=yes # is this really true???
18141         ;;
18142         siemens)
18143           ## LD is ld it makes a PLAMLIB
18144           ## CC just makes a GrossModule.
18145           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18146           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18147           hardcode_direct_GCJ=no
18148         ;;
18149         motorola)
18150           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18151           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18152         ;;
18153       esac
18154       runpath_var='LD_RUN_PATH'
18155       hardcode_shlibpath_var_GCJ=no
18156       ;;
18157
18158     sysv4.3*)
18159       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18160       hardcode_shlibpath_var_GCJ=no
18161       export_dynamic_flag_spec_GCJ='-Bexport'
18162       ;;
18163
18164     sysv4*MP*)
18165       if test -d /usr/nec; then
18166         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18167         hardcode_shlibpath_var_GCJ=no
18168         runpath_var=LD_RUN_PATH
18169         hardcode_runpath_var=yes
18170         ld_shlibs_GCJ=yes
18171       fi
18172       ;;
18173
18174     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18175       no_undefined_flag_GCJ='${wl}-z,text'
18176       archive_cmds_need_lc_GCJ=no
18177       hardcode_shlibpath_var_GCJ=no
18178       runpath_var='LD_RUN_PATH'
18179
18180       if test "$GCC" = yes; then
18181         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18182         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183       else
18184         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18185         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18186       fi
18187       ;;
18188
18189     sysv5* | sco3.2v5* | sco5v6*)
18190       # Note: We can NOT use -z defs as we might desire, because we do not
18191       # link with -lc, and that would cause any symbols used from libc to
18192       # always be unresolved, which means just about no library would
18193       # ever link correctly.  If we're not using GNU ld we use -z text
18194       # though, which does catch some bad symbols but isn't as heavy-handed
18195       # as -z defs.
18196       no_undefined_flag_GCJ='${wl}-z,text'
18197       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18198       archive_cmds_need_lc_GCJ=no
18199       hardcode_shlibpath_var_GCJ=no
18200       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18201       hardcode_libdir_separator_GCJ=':'
18202       link_all_deplibs_GCJ=yes
18203       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18204       runpath_var='LD_RUN_PATH'
18205
18206       if test "$GCC" = yes; then
18207         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18208         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18209       else
18210         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18211         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18212       fi
18213       ;;
18214
18215     uts4*)
18216       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18217       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18218       hardcode_shlibpath_var_GCJ=no
18219       ;;
18220
18221     *)
18222       ld_shlibs_GCJ=no
18223       ;;
18224     esac
18225   fi
18226
18227 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18228 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18229 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18230
18231 #
18232 # Do we need to explicitly link libc?
18233 #
18234 case "x$archive_cmds_need_lc_GCJ" in
18235 x|xyes)
18236   # Assume -lc should be added
18237   archive_cmds_need_lc_GCJ=yes
18238
18239   if test "$enable_shared" = yes && test "$GCC" = yes; then
18240     case $archive_cmds_GCJ in
18241     *'~'*)
18242       # FIXME: we may have to deal with multi-command sequences.
18243       ;;
18244     '$CC '*)
18245       # Test whether the compiler implicitly links with -lc since on some
18246       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18247       # to ld, don't add -lc before -lgcc.
18248       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18249 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18250       $rm conftest*
18251       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18252
18253       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18254   (eval $ac_compile) 2>&5
18255   ac_status=$?
18256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257   (exit $ac_status); } 2>conftest.err; then
18258         soname=conftest
18259         lib=conftest
18260         libobjs=conftest.$ac_objext
18261         deplibs=
18262         wl=$lt_prog_compiler_wl_GCJ
18263         pic_flag=$lt_prog_compiler_pic_GCJ
18264         compiler_flags=-v
18265         linker_flags=-v
18266         verstring=
18267         output_objdir=.
18268         libname=conftest
18269         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18270         allow_undefined_flag_GCJ=
18271         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18272   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }
18276         then
18277           archive_cmds_need_lc_GCJ=no
18278         else
18279           archive_cmds_need_lc_GCJ=yes
18280         fi
18281         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18282       else
18283         cat conftest.err 1>&5
18284       fi
18285       $rm conftest*
18286       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18287 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18288       ;;
18289     esac
18290   fi
18291   ;;
18292 esac
18293
18294 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18295 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18296 library_names_spec=
18297 libname_spec='lib$name'
18298 soname_spec=
18299 shrext_cmds=".so"
18300 postinstall_cmds=
18301 postuninstall_cmds=
18302 finish_cmds=
18303 finish_eval=
18304 shlibpath_var=
18305 shlibpath_overrides_runpath=unknown
18306 version_type=none
18307 dynamic_linker="$host_os ld.so"
18308 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18309
18310 need_lib_prefix=unknown
18311 hardcode_into_libs=no
18312
18313 # when you set need_version to no, make sure it does not cause -set_version
18314 # flags to be left without arguments
18315 need_version=unknown
18316
18317 case $host_os in
18318 aix3*)
18319   version_type=linux
18320   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18321   shlibpath_var=LIBPATH
18322
18323   # AIX 3 has no versioning support, so we append a major version to the name.
18324   soname_spec='${libname}${release}${shared_ext}$major'
18325   ;;
18326
18327 aix[4-9]*)
18328   version_type=linux
18329   need_lib_prefix=no
18330   need_version=no
18331   hardcode_into_libs=yes
18332   if test "$host_cpu" = ia64; then
18333     # AIX 5 supports IA64
18334     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18335     shlibpath_var=LD_LIBRARY_PATH
18336   else
18337     # With GCC up to 2.95.x, collect2 would create an import file
18338     # for dependence libraries.  The import file would start with
18339     # the line `#! .'.  This would cause the generated library to
18340     # depend on `.', always an invalid library.  This was fixed in
18341     # development snapshots of GCC prior to 3.0.
18342     case $host_os in
18343       aix4 | aix4.[01] | aix4.[01].*)
18344       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18345            echo ' yes '
18346            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18347         :
18348       else
18349         can_build_shared=no
18350       fi
18351       ;;
18352     esac
18353     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18354     # soname into executable. Probably we can add versioning support to
18355     # collect2, so additional links can be useful in future.
18356     if test "$aix_use_runtimelinking" = yes; then
18357       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18358       # instead of lib<name>.a to let people know that these are not
18359       # typical AIX shared libraries.
18360       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361     else
18362       # We preserve .a as extension for shared libraries through AIX4.2
18363       # and later when we are not doing run time linking.
18364       library_names_spec='${libname}${release}.a $libname.a'
18365       soname_spec='${libname}${release}${shared_ext}$major'
18366     fi
18367     shlibpath_var=LIBPATH
18368   fi
18369   ;;
18370
18371 amigaos*)
18372   library_names_spec='$libname.ixlibrary $libname.a'
18373   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18374   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'
18375   ;;
18376
18377 beos*)
18378   library_names_spec='${libname}${shared_ext}'
18379   dynamic_linker="$host_os ld.so"
18380   shlibpath_var=LIBRARY_PATH
18381   ;;
18382
18383 bsdi[45]*)
18384   version_type=linux
18385   need_version=no
18386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387   soname_spec='${libname}${release}${shared_ext}$major'
18388   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18389   shlibpath_var=LD_LIBRARY_PATH
18390   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18391   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18392   # the default ld.so.conf also contains /usr/contrib/lib and
18393   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18394   # libtool to hard-code these into programs
18395   ;;
18396
18397 cygwin* | mingw* | pw32*)
18398   version_type=windows
18399   shrext_cmds=".dll"
18400   need_version=no
18401   need_lib_prefix=no
18402
18403   case $GCC,$host_os in
18404   yes,cygwin* | yes,mingw* | yes,pw32*)
18405     library_names_spec='$libname.dll.a'
18406     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18407     postinstall_cmds='base_file=`basename \${file}`~
18408       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18409       dldir=$destdir/`dirname \$dlpath`~
18410       test -d \$dldir || mkdir -p \$dldir~
18411       $install_prog $dir/$dlname \$dldir/$dlname~
18412       chmod a+x \$dldir/$dlname'
18413     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18414       dlpath=$dir/\$dldll~
18415        $rm \$dlpath'
18416     shlibpath_overrides_runpath=yes
18417
18418     case $host_os in
18419     cygwin*)
18420       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18421       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18422       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18423       ;;
18424     mingw*)
18425       # MinGW DLLs use traditional 'lib' prefix
18426       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18427       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18428       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18429         # It is most probably a Windows format PATH printed by
18430         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18431         # path with ; separators, and with drive letters. We can handle the
18432         # drive letters (cygwin fileutils understands them), so leave them,
18433         # especially as we might pass files found there to a mingw objdump,
18434         # which wouldn't understand a cygwinified path. Ahh.
18435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18436       else
18437         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18438       fi
18439       ;;
18440     pw32*)
18441       # pw32 DLLs use 'pw' prefix rather than 'lib'
18442       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18443       ;;
18444     esac
18445     ;;
18446
18447   *)
18448     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18449     ;;
18450   esac
18451   dynamic_linker='Win32 ld.exe'
18452   # FIXME: first we should search . and the directory the executable is in
18453   shlibpath_var=PATH
18454   ;;
18455
18456 darwin* | rhapsody*)
18457   dynamic_linker="$host_os dyld"
18458   version_type=darwin
18459   need_lib_prefix=no
18460   need_version=no
18461   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18462   soname_spec='${libname}${release}${major}$shared_ext'
18463   shlibpath_overrides_runpath=yes
18464   shlibpath_var=DYLD_LIBRARY_PATH
18465   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18466
18467   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18468   ;;
18469
18470 dgux*)
18471   version_type=linux
18472   need_lib_prefix=no
18473   need_version=no
18474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18475   soname_spec='${libname}${release}${shared_ext}$major'
18476   shlibpath_var=LD_LIBRARY_PATH
18477   ;;
18478
18479 freebsd1*)
18480   dynamic_linker=no
18481   ;;
18482
18483 freebsd* | dragonfly*)
18484   # DragonFly does not have aout.  When/if they implement a new
18485   # versioning mechanism, adjust this.
18486   if test -x /usr/bin/objformat; then
18487     objformat=`/usr/bin/objformat`
18488   else
18489     case $host_os in
18490     freebsd[123]*) objformat=aout ;;
18491     *) objformat=elf ;;
18492     esac
18493   fi
18494   version_type=freebsd-$objformat
18495   case $version_type in
18496     freebsd-elf*)
18497       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18498       need_version=no
18499       need_lib_prefix=no
18500       ;;
18501     freebsd-*)
18502       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18503       need_version=yes
18504       ;;
18505   esac
18506   shlibpath_var=LD_LIBRARY_PATH
18507   case $host_os in
18508   freebsd2*)
18509     shlibpath_overrides_runpath=yes
18510     ;;
18511   freebsd3.[01]* | freebsdelf3.[01]*)
18512     shlibpath_overrides_runpath=yes
18513     hardcode_into_libs=yes
18514     ;;
18515   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18516   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18517     shlibpath_overrides_runpath=no
18518     hardcode_into_libs=yes
18519     ;;
18520   *) # from 4.6 on, and DragonFly
18521     shlibpath_overrides_runpath=yes
18522     hardcode_into_libs=yes
18523     ;;
18524   esac
18525   ;;
18526
18527 gnu*)
18528   version_type=linux
18529   need_lib_prefix=no
18530   need_version=no
18531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18532   soname_spec='${libname}${release}${shared_ext}$major'
18533   shlibpath_var=LD_LIBRARY_PATH
18534   hardcode_into_libs=yes
18535   ;;
18536
18537 hpux9* | hpux10* | hpux11*)
18538   # Give a soname corresponding to the major version so that dld.sl refuses to
18539   # link against other versions.
18540   version_type=sunos
18541   need_lib_prefix=no
18542   need_version=no
18543   case $host_cpu in
18544   ia64*)
18545     shrext_cmds='.so'
18546     hardcode_into_libs=yes
18547     dynamic_linker="$host_os dld.so"
18548     shlibpath_var=LD_LIBRARY_PATH
18549     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18550     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18551     soname_spec='${libname}${release}${shared_ext}$major'
18552     if test "X$HPUX_IA64_MODE" = X32; then
18553       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18554     else
18555       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18556     fi
18557     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18558     ;;
18559    hppa*64*)
18560      shrext_cmds='.sl'
18561      hardcode_into_libs=yes
18562      dynamic_linker="$host_os dld.sl"
18563      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18564      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18565      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566      soname_spec='${libname}${release}${shared_ext}$major'
18567      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18568      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18569      ;;
18570    *)
18571     shrext_cmds='.sl'
18572     dynamic_linker="$host_os dld.sl"
18573     shlibpath_var=SHLIB_PATH
18574     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18575     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576     soname_spec='${libname}${release}${shared_ext}$major'
18577     ;;
18578   esac
18579   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18580   postinstall_cmds='chmod 555 $lib'
18581   ;;
18582
18583 interix[3-9]*)
18584   version_type=linux
18585   need_lib_prefix=no
18586   need_version=no
18587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18588   soname_spec='${libname}${release}${shared_ext}$major'
18589   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18590   shlibpath_var=LD_LIBRARY_PATH
18591   shlibpath_overrides_runpath=no
18592   hardcode_into_libs=yes
18593   ;;
18594
18595 irix5* | irix6* | nonstopux*)
18596   case $host_os in
18597     nonstopux*) version_type=nonstopux ;;
18598     *)
18599         if test "$lt_cv_prog_gnu_ld" = yes; then
18600                 version_type=linux
18601         else
18602                 version_type=irix
18603         fi ;;
18604   esac
18605   need_lib_prefix=no
18606   need_version=no
18607   soname_spec='${libname}${release}${shared_ext}$major'
18608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18609   case $host_os in
18610   irix5* | nonstopux*)
18611     libsuff= shlibsuff=
18612     ;;
18613   *)
18614     case $LD in # libtool.m4 will add one of these switches to LD
18615     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18616       libsuff= shlibsuff= libmagic=32-bit;;
18617     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18618       libsuff=32 shlibsuff=N32 libmagic=N32;;
18619     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18620       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18621     *) libsuff= shlibsuff= libmagic=never-match;;
18622     esac
18623     ;;
18624   esac
18625   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18626   shlibpath_overrides_runpath=no
18627   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18628   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18629   hardcode_into_libs=yes
18630   ;;
18631
18632 # No shared lib support for Linux oldld, aout, or coff.
18633 linux*oldld* | linux*aout* | linux*coff*)
18634   dynamic_linker=no
18635   ;;
18636
18637 # This must be Linux ELF.
18638 linux* | k*bsd*-gnu)
18639   version_type=linux
18640   need_lib_prefix=no
18641   need_version=no
18642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643   soname_spec='${libname}${release}${shared_ext}$major'
18644   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18645   shlibpath_var=LD_LIBRARY_PATH
18646   shlibpath_overrides_runpath=no
18647   # This implies no fast_install, which is unacceptable.
18648   # Some rework will be needed to allow for fast_install
18649   # before this can be enabled.
18650   hardcode_into_libs=yes
18651
18652   # Append ld.so.conf contents to the search path
18653   if test -f /etc/ld.so.conf; then
18654     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18655     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18656   fi
18657
18658   # We used to test for /lib/ld.so.1 and disable shared libraries on
18659   # powerpc, because MkLinux only supported shared libraries with the
18660   # GNU dynamic linker.  Since this was broken with cross compilers,
18661   # most powerpc-linux boxes support dynamic linking these days and
18662   # people can always --disable-shared, the test was removed, and we
18663   # assume the GNU/Linux dynamic linker is in use.
18664   dynamic_linker='GNU/Linux ld.so'
18665   ;;
18666
18667 netbsdelf*-gnu)
18668   version_type=linux
18669   need_lib_prefix=no
18670   need_version=no
18671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18672   soname_spec='${libname}${release}${shared_ext}$major'
18673   shlibpath_var=LD_LIBRARY_PATH
18674   shlibpath_overrides_runpath=no
18675   hardcode_into_libs=yes
18676   dynamic_linker='NetBSD ld.elf_so'
18677   ;;
18678
18679 netbsd*)
18680   version_type=sunos
18681   need_lib_prefix=no
18682   need_version=no
18683   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18685     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18686     dynamic_linker='NetBSD (a.out) ld.so'
18687   else
18688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18689     soname_spec='${libname}${release}${shared_ext}$major'
18690     dynamic_linker='NetBSD ld.elf_so'
18691   fi
18692   shlibpath_var=LD_LIBRARY_PATH
18693   shlibpath_overrides_runpath=yes
18694   hardcode_into_libs=yes
18695   ;;
18696
18697 newsos6)
18698   version_type=linux
18699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700   shlibpath_var=LD_LIBRARY_PATH
18701   shlibpath_overrides_runpath=yes
18702   ;;
18703
18704 nto-qnx*)
18705   version_type=linux
18706   need_lib_prefix=no
18707   need_version=no
18708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18709   soname_spec='${libname}${release}${shared_ext}$major'
18710   shlibpath_var=LD_LIBRARY_PATH
18711   shlibpath_overrides_runpath=yes
18712   ;;
18713
18714 openbsd*)
18715   version_type=sunos
18716   sys_lib_dlsearch_path_spec="/usr/lib"
18717   need_lib_prefix=no
18718   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18719   case $host_os in
18720     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18721     *)                         need_version=no  ;;
18722   esac
18723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18724   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18725   shlibpath_var=LD_LIBRARY_PATH
18726   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18727     case $host_os in
18728       openbsd2.[89] | openbsd2.[89].*)
18729         shlibpath_overrides_runpath=no
18730         ;;
18731       *)
18732         shlibpath_overrides_runpath=yes
18733         ;;
18734       esac
18735   else
18736     shlibpath_overrides_runpath=yes
18737   fi
18738   ;;
18739
18740 os2*)
18741   libname_spec='$name'
18742   shrext_cmds=".dll"
18743   need_lib_prefix=no
18744   library_names_spec='$libname${shared_ext} $libname.a'
18745   dynamic_linker='OS/2 ld.exe'
18746   shlibpath_var=LIBPATH
18747   ;;
18748
18749 osf3* | osf4* | osf5*)
18750   version_type=osf
18751   need_lib_prefix=no
18752   need_version=no
18753   soname_spec='${libname}${release}${shared_ext}$major'
18754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18755   shlibpath_var=LD_LIBRARY_PATH
18756   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18757   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18758   ;;
18759
18760 rdos*)
18761   dynamic_linker=no
18762   ;;
18763
18764 solaris*)
18765   version_type=linux
18766   need_lib_prefix=no
18767   need_version=no
18768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18769   soname_spec='${libname}${release}${shared_ext}$major'
18770   shlibpath_var=LD_LIBRARY_PATH
18771   shlibpath_overrides_runpath=yes
18772   hardcode_into_libs=yes
18773   # ldd complains unless libraries are executable
18774   postinstall_cmds='chmod +x $lib'
18775   ;;
18776
18777 sunos4*)
18778   version_type=sunos
18779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18780   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18781   shlibpath_var=LD_LIBRARY_PATH
18782   shlibpath_overrides_runpath=yes
18783   if test "$with_gnu_ld" = yes; then
18784     need_lib_prefix=no
18785   fi
18786   need_version=yes
18787   ;;
18788
18789 sysv4 | sysv4.3*)
18790   version_type=linux
18791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792   soname_spec='${libname}${release}${shared_ext}$major'
18793   shlibpath_var=LD_LIBRARY_PATH
18794   case $host_vendor in
18795     sni)
18796       shlibpath_overrides_runpath=no
18797       need_lib_prefix=no
18798       export_dynamic_flag_spec='${wl}-Blargedynsym'
18799       runpath_var=LD_RUN_PATH
18800       ;;
18801     siemens)
18802       need_lib_prefix=no
18803       ;;
18804     motorola)
18805       need_lib_prefix=no
18806       need_version=no
18807       shlibpath_overrides_runpath=no
18808       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18809       ;;
18810   esac
18811   ;;
18812
18813 sysv4*MP*)
18814   if test -d /usr/nec ;then
18815     version_type=linux
18816     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18817     soname_spec='$libname${shared_ext}.$major'
18818     shlibpath_var=LD_LIBRARY_PATH
18819   fi
18820   ;;
18821
18822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18823   version_type=freebsd-elf
18824   need_lib_prefix=no
18825   need_version=no
18826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18827   soname_spec='${libname}${release}${shared_ext}$major'
18828   shlibpath_var=LD_LIBRARY_PATH
18829   hardcode_into_libs=yes
18830   if test "$with_gnu_ld" = yes; then
18831     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18832     shlibpath_overrides_runpath=no
18833   else
18834     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18835     shlibpath_overrides_runpath=yes
18836     case $host_os in
18837       sco3.2v5*)
18838         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18839         ;;
18840     esac
18841   fi
18842   sys_lib_dlsearch_path_spec='/usr/lib'
18843   ;;
18844
18845 uts4*)
18846   version_type=linux
18847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848   soname_spec='${libname}${release}${shared_ext}$major'
18849   shlibpath_var=LD_LIBRARY_PATH
18850   ;;
18851
18852 *)
18853   dynamic_linker=no
18854   ;;
18855 esac
18856 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18857 echo "${ECHO_T}$dynamic_linker" >&6; }
18858 test "$dynamic_linker" = no && can_build_shared=no
18859
18860 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18861   echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18864 fi
18865
18866 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18867 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18871 fi
18872
18873 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18874
18875 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18876 if test "$GCC" = yes; then
18877   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18878 fi
18879
18880 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18882 hardcode_action_GCJ=
18883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18884    test -n "$runpath_var_GCJ" || \
18885    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18886
18887   # We can hardcode non-existant directories.
18888   if test "$hardcode_direct_GCJ" != no &&
18889      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18890      # have to relink, otherwise we might link with an installed library
18891      # when we should be linking with a yet-to-be-installed one
18892      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18893      test "$hardcode_minus_L_GCJ" != no; then
18894     # Linking always hardcodes the temporary library directory.
18895     hardcode_action_GCJ=relink
18896   else
18897     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18898     hardcode_action_GCJ=immediate
18899   fi
18900 else
18901   # We cannot hardcode anything, or else we can only hardcode existing
18902   # directories.
18903   hardcode_action_GCJ=unsupported
18904 fi
18905 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18906 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18907
18908 if test "$hardcode_action_GCJ" = relink; then
18909   # Fast installation is not supported
18910   enable_fast_install=no
18911 elif test "$shlibpath_overrides_runpath" = yes ||
18912      test "$enable_shared" = no; then
18913   # Fast installation is not necessary
18914   enable_fast_install=needless
18915 fi
18916
18917
18918 # The else clause should only fire when bootstrapping the
18919 # libtool distribution, otherwise you forgot to ship ltmain.sh
18920 # with your package, and you will get complaints that there are
18921 # no rules to generate ltmain.sh.
18922 if test -f "$ltmain"; then
18923   # See if we are running on zsh, and set the options which allow our commands through
18924   # without removal of \ escapes.
18925   if test -n "${ZSH_VERSION+set}" ; then
18926     setopt NO_GLOB_SUBST
18927   fi
18928   # Now quote all the things that may contain metacharacters while being
18929   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18930   # variables and quote the copies for generation of the libtool script.
18931   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18932     SED SHELL STRIP \
18933     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18934     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18935     deplibs_check_method reload_flag reload_cmds need_locks \
18936     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18937     lt_cv_sys_global_symbol_to_c_name_address \
18938     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18939     old_postinstall_cmds old_postuninstall_cmds \
18940     compiler_GCJ \
18941     CC_GCJ \
18942     LD_GCJ \
18943     lt_prog_compiler_wl_GCJ \
18944     lt_prog_compiler_pic_GCJ \
18945     lt_prog_compiler_static_GCJ \
18946     lt_prog_compiler_no_builtin_flag_GCJ \
18947     export_dynamic_flag_spec_GCJ \
18948     thread_safe_flag_spec_GCJ \
18949     whole_archive_flag_spec_GCJ \
18950     enable_shared_with_static_runtimes_GCJ \
18951     old_archive_cmds_GCJ \
18952     old_archive_from_new_cmds_GCJ \
18953     predep_objects_GCJ \
18954     postdep_objects_GCJ \
18955     predeps_GCJ \
18956     postdeps_GCJ \
18957     compiler_lib_search_path_GCJ \
18958     compiler_lib_search_dirs_GCJ \
18959     archive_cmds_GCJ \
18960     archive_expsym_cmds_GCJ \
18961     postinstall_cmds_GCJ \
18962     postuninstall_cmds_GCJ \
18963     old_archive_from_expsyms_cmds_GCJ \
18964     allow_undefined_flag_GCJ \
18965     no_undefined_flag_GCJ \
18966     export_symbols_cmds_GCJ \
18967     hardcode_libdir_flag_spec_GCJ \
18968     hardcode_libdir_flag_spec_ld_GCJ \
18969     hardcode_libdir_separator_GCJ \
18970     hardcode_automatic_GCJ \
18971     module_cmds_GCJ \
18972     module_expsym_cmds_GCJ \
18973     lt_cv_prog_compiler_c_o_GCJ \
18974     fix_srcfile_path_GCJ \
18975     exclude_expsyms_GCJ \
18976     include_expsyms_GCJ; do
18977
18978     case $var in
18979     old_archive_cmds_GCJ | \
18980     old_archive_from_new_cmds_GCJ | \
18981     archive_cmds_GCJ | \
18982     archive_expsym_cmds_GCJ | \
18983     module_cmds_GCJ | \
18984     module_expsym_cmds_GCJ | \
18985     old_archive_from_expsyms_cmds_GCJ | \
18986     export_symbols_cmds_GCJ | \
18987     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18988     postinstall_cmds | postuninstall_cmds | \
18989     old_postinstall_cmds | old_postuninstall_cmds | \
18990     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18991       # Double-quote double-evaled strings.
18992       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18993       ;;
18994     *)
18995       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18996       ;;
18997     esac
18998   done
18999
19000   case $lt_echo in
19001   *'\$0 --fallback-echo"')
19002     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19003     ;;
19004   esac
19005
19006 cfgfile="$ofile"
19007
19008   cat <<__EOF__ >> "$cfgfile"
19009 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19010
19011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19012
19013 # Shell to use when invoking shell scripts.
19014 SHELL=$lt_SHELL
19015
19016 # Whether or not to build shared libraries.
19017 build_libtool_libs=$enable_shared
19018
19019 # Whether or not to build static libraries.
19020 build_old_libs=$enable_static
19021
19022 # Whether or not to add -lc for building shared libraries.
19023 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19024
19025 # Whether or not to disallow shared libs when runtime libs are static
19026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19027
19028 # Whether or not to optimize for fast installation.
19029 fast_install=$enable_fast_install
19030
19031 # The host system.
19032 host_alias=$host_alias
19033 host=$host
19034 host_os=$host_os
19035
19036 # The build system.
19037 build_alias=$build_alias
19038 build=$build
19039 build_os=$build_os
19040
19041 # An echo program that does not interpret backslashes.
19042 echo=$lt_echo
19043
19044 # The archiver.
19045 AR=$lt_AR
19046 AR_FLAGS=$lt_AR_FLAGS
19047
19048 # A C compiler.
19049 LTCC=$lt_LTCC
19050
19051 # LTCC compiler flags.
19052 LTCFLAGS=$lt_LTCFLAGS
19053
19054 # A language-specific compiler.
19055 CC=$lt_compiler_GCJ
19056
19057 # Is the compiler the GNU C compiler?
19058 with_gcc=$GCC_GCJ
19059
19060 # An ERE matcher.
19061 EGREP=$lt_EGREP
19062
19063 # The linker used to build libraries.
19064 LD=$lt_LD_GCJ
19065
19066 # Whether we need hard or soft links.
19067 LN_S=$lt_LN_S
19068
19069 # A BSD-compatible nm program.
19070 NM=$lt_NM
19071
19072 # A symbol stripping program
19073 STRIP=$lt_STRIP
19074
19075 # Used to examine libraries when file_magic_cmd begins "file"
19076 MAGIC_CMD=$MAGIC_CMD
19077
19078 # Used on cygwin: DLL creation program.
19079 DLLTOOL="$DLLTOOL"
19080
19081 # Used on cygwin: object dumper.
19082 OBJDUMP="$OBJDUMP"
19083
19084 # Used on cygwin: assembler.
19085 AS="$AS"
19086
19087 # The name of the directory that contains temporary libtool files.
19088 objdir=$objdir
19089
19090 # How to create reloadable object files.
19091 reload_flag=$lt_reload_flag
19092 reload_cmds=$lt_reload_cmds
19093
19094 # How to pass a linker flag through the compiler.
19095 wl=$lt_lt_prog_compiler_wl_GCJ
19096
19097 # Object file suffix (normally "o").
19098 objext="$ac_objext"
19099
19100 # Old archive suffix (normally "a").
19101 libext="$libext"
19102
19103 # Shared library suffix (normally ".so").
19104 shrext_cmds='$shrext_cmds'
19105
19106 # Executable file suffix (normally "").
19107 exeext="$exeext"
19108
19109 # Additional compiler flags for building library objects.
19110 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19111 pic_mode=$pic_mode
19112
19113 # What is the maximum length of a command?
19114 max_cmd_len=$lt_cv_sys_max_cmd_len
19115
19116 # Does compiler simultaneously support -c and -o options?
19117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19118
19119 # Must we lock files when doing compilation?
19120 need_locks=$lt_need_locks
19121
19122 # Do we need the lib prefix for modules?
19123 need_lib_prefix=$need_lib_prefix
19124
19125 # Do we need a version for libraries?
19126 need_version=$need_version
19127
19128 # Whether dlopen is supported.
19129 dlopen_support=$enable_dlopen
19130
19131 # Whether dlopen of programs is supported.
19132 dlopen_self=$enable_dlopen_self
19133
19134 # Whether dlopen of statically linked programs is supported.
19135 dlopen_self_static=$enable_dlopen_self_static
19136
19137 # Compiler flag to prevent dynamic linking.
19138 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19139
19140 # Compiler flag to turn off builtin functions.
19141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19142
19143 # Compiler flag to allow reflexive dlopens.
19144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19145
19146 # Compiler flag to generate shared objects directly from archives.
19147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19148
19149 # Compiler flag to generate thread-safe objects.
19150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19151
19152 # Library versioning type.
19153 version_type=$version_type
19154
19155 # Format of library name prefix.
19156 libname_spec=$lt_libname_spec
19157
19158 # List of archive names.  First name is the real one, the rest are links.
19159 # The last name is the one that the linker finds with -lNAME.
19160 library_names_spec=$lt_library_names_spec
19161
19162 # The coded name of the library, if different from the real name.
19163 soname_spec=$lt_soname_spec
19164
19165 # Commands used to build and install an old-style archive.
19166 RANLIB=$lt_RANLIB
19167 old_archive_cmds=$lt_old_archive_cmds_GCJ
19168 old_postinstall_cmds=$lt_old_postinstall_cmds
19169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19170
19171 # Create an old-style archive from a shared archive.
19172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19173
19174 # Create a temporary old-style archive to link instead of a shared archive.
19175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19176
19177 # Commands used to build and install a shared archive.
19178 archive_cmds=$lt_archive_cmds_GCJ
19179 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19180 postinstall_cmds=$lt_postinstall_cmds
19181 postuninstall_cmds=$lt_postuninstall_cmds
19182
19183 # Commands used to build a loadable module (assumed same as above if empty)
19184 module_cmds=$lt_module_cmds_GCJ
19185 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19186
19187 # Commands to strip libraries.
19188 old_striplib=$lt_old_striplib
19189 striplib=$lt_striplib
19190
19191 # Dependencies to place before the objects being linked to create a
19192 # shared library.
19193 predep_objects=$lt_predep_objects_GCJ
19194
19195 # Dependencies to place after the objects being linked to create a
19196 # shared library.
19197 postdep_objects=$lt_postdep_objects_GCJ
19198
19199 # Dependencies to place before the objects being linked to create a
19200 # shared library.
19201 predeps=$lt_predeps_GCJ
19202
19203 # Dependencies to place after the objects being linked to create a
19204 # shared library.
19205 postdeps=$lt_postdeps_GCJ
19206
19207 # The directories searched by this compiler when creating a shared
19208 # library
19209 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19210
19211 # The library search path used internally by the compiler when linking
19212 # a shared library.
19213 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19214
19215 # Method to check whether dependent libraries are shared objects.
19216 deplibs_check_method=$lt_deplibs_check_method
19217
19218 # Command to use when deplibs_check_method == file_magic.
19219 file_magic_cmd=$lt_file_magic_cmd
19220
19221 # Flag that allows shared libraries with undefined symbols to be built.
19222 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19223
19224 # Flag that forces no undefined symbols.
19225 no_undefined_flag=$lt_no_undefined_flag_GCJ
19226
19227 # Commands used to finish a libtool library installation in a directory.
19228 finish_cmds=$lt_finish_cmds
19229
19230 # Same as above, but a single script fragment to be evaled but not shown.
19231 finish_eval=$lt_finish_eval
19232
19233 # Take the output of nm and produce a listing of raw symbols and C names.
19234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19235
19236 # Transform the output of nm in a proper C declaration
19237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19238
19239 # Transform the output of nm in a C name address pair
19240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19241
19242 # This is the shared library runtime path variable.
19243 runpath_var=$runpath_var
19244
19245 # This is the shared library path variable.
19246 shlibpath_var=$shlibpath_var
19247
19248 # Is shlibpath searched before the hard-coded library search path?
19249 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19250
19251 # How to hardcode a shared library path into an executable.
19252 hardcode_action=$hardcode_action_GCJ
19253
19254 # Whether we should hardcode library paths into libraries.
19255 hardcode_into_libs=$hardcode_into_libs
19256
19257 # Flag to hardcode \$libdir into a binary during linking.
19258 # This must work even if \$libdir does not exist.
19259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19260
19261 # If ld is used when linking, flag to hardcode \$libdir into
19262 # a binary during linking. This must work even if \$libdir does
19263 # not exist.
19264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19265
19266 # Whether we need a single -rpath flag with a separated argument.
19267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19268
19269 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19270 # resulting binary.
19271 hardcode_direct=$hardcode_direct_GCJ
19272
19273 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19274 # resulting binary.
19275 hardcode_minus_L=$hardcode_minus_L_GCJ
19276
19277 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19278 # the resulting binary.
19279 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19280
19281 # Set to yes if building a shared library automatically hardcodes DIR into the library
19282 # and all subsequent libraries and executables linked against it.
19283 hardcode_automatic=$hardcode_automatic_GCJ
19284
19285 # Variables whose values should be saved in libtool wrapper scripts and
19286 # restored at relink time.
19287 variables_saved_for_relink="$variables_saved_for_relink"
19288
19289 # Whether libtool must link a program against all its dependency libraries.
19290 link_all_deplibs=$link_all_deplibs_GCJ
19291
19292 # Compile-time system search path for libraries
19293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19294
19295 # Run-time system search path for libraries
19296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19297
19298 # Fix the shell variable \$srcfile for the compiler.
19299 fix_srcfile_path=$lt_fix_srcfile_path
19300
19301 # Set to yes if exported symbols are required.
19302 always_export_symbols=$always_export_symbols_GCJ
19303
19304 # The commands to list exported symbols.
19305 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19306
19307 # The commands to extract the exported symbol list from a shared archive.
19308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19309
19310 # Symbols that should not be listed in the preloaded symbols.
19311 exclude_expsyms=$lt_exclude_expsyms_GCJ
19312
19313 # Symbols that must always be exported.
19314 include_expsyms=$lt_include_expsyms_GCJ
19315
19316 # ### END LIBTOOL TAG CONFIG: $tagname
19317
19318 __EOF__
19319
19320
19321 else
19322   # If there is no Makefile yet, we rely on a make rule to execute
19323   # `config.status --recheck' to rerun these tests and create the
19324   # libtool script then.
19325   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19326   if test -f "$ltmain_in"; then
19327     test -f Makefile && make "$ltmain"
19328   fi
19329 fi
19330
19331
19332 ac_ext=c
19333 ac_cpp='$CPP $CPPFLAGS'
19334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19337
19338 CC="$lt_save_CC"
19339
19340         else
19341           tagname=""
19342         fi
19343         ;;
19344
19345       RC)
19346
19347
19348 # Source file extension for RC test sources.
19349 ac_ext=rc
19350
19351 # Object file extension for compiled RC test sources.
19352 objext=o
19353 objext_RC=$objext
19354
19355 # Code to be used in simple compile tests
19356 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19357
19358 # Code to be used in simple link tests
19359 lt_simple_link_test_code="$lt_simple_compile_test_code"
19360
19361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19362
19363 # If no C compiler was specified, use CC.
19364 LTCC=${LTCC-"$CC"}
19365
19366 # If no C compiler flags were specified, use CFLAGS.
19367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19368
19369 # Allow CC to be a program name with arguments.
19370 compiler=$CC
19371
19372
19373 # save warnings/boilerplate of simple test code
19374 ac_outfile=conftest.$ac_objext
19375 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19377 _lt_compiler_boilerplate=`cat conftest.err`
19378 $rm conftest*
19379
19380 ac_outfile=conftest.$ac_objext
19381 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19383 _lt_linker_boilerplate=`cat conftest.err`
19384 $rm -r conftest*
19385
19386
19387 # Allow CC to be a program name with arguments.
19388 lt_save_CC="$CC"
19389 CC=${RC-"windres"}
19390 compiler=$CC
19391 compiler_RC=$CC
19392 for cc_temp in $compiler""; do
19393   case $cc_temp in
19394     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19395     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19396     \-*) ;;
19397     *) break;;
19398   esac
19399 done
19400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19401
19402 lt_cv_prog_compiler_c_o_RC=yes
19403
19404 # The else clause should only fire when bootstrapping the
19405 # libtool distribution, otherwise you forgot to ship ltmain.sh
19406 # with your package, and you will get complaints that there are
19407 # no rules to generate ltmain.sh.
19408 if test -f "$ltmain"; then
19409   # See if we are running on zsh, and set the options which allow our commands through
19410   # without removal of \ escapes.
19411   if test -n "${ZSH_VERSION+set}" ; then
19412     setopt NO_GLOB_SUBST
19413   fi
19414   # Now quote all the things that may contain metacharacters while being
19415   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19416   # variables and quote the copies for generation of the libtool script.
19417   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19418     SED SHELL STRIP \
19419     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19420     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19421     deplibs_check_method reload_flag reload_cmds need_locks \
19422     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19423     lt_cv_sys_global_symbol_to_c_name_address \
19424     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19425     old_postinstall_cmds old_postuninstall_cmds \
19426     compiler_RC \
19427     CC_RC \
19428     LD_RC \
19429     lt_prog_compiler_wl_RC \
19430     lt_prog_compiler_pic_RC \
19431     lt_prog_compiler_static_RC \
19432     lt_prog_compiler_no_builtin_flag_RC \
19433     export_dynamic_flag_spec_RC \
19434     thread_safe_flag_spec_RC \
19435     whole_archive_flag_spec_RC \
19436     enable_shared_with_static_runtimes_RC \
19437     old_archive_cmds_RC \
19438     old_archive_from_new_cmds_RC \
19439     predep_objects_RC \
19440     postdep_objects_RC \
19441     predeps_RC \
19442     postdeps_RC \
19443     compiler_lib_search_path_RC \
19444     compiler_lib_search_dirs_RC \
19445     archive_cmds_RC \
19446     archive_expsym_cmds_RC \
19447     postinstall_cmds_RC \
19448     postuninstall_cmds_RC \
19449     old_archive_from_expsyms_cmds_RC \
19450     allow_undefined_flag_RC \
19451     no_undefined_flag_RC \
19452     export_symbols_cmds_RC \
19453     hardcode_libdir_flag_spec_RC \
19454     hardcode_libdir_flag_spec_ld_RC \
19455     hardcode_libdir_separator_RC \
19456     hardcode_automatic_RC \
19457     module_cmds_RC \
19458     module_expsym_cmds_RC \
19459     lt_cv_prog_compiler_c_o_RC \
19460     fix_srcfile_path_RC \
19461     exclude_expsyms_RC \
19462     include_expsyms_RC; do
19463
19464     case $var in
19465     old_archive_cmds_RC | \
19466     old_archive_from_new_cmds_RC | \
19467     archive_cmds_RC | \
19468     archive_expsym_cmds_RC | \
19469     module_cmds_RC | \
19470     module_expsym_cmds_RC | \
19471     old_archive_from_expsyms_cmds_RC | \
19472     export_symbols_cmds_RC | \
19473     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19474     postinstall_cmds | postuninstall_cmds | \
19475     old_postinstall_cmds | old_postuninstall_cmds | \
19476     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19477       # Double-quote double-evaled strings.
19478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19479       ;;
19480     *)
19481       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19482       ;;
19483     esac
19484   done
19485
19486   case $lt_echo in
19487   *'\$0 --fallback-echo"')
19488     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19489     ;;
19490   esac
19491
19492 cfgfile="$ofile"
19493
19494   cat <<__EOF__ >> "$cfgfile"
19495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19496
19497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19498
19499 # Shell to use when invoking shell scripts.
19500 SHELL=$lt_SHELL
19501
19502 # Whether or not to build shared libraries.
19503 build_libtool_libs=$enable_shared
19504
19505 # Whether or not to build static libraries.
19506 build_old_libs=$enable_static
19507
19508 # Whether or not to add -lc for building shared libraries.
19509 build_libtool_need_lc=$archive_cmds_need_lc_RC
19510
19511 # Whether or not to disallow shared libs when runtime libs are static
19512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19513
19514 # Whether or not to optimize for fast installation.
19515 fast_install=$enable_fast_install
19516
19517 # The host system.
19518 host_alias=$host_alias
19519 host=$host
19520 host_os=$host_os
19521
19522 # The build system.
19523 build_alias=$build_alias
19524 build=$build
19525 build_os=$build_os
19526
19527 # An echo program that does not interpret backslashes.
19528 echo=$lt_echo
19529
19530 # The archiver.
19531 AR=$lt_AR
19532 AR_FLAGS=$lt_AR_FLAGS
19533
19534 # A C compiler.
19535 LTCC=$lt_LTCC
19536
19537 # LTCC compiler flags.
19538 LTCFLAGS=$lt_LTCFLAGS
19539
19540 # A language-specific compiler.
19541 CC=$lt_compiler_RC
19542
19543 # Is the compiler the GNU C compiler?
19544 with_gcc=$GCC_RC
19545
19546 # An ERE matcher.
19547 EGREP=$lt_EGREP
19548
19549 # The linker used to build libraries.
19550 LD=$lt_LD_RC
19551
19552 # Whether we need hard or soft links.
19553 LN_S=$lt_LN_S
19554
19555 # A BSD-compatible nm program.
19556 NM=$lt_NM
19557
19558 # A symbol stripping program
19559 STRIP=$lt_STRIP
19560
19561 # Used to examine libraries when file_magic_cmd begins "file"
19562 MAGIC_CMD=$MAGIC_CMD
19563
19564 # Used on cygwin: DLL creation program.
19565 DLLTOOL="$DLLTOOL"
19566
19567 # Used on cygwin: object dumper.
19568 OBJDUMP="$OBJDUMP"
19569
19570 # Used on cygwin: assembler.
19571 AS="$AS"
19572
19573 # The name of the directory that contains temporary libtool files.
19574 objdir=$objdir
19575
19576 # How to create reloadable object files.
19577 reload_flag=$lt_reload_flag
19578 reload_cmds=$lt_reload_cmds
19579
19580 # How to pass a linker flag through the compiler.
19581 wl=$lt_lt_prog_compiler_wl_RC
19582
19583 # Object file suffix (normally "o").
19584 objext="$ac_objext"
19585
19586 # Old archive suffix (normally "a").
19587 libext="$libext"
19588
19589 # Shared library suffix (normally ".so").
19590 shrext_cmds='$shrext_cmds'
19591
19592 # Executable file suffix (normally "").
19593 exeext="$exeext"
19594
19595 # Additional compiler flags for building library objects.
19596 pic_flag=$lt_lt_prog_compiler_pic_RC
19597 pic_mode=$pic_mode
19598
19599 # What is the maximum length of a command?
19600 max_cmd_len=$lt_cv_sys_max_cmd_len
19601
19602 # Does compiler simultaneously support -c and -o options?
19603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19604
19605 # Must we lock files when doing compilation?
19606 need_locks=$lt_need_locks
19607
19608 # Do we need the lib prefix for modules?
19609 need_lib_prefix=$need_lib_prefix
19610
19611 # Do we need a version for libraries?
19612 need_version=$need_version
19613
19614 # Whether dlopen is supported.
19615 dlopen_support=$enable_dlopen
19616
19617 # Whether dlopen of programs is supported.
19618 dlopen_self=$enable_dlopen_self
19619
19620 # Whether dlopen of statically linked programs is supported.
19621 dlopen_self_static=$enable_dlopen_self_static
19622
19623 # Compiler flag to prevent dynamic linking.
19624 link_static_flag=$lt_lt_prog_compiler_static_RC
19625
19626 # Compiler flag to turn off builtin functions.
19627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19628
19629 # Compiler flag to allow reflexive dlopens.
19630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19631
19632 # Compiler flag to generate shared objects directly from archives.
19633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19634
19635 # Compiler flag to generate thread-safe objects.
19636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19637
19638 # Library versioning type.
19639 version_type=$version_type
19640
19641 # Format of library name prefix.
19642 libname_spec=$lt_libname_spec
19643
19644 # List of archive names.  First name is the real one, the rest are links.
19645 # The last name is the one that the linker finds with -lNAME.
19646 library_names_spec=$lt_library_names_spec
19647
19648 # The coded name of the library, if different from the real name.
19649 soname_spec=$lt_soname_spec
19650
19651 # Commands used to build and install an old-style archive.
19652 RANLIB=$lt_RANLIB
19653 old_archive_cmds=$lt_old_archive_cmds_RC
19654 old_postinstall_cmds=$lt_old_postinstall_cmds
19655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19656
19657 # Create an old-style archive from a shared archive.
19658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19659
19660 # Create a temporary old-style archive to link instead of a shared archive.
19661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19662
19663 # Commands used to build and install a shared archive.
19664 archive_cmds=$lt_archive_cmds_RC
19665 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19666 postinstall_cmds=$lt_postinstall_cmds
19667 postuninstall_cmds=$lt_postuninstall_cmds
19668
19669 # Commands used to build a loadable module (assumed same as above if empty)
19670 module_cmds=$lt_module_cmds_RC
19671 module_expsym_cmds=$lt_module_expsym_cmds_RC
19672
19673 # Commands to strip libraries.
19674 old_striplib=$lt_old_striplib
19675 striplib=$lt_striplib
19676
19677 # Dependencies to place before the objects being linked to create a
19678 # shared library.
19679 predep_objects=$lt_predep_objects_RC
19680
19681 # Dependencies to place after the objects being linked to create a
19682 # shared library.
19683 postdep_objects=$lt_postdep_objects_RC
19684
19685 # Dependencies to place before the objects being linked to create a
19686 # shared library.
19687 predeps=$lt_predeps_RC
19688
19689 # Dependencies to place after the objects being linked to create a
19690 # shared library.
19691 postdeps=$lt_postdeps_RC
19692
19693 # The directories searched by this compiler when creating a shared
19694 # library
19695 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19696
19697 # The library search path used internally by the compiler when linking
19698 # a shared library.
19699 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19700
19701 # Method to check whether dependent libraries are shared objects.
19702 deplibs_check_method=$lt_deplibs_check_method
19703
19704 # Command to use when deplibs_check_method == file_magic.
19705 file_magic_cmd=$lt_file_magic_cmd
19706
19707 # Flag that allows shared libraries with undefined symbols to be built.
19708 allow_undefined_flag=$lt_allow_undefined_flag_RC
19709
19710 # Flag that forces no undefined symbols.
19711 no_undefined_flag=$lt_no_undefined_flag_RC
19712
19713 # Commands used to finish a libtool library installation in a directory.
19714 finish_cmds=$lt_finish_cmds
19715
19716 # Same as above, but a single script fragment to be evaled but not shown.
19717 finish_eval=$lt_finish_eval
19718
19719 # Take the output of nm and produce a listing of raw symbols and C names.
19720 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19721
19722 # Transform the output of nm in a proper C declaration
19723 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19724
19725 # Transform the output of nm in a C name address pair
19726 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19727
19728 # This is the shared library runtime path variable.
19729 runpath_var=$runpath_var
19730
19731 # This is the shared library path variable.
19732 shlibpath_var=$shlibpath_var
19733
19734 # Is shlibpath searched before the hard-coded library search path?
19735 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19736
19737 # How to hardcode a shared library path into an executable.
19738 hardcode_action=$hardcode_action_RC
19739
19740 # Whether we should hardcode library paths into libraries.
19741 hardcode_into_libs=$hardcode_into_libs
19742
19743 # Flag to hardcode \$libdir into a binary during linking.
19744 # This must work even if \$libdir does not exist.
19745 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19746
19747 # If ld is used when linking, flag to hardcode \$libdir into
19748 # a binary during linking. This must work even if \$libdir does
19749 # not exist.
19750 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19751
19752 # Whether we need a single -rpath flag with a separated argument.
19753 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19754
19755 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19756 # resulting binary.
19757 hardcode_direct=$hardcode_direct_RC
19758
19759 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19760 # resulting binary.
19761 hardcode_minus_L=$hardcode_minus_L_RC
19762
19763 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19764 # the resulting binary.
19765 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19766
19767 # Set to yes if building a shared library automatically hardcodes DIR into the library
19768 # and all subsequent libraries and executables linked against it.
19769 hardcode_automatic=$hardcode_automatic_RC
19770
19771 # Variables whose values should be saved in libtool wrapper scripts and
19772 # restored at relink time.
19773 variables_saved_for_relink="$variables_saved_for_relink"
19774
19775 # Whether libtool must link a program against all its dependency libraries.
19776 link_all_deplibs=$link_all_deplibs_RC
19777
19778 # Compile-time system search path for libraries
19779 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19780
19781 # Run-time system search path for libraries
19782 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19783
19784 # Fix the shell variable \$srcfile for the compiler.
19785 fix_srcfile_path=$lt_fix_srcfile_path
19786
19787 # Set to yes if exported symbols are required.
19788 always_export_symbols=$always_export_symbols_RC
19789
19790 # The commands to list exported symbols.
19791 export_symbols_cmds=$lt_export_symbols_cmds_RC
19792
19793 # The commands to extract the exported symbol list from a shared archive.
19794 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19795
19796 # Symbols that should not be listed in the preloaded symbols.
19797 exclude_expsyms=$lt_exclude_expsyms_RC
19798
19799 # Symbols that must always be exported.
19800 include_expsyms=$lt_include_expsyms_RC
19801
19802 # ### END LIBTOOL TAG CONFIG: $tagname
19803
19804 __EOF__
19805
19806
19807 else
19808   # If there is no Makefile yet, we rely on a make rule to execute
19809   # `config.status --recheck' to rerun these tests and create the
19810   # libtool script then.
19811   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19812   if test -f "$ltmain_in"; then
19813     test -f Makefile && make "$ltmain"
19814   fi
19815 fi
19816
19817
19818 ac_ext=c
19819 ac_cpp='$CPP $CPPFLAGS'
19820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19823
19824 CC="$lt_save_CC"
19825
19826         ;;
19827
19828       *)
19829         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19830 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19831    { (exit 1); exit 1; }; }
19832         ;;
19833       esac
19834
19835       # Append the new tag name to the list of available tags.
19836       if test -n "$tagname" ; then
19837       available_tags="$available_tags $tagname"
19838     fi
19839     fi
19840   done
19841   IFS="$lt_save_ifs"
19842
19843   # Now substitute the updated list of available tags.
19844   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19845     mv "${ofile}T" "$ofile"
19846     chmod +x "$ofile"
19847   else
19848     rm -f "${ofile}T"
19849     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19850 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19851    { (exit 1); exit 1; }; }
19852   fi
19853 fi
19854
19855
19856
19857 # This can be used to rebuild libtool when needed
19858 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19859
19860 # Always use our own libtool.
19861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19862
19863 # Prevent multiple expansion
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886 # Check whether --with-kernel was given.
19887 if test "${with_kernel+set}" = set; then
19888   withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
19889 fi
19890
19891
19892 # Check whether --with-kbuild was given.
19893 if test "${with_kbuild+set}" = set; then
19894   withval=$with_kbuild; kbuilddir="$withval"
19895 fi
19896
19897
19898 # Check whether --with-ksource was given.
19899 if test "${with_ksource+set}" = set; then
19900   withval=$with_ksource; ksourcedir="$withval"
19901 fi
19902
19903
19904 # Check whether --with-xtlibdir was given.
19905 if test "${with_xtlibdir+set}" = set; then
19906   withval=$with_xtlibdir; xtlibdir="$withval"
19907 else
19908   xtlibdir="${libexecdir}/xtables"
19909 fi
19910
19911 # Check whether --enable-devel was given.
19912 if test "${enable_devel+set}" = set; then
19913   enableval=$enable_devel; enable_devel="$enableval"
19914 else
19915   enable_devel="yes"
19916 fi
19917
19918 # Check whether --enable-libipq was given.
19919 if test "${enable_libipq+set}" = set; then
19920   enableval=$enable_libipq;
19921 fi
19922
19923
19924 if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
19925   { echo "$as_me:$LINENO: checking for netinet/ip6.h" >&5
19926 echo $ECHO_N "checking for netinet/ip6.h... $ECHO_C" >&6; }
19927 if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
19928   echo $ECHO_N "(cached) $ECHO_C" >&6
19929 fi
19930 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip6_h" >&5
19931 echo "${ECHO_T}$ac_cv_header_netinet_ip6_h" >&6; }
19932 else
19933   # Is the header compilable?
19934 { echo "$as_me:$LINENO: checking netinet/ip6.h usability" >&5
19935 echo $ECHO_N "checking netinet/ip6.h usability... $ECHO_C" >&6; }
19936 cat >conftest.$ac_ext <<_ACEOF
19937 /* confdefs.h.  */
19938 _ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h.  */
19942 $ac_includes_default
19943 #include <netinet/ip6.h>
19944 _ACEOF
19945 rm -f conftest.$ac_objext
19946 if { (ac_try="$ac_compile"
19947 case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_compile") 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } && {
19959          test -z "$ac_c_werror_flag" ||
19960          test ! -s conftest.err
19961        } && test -s conftest.$ac_objext; then
19962   ac_header_compiler=yes
19963 else
19964   echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967         ac_header_compiler=no
19968 fi
19969
19970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19972 echo "${ECHO_T}$ac_header_compiler" >&6; }
19973
19974 # Is the header present?
19975 { echo "$as_me:$LINENO: checking netinet/ip6.h presence" >&5
19976 echo $ECHO_N "checking netinet/ip6.h presence... $ECHO_C" >&6; }
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h.  */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h.  */
19983 #include <netinet/ip6.h>
19984 _ACEOF
19985 if { (ac_try="$ac_cpp conftest.$ac_ext"
19986 case "(($ac_try" in
19987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988   *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19992   ac_status=$?
19993   grep -v '^ *+' conftest.er1 >conftest.err
19994   rm -f conftest.er1
19995   cat conftest.err >&5
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } >/dev/null && {
19998          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19999          test ! -s conftest.err
20000        }; then
20001   ac_header_preproc=yes
20002 else
20003   echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006   ac_header_preproc=no
20007 fi
20008
20009 rm -f conftest.err conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20011 echo "${ECHO_T}$ac_header_preproc" >&6; }
20012
20013 # So?  What about this header?
20014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20015   yes:no: )
20016     { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!" >&5
20017 echo "$as_me: WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20018     { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: proceeding with the compiler's result" >&5
20019 echo "$as_me: WARNING: netinet/ip6.h: proceeding with the compiler's result" >&2;}
20020     ac_header_preproc=yes
20021     ;;
20022   no:yes:* )
20023     { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: present but cannot be compiled" >&5
20024 echo "$as_me: WARNING: netinet/ip6.h: present but cannot be compiled" >&2;}
20025     { echo "$as_me:$LINENO: WARNING: netinet/ip6.h:     check for missing prerequisite headers?" >&5
20026 echo "$as_me: WARNING: netinet/ip6.h:     check for missing prerequisite headers?" >&2;}
20027     { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: see the Autoconf documentation" >&5
20028 echo "$as_me: WARNING: netinet/ip6.h: see the Autoconf documentation" >&2;}
20029     { echo "$as_me:$LINENO: WARNING: netinet/ip6.h:     section \"Present But Cannot Be Compiled\"" >&5
20030 echo "$as_me: WARNING: netinet/ip6.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20031     { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&5
20032 echo "$as_me: WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&2;}
20033     { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: in the future, the compiler will take precedence" >&5
20034 echo "$as_me: WARNING: netinet/ip6.h: in the future, the compiler will take precedence" >&2;}
20035
20036     ;;
20037 esac
20038 { echo "$as_me:$LINENO: checking for netinet/ip6.h" >&5
20039 echo $ECHO_N "checking for netinet/ip6.h... $ECHO_C" >&6; }
20040 if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043   ac_cv_header_netinet_ip6_h=$ac_header_preproc
20044 fi
20045 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip6_h" >&5
20046 echo "${ECHO_T}$ac_cv_header_netinet_ip6_h" >&6; }
20047
20048 fi
20049 if test $ac_cv_header_netinet_ip6_h = yes; then
20050   :
20051 else
20052   { { echo "$as_me:$LINENO: error: but we need that for IPv6" >&5
20053 echo "$as_me: error: but we need that for IPv6" >&2;}
20054    { (exit 1); exit 1; }; }
20055 fi
20056
20057
20058 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20059   { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
20060 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
20061 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20062   echo $ECHO_N "(cached) $ECHO_C" >&6
20063 fi
20064 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
20065 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
20066 else
20067   # Is the header compilable?
20068 { echo "$as_me:$LINENO: checking linux/dccp.h usability" >&5
20069 echo $ECHO_N "checking linux/dccp.h usability... $ECHO_C" >&6; }
20070 cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h.  */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h.  */
20076 $ac_includes_default
20077 #include <linux/dccp.h>
20078 _ACEOF
20079 rm -f conftest.$ac_objext
20080 if { (ac_try="$ac_compile"
20081 case "(($ac_try" in
20082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083   *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086   (eval "$ac_compile") 2>conftest.er1
20087   ac_status=$?
20088   grep -v '^ *+' conftest.er1 >conftest.err
20089   rm -f conftest.er1
20090   cat conftest.err >&5
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); } && {
20093          test -z "$ac_c_werror_flag" ||
20094          test ! -s conftest.err
20095        } && test -s conftest.$ac_objext; then
20096   ac_header_compiler=yes
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101         ac_header_compiler=no
20102 fi
20103
20104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20106 echo "${ECHO_T}$ac_header_compiler" >&6; }
20107
20108 # Is the header present?
20109 { echo "$as_me:$LINENO: checking linux/dccp.h presence" >&5
20110 echo $ECHO_N "checking linux/dccp.h presence... $ECHO_C" >&6; }
20111 cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117 #include <linux/dccp.h>
20118 _ACEOF
20119 if { (ac_try="$ac_cpp conftest.$ac_ext"
20120 case "(($ac_try" in
20121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122   *) ac_try_echo=$ac_try;;
20123 esac
20124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20126   ac_status=$?
20127   grep -v '^ *+' conftest.er1 >conftest.err
20128   rm -f conftest.er1
20129   cat conftest.err >&5
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); } >/dev/null && {
20132          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20133          test ! -s conftest.err
20134        }; then
20135   ac_header_preproc=yes
20136 else
20137   echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140   ac_header_preproc=no
20141 fi
20142
20143 rm -f conftest.err conftest.$ac_ext
20144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20145 echo "${ECHO_T}$ac_header_preproc" >&6; }
20146
20147 # So?  What about this header?
20148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20149   yes:no: )
20150     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20151 echo "$as_me: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20152     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the compiler's result" >&5
20153 echo "$as_me: WARNING: linux/dccp.h: proceeding with the compiler's result" >&2;}
20154     ac_header_preproc=yes
20155     ;;
20156   no:yes:* )
20157     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: present but cannot be compiled" >&5
20158 echo "$as_me: WARNING: linux/dccp.h: present but cannot be compiled" >&2;}
20159     { echo "$as_me:$LINENO: WARNING: linux/dccp.h:     check for missing prerequisite headers?" >&5
20160 echo "$as_me: WARNING: linux/dccp.h:     check for missing prerequisite headers?" >&2;}
20161     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: see the Autoconf documentation" >&5
20162 echo "$as_me: WARNING: linux/dccp.h: see the Autoconf documentation" >&2;}
20163     { echo "$as_me:$LINENO: WARNING: linux/dccp.h:     section \"Present But Cannot Be Compiled\"" >&5
20164 echo "$as_me: WARNING: linux/dccp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20165     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&5
20166 echo "$as_me: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&2;}
20167     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&5
20168 echo "$as_me: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&2;}
20169
20170     ;;
20171 esac
20172 { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
20173 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
20174 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177   ac_cv_header_linux_dccp_h=$ac_header_preproc
20178 fi
20179 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
20180 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
20181
20182 fi
20183
20184
20185
20186 blacklist_modules="";
20187 if test "$ac_cv_header_linux_dccp_h" != "yes"; then
20188         blacklist_modules="$blacklist_modules dccp";
20189 fi;
20190
20191
20192
20193
20194 if test "$enable_static" == "yes"; then
20195   ENABLE_STATIC_TRUE=
20196   ENABLE_STATIC_FALSE='#'
20197 else
20198   ENABLE_STATIC_TRUE='#'
20199   ENABLE_STATIC_FALSE=
20200 fi
20201
20202
20203
20204 if test "$enable_shared" == "yes"; then
20205   ENABLE_SHARED_TRUE=
20206   ENABLE_SHARED_FALSE='#'
20207 else
20208   ENABLE_SHARED_TRUE='#'
20209   ENABLE_SHARED_FALSE=
20210 fi
20211
20212
20213
20214 if test "$enable_devel" == "yes"; then
20215   ENABLE_DEVEL_TRUE=
20216   ENABLE_DEVEL_FALSE='#'
20217 else
20218   ENABLE_DEVEL_TRUE='#'
20219   ENABLE_DEVEL_FALSE=
20220 fi
20221
20222
20223
20224 if test "$enable_libipq" == "yes"; then
20225   ENABLE_LIBIPQ_TRUE=
20226   ENABLE_LIBIPQ_FALSE='#'
20227 else
20228   ENABLE_LIBIPQ_TRUE='#'
20229   ENABLE_LIBIPQ_FALSE=
20230 fi
20231
20232
20233 regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
20234         -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
20235         -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
20236         -Winline -pipe \
20237         -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
20238 kinclude_CFLAGS="";
20239 if [ -n "$kbuilddir" ]; then
20240         kinclude_CFLAGS="$kinclude_CFLAGS -I $kbuilddir/include";
20241 fi;
20242 if [ -n "$ksourcedir" ]; then
20243         kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include";
20244 fi;
20245
20246
20247
20248
20249
20250
20251
20252 XTABLES_VERSION_MAJOR=1
20253 XTABLES_VERSION_MINOR=4
20254 XTABLES_VERSION_PATCH=1
20255 XTABLES_VERSION_EXTRA=.1
20256
20257
20258
20259
20260
20261 ac_config_files="$ac_config_files Makefile extensions/GNUmakefile libipq/Makefile include/xtables.h"
20262
20263 cat >confcache <<\_ACEOF
20264 # This file is a shell script that caches the results of configure
20265 # tests run on this system so they can be shared between configure
20266 # scripts and configure runs, see configure's option --config-cache.
20267 # It is not useful on other systems.  If it contains results you don't
20268 # want to keep, you may remove or edit it.
20269 #
20270 # config.status only pays attention to the cache file if you give it
20271 # the --recheck option to rerun configure.
20272 #
20273 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20274 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20275 # following values.
20276
20277 _ACEOF
20278
20279 # The following way of writing the cache mishandles newlines in values,
20280 # but we know of no workaround that is simple, portable, and efficient.
20281 # So, we kill variables containing newlines.
20282 # Ultrix sh set writes to stderr and can't be redirected directly,
20283 # and sets the high bit in the cache file unless we assign to the vars.
20284 (
20285   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20286     eval ac_val=\$$ac_var
20287     case $ac_val in #(
20288     *${as_nl}*)
20289       case $ac_var in #(
20290       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20291 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20292       esac
20293       case $ac_var in #(
20294       _ | IFS | as_nl) ;; #(
20295       *) $as_unset $ac_var ;;
20296       esac ;;
20297     esac
20298   done
20299
20300   (set) 2>&1 |
20301     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20302     *${as_nl}ac_space=\ *)
20303       # `set' does not quote correctly, so add quotes (double-quote
20304       # substitution turns \\\\ into \\, and sed turns \\ into \).
20305       sed -n \
20306         "s/'/'\\\\''/g;
20307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20308       ;; #(
20309     *)
20310       # `set' quotes correctly as required by POSIX, so do not add quotes.
20311       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20312       ;;
20313     esac |
20314     sort
20315 ) |
20316   sed '
20317      /^ac_cv_env_/b end
20318      t clear
20319      :clear
20320      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20321      t end
20322      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20323      :end' >>confcache
20324 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20325   if test -w "$cache_file"; then
20326     test "x$cache_file" != "x/dev/null" &&
20327       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20328 echo "$as_me: updating cache $cache_file" >&6;}
20329     cat confcache >$cache_file
20330   else
20331     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20332 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20333   fi
20334 fi
20335 rm -f confcache
20336
20337 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20338 # Let make expand exec_prefix.
20339 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20340
20341 DEFS=-DHAVE_CONFIG_H
20342
20343 ac_libobjs=
20344 ac_ltlibobjs=
20345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20346   # 1. Remove the extension, and $U if already installed.
20347   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20348   ac_i=`echo "$ac_i" | sed "$ac_script"`
20349   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20350   #    will be set to the directory where LIBOBJS objects are built.
20351   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20352   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20353 done
20354 LIBOBJS=$ac_libobjs
20355
20356 LTLIBOBJS=$ac_ltlibobjs
20357
20358
20359 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20360   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20361 Usually this means the macro was only invoked conditionally." >&5
20362 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20363 Usually this means the macro was only invoked conditionally." >&2;}
20364    { (exit 1); exit 1; }; }
20365 fi
20366 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20367   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20368 Usually this means the macro was only invoked conditionally." >&5
20369 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20370 Usually this means the macro was only invoked conditionally." >&2;}
20371    { (exit 1); exit 1; }; }
20372 fi
20373 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20374   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20375 Usually this means the macro was only invoked conditionally." >&5
20376 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20377 Usually this means the macro was only invoked conditionally." >&2;}
20378    { (exit 1); exit 1; }; }
20379 fi
20380 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
20381   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
20382 Usually this means the macro was only invoked conditionally." >&5
20383 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
20384 Usually this means the macro was only invoked conditionally." >&2;}
20385    { (exit 1); exit 1; }; }
20386 fi
20387 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
20388   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
20389 Usually this means the macro was only invoked conditionally." >&5
20390 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
20391 Usually this means the macro was only invoked conditionally." >&2;}
20392    { (exit 1); exit 1; }; }
20393 fi
20394 if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
20395   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL\" was never defined.
20396 Usually this means the macro was only invoked conditionally." >&5
20397 echo "$as_me: error: conditional \"ENABLE_DEVEL\" was never defined.
20398 Usually this means the macro was only invoked conditionally." >&2;}
20399    { (exit 1); exit 1; }; }
20400 fi
20401 if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
20402   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20403 Usually this means the macro was only invoked conditionally." >&5
20404 echo "$as_me: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20405 Usually this means the macro was only invoked conditionally." >&2;}
20406    { (exit 1); exit 1; }; }
20407 fi
20408
20409 : ${CONFIG_STATUS=./config.status}
20410 ac_clean_files_save=$ac_clean_files
20411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20412 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20413 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20414 cat >$CONFIG_STATUS <<_ACEOF
20415 #! $SHELL
20416 # Generated by $as_me.
20417 # Run this file to recreate the current configuration.
20418 # Compiler output produced by configure, useful for debugging
20419 # configure, is in config.log if it exists.
20420
20421 debug=false
20422 ac_cs_recheck=false
20423 ac_cs_silent=false
20424 SHELL=\${CONFIG_SHELL-$SHELL}
20425 _ACEOF
20426
20427 cat >>$CONFIG_STATUS <<\_ACEOF
20428 ## --------------------- ##
20429 ## M4sh Initialization.  ##
20430 ## --------------------- ##
20431
20432 # Be more Bourne compatible
20433 DUALCASE=1; export DUALCASE # for MKS sh
20434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20435   emulate sh
20436   NULLCMD=:
20437   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20438   # is contrary to our usage.  Disable this feature.
20439   alias -g '${1+"$@"}'='"$@"'
20440   setopt NO_GLOB_SUBST
20441 else
20442   case `(set -o) 2>/dev/null` in
20443   *posix*) set -o posix ;;
20444 esac
20445
20446 fi
20447
20448
20449
20450
20451 # PATH needs CR
20452 # Avoid depending upon Character Ranges.
20453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20456 as_cr_digits='0123456789'
20457 as_cr_alnum=$as_cr_Letters$as_cr_digits
20458
20459 # The user is always right.
20460 if test "${PATH_SEPARATOR+set}" != set; then
20461   echo "#! /bin/sh" >conf$$.sh
20462   echo  "exit 0"   >>conf$$.sh
20463   chmod +x conf$$.sh
20464   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20465     PATH_SEPARATOR=';'
20466   else
20467     PATH_SEPARATOR=:
20468   fi
20469   rm -f conf$$.sh
20470 fi
20471
20472 # Support unset when possible.
20473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20474   as_unset=unset
20475 else
20476   as_unset=false
20477 fi
20478
20479
20480 # IFS
20481 # We need space, tab and new line, in precisely that order.  Quoting is
20482 # there to prevent editors from complaining about space-tab.
20483 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20484 # splitting by setting IFS to empty value.)
20485 as_nl='
20486 '
20487 IFS=" ""        $as_nl"
20488
20489 # Find who we are.  Look in the path if we contain no directory separator.
20490 case $0 in
20491   *[\\/]* ) as_myself=$0 ;;
20492   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20493 for as_dir in $PATH
20494 do
20495   IFS=$as_save_IFS
20496   test -z "$as_dir" && as_dir=.
20497   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20498 done
20499 IFS=$as_save_IFS
20500
20501      ;;
20502 esac
20503 # We did not find ourselves, most probably we were run as `sh COMMAND'
20504 # in which case we are not to be found in the path.
20505 if test "x$as_myself" = x; then
20506   as_myself=$0
20507 fi
20508 if test ! -f "$as_myself"; then
20509   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20510   { (exit 1); exit 1; }
20511 fi
20512
20513 # Work around bugs in pre-3.0 UWIN ksh.
20514 for as_var in ENV MAIL MAILPATH
20515 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20516 done
20517 PS1='$ '
20518 PS2='> '
20519 PS4='+ '
20520
20521 # NLS nuisances.
20522 for as_var in \
20523   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20524   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20525   LC_TELEPHONE LC_TIME
20526 do
20527   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20528     eval $as_var=C; export $as_var
20529   else
20530     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20531   fi
20532 done
20533
20534 # Required to use basename.
20535 if expr a : '\(a\)' >/dev/null 2>&1 &&
20536    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20537   as_expr=expr
20538 else
20539   as_expr=false
20540 fi
20541
20542 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20543   as_basename=basename
20544 else
20545   as_basename=false
20546 fi
20547
20548
20549 # Name of the executable.
20550 as_me=`$as_basename -- "$0" ||
20551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20552          X"$0" : 'X\(//\)$' \| \
20553          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20554 echo X/"$0" |
20555     sed '/^.*\/\([^/][^/]*\)\/*$/{
20556             s//\1/
20557             q
20558           }
20559           /^X\/\(\/\/\)$/{
20560             s//\1/
20561             q
20562           }
20563           /^X\/\(\/\).*/{
20564             s//\1/
20565             q
20566           }
20567           s/.*/./; q'`
20568
20569 # CDPATH.
20570 $as_unset CDPATH
20571
20572
20573
20574   as_lineno_1=$LINENO
20575   as_lineno_2=$LINENO
20576   test "x$as_lineno_1" != "x$as_lineno_2" &&
20577   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20578
20579   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20580   # uniformly replaced by the line number.  The first 'sed' inserts a
20581   # line-number line after each line using $LINENO; the second 'sed'
20582   # does the real work.  The second script uses 'N' to pair each
20583   # line-number line with the line containing $LINENO, and appends
20584   # trailing '-' during substitution so that $LINENO is not a special
20585   # case at line end.
20586   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20587   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20588   # E. McMahon (1931-1989) for sed's syntax.  :-)
20589   sed -n '
20590     p
20591     /[$]LINENO/=
20592   ' <$as_myself |
20593     sed '
20594       s/[$]LINENO.*/&-/
20595       t lineno
20596       b
20597       :lineno
20598       N
20599       :loop
20600       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20601       t loop
20602       s/-\n.*//
20603     ' >$as_me.lineno &&
20604   chmod +x "$as_me.lineno" ||
20605     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20606    { (exit 1); exit 1; }; }
20607
20608   # Don't try to exec as it changes $[0], causing all sort of problems
20609   # (the dirname of $[0] is not the place where we might find the
20610   # original and so on.  Autoconf is especially sensitive to this).
20611   . "./$as_me.lineno"
20612   # Exit status is that of the last command.
20613   exit
20614 }
20615
20616
20617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20618   as_dirname=dirname
20619 else
20620   as_dirname=false
20621 fi
20622
20623 ECHO_C= ECHO_N= ECHO_T=
20624 case `echo -n x` in
20625 -n*)
20626   case `echo 'x\c'` in
20627   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20628   *)   ECHO_C='\c';;
20629   esac;;
20630 *)
20631   ECHO_N='-n';;
20632 esac
20633
20634 if expr a : '\(a\)' >/dev/null 2>&1 &&
20635    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20636   as_expr=expr
20637 else
20638   as_expr=false
20639 fi
20640
20641 rm -f conf$$ conf$$.exe conf$$.file
20642 if test -d conf$$.dir; then
20643   rm -f conf$$.dir/conf$$.file
20644 else
20645   rm -f conf$$.dir
20646   mkdir conf$$.dir
20647 fi
20648 echo >conf$$.file
20649 if ln -s conf$$.file conf$$ 2>/dev/null; then
20650   as_ln_s='ln -s'
20651   # ... but there are two gotchas:
20652   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20653   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20654   # In both cases, we have to default to `cp -p'.
20655   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20656     as_ln_s='cp -p'
20657 elif ln conf$$.file conf$$ 2>/dev/null; then
20658   as_ln_s=ln
20659 else
20660   as_ln_s='cp -p'
20661 fi
20662 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20663 rmdir conf$$.dir 2>/dev/null
20664
20665 if mkdir -p . 2>/dev/null; then
20666   as_mkdir_p=:
20667 else
20668   test -d ./-p && rmdir ./-p
20669   as_mkdir_p=false
20670 fi
20671
20672 if test -x / >/dev/null 2>&1; then
20673   as_test_x='test -x'
20674 else
20675   if ls -dL / >/dev/null 2>&1; then
20676     as_ls_L_option=L
20677   else
20678     as_ls_L_option=
20679   fi
20680   as_test_x='
20681     eval sh -c '\''
20682       if test -d "$1"; then
20683         test -d "$1/.";
20684       else
20685         case $1 in
20686         -*)set "./$1";;
20687         esac;
20688         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20689         ???[sx]*):;;*)false;;esac;fi
20690     '\'' sh
20691   '
20692 fi
20693 as_executable_p=$as_test_x
20694
20695 # Sed expression to map a string onto a valid CPP name.
20696 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20697
20698 # Sed expression to map a string onto a valid variable name.
20699 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20700
20701
20702 exec 6>&1
20703
20704 # Save the log message, to keep $[0] and so on meaningful, and to
20705 # report actual input values of CONFIG_FILES etc. instead of their
20706 # values after options handling.
20707 ac_log="
20708 This file was extended by iptables $as_me 1.4.1.1, which was
20709 generated by GNU Autoconf 2.61.  Invocation command line was
20710
20711   CONFIG_FILES    = $CONFIG_FILES
20712   CONFIG_HEADERS  = $CONFIG_HEADERS
20713   CONFIG_LINKS    = $CONFIG_LINKS
20714   CONFIG_COMMANDS = $CONFIG_COMMANDS
20715   $ $0 $@
20716
20717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20718 "
20719
20720 _ACEOF
20721
20722 cat >>$CONFIG_STATUS <<_ACEOF
20723 # Files that config.status was made for.
20724 config_files="$ac_config_files"
20725 config_headers="$ac_config_headers"
20726 config_commands="$ac_config_commands"
20727
20728 _ACEOF
20729
20730 cat >>$CONFIG_STATUS <<\_ACEOF
20731 ac_cs_usage="\
20732 \`$as_me' instantiates files from templates according to the
20733 current configuration.
20734
20735 Usage: $0 [OPTIONS] [FILE]...
20736
20737   -h, --help       print this help, then exit
20738   -V, --version    print version number and configuration settings, then exit
20739   -q, --quiet      do not print progress messages
20740   -d, --debug      don't remove temporary files
20741       --recheck    update $as_me by reconfiguring in the same conditions
20742   --file=FILE[:TEMPLATE]
20743                    instantiate the configuration file FILE
20744   --header=FILE[:TEMPLATE]
20745                    instantiate the configuration header FILE
20746
20747 Configuration files:
20748 $config_files
20749
20750 Configuration headers:
20751 $config_headers
20752
20753 Configuration commands:
20754 $config_commands
20755
20756 Report bugs to <bug-autoconf@gnu.org>."
20757
20758 _ACEOF
20759 cat >>$CONFIG_STATUS <<_ACEOF
20760 ac_cs_version="\\
20761 iptables config.status 1.4.1.1
20762 configured by $0, generated by GNU Autoconf 2.61,
20763   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20764
20765 Copyright (C) 2006 Free Software Foundation, Inc.
20766 This config.status script is free software; the Free Software Foundation
20767 gives unlimited permission to copy, distribute and modify it."
20768
20769 ac_pwd='$ac_pwd'
20770 srcdir='$srcdir'
20771 INSTALL='$INSTALL'
20772 _ACEOF
20773
20774 cat >>$CONFIG_STATUS <<\_ACEOF
20775 # If no file are specified by the user, then we need to provide default
20776 # value.  By we need to know if files were specified by the user.
20777 ac_need_defaults=:
20778 while test $# != 0
20779 do
20780   case $1 in
20781   --*=*)
20782     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20783     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20784     ac_shift=:
20785     ;;
20786   *)
20787     ac_option=$1
20788     ac_optarg=$2
20789     ac_shift=shift
20790     ;;
20791   esac
20792
20793   case $ac_option in
20794   # Handling of the options.
20795   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20796     ac_cs_recheck=: ;;
20797   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20798     echo "$ac_cs_version"; exit ;;
20799   --debug | --debu | --deb | --de | --d | -d )
20800     debug=: ;;
20801   --file | --fil | --fi | --f )
20802     $ac_shift
20803     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20804     ac_need_defaults=false;;
20805   --header | --heade | --head | --hea )
20806     $ac_shift
20807     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20808     ac_need_defaults=false;;
20809   --he | --h)
20810     # Conflict between --help and --header
20811     { echo "$as_me: error: ambiguous option: $1
20812 Try \`$0 --help' for more information." >&2
20813    { (exit 1); exit 1; }; };;
20814   --help | --hel | -h )
20815     echo "$ac_cs_usage"; exit ;;
20816   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20817   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20818     ac_cs_silent=: ;;
20819
20820   # This is an error.
20821   -*) { echo "$as_me: error: unrecognized option: $1
20822 Try \`$0 --help' for more information." >&2
20823    { (exit 1); exit 1; }; } ;;
20824
20825   *) ac_config_targets="$ac_config_targets $1"
20826      ac_need_defaults=false ;;
20827
20828   esac
20829   shift
20830 done
20831
20832 ac_configure_extra_args=
20833
20834 if $ac_cs_silent; then
20835   exec 6>/dev/null
20836   ac_configure_extra_args="$ac_configure_extra_args --silent"
20837 fi
20838
20839 _ACEOF
20840 cat >>$CONFIG_STATUS <<_ACEOF
20841 if \$ac_cs_recheck; then
20842   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20843   CONFIG_SHELL=$SHELL
20844   export CONFIG_SHELL
20845   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20846 fi
20847
20848 _ACEOF
20849 cat >>$CONFIG_STATUS <<\_ACEOF
20850 exec 5>>config.log
20851 {
20852   echo
20853   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20854 ## Running $as_me. ##
20855 _ASBOX
20856   echo "$ac_log"
20857 } >&5
20858
20859 _ACEOF
20860 cat >>$CONFIG_STATUS <<_ACEOF
20861 #
20862 # INIT-COMMANDS
20863 #
20864 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20865
20866 _ACEOF
20867
20868 cat >>$CONFIG_STATUS <<\_ACEOF
20869
20870 # Handling of arguments.
20871 for ac_config_target in $ac_config_targets
20872 do
20873   case $ac_config_target in
20874     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20875     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20876     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20877     "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
20878     "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
20879     "include/xtables.h") CONFIG_FILES="$CONFIG_FILES include/xtables.h" ;;
20880
20881   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20882 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20883    { (exit 1); exit 1; }; };;
20884   esac
20885 done
20886
20887
20888 # If the user did not use the arguments to specify the items to instantiate,
20889 # then the envvar interface is used.  Set only those that are not.
20890 # We use the long form for the default assignment because of an extremely
20891 # bizarre bug on SunOS 4.1.3.
20892 if $ac_need_defaults; then
20893   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20894   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20895   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20896 fi
20897
20898 # Have a temporary directory for convenience.  Make it in the build tree
20899 # simply because there is no reason against having it here, and in addition,
20900 # creating and moving files from /tmp can sometimes cause problems.
20901 # Hook for its removal unless debugging.
20902 # Note that there is a small window in which the directory will not be cleaned:
20903 # after its creation but before its name has been assigned to `$tmp'.
20904 $debug ||
20905 {
20906   tmp=
20907   trap 'exit_status=$?
20908   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20909 ' 0
20910   trap '{ (exit 1); exit 1; }' 1 2 13 15
20911 }
20912 # Create a (secure) tmp directory for tmp files.
20913
20914 {
20915   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20916   test -n "$tmp" && test -d "$tmp"
20917 }  ||
20918 {
20919   tmp=./conf$$-$RANDOM
20920   (umask 077 && mkdir "$tmp")
20921 } ||
20922 {
20923    echo "$me: cannot create a temporary directory in ." >&2
20924    { (exit 1); exit 1; }
20925 }
20926
20927 #
20928 # Set up the sed scripts for CONFIG_FILES section.
20929 #
20930
20931 # No need to generate the scripts if there are no CONFIG_FILES.
20932 # This happens for instance when ./config.status config.h
20933 if test -n "$CONFIG_FILES"; then
20934
20935 _ACEOF
20936
20937
20938
20939 ac_delim='%!_!# '
20940 for ac_last_try in false false false false false :; do
20941   cat >conf$$subs.sed <<_ACEOF
20942 SHELL!$SHELL$ac_delim
20943 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20944 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20945 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20946 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20947 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20948 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20949 exec_prefix!$exec_prefix$ac_delim
20950 prefix!$prefix$ac_delim
20951 program_transform_name!$program_transform_name$ac_delim
20952 bindir!$bindir$ac_delim
20953 sbindir!$sbindir$ac_delim
20954 libexecdir!$libexecdir$ac_delim
20955 datarootdir!$datarootdir$ac_delim
20956 datadir!$datadir$ac_delim
20957 sysconfdir!$sysconfdir$ac_delim
20958 sharedstatedir!$sharedstatedir$ac_delim
20959 localstatedir!$localstatedir$ac_delim
20960 includedir!$includedir$ac_delim
20961 oldincludedir!$oldincludedir$ac_delim
20962 docdir!$docdir$ac_delim
20963 infodir!$infodir$ac_delim
20964 htmldir!$htmldir$ac_delim
20965 dvidir!$dvidir$ac_delim
20966 pdfdir!$pdfdir$ac_delim
20967 psdir!$psdir$ac_delim
20968 libdir!$libdir$ac_delim
20969 localedir!$localedir$ac_delim
20970 mandir!$mandir$ac_delim
20971 DEFS!$DEFS$ac_delim
20972 ECHO_C!$ECHO_C$ac_delim
20973 ECHO_N!$ECHO_N$ac_delim
20974 ECHO_T!$ECHO_T$ac_delim
20975 LIBS!$LIBS$ac_delim
20976 build_alias!$build_alias$ac_delim
20977 host_alias!$host_alias$ac_delim
20978 target_alias!$target_alias$ac_delim
20979 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20980 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20981 INSTALL_DATA!$INSTALL_DATA$ac_delim
20982 CYGPATH_W!$CYGPATH_W$ac_delim
20983 PACKAGE!$PACKAGE$ac_delim
20984 VERSION!$VERSION$ac_delim
20985 ACLOCAL!$ACLOCAL$ac_delim
20986 AUTOCONF!$AUTOCONF$ac_delim
20987 AUTOMAKE!$AUTOMAKE$ac_delim
20988 AUTOHEADER!$AUTOHEADER$ac_delim
20989 MAKEINFO!$MAKEINFO$ac_delim
20990 install_sh!$install_sh$ac_delim
20991 STRIP!$STRIP$ac_delim
20992 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20993 mkdir_p!$mkdir_p$ac_delim
20994 AWK!$AWK$ac_delim
20995 SET_MAKE!$SET_MAKE$ac_delim
20996 am__leading_dot!$am__leading_dot$ac_delim
20997 AMTAR!$AMTAR$ac_delim
20998 am__tar!$am__tar$ac_delim
20999 am__untar!$am__untar$ac_delim
21000 CC!$CC$ac_delim
21001 CFLAGS!$CFLAGS$ac_delim
21002 LDFLAGS!$LDFLAGS$ac_delim
21003 CPPFLAGS!$CPPFLAGS$ac_delim
21004 ac_ct_CC!$ac_ct_CC$ac_delim
21005 EXEEXT!$EXEEXT$ac_delim
21006 OBJEXT!$OBJEXT$ac_delim
21007 DEPDIR!$DEPDIR$ac_delim
21008 am__include!$am__include$ac_delim
21009 am__quote!$am__quote$ac_delim
21010 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21011 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21012 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21013 CCDEPMODE!$CCDEPMODE$ac_delim
21014 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21015 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21016 build!$build$ac_delim
21017 build_cpu!$build_cpu$ac_delim
21018 build_vendor!$build_vendor$ac_delim
21019 build_os!$build_os$ac_delim
21020 host!$host$ac_delim
21021 host_cpu!$host_cpu$ac_delim
21022 host_vendor!$host_vendor$ac_delim
21023 host_os!$host_os$ac_delim
21024 SED!$SED$ac_delim
21025 GREP!$GREP$ac_delim
21026 EGREP!$EGREP$ac_delim
21027 LN_S!$LN_S$ac_delim
21028 ECHO!$ECHO$ac_delim
21029 AR!$AR$ac_delim
21030 RANLIB!$RANLIB$ac_delim
21031 DSYMUTIL!$DSYMUTIL$ac_delim
21032 NMEDIT!$NMEDIT$ac_delim
21033 CPP!$CPP$ac_delim
21034 CXX!$CXX$ac_delim
21035 CXXFLAGS!$CXXFLAGS$ac_delim
21036 ac_ct_CXX!$ac_ct_CXX$ac_delim
21037 CXXDEPMODE!$CXXDEPMODE$ac_delim
21038 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21039 _ACEOF
21040
21041   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21042     break
21043   elif $ac_last_try; then
21044     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21045 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21046    { (exit 1); exit 1; }; }
21047   else
21048     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21049   fi
21050 done
21051
21052 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21053 if test -n "$ac_eof"; then
21054   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21055   ac_eof=`expr $ac_eof + 1`
21056 fi
21057
21058 cat >>$CONFIG_STATUS <<_ACEOF
21059 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21061 _ACEOF
21062 sed '
21063 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21064 s/^/s,@/; s/!/@,|#_!!_#|/
21065 :n
21066 t n
21067 s/'"$ac_delim"'$/,g/; t
21068 s/$/\\/; p
21069 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21070 ' >>$CONFIG_STATUS <conf$$subs.sed
21071 rm -f conf$$subs.sed
21072 cat >>$CONFIG_STATUS <<_ACEOF
21073 CEOF$ac_eof
21074 _ACEOF
21075
21076
21077 ac_delim='%!_!# '
21078 for ac_last_try in false false false false false :; do
21079   cat >conf$$subs.sed <<_ACEOF
21080 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21081 CXXCPP!$CXXCPP$ac_delim
21082 F77!$F77$ac_delim
21083 FFLAGS!$FFLAGS$ac_delim
21084 ac_ct_F77!$ac_ct_F77$ac_delim
21085 LIBTOOL!$LIBTOOL$ac_delim
21086 blacklist_modules!$blacklist_modules$ac_delim
21087 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
21088 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
21089 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
21090 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
21091 ENABLE_DEVEL_TRUE!$ENABLE_DEVEL_TRUE$ac_delim
21092 ENABLE_DEVEL_FALSE!$ENABLE_DEVEL_FALSE$ac_delim
21093 ENABLE_LIBIPQ_TRUE!$ENABLE_LIBIPQ_TRUE$ac_delim
21094 ENABLE_LIBIPQ_FALSE!$ENABLE_LIBIPQ_FALSE$ac_delim
21095 regular_CFLAGS!$regular_CFLAGS$ac_delim
21096 kinclude_CFLAGS!$kinclude_CFLAGS$ac_delim
21097 kbuilddir!$kbuilddir$ac_delim
21098 ksourcedir!$ksourcedir$ac_delim
21099 xtlibdir!$xtlibdir$ac_delim
21100 XTABLES_VERSION_MAJOR!$XTABLES_VERSION_MAJOR$ac_delim
21101 XTABLES_VERSION_MINOR!$XTABLES_VERSION_MINOR$ac_delim
21102 XTABLES_VERSION_PATCH!$XTABLES_VERSION_PATCH$ac_delim
21103 XTABLES_VERSION_EXTRA!$XTABLES_VERSION_EXTRA$ac_delim
21104 LIBOBJS!$LIBOBJS$ac_delim
21105 LTLIBOBJS!$LTLIBOBJS$ac_delim
21106 _ACEOF
21107
21108   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
21109     break
21110   elif $ac_last_try; then
21111     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21112 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21113    { (exit 1); exit 1; }; }
21114   else
21115     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21116   fi
21117 done
21118
21119 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21120 if test -n "$ac_eof"; then
21121   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21122   ac_eof=`expr $ac_eof + 1`
21123 fi
21124
21125 cat >>$CONFIG_STATUS <<_ACEOF
21126 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21128 _ACEOF
21129 sed '
21130 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21131 s/^/s,@/; s/!/@,|#_!!_#|/
21132 :n
21133 t n
21134 s/'"$ac_delim"'$/,g/; t
21135 s/$/\\/; p
21136 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21137 ' >>$CONFIG_STATUS <conf$$subs.sed
21138 rm -f conf$$subs.sed
21139 cat >>$CONFIG_STATUS <<_ACEOF
21140 :end
21141 s/|#_!!_#|//g
21142 CEOF$ac_eof
21143 _ACEOF
21144
21145
21146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21148 # trailing colons and then remove the whole line if VPATH becomes empty
21149 # (actually we leave an empty line to preserve line numbers).
21150 if test "x$srcdir" = x.; then
21151   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21152 s/:*\$(srcdir):*/:/
21153 s/:*\${srcdir}:*/:/
21154 s/:*@srcdir@:*/:/
21155 s/^\([^=]*=[     ]*\):*/\1/
21156 s/:*$//
21157 s/^[^=]*=[       ]*$//
21158 }'
21159 fi
21160
21161 cat >>$CONFIG_STATUS <<\_ACEOF
21162 fi # test -n "$CONFIG_FILES"
21163
21164
21165 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21166 do
21167   case $ac_tag in
21168   :[FHLC]) ac_mode=$ac_tag; continue;;
21169   esac
21170   case $ac_mode$ac_tag in
21171   :[FHL]*:*);;
21172   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21173 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21174    { (exit 1); exit 1; }; };;
21175   :[FH]-) ac_tag=-:-;;
21176   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21177   esac
21178   ac_save_IFS=$IFS
21179   IFS=:
21180   set x $ac_tag
21181   IFS=$ac_save_IFS
21182   shift
21183   ac_file=$1
21184   shift
21185
21186   case $ac_mode in
21187   :L) ac_source=$1;;
21188   :[FH])
21189     ac_file_inputs=
21190     for ac_f
21191     do
21192       case $ac_f in
21193       -) ac_f="$tmp/stdin";;
21194       *) # Look for the file first in the build tree, then in the source tree
21195          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21196          # because $ac_f cannot contain `:'.
21197          test -f "$ac_f" ||
21198            case $ac_f in
21199            [\\/$]*) false;;
21200            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21201            esac ||
21202            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21203 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21204    { (exit 1); exit 1; }; };;
21205       esac
21206       ac_file_inputs="$ac_file_inputs $ac_f"
21207     done
21208
21209     # Let's still pretend it is `configure' which instantiates (i.e., don't
21210     # use $as_me), people would be surprised to read:
21211     #    /* config.h.  Generated by config.status.  */
21212     configure_input="Generated from "`IFS=:
21213           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21214     if test x"$ac_file" != x-; then
21215       configure_input="$ac_file.  $configure_input"
21216       { echo "$as_me:$LINENO: creating $ac_file" >&5
21217 echo "$as_me: creating $ac_file" >&6;}
21218     fi
21219
21220     case $ac_tag in
21221     *:-:* | *:-) cat >"$tmp/stdin";;
21222     esac
21223     ;;
21224   esac
21225
21226   ac_dir=`$as_dirname -- "$ac_file" ||
21227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21228          X"$ac_file" : 'X\(//\)[^/]' \| \
21229          X"$ac_file" : 'X\(//\)$' \| \
21230          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21231 echo X"$ac_file" |
21232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21233             s//\1/
21234             q
21235           }
21236           /^X\(\/\/\)[^/].*/{
21237             s//\1/
21238             q
21239           }
21240           /^X\(\/\/\)$/{
21241             s//\1/
21242             q
21243           }
21244           /^X\(\/\).*/{
21245             s//\1/
21246             q
21247           }
21248           s/.*/./; q'`
21249   { as_dir="$ac_dir"
21250   case $as_dir in #(
21251   -*) as_dir=./$as_dir;;
21252   esac
21253   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21254     as_dirs=
21255     while :; do
21256       case $as_dir in #(
21257       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21258       *) as_qdir=$as_dir;;
21259       esac
21260       as_dirs="'$as_qdir' $as_dirs"
21261       as_dir=`$as_dirname -- "$as_dir" ||
21262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21263          X"$as_dir" : 'X\(//\)[^/]' \| \
21264          X"$as_dir" : 'X\(//\)$' \| \
21265          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21266 echo X"$as_dir" |
21267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21268             s//\1/
21269             q
21270           }
21271           /^X\(\/\/\)[^/].*/{
21272             s//\1/
21273             q
21274           }
21275           /^X\(\/\/\)$/{
21276             s//\1/
21277             q
21278           }
21279           /^X\(\/\).*/{
21280             s//\1/
21281             q
21282           }
21283           s/.*/./; q'`
21284       test -d "$as_dir" && break
21285     done
21286     test -z "$as_dirs" || eval "mkdir $as_dirs"
21287   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21288 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21289    { (exit 1); exit 1; }; }; }
21290   ac_builddir=.
21291
21292 case "$ac_dir" in
21293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21294 *)
21295   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21296   # A ".." for each directory in $ac_dir_suffix.
21297   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21298   case $ac_top_builddir_sub in
21299   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21300   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21301   esac ;;
21302 esac
21303 ac_abs_top_builddir=$ac_pwd
21304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21305 # for backward compatibility:
21306 ac_top_builddir=$ac_top_build_prefix
21307
21308 case $srcdir in
21309   .)  # We are building in place.
21310     ac_srcdir=.
21311     ac_top_srcdir=$ac_top_builddir_sub
21312     ac_abs_top_srcdir=$ac_pwd ;;
21313   [\\/]* | ?:[\\/]* )  # Absolute name.
21314     ac_srcdir=$srcdir$ac_dir_suffix;
21315     ac_top_srcdir=$srcdir
21316     ac_abs_top_srcdir=$srcdir ;;
21317   *) # Relative name.
21318     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21319     ac_top_srcdir=$ac_top_build_prefix$srcdir
21320     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21321 esac
21322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21323
21324
21325   case $ac_mode in
21326   :F)
21327   #
21328   # CONFIG_FILE
21329   #
21330
21331   case $INSTALL in
21332   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21333   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21334   esac
21335 _ACEOF
21336
21337 cat >>$CONFIG_STATUS <<\_ACEOF
21338 # If the template does not know about datarootdir, expand it.
21339 # FIXME: This hack should be removed a few years after 2.60.
21340 ac_datarootdir_hack=; ac_datarootdir_seen=
21341
21342 case `sed -n '/datarootdir/ {
21343   p
21344   q
21345 }
21346 /@datadir@/p
21347 /@docdir@/p
21348 /@infodir@/p
21349 /@localedir@/p
21350 /@mandir@/p
21351 ' $ac_file_inputs` in
21352 *datarootdir*) ac_datarootdir_seen=yes;;
21353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21354   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21355 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21356 _ACEOF
21357 cat >>$CONFIG_STATUS <<_ACEOF
21358   ac_datarootdir_hack='
21359   s&@datadir@&$datadir&g
21360   s&@docdir@&$docdir&g
21361   s&@infodir@&$infodir&g
21362   s&@localedir@&$localedir&g
21363   s&@mandir@&$mandir&g
21364     s&\\\${datarootdir}&$datarootdir&g' ;;
21365 esac
21366 _ACEOF
21367
21368 # Neutralize VPATH when `$srcdir' = `.'.
21369 # Shell code in configure.ac might set extrasub.
21370 # FIXME: do we really want to maintain this feature?
21371 cat >>$CONFIG_STATUS <<_ACEOF
21372   sed "$ac_vpsub
21373 $extrasub
21374 _ACEOF
21375 cat >>$CONFIG_STATUS <<\_ACEOF
21376 :t
21377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21378 s&@configure_input@&$configure_input&;t t
21379 s&@top_builddir@&$ac_top_builddir_sub&;t t
21380 s&@srcdir@&$ac_srcdir&;t t
21381 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21382 s&@top_srcdir@&$ac_top_srcdir&;t t
21383 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21384 s&@builddir@&$ac_builddir&;t t
21385 s&@abs_builddir@&$ac_abs_builddir&;t t
21386 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21387 s&@INSTALL@&$ac_INSTALL&;t t
21388 $ac_datarootdir_hack
21389 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21390
21391 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21392   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21393   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21394   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21395 which seems to be undefined.  Please make sure it is defined." >&5
21396 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21397 which seems to be undefined.  Please make sure it is defined." >&2;}
21398
21399   rm -f "$tmp/stdin"
21400   case $ac_file in
21401   -) cat "$tmp/out"; rm -f "$tmp/out";;
21402   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21403   esac
21404  ;;
21405   :H)
21406   #
21407   # CONFIG_HEADER
21408   #
21409 _ACEOF
21410
21411 # Transform confdefs.h into a sed script `conftest.defines', that
21412 # substitutes the proper values into config.h.in to produce config.h.
21413 rm -f conftest.defines conftest.tail
21414 # First, append a space to every undef/define line, to ease matching.
21415 echo 's/$/ /' >conftest.defines
21416 # Then, protect against being on the right side of a sed subst, or in
21417 # an unquoted here document, in config.status.  If some macros were
21418 # called several times there might be several #defines for the same
21419 # symbol, which is useless.  But do not sort them, since the last
21420 # AC_DEFINE must be honored.
21421 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21422 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21423 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21424 # PARAMS is the parameter list in the macro definition--in most cases, it's
21425 # just an empty string.
21426 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21427 ac_dB='\\)[      (].*,\\1define\\2'
21428 ac_dC=' '
21429 ac_dD=' ,'
21430
21431 uniq confdefs.h |
21432   sed -n '
21433         t rset
21434         :rset
21435         s/^[     ]*#[    ]*define[       ][      ]*//
21436         t ok
21437         d
21438         :ok
21439         s/[\\&,]/\\&/g
21440         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21441         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21442   ' >>conftest.defines
21443
21444 # Remove the space that was appended to ease matching.
21445 # Then replace #undef with comments.  This is necessary, for
21446 # example, in the case of _POSIX_SOURCE, which is predefined and required
21447 # on some systems where configure will not decide to define it.
21448 # (The regexp can be short, since the line contains either #define or #undef.)
21449 echo 's/ $//
21450 s,^[     #]*u.*,/* & */,' >>conftest.defines
21451
21452 # Break up conftest.defines:
21453 ac_max_sed_lines=50
21454
21455 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21456 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21457 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21458 # et cetera.
21459 ac_in='$ac_file_inputs'
21460 ac_out='"$tmp/out1"'
21461 ac_nxt='"$tmp/out2"'
21462
21463 while :
21464 do
21465   # Write a here document:
21466     cat >>$CONFIG_STATUS <<_ACEOF
21467     # First, check the format of the line:
21468     cat >"\$tmp/defines.sed" <<\\CEOF
21469 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21470 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21471 b
21472 :def
21473 _ACEOF
21474   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21475   echo 'CEOF
21476     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21477   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21478   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21479   grep . conftest.tail >/dev/null || break
21480   rm -f conftest.defines
21481   mv conftest.tail conftest.defines
21482 done
21483 rm -f conftest.defines conftest.tail
21484
21485 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21486 cat >>$CONFIG_STATUS <<\_ACEOF
21487   if test x"$ac_file" != x-; then
21488     echo "/* $configure_input  */" >"$tmp/config.h"
21489     cat "$ac_result" >>"$tmp/config.h"
21490     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21491       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21492 echo "$as_me: $ac_file is unchanged" >&6;}
21493     else
21494       rm -f $ac_file
21495       mv "$tmp/config.h" $ac_file
21496     fi
21497   else
21498     echo "/* $configure_input  */"
21499     cat "$ac_result"
21500   fi
21501   rm -f "$tmp/out12"
21502 # Compute $ac_file's index in $config_headers.
21503 _am_stamp_count=1
21504 for _am_header in $config_headers :; do
21505   case $_am_header in
21506     $ac_file | $ac_file:* )
21507       break ;;
21508     * )
21509       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21510   esac
21511 done
21512 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21513 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21514          X$ac_file : 'X\(//\)[^/]' \| \
21515          X$ac_file : 'X\(//\)$' \| \
21516          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21517 echo X$ac_file |
21518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21519             s//\1/
21520             q
21521           }
21522           /^X\(\/\/\)[^/].*/{
21523             s//\1/
21524             q
21525           }
21526           /^X\(\/\/\)$/{
21527             s//\1/
21528             q
21529           }
21530           /^X\(\/\).*/{
21531             s//\1/
21532             q
21533           }
21534           s/.*/./; q'`/stamp-h$_am_stamp_count
21535  ;;
21536
21537   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21538 echo "$as_me: executing $ac_file commands" >&6;}
21539  ;;
21540   esac
21541
21542
21543   case $ac_file$ac_mode in
21544     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21545   # Strip MF so we end up with the name of the file.
21546   mf=`echo "$mf" | sed -e 's/:.*$//'`
21547   # Check whether this is an Automake generated Makefile or not.
21548   # We used to match only the files named `Makefile.in', but
21549   # some people rename them; so instead we look at the file content.
21550   # Grep'ing the first line is not enough: some people post-process
21551   # each Makefile.in and add a new line on top of each file to say so.
21552   # So let's grep whole file.
21553   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21554     dirpart=`$as_dirname -- "$mf" ||
21555 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21556          X"$mf" : 'X\(//\)[^/]' \| \
21557          X"$mf" : 'X\(//\)$' \| \
21558          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21559 echo X"$mf" |
21560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21561             s//\1/
21562             q
21563           }
21564           /^X\(\/\/\)[^/].*/{
21565             s//\1/
21566             q
21567           }
21568           /^X\(\/\/\)$/{
21569             s//\1/
21570             q
21571           }
21572           /^X\(\/\).*/{
21573             s//\1/
21574             q
21575           }
21576           s/.*/./; q'`
21577   else
21578     continue
21579   fi
21580   # Extract the definition of DEPDIR, am__include, and am__quote
21581   # from the Makefile without running `make'.
21582   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21583   test -z "$DEPDIR" && continue
21584   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21585   test -z "am__include" && continue
21586   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21587   # When using ansi2knr, U may be empty or an underscore; expand it
21588   U=`sed -n 's/^U = //p' < "$mf"`
21589   # Find all dependency output files, they are included files with
21590   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21591   # simplest approach to changing $(DEPDIR) to its actual value in the
21592   # expansion.
21593   for file in `sed -n "
21594     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21595        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21596     # Make sure the directory exists.
21597     test -f "$dirpart/$file" && continue
21598     fdir=`$as_dirname -- "$file" ||
21599 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21600          X"$file" : 'X\(//\)[^/]' \| \
21601          X"$file" : 'X\(//\)$' \| \
21602          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21603 echo X"$file" |
21604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21605             s//\1/
21606             q
21607           }
21608           /^X\(\/\/\)[^/].*/{
21609             s//\1/
21610             q
21611           }
21612           /^X\(\/\/\)$/{
21613             s//\1/
21614             q
21615           }
21616           /^X\(\/\).*/{
21617             s//\1/
21618             q
21619           }
21620           s/.*/./; q'`
21621     { as_dir=$dirpart/$fdir
21622   case $as_dir in #(
21623   -*) as_dir=./$as_dir;;
21624   esac
21625   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21626     as_dirs=
21627     while :; do
21628       case $as_dir in #(
21629       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21630       *) as_qdir=$as_dir;;
21631       esac
21632       as_dirs="'$as_qdir' $as_dirs"
21633       as_dir=`$as_dirname -- "$as_dir" ||
21634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21635          X"$as_dir" : 'X\(//\)[^/]' \| \
21636          X"$as_dir" : 'X\(//\)$' \| \
21637          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21638 echo X"$as_dir" |
21639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21640             s//\1/
21641             q
21642           }
21643           /^X\(\/\/\)[^/].*/{
21644             s//\1/
21645             q
21646           }
21647           /^X\(\/\/\)$/{
21648             s//\1/
21649             q
21650           }
21651           /^X\(\/\).*/{
21652             s//\1/
21653             q
21654           }
21655           s/.*/./; q'`
21656       test -d "$as_dir" && break
21657     done
21658     test -z "$as_dirs" || eval "mkdir $as_dirs"
21659   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21661    { (exit 1); exit 1; }; }; }
21662     # echo "creating $dirpart/$file"
21663     echo '# dummy' > "$dirpart/$file"
21664   done
21665 done
21666  ;;
21667
21668   esac
21669 done # for ac_tag
21670
21671
21672 { (exit 0); exit 0; }
21673 _ACEOF
21674 chmod +x $CONFIG_STATUS
21675 ac_clean_files=$ac_clean_files_save
21676
21677
21678 # configure is writing to config.log, and then calls config.status.
21679 # config.status does its own redirection, appending to config.log.
21680 # Unfortunately, on DOS this fails, as config.log is still kept open
21681 # by configure, so config.status won't be able to write to it; its
21682 # output is simply discarded.  So we exec the FD to /dev/null,
21683 # effectively closing config.log, so it can be properly (re)opened and
21684 # appended to by config.status.  When coming back to configure, we
21685 # need to make the FD available again.
21686 if test "$no_create" != yes; then
21687   ac_cs_success=:
21688   ac_config_status_args=
21689   test "$silent" = yes &&
21690     ac_config_status_args="$ac_config_status_args --quiet"
21691   exec 5>/dev/null
21692   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21693   exec 5>>config.log
21694   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21695   # would make configure fail if this is the last instruction.
21696   $ac_cs_success || { (exit 1); exit 1; }
21697 fi
21698