Imported Upstream version 0.10
[platform/upstream/nss-mdns.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for nss-mdns 0.10.
4 #
5 # Report bugs to <mzaffzqaf (at) 0pointer (dot) de>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='nss-mdns'
730 PACKAGE_TARNAME='nss-mdns'
731 PACKAGE_VERSION='0.10'
732 PACKAGE_STRING='nss-mdns 0.10'
733 PACKAGE_BUGREPORT='mzaffzqaf (at) 0pointer (dot) de'
734
735 ac_unique_file="src/query.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 PACKAGE_URL
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 CPP
848 LN_S
849 build
850 build_cpu
851 build_vendor
852 build_os
853 host
854 host_cpu
855 host_vendor
856 host_os
857 GREP
858 EGREP
859 ECHO
860 AR
861 RANLIB
862 CXX
863 CXXFLAGS
864 ac_ct_CXX
865 CXXDEPMODE
866 am__fastdepCXX_TRUE
867 am__fastdepCXX_FALSE
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 LIBOBJS
874 FREEBSD_NSS_TRUE
875 FREEBSD_NSS_FALSE
876 have_lynx
877 have_links
878 USE_LYNX_TRUE
879 USE_LYNX_FALSE
880 USE_LINKS_TRUE
881 USE_LINKS_FALSE
882 ENABLE_AVAHI_TRUE
883 ENABLE_AVAHI_FALSE
884 ENABLE_LEGACY_TRUE
885 ENABLE_LEGACY_FALSE
886 LTLIBOBJS'
887 ac_subst_files=''
888       ac_precious_vars='build_alias
889 host_alias
890 target_alias
891 CC
892 CFLAGS
893 LDFLAGS
894 LIBS
895 CPPFLAGS
896 CPP
897 CXX
898 CXXFLAGS
899 CCC
900 CXXCPP
901 F77
902 FFLAGS'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
950
951 ac_prev=
952 ac_dashdash=
953 for ac_option
954 do
955   # If the previous option needs an argument, assign it.
956   if test -n "$ac_prev"; then
957     eval $ac_prev=\$ac_option
958     ac_prev=
959     continue
960   fi
961
962   case $ac_option in
963   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964   *)    ac_optarg=yes ;;
965   esac
966
967   # Accept the important Cygnus configure options, so we can diagnose typos.
968
969   case $ac_dashdash$ac_option in
970   --)
971     ac_dashdash=yes ;;
972
973   -bindir | --bindir | --bindi | --bind | --bin | --bi)
974     ac_prev=bindir ;;
975   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976     bindir=$ac_optarg ;;
977
978   -build | --build | --buil | --bui | --bu)
979     ac_prev=build_alias ;;
980   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981     build_alias=$ac_optarg ;;
982
983   -cache-file | --cache-file | --cache-fil | --cache-fi \
984   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985     ac_prev=cache_file ;;
986   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988     cache_file=$ac_optarg ;;
989
990   --config-cache | -C)
991     cache_file=config.cache ;;
992
993   -datadir | --datadir | --datadi | --datad)
994     ac_prev=datadir ;;
995   -datadir=* | --datadir=* | --datadi=* | --datad=*)
996     datadir=$ac_optarg ;;
997
998   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999   | --dataroo | --dataro | --datar)
1000     ac_prev=datarootdir ;;
1001   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003     datarootdir=$ac_optarg ;;
1004
1005   -disable-* | --disable-*)
1006     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010    { (exit 1); exit 1; }; }
1011     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012     eval enable_$ac_feature=no ;;
1013
1014   -docdir | --docdir | --docdi | --doc | --do)
1015     ac_prev=docdir ;;
1016   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017     docdir=$ac_optarg ;;
1018
1019   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020     ac_prev=dvidir ;;
1021   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022     dvidir=$ac_optarg ;;
1023
1024   -enable-* | --enable-*)
1025     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029    { (exit 1); exit 1; }; }
1030     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031     eval enable_$ac_feature=\$ac_optarg ;;
1032
1033   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035   | --exec | --exe | --ex)
1036     ac_prev=exec_prefix ;;
1037   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039   | --exec=* | --exe=* | --ex=*)
1040     exec_prefix=$ac_optarg ;;
1041
1042   -gas | --gas | --ga | --g)
1043     # Obsolete; use --with-gas.
1044     with_gas=yes ;;
1045
1046   -help | --help | --hel | --he | -h)
1047     ac_init_help=long ;;
1048   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049     ac_init_help=recursive ;;
1050   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051     ac_init_help=short ;;
1052
1053   -host | --host | --hos | --ho)
1054     ac_prev=host_alias ;;
1055   -host=* | --host=* | --hos=* | --ho=*)
1056     host_alias=$ac_optarg ;;
1057
1058   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059     ac_prev=htmldir ;;
1060   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061   | --ht=*)
1062     htmldir=$ac_optarg ;;
1063
1064   -includedir | --includedir | --includedi | --included | --include \
1065   | --includ | --inclu | --incl | --inc)
1066     ac_prev=includedir ;;
1067   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068   | --includ=* | --inclu=* | --incl=* | --inc=*)
1069     includedir=$ac_optarg ;;
1070
1071   -infodir | --infodir | --infodi | --infod | --info | --inf)
1072     ac_prev=infodir ;;
1073   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074     infodir=$ac_optarg ;;
1075
1076   -libdir | --libdir | --libdi | --libd)
1077     ac_prev=libdir ;;
1078   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079     libdir=$ac_optarg ;;
1080
1081   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082   | --libexe | --libex | --libe)
1083     ac_prev=libexecdir ;;
1084   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085   | --libexe=* | --libex=* | --libe=*)
1086     libexecdir=$ac_optarg ;;
1087
1088   -localedir | --localedir | --localedi | --localed | --locale)
1089     ac_prev=localedir ;;
1090   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091     localedir=$ac_optarg ;;
1092
1093   -localstatedir | --localstatedir | --localstatedi | --localstated \
1094   | --localstate | --localstat | --localsta | --localst | --locals)
1095     ac_prev=localstatedir ;;
1096   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098     localstatedir=$ac_optarg ;;
1099
1100   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101     ac_prev=mandir ;;
1102   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103     mandir=$ac_optarg ;;
1104
1105   -nfp | --nfp | --nf)
1106     # Obsolete; use --without-fp.
1107     with_fp=no ;;
1108
1109   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110   | --no-cr | --no-c | -n)
1111     no_create=yes ;;
1112
1113   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115     no_recursion=yes ;;
1116
1117   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119   | --oldin | --oldi | --old | --ol | --o)
1120     ac_prev=oldincludedir ;;
1121   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124     oldincludedir=$ac_optarg ;;
1125
1126   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127     ac_prev=prefix ;;
1128   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129     prefix=$ac_optarg ;;
1130
1131   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132   | --program-pre | --program-pr | --program-p)
1133     ac_prev=program_prefix ;;
1134   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136     program_prefix=$ac_optarg ;;
1137
1138   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139   | --program-suf | --program-su | --program-s)
1140     ac_prev=program_suffix ;;
1141   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143     program_suffix=$ac_optarg ;;
1144
1145   -program-transform-name | --program-transform-name \
1146   | --program-transform-nam | --program-transform-na \
1147   | --program-transform-n | --program-transform- \
1148   | --program-transform | --program-transfor \
1149   | --program-transfo | --program-transf \
1150   | --program-trans | --program-tran \
1151   | --progr-tra | --program-tr | --program-t)
1152     ac_prev=program_transform_name ;;
1153   -program-transform-name=* | --program-transform-name=* \
1154   | --program-transform-nam=* | --program-transform-na=* \
1155   | --program-transform-n=* | --program-transform-=* \
1156   | --program-transform=* | --program-transfor=* \
1157   | --program-transfo=* | --program-transf=* \
1158   | --program-trans=* | --program-tran=* \
1159   | --progr-tra=* | --program-tr=* | --program-t=*)
1160     program_transform_name=$ac_optarg ;;
1161
1162   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163     ac_prev=pdfdir ;;
1164   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165     pdfdir=$ac_optarg ;;
1166
1167   -psdir | --psdir | --psdi | --psd | --ps)
1168     ac_prev=psdir ;;
1169   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170     psdir=$ac_optarg ;;
1171
1172   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173   | -silent | --silent | --silen | --sile | --sil)
1174     silent=yes ;;
1175
1176   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177     ac_prev=sbindir ;;
1178   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179   | --sbi=* | --sb=*)
1180     sbindir=$ac_optarg ;;
1181
1182   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184   | --sharedst | --shareds | --shared | --share | --shar \
1185   | --sha | --sh)
1186     ac_prev=sharedstatedir ;;
1187   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190   | --sha=* | --sh=*)
1191     sharedstatedir=$ac_optarg ;;
1192
1193   -site | --site | --sit)
1194     ac_prev=site ;;
1195   -site=* | --site=* | --sit=*)
1196     site=$ac_optarg ;;
1197
1198   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199     ac_prev=srcdir ;;
1200   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201     srcdir=$ac_optarg ;;
1202
1203   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204   | --syscon | --sysco | --sysc | --sys | --sy)
1205     ac_prev=sysconfdir ;;
1206   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208     sysconfdir=$ac_optarg ;;
1209
1210   -target | --target | --targe | --targ | --tar | --ta | --t)
1211     ac_prev=target_alias ;;
1212   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213     target_alias=$ac_optarg ;;
1214
1215   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216     verbose=yes ;;
1217
1218   -version | --version | --versio | --versi | --vers | -V)
1219     ac_init_version=: ;;
1220
1221   -with-* | --with-*)
1222     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       { echo "$as_me: error: invalid package name: $ac_package" >&2
1226    { (exit 1); exit 1; }; }
1227     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228     eval with_$ac_package=\$ac_optarg ;;
1229
1230   -without-* | --without-*)
1231     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234       { echo "$as_me: error: invalid package name: $ac_package" >&2
1235    { (exit 1); exit 1; }; }
1236     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237     eval with_$ac_package=no ;;
1238
1239   --x)
1240     # Obsolete; use --with-x.
1241     with_x=yes ;;
1242
1243   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244   | --x-incl | --x-inc | --x-in | --x-i)
1245     ac_prev=x_includes ;;
1246   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248     x_includes=$ac_optarg ;;
1249
1250   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252     ac_prev=x_libraries ;;
1253   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255     x_libraries=$ac_optarg ;;
1256
1257   -*) { echo "$as_me: error: unrecognized option: $ac_option
1258 Try \`$0 --help' for more information." >&2
1259    { (exit 1); exit 1; }; }
1260     ;;
1261
1262   *=*)
1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267    { (exit 1); exit 1; }; }
1268     eval $ac_envvar=\$ac_optarg
1269     export $ac_envvar ;;
1270
1271   *)
1272     # FIXME: should be removed in autoconf 3.0.
1273     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277     ;;
1278
1279   esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284   { echo "$as_me: error: missing argument to $ac_option" >&2
1285    { (exit 1); exit 1; }; }
1286 fi
1287
1288 # Be sure to have absolute directory names.
1289 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290                 datadir sysconfdir sharedstatedir localstatedir includedir \
1291                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292                 libdir localedir mandir
1293 do
1294   eval ac_val=\$$ac_var
1295   case $ac_val in
1296     [\\/$]* | ?:[\\/]* )  continue;;
1297     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298   esac
1299   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300    { (exit 1); exit 1; }; }
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312   if test "x$build_alias" = x; then
1313     cross_compiling=maybe
1314     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315     If a cross compiler is detected then cross compile mode will be used." >&2
1316   elif test "x$build_alias" != "x$host_alias"; then
1317     cross_compiling=yes
1318   fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330   { echo "$as_me: error: Working directory cannot be determined" >&2
1331    { (exit 1); exit 1; }; }
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333   { echo "$as_me: error: pwd does not report name of working directory" >&2
1334    { (exit 1); exit 1; }; }
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339   ac_srcdir_defaulted=yes
1340   # Try the directory containing this script, then the parent directory.
1341   ac_confdir=`$as_dirname -- "$0" ||
1342 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343          X"$0" : 'X\(//\)[^/]' \| \
1344          X"$0" : 'X\(//\)$' \| \
1345          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1346 echo X"$0" |
1347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)[^/].*/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\/\)$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\).*/{
1360             s//\1/
1361             q
1362           }
1363           s/.*/./; q'`
1364   srcdir=$ac_confdir
1365   if test ! -r "$srcdir/$ac_unique_file"; then
1366     srcdir=..
1367   fi
1368 else
1369   ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1374    { (exit 1); exit 1; }; }
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1379    { (exit 1); exit 1; }; }
1380         pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383   srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_env_${ac_var}_value=\$${ac_var}
1394   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402   # Omit some internal or obsolete options to make the list less imposing.
1403   # This message is too long to be a string in the A/UX 3.1 sh.
1404   cat <<_ACEOF
1405 \`configure' configures nss-mdns 0.10 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE.  See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415   -h, --help              display this help and exit
1416       --help=short        display options specific to this package
1417       --help=recursive    display the short help of all the included packages
1418   -V, --version           display version information and exit
1419   -q, --quiet, --silent   do not print \`checking...' messages
1420       --cache-file=FILE   cache test results in FILE [disabled]
1421   -C, --config-cache      alias for \`--cache-file=config.cache'
1422   -n, --no-create         do not create output files
1423       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426   --prefix=PREFIX         install architecture-independent files in PREFIX
1427                           [$ac_default_prefix]
1428   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1429                           [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439   --bindir=DIR           user executables [EPREFIX/bin]
1440   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1441   --libexecdir=DIR       program executables [EPREFIX/libexec]
1442   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1443   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1444   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1445   --libdir=DIR           object code libraries [EPREFIX/lib]
1446   --includedir=DIR       C header files [PREFIX/include]
1447   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1448   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1449   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1450   --infodir=DIR          info documentation [DATAROOTDIR/info]
1451   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1452   --mandir=DIR           man documentation [DATAROOTDIR/man]
1453   --docdir=DIR           documentation root [DATAROOTDIR/doc/nss-mdns]
1454   --htmldir=DIR          html documentation [DOCDIR]
1455   --dvidir=DIR           dvi documentation [DOCDIR]
1456   --pdfdir=DIR           pdf documentation [DOCDIR]
1457   --psdir=DIR            ps documentation [DOCDIR]
1458 _ACEOF
1459
1460   cat <<\_ACEOF
1461
1462 Program names:
1463   --program-prefix=PREFIX            prepend PREFIX to installed program names
1464   --program-suffix=SUFFIX            append SUFFIX to installed program names
1465   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1466
1467 System types:
1468   --build=BUILD     configure for building on BUILD [guessed]
1469   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474   case $ac_init_help in
1475      short | recursive ) echo "Configuration of nss-mdns 0.10:";;
1476    esac
1477   cat <<\_ACEOF
1478
1479 Optional Features:
1480   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482   --disable-dependency-tracking  speeds up one-time build
1483   --enable-dependency-tracking   do not reject slow dependency extractors
1484   --enable-static[=PKGS]  build static libraries [default=no]
1485   --enable-shared[=PKGS]  build shared libraries [default=yes]
1486   --enable-fast-install[=PKGS]
1487                           optimize for fast installation [default=yes]
1488   --disable-libtool-lock  avoid locking (might break parallel builds)
1489   --disable-lynx          Turn off lynx usage for documentation generation
1490   --enable-avahi          Enable lookups with Avahi (default=yes)
1491   --enable-legacy         Enable legacy unicast mDNS lookups when Avahi isn't
1492                           available (default=no)
1493   --enable-search-domains Honour search domains from /etc/resolv.conf
1494                           (default=no)
1495
1496 Optional Packages:
1497   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500   --with-pic              try to use only PIC/non-PIC objects [default=use
1501                           both]
1502   --with-tags[=TAGS]      include additional configurations [automatic]
1503
1504 Some influential environment variables:
1505   CC          C compiler command
1506   CFLAGS      C compiler flags
1507   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508               nonstandard directory <lib dir>
1509   LIBS        libraries to pass to the linker, e.g. -l<library>
1510   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511               you have headers in a nonstandard directory <include dir>
1512   CPP         C preprocessor
1513   CXX         C++ compiler command
1514   CXXFLAGS    C++ compiler flags
1515   CXXCPP      C++ preprocessor
1516   F77         Fortran 77 compiler command
1517   FFLAGS      Fortran 77 compiler flags
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to <mzaffzqaf (at) 0pointer (dot) de>.
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" || continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 nss-mdns configure 0.10
1584 generated by GNU Autoconf 2.61
1585
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591   exit
1592 fi
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1596
1597 It was created by nss-mdns $as_me 0.10, which was
1598 generated by GNU Autoconf 2.61.  Invocation command line was
1599
1600   $ $0 $@
1601
1602 _ACEOF
1603 exec 5>>config.log
1604 {
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1609
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1618
1619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1626
1627 _ASUNAME
1628
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1637
1638 } >&5
1639
1640 cat >&5 <<_ACEOF
1641
1642
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1646
1647 _ACEOF
1648
1649
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1660 do
1661   for ac_arg
1662   do
1663     case $ac_arg in
1664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666     | -silent | --silent | --silen | --sile | --sil)
1667       continue ;;
1668     *\'*)
1669       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670     esac
1671     case $ac_pass in
1672     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673     2)
1674       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675       if test $ac_must_keep_next = true; then
1676         ac_must_keep_next=false # Got value, back to normal.
1677       else
1678         case $ac_arg in
1679           *=* | --config-cache | -C | -disable-* | --disable-* \
1680           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682           | -with-* | --with-* | -without-* | --without-* | --x)
1683             case "$ac_configure_args0 " in
1684               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685             esac
1686             ;;
1687           -* ) ac_must_keep_next=true ;;
1688         esac
1689       fi
1690       ac_configure_args="$ac_configure_args '$ac_arg'"
1691       ;;
1692     esac
1693   done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log.  We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704   # Save into config.log some information that might help in debugging.
1705   {
1706     echo
1707
1708     cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713     echo
1714     # The following way of writing the cache mishandles newlines in values,
1715 (
1716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717     eval ac_val=\$$ac_var
1718     case $ac_val in #(
1719     *${as_nl}*)
1720       case $ac_var in #(
1721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723       esac
1724       case $ac_var in #(
1725       _ | IFS | as_nl) ;; #(
1726       *) $as_unset $ac_var ;;
1727       esac ;;
1728     esac
1729   done
1730   (set) 2>&1 |
1731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732     *${as_nl}ac_space=\ *)
1733       sed -n \
1734         "s/'\''/'\''\\\\'\'''\''/g;
1735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736       ;; #(
1737     *)
1738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739       ;;
1740     esac |
1741     sort
1742 )
1743     echo
1744
1745     cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750     echo
1751     for ac_var in $ac_subst_vars
1752     do
1753       eval ac_val=\$$ac_var
1754       case $ac_val in
1755       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756       esac
1757       echo "$ac_var='\''$ac_val'\''"
1758     done | sort
1759     echo
1760
1761     if test -n "$ac_subst_files"; then
1762       cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767       echo
1768       for ac_var in $ac_subst_files
1769       do
1770         eval ac_val=\$$ac_var
1771         case $ac_val in
1772         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773         esac
1774         echo "$ac_var='\''$ac_val'\''"
1775       done | sort
1776       echo
1777     fi
1778
1779     if test -s confdefs.h; then
1780       cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785       echo
1786       cat confdefs.h
1787       echo
1788     fi
1789     test "$ac_signal" != 0 &&
1790       echo "$as_me: caught signal $ac_signal"
1791     echo "$as_me: exit $exit_status"
1792   } >&5
1793   rm -f core *.core core.conftest.* &&
1794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795     exit $exit_status
1796 ' 0
1797 for ac_signal in 1 2 13 15; do
1798   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1801
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1804
1805 # Predefined preprocessor variables.
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1830
1831
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835   set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 else
1839   set x "$ac_default_prefix/share/config.site" \
1840         "$ac_default_prefix/etc/config.site"
1841 fi
1842 shift
1843 for ac_site_file
1844 do
1845   if test -r "$ac_site_file"; then
1846     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848     sed 's/^/| /' "$ac_site_file" >&5
1849     . "$ac_site_file"
1850   fi
1851 done
1852
1853 if test -r "$cache_file"; then
1854   # Some versions of bash will fail to source /dev/null (special
1855   # files actually), so we avoid doing that.
1856   if test -f "$cache_file"; then
1857     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1859     case $cache_file in
1860       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861       *)                      . "./$cache_file";;
1862     esac
1863   fi
1864 else
1865   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1867   >$cache_file
1868 fi
1869
1870 # Check that the precious variables saved in the cache have kept the same
1871 # value.
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875   eval ac_new_set=\$ac_env_${ac_var}_set
1876   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877   eval ac_new_val=\$ac_env_${ac_var}_value
1878   case $ac_old_set,$ac_new_set in
1879     set,)
1880       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882       ac_cache_corrupted=: ;;
1883     ,set)
1884       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886       ac_cache_corrupted=: ;;
1887     ,);;
1888     *)
1889       if test "x$ac_old_val" != "x$ac_new_val"; then
1890         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1893 echo "$as_me:   former value:  $ac_old_val" >&2;}
1894         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1895 echo "$as_me:   current value: $ac_new_val" >&2;}
1896         ac_cache_corrupted=:
1897       fi;;
1898   esac
1899   # Pass precious variables to config.status.
1900   if test "$ac_new_set" = set; then
1901     case $ac_new_val in
1902     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903     *) ac_arg=$ac_var=$ac_new_val ;;
1904     esac
1905     case " $ac_configure_args " in
1906       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1907       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908     esac
1909   fi
1910 done
1911 if $ac_cache_corrupted; then
1912   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916    { (exit 1); exit 1; }; }
1917 fi
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948
1949
1950
1951 ac_config_headers="$ac_config_headers config.h"
1952
1953 am__api_version="1.9"
1954 ac_aux_dir=
1955 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1956   if test -f "$ac_dir/install-sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install-sh -c"
1959     break
1960   elif test -f "$ac_dir/install.sh"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/install.sh -c"
1963     break
1964   elif test -f "$ac_dir/shtool"; then
1965     ac_aux_dir=$ac_dir
1966     ac_install_sh="$ac_aux_dir/shtool install -c"
1967     break
1968   fi
1969 done
1970 if test -z "$ac_aux_dir"; then
1971   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1973    { (exit 1); exit 1; }; }
1974 fi
1975
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1983
1984
1985 # Find a good install program.  We prefer a C program (faster),
1986 # so one script is as good as another.  But avoid the broken or
1987 # incompatible versions:
1988 # SysV /etc/install, /usr/sbin/install
1989 # SunOS /usr/etc/install
1990 # IRIX /sbin/install
1991 # AIX /bin/install
1992 # AmigaOS /C/install, which installs bootblocks on floppy discs
1993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1996 # OS/2's system install, which has a completely different semantic
1997 # ./install, which can be erroneously created by make from ./install.sh.
1998 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1999 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2000 if test -z "$INSTALL"; then
2001 if test "${ac_cv_path_install+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   # Account for people who put trailing slashes in PATH elements.
2010 case $as_dir/ in
2011   ./ | .// | /cC/* | \
2012   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2013   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2014   /usr/ucb/* ) ;;
2015   *)
2016     # OSF1 and SCO ODT 3.0 have their own names for install.
2017     # Don't use installbsd from OSF since it installs stuff as root
2018     # by default.
2019     for ac_prog in ginstall scoinst install; do
2020       for ac_exec_ext in '' $ac_executable_extensions; do
2021         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2022           if test $ac_prog = install &&
2023             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2024             # AIX install.  It has an incompatible calling convention.
2025             :
2026           elif test $ac_prog = install &&
2027             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2028             # program-specific install script used by HP pwplus--don't use.
2029             :
2030           else
2031             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2032             break 3
2033           fi
2034         fi
2035       done
2036     done
2037     ;;
2038 esac
2039 done
2040 IFS=$as_save_IFS
2041
2042
2043 fi
2044   if test "${ac_cv_path_install+set}" = set; then
2045     INSTALL=$ac_cv_path_install
2046   else
2047     # As a last resort, use the slow shell script.  Don't cache a
2048     # value for INSTALL within a source directory, because that will
2049     # break other packages using the cache if that directory is
2050     # removed, or if the value is a relative name.
2051     INSTALL=$ac_install_sh
2052   fi
2053 fi
2054 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2055 echo "${ECHO_T}$INSTALL" >&6; }
2056
2057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2058 # It thinks the first close brace ends the variable substitution.
2059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2060
2061 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2062
2063 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2064
2065 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2066 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2067 # Just in case
2068 sleep 1
2069 echo timestamp > conftest.file
2070 # Do `set' in a subshell so we don't clobber the current shell's
2071 # arguments.  Must try -L first in case configure is actually a
2072 # symlink; some systems play weird games with the mod time of symlinks
2073 # (eg FreeBSD returns the mod time of the symlink's containing
2074 # directory).
2075 if (
2076    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2077    if test "$*" = "X"; then
2078       # -L didn't work.
2079       set X `ls -t $srcdir/configure conftest.file`
2080    fi
2081    rm -f conftest.file
2082    if test "$*" != "X $srcdir/configure conftest.file" \
2083       && test "$*" != "X conftest.file $srcdir/configure"; then
2084
2085       # If neither matched, then we have a broken ls.  This can happen
2086       # if, for instance, CONFIG_SHELL is bash and it inherits a
2087       # broken ls alias from the environment.  This has actually
2088       # happened.  Such a system could not be considered "sane".
2089       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2090 alias in your environment" >&5
2091 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2092 alias in your environment" >&2;}
2093    { (exit 1); exit 1; }; }
2094    fi
2095
2096    test "$2" = conftest.file
2097    )
2098 then
2099    # Ok.
2100    :
2101 else
2102    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2103 Check your system clock" >&5
2104 echo "$as_me: error: newly created file is older than distributed files!
2105 Check your system clock" >&2;}
2106    { (exit 1); exit 1; }; }
2107 fi
2108 { echo "$as_me:$LINENO: result: yes" >&5
2109 echo "${ECHO_T}yes" >&6; }
2110 test "$program_prefix" != NONE &&
2111   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2112 # Use a double $ so make ignores it.
2113 test "$program_suffix" != NONE &&
2114   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2115 # Double any \ or $.  echo might interpret backslashes.
2116 # By default was `s,x,x', remove it if useless.
2117 cat <<\_ACEOF >conftest.sed
2118 s/[\\$]/&&/g;s/;s,x,x,$//
2119 _ACEOF
2120 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2121 rm -f conftest.sed
2122
2123 # expand $ac_aux_dir to an absolute path
2124 am_aux_dir=`cd $ac_aux_dir && pwd`
2125
2126 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2127 # Use eval to expand $SHELL
2128 if eval "$MISSING --run true"; then
2129   am_missing_run="$MISSING --run "
2130 else
2131   am_missing_run=
2132   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2133 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2134 fi
2135
2136 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2137   # We used to keeping the `.' as first argument, in order to
2138   # allow $(mkdir_p) to be used without argument.  As in
2139   #   $(mkdir_p) $(somedir)
2140   # where $(somedir) is conditionally defined.  However this is wrong
2141   # for two reasons:
2142   #  1. if the package is installed by a user who cannot write `.'
2143   #     make install will fail,
2144   #  2. the above comment should most certainly read
2145   #     $(mkdir_p) $(DESTDIR)$(somedir)
2146   #     so it does not work when $(somedir) is undefined and
2147   #     $(DESTDIR) is not.
2148   #  To support the latter case, we have to write
2149   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2150   #  so the `.' trick is pointless.
2151   mkdir_p='mkdir -p --'
2152 else
2153   # On NextStep and OpenStep, the `mkdir' command does not
2154   # recognize any option.  It will interpret all options as
2155   # directories to create, and then abort because `.' already
2156   # exists.
2157   for d in ./-p ./--version;
2158   do
2159     test -d $d && rmdir $d
2160   done
2161   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2162   if test -f "$ac_aux_dir/mkinstalldirs"; then
2163     mkdir_p='$(mkinstalldirs)'
2164   else
2165     mkdir_p='$(install_sh) -d'
2166   fi
2167 fi
2168
2169 for ac_prog in gawk mawk nawk awk
2170 do
2171   # Extract the first word of "$ac_prog", so it can be a program name with args.
2172 set dummy $ac_prog; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_AWK+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   if test -n "$AWK"; then
2179   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188     ac_cv_prog_AWK="$ac_prog"
2189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194 IFS=$as_save_IFS
2195
2196 fi
2197 fi
2198 AWK=$ac_cv_prog_AWK
2199 if test -n "$AWK"; then
2200   { echo "$as_me:$LINENO: result: $AWK" >&5
2201 echo "${ECHO_T}$AWK" >&6; }
2202 else
2203   { echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6; }
2205 fi
2206
2207
2208   test -n "$AWK" && break
2209 done
2210
2211 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2212 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2213 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2214 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   cat >conftest.make <<\_ACEOF
2218 SHELL = /bin/sh
2219 all:
2220         @echo '@@@%%%=$(MAKE)=@@@%%%'
2221 _ACEOF
2222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2224   *@@@%%%=?*=@@@%%%*)
2225     eval ac_cv_prog_make_${ac_make}_set=yes;;
2226   *)
2227     eval ac_cv_prog_make_${ac_make}_set=no;;
2228 esac
2229 rm -f conftest.make
2230 fi
2231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2232   { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2234   SET_MAKE=
2235 else
2236   { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2238   SET_MAKE="MAKE=${MAKE-make}"
2239 fi
2240
2241 rm -rf .tst 2>/dev/null
2242 mkdir .tst 2>/dev/null
2243 if test -d .tst; then
2244   am__leading_dot=.
2245 else
2246   am__leading_dot=_
2247 fi
2248 rmdir .tst 2>/dev/null
2249
2250 # test to see if srcdir already configured
2251 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2252    test -f $srcdir/config.status; then
2253   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2254 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2255    { (exit 1); exit 1; }; }
2256 fi
2257
2258 # test whether we have cygpath
2259 if test -z "$CYGPATH_W"; then
2260   if (cygpath --version) >/dev/null 2>/dev/null; then
2261     CYGPATH_W='cygpath -w'
2262   else
2263     CYGPATH_W=echo
2264   fi
2265 fi
2266
2267
2268 # Define the identity of the package.
2269  PACKAGE='nss-mdns'
2270  VERSION='0.10'
2271
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE "$PACKAGE"
2275 _ACEOF
2276
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define VERSION "$VERSION"
2280 _ACEOF
2281
2282 # Some tools Automake needs.
2283
2284 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2285
2286
2287 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2288
2289
2290 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2291
2292
2293 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2294
2295
2296 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2297
2298 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2299
2300 # Installed binaries are usually stripped using `strip' when the user
2301 # run `make install-strip'.  However `strip' might not be the right
2302 # tool to use in cross-compilation environments, therefore Automake
2303 # will honor the `STRIP' environment variable to overrule this program.
2304 if test "$cross_compiling" != no; then
2305   if test -n "$ac_tool_prefix"; then
2306   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}strip; ac_word=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_STRIP+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   if test -n "$STRIP"; then
2314   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321   for ac_exec_ext in '' $ac_executable_extensions; do
2322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329 IFS=$as_save_IFS
2330
2331 fi
2332 fi
2333 STRIP=$ac_cv_prog_STRIP
2334 if test -n "$STRIP"; then
2335   { echo "$as_me:$LINENO: result: $STRIP" >&5
2336 echo "${ECHO_T}$STRIP" >&6; }
2337 else
2338   { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2340 fi
2341
2342
2343 fi
2344 if test -z "$ac_cv_prog_STRIP"; then
2345   ac_ct_STRIP=$STRIP
2346   # Extract the first word of "strip", so it can be a program name with args.
2347 set dummy strip; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   if test -n "$ac_ct_STRIP"; then
2354   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359   IFS=$as_save_IFS
2360   test -z "$as_dir" && as_dir=.
2361   for ac_exec_ext in '' $ac_executable_extensions; do
2362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363     ac_cv_prog_ac_ct_STRIP="strip"
2364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365     break 2
2366   fi
2367 done
2368 done
2369 IFS=$as_save_IFS
2370
2371 fi
2372 fi
2373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2374 if test -n "$ac_ct_STRIP"; then
2375   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2376 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2377 else
2378   { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2380 fi
2381
2382   if test "x$ac_ct_STRIP" = x; then
2383     STRIP=":"
2384   else
2385     case $cross_compiling:$ac_tool_warned in
2386 yes:)
2387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet.  If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&5
2390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet.  If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2393 ac_tool_warned=yes ;;
2394 esac
2395     STRIP=$ac_ct_STRIP
2396   fi
2397 else
2398   STRIP="$ac_cv_prog_STRIP"
2399 fi
2400
2401 fi
2402 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2403
2404 # We need awk for the "check" target.  The system "awk" is bad on
2405 # some platforms.
2406 # Always define AMTAR for backward compatibility.
2407
2408 AMTAR=${AMTAR-"${am_missing_run}tar"}
2409
2410 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2411
2412
2413
2414
2415
2416
2417 PACKAGE_URL=http://0pointer.de/lennart/projects/nss-mdns/
2418
2419
2420 ac_default_prefix="/"
2421
2422
2423 cat >>confdefs.h <<\_ACEOF
2424 #define _GNU_SOURCE 1
2425 _ACEOF
2426
2427
2428
2429 # Checks for programs.
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$CC"; then
2444   ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465   { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468   { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2470 fi
2471
2472
2473 fi
2474 if test -z "$ac_cv_prog_CC"; then
2475   ac_ct_CC=$CC
2476   # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   if test -n "$ac_ct_CC"; then
2484   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_ac_ct_CC="gcc"
2494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508   { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512   if test "x$ac_ct_CC" = x; then
2513     CC=""
2514   else
2515     case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet.  If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet.  If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525     CC=$ac_ct_CC
2526   fi
2527 else
2528   CC="$ac_cv_prog_CC"
2529 fi
2530
2531 if test -z "$CC"; then
2532           if test -n "$ac_tool_prefix"; then
2533     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$CC"; then
2541   ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     ac_cv_prog_CC="${ac_tool_prefix}cc"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562   { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565   { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569
2570   fi
2571 fi
2572 if test -z "$CC"; then
2573   # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   if test -n "$CC"; then
2581   ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583   ac_prog_rejected=no
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587   IFS=$as_save_IFS
2588   test -z "$as_dir" && as_dir=.
2589   for ac_exec_ext in '' $ac_executable_extensions; do
2590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592        ac_prog_rejected=yes
2593        continue
2594      fi
2595     ac_cv_prog_CC="cc"
2596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 if test $ac_prog_rejected = yes; then
2604   # We found a bogon in the path, so make sure we never use it.
2605   set dummy $ac_cv_prog_CC
2606   shift
2607   if test $# != 0; then
2608     # We chose a different compiler from the bogus one.
2609     # However, it has the same basename, so the bogon will be chosen
2610     # first if we set CC to just the basename; use the full file name.
2611     shift
2612     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613   fi
2614 fi
2615 fi
2616 fi
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619   { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622   { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2624 fi
2625
2626
2627 fi
2628 if test -z "$CC"; then
2629   if test -n "$ac_tool_prefix"; then
2630   for ac_prog in cl.exe
2631   do
2632     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$CC"; then
2640   ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661   { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669     test -n "$CC" && break
2670   done
2671 fi
2672 if test -z "$CC"; then
2673   ac_ct_CC=$CC
2674   for ac_prog in cl.exe
2675 do
2676   # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   if test -n "$ac_ct_CC"; then
2684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691   for ac_exec_ext in '' $ac_executable_extensions; do
2692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693     ac_cv_prog_ac_ct_CC="$ac_prog"
2694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 else
2708   { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2710 fi
2711
2712
2713   test -n "$ac_ct_CC" && break
2714 done
2715
2716   if test "x$ac_ct_CC" = x; then
2717     CC=""
2718   else
2719     case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet.  If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet.  If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729     CC=$ac_ct_CC
2730   fi
2731 fi
2732
2733 fi
2734
2735
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740    { (exit 1); exit 1; }; }
2741
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2746 case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_compiler --version >&5") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2756 case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_compiler -v >&5") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2766 case "(($ac_try" in
2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768   *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771   (eval "$ac_compiler -V >&5") 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }
2775
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782
2783 int
2784 main ()
2785 {
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2795 # of exeext.
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 #
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort.  b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 #
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions.  Remove them first so a
2807 # subsequent execution test works.
2808 ac_rmfiles=
2809 for ac_file in $ac_files
2810 do
2811   case $ac_file in
2812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814   esac
2815 done
2816 rm -f $ac_rmfiles
2817
2818 if { (ac_try="$ac_link_default"
2819 case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824   (eval "$ac_link_default") 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; then
2828   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files ''
2834 do
2835   test -f "$ac_file" || continue
2836   case $ac_file in
2837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2838         ;;
2839     [ab].out )
2840         # We found the default executable, but exeext='' is most
2841         # certainly right.
2842         break;;
2843     *.* )
2844         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845         then :; else
2846            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847         fi
2848         # We set ac_cv_exeext here because the later test for it is not
2849         # safe: cross compilers may not add the suffix if given an `-o'
2850         # argument, so we may need to know it at that point already.
2851         # Even if this section looks crufty: it has the advantage of
2852         # actually working.
2853         break;;
2854     * )
2855         break;;
2856   esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
2860 else
2861   ac_file=''
2862 fi
2863
2864 { echo "$as_me:$LINENO: result: $ac_file" >&5
2865 echo "${ECHO_T}$ac_file" >&6; }
2866 if test -z "$ac_file"; then
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&2;}
2874    { (exit 77); exit 77; }; }
2875 fi
2876
2877 ac_exeext=$ac_cv_exeext
2878
2879 # Check that the compiler produces executables we can run.  If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886   if { ac_try='./$ac_file'
2887   { (case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_try") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; }; then
2896     cross_compiling=no
2897   else
2898     if test "$cross_compiling" = maybe; then
2899         cross_compiling=yes
2900     else
2901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907    { (exit 1); exit 1; }; }
2908     fi
2909   fi
2910 fi
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2913
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run.  If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2922
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_link") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }; then
2935   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2938 # `rm'.
2939 for ac_file in conftest.exe conftest conftest.*; do
2940   test -f "$ac_file" || continue
2941   case $ac_file in
2942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944           break;;
2945     * ) break;;
2946   esac
2947 done
2948 else
2949   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953    { (exit 1); exit 1; }; }
2954 fi
2955
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2962 ac_exeext=$EXEEXT
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974
2975 int
2976 main ()
2977 {
2978
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2985 case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_compile") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; then
2994   for ac_file in conftest.o conftest.obj conftest.*; do
2995   test -f "$ac_file" || continue;
2996   case $ac_file in
2997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999        break;;
3000   esac
3001 done
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010    { (exit 1); exit 1; }; }
3011 fi
3012
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3018 ac_objext=$OBJEXT
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034 #ifndef __GNUC__
3035        choke me
3036 #endif
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_compile") 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } && {
3056          test -z "$ac_c_werror_flag" ||
3057          test ! -s conftest.err
3058        } && test -s conftest.$ac_objext; then
3059   ac_compiler_gnu=yes
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064         ac_compiler_gnu=no
3065 fi
3066
3067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3069
3070 fi
3071 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3072 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3073 GCC=`test $ac_compiler_gnu = yes && echo yes`
3074 ac_test_CFLAGS=${CFLAGS+set}
3075 ac_save_CFLAGS=$CFLAGS
3076 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3077 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_cc_g+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   ac_save_c_werror_flag=$ac_c_werror_flag
3082    ac_c_werror_flag=yes
3083    ac_cv_prog_cc_g=no
3084    CFLAGS="-g"
3085    cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_compile") 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } && {
3114          test -z "$ac_c_werror_flag" ||
3115          test ! -s conftest.err
3116        } && test -s conftest.$ac_objext; then
3117   ac_cv_prog_cc_g=yes
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122         CFLAGS=""
3123       cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } && {
3152          test -z "$ac_c_werror_flag" ||
3153          test ! -s conftest.err
3154        } && test -s conftest.$ac_objext; then
3155   :
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160         ac_c_werror_flag=$ac_save_c_werror_flag
3161          CFLAGS="-g"
3162          cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168
3169 int
3170 main ()
3171 {
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_compile") 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } && {
3191          test -z "$ac_c_werror_flag" ||
3192          test ! -s conftest.err
3193        } && test -s conftest.$ac_objext; then
3194   ac_cv_prog_cc_g=yes
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209    ac_c_werror_flag=$ac_save_c_werror_flag
3210 fi
3211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3212 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3213 if test "$ac_test_CFLAGS" = set; then
3214   CFLAGS=$ac_save_CFLAGS
3215 elif test $ac_cv_prog_cc_g = yes; then
3216   if test "$GCC" = yes; then
3217     CFLAGS="-g -O2"
3218   else
3219     CFLAGS="-g"
3220   fi
3221 else
3222   if test "$GCC" = yes; then
3223     CFLAGS="-O2"
3224   else
3225     CFLAGS=
3226   fi
3227 fi
3228 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3229 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_cc_c89+set}" = set; then
3231   echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233   ac_cv_prog_cc_c89=no
3234 ac_save_CC=$CC
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h.  */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h.  */
3241 #include <stdarg.h>
3242 #include <stdio.h>
3243 #include <sys/types.h>
3244 #include <sys/stat.h>
3245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3246 struct buf { int x; };
3247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248 static char *e (p, i)
3249      char **p;
3250      int i;
3251 {
3252   return p[i];
3253 }
3254 static char *f (char * (*g) (char **, int), char **p, ...)
3255 {
3256   char *s;
3257   va_list v;
3258   va_start (v,p);
3259   s = g (p, va_arg (v,int));
3260   va_end (v);
3261   return s;
3262 }
3263
3264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3265    function prototypes and stuff, but not '\xHH' hex character constants.
3266    These don't provoke an error unfortunately, instead are silently treated
3267    as 'x'.  The following induces an error, until -std is added to get
3268    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3269    array size at least.  It's necessary to write '\x00'==0 to get something
3270    that's true only with -std.  */
3271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272
3273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274    inside strings and character constants.  */
3275 #define FOO(x) 'x'
3276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277
3278 int test (int i, double x);
3279 struct s1 {int (*f) (int a);};
3280 struct s2 {int (*f) (double a);};
3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282 int argc;
3283 char **argv;
3284 int
3285 main ()
3286 {
3287 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294 do
3295   CC="$ac_save_CC $ac_arg"
3296   rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3298 case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303   (eval "$ac_compile") 2>conftest.er1
3304   ac_status=$?
3305   grep -v '^ *+' conftest.er1 >conftest.err
3306   rm -f conftest.er1
3307   cat conftest.err >&5
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); } && {
3310          test -z "$ac_c_werror_flag" ||
3311          test ! -s conftest.err
3312        } && test -s conftest.$ac_objext; then
3313   ac_cv_prog_cc_c89=$ac_arg
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318
3319 fi
3320
3321 rm -f core conftest.err conftest.$ac_objext
3322   test "x$ac_cv_prog_cc_c89" != "xno" && break
3323 done
3324 rm -f conftest.$ac_ext
3325 CC=$ac_save_CC
3326
3327 fi
3328 # AC_CACHE_VAL
3329 case "x$ac_cv_prog_cc_c89" in
3330   x)
3331     { echo "$as_me:$LINENO: result: none needed" >&5
3332 echo "${ECHO_T}none needed" >&6; } ;;
3333   xno)
3334     { echo "$as_me:$LINENO: result: unsupported" >&5
3335 echo "${ECHO_T}unsupported" >&6; } ;;
3336   *)
3337     CC="$CC $ac_cv_prog_cc_c89"
3338     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3340 esac
3341
3342
3343 ac_ext=c
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 DEPDIR="${am__leading_dot}deps"
3349
3350 ac_config_commands="$ac_config_commands depfiles"
3351
3352
3353 am_make=${MAKE-make}
3354 cat > confinc << 'END'
3355 am__doit:
3356         @echo done
3357 .PHONY: am__doit
3358 END
3359 # If we don't find an include directive, just comment out the code.
3360 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3361 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3362 am__include="#"
3363 am__quote=
3364 _am_result=none
3365 # First try GNU make style include.
3366 echo "include confinc" > confmf
3367 # We grep out `Entering directory' and `Leaving directory'
3368 # messages which can occur if `w' ends up in MAKEFLAGS.
3369 # In particular we don't look at `^make:' because GNU make might
3370 # be invoked under some other name (usually "gmake"), in which
3371 # case it prints its new name instead of `make'.
3372 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3373    am__include=include
3374    am__quote=
3375    _am_result=GNU
3376 fi
3377 # Now try BSD make style include.
3378 if test "$am__include" = "#"; then
3379    echo '.include "confinc"' > confmf
3380    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3381       am__include=.include
3382       am__quote="\""
3383       _am_result=BSD
3384    fi
3385 fi
3386
3387
3388 { echo "$as_me:$LINENO: result: $_am_result" >&5
3389 echo "${ECHO_T}$_am_result" >&6; }
3390 rm -f confinc confmf
3391
3392 # Check whether --enable-dependency-tracking was given.
3393 if test "${enable_dependency_tracking+set}" = set; then
3394   enableval=$enable_dependency_tracking;
3395 fi
3396
3397 if test "x$enable_dependency_tracking" != xno; then
3398   am_depcomp="$ac_aux_dir/depcomp"
3399   AMDEPBACKSLASH='\'
3400 fi
3401
3402
3403 if test "x$enable_dependency_tracking" != xno; then
3404   AMDEP_TRUE=
3405   AMDEP_FALSE='#'
3406 else
3407   AMDEP_TRUE='#'
3408   AMDEP_FALSE=
3409 fi
3410
3411
3412
3413
3414 depcc="$CC"   am_compiler_list=
3415
3416 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3417 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3418 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3422   # We make a subdir and do the tests there.  Otherwise we can end up
3423   # making bogus files that we don't know about and never remove.  For
3424   # instance it was reported that on HP-UX the gcc test will end up
3425   # making a dummy file named `D' -- because `-MD' means `put the output
3426   # in D'.
3427   mkdir conftest.dir
3428   # Copy depcomp to subdir because otherwise we won't find it if we're
3429   # using a relative directory.
3430   cp "$am_depcomp" conftest.dir
3431   cd conftest.dir
3432   # We will build objects and dependencies in a subdirectory because
3433   # it helps to detect inapplicable dependency modes.  For instance
3434   # both Tru64's cc and ICC support -MD to output dependencies as a
3435   # side effect of compilation, but ICC will put the dependencies in
3436   # the current directory while Tru64 will put them in the object
3437   # directory.
3438   mkdir sub
3439
3440   am_cv_CC_dependencies_compiler_type=none
3441   if test "$am_compiler_list" = ""; then
3442      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3443   fi
3444   for depmode in $am_compiler_list; do
3445     # Setup a source with many dependencies, because some compilers
3446     # like to wrap large dependency lists on column 80 (with \), and
3447     # we should not choose a depcomp mode which is confused by this.
3448     #
3449     # We need to recreate these files for each test, as the compiler may
3450     # overwrite some of them when testing with obscure command lines.
3451     # This happens at least with the AIX C compiler.
3452     : > sub/conftest.c
3453     for i in 1 2 3 4 5 6; do
3454       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3455       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3456       # Solaris 8's {/usr,}/bin/sh.
3457       touch sub/conftst$i.h
3458     done
3459     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3460
3461     case $depmode in
3462     nosideeffect)
3463       # after this tag, mechanisms are not by side-effect, so they'll
3464       # only be used when explicitly requested
3465       if test "x$enable_dependency_tracking" = xyes; then
3466         continue
3467       else
3468         break
3469       fi
3470       ;;
3471     none) break ;;
3472     esac
3473     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3474     # mode.  It turns out that the SunPro C++ compiler does not properly
3475     # handle `-M -o', and we need to detect this.
3476     if depmode=$depmode \
3477        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3478        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3479        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3480          >/dev/null 2>conftest.err &&
3481        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3482        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3483        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3484       # icc doesn't choke on unknown options, it will just issue warnings
3485       # or remarks (even with -Werror).  So we grep stderr for any message
3486       # that says an option was ignored or not supported.
3487       # When given -MP, icc 7.0 and 7.1 complain thusly:
3488       #   icc: Command line warning: ignoring option '-M'; no argument required
3489       # The diagnosis changed in icc 8.0:
3490       #   icc: Command line remark: option '-MP' not supported
3491       if (grep 'ignoring option' conftest.err ||
3492           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3493         am_cv_CC_dependencies_compiler_type=$depmode
3494         break
3495       fi
3496     fi
3497   done
3498
3499   cd ..
3500   rm -rf conftest.dir
3501 else
3502   am_cv_CC_dependencies_compiler_type=none
3503 fi
3504
3505 fi
3506 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3507 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3509
3510
3511
3512 if
3513   test "x$enable_dependency_tracking" != xno \
3514   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3515   am__fastdepCC_TRUE=
3516   am__fastdepCC_FALSE='#'
3517 else
3518   am__fastdepCC_TRUE='#'
3519   am__fastdepCC_FALSE=
3520 fi
3521
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3529 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3530 # On Suns, sometimes $CPP names a directory.
3531 if test -n "$CPP" && test -d "$CPP"; then
3532   CPP=
3533 fi
3534 if test -z "$CPP"; then
3535   if test "${ac_cv_prog_CPP+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538       # Double quotes because CPP needs to be expanded
3539     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3540     do
3541       ac_preproc_ok=false
3542 for ac_c_preproc_warn_flag in '' yes
3543 do
3544   # Use a header file that comes with gcc, so configuring glibc
3545   # with a fresh cross-compiler works.
3546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547   # <limits.h> exists even on freestanding compilers.
3548   # On the NeXT, cc -E runs the code through the compiler's parser,
3549   # not just through cpp. "Syntax error" is here to catch this case.
3550   cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h.  */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h.  */
3556 #ifdef __STDC__
3557 # include <limits.h>
3558 #else
3559 # include <assert.h>
3560 #endif
3561                      Syntax error
3562 _ACEOF
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } >/dev/null && {
3576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3577          test ! -s conftest.err
3578        }; then
3579   :
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584   # Broken: fails on valid input.
3585 continue
3586 fi
3587
3588 rm -f conftest.err conftest.$ac_ext
3589
3590   # OK, works on sane cases.  Now check whether nonexistent headers
3591   # can be detected and how.
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #include <ac_nonexistent.h>
3599 _ACEOF
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } >/dev/null && {
3613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614          test ! -s conftest.err
3615        }; then
3616   # Broken: success on invalid input.
3617 continue
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622   # Passes both tests.
3623 ac_preproc_ok=:
3624 break
3625 fi
3626
3627 rm -f conftest.err conftest.$ac_ext
3628
3629 done
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3633   break
3634 fi
3635
3636     done
3637     ac_cv_prog_CPP=$CPP
3638
3639 fi
3640   CPP=$ac_cv_prog_CPP
3641 else
3642   ac_cv_prog_CPP=$CPP
3643 fi
3644 { echo "$as_me:$LINENO: result: $CPP" >&5
3645 echo "${ECHO_T}$CPP" >&6; }
3646 ac_preproc_ok=false
3647 for ac_c_preproc_warn_flag in '' yes
3648 do
3649   # Use a header file that comes with gcc, so configuring glibc
3650   # with a fresh cross-compiler works.
3651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652   # <limits.h> exists even on freestanding compilers.
3653   # On the NeXT, cc -E runs the code through the compiler's parser,
3654   # not just through cpp. "Syntax error" is here to catch this case.
3655   cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #ifdef __STDC__
3662 # include <limits.h>
3663 #else
3664 # include <assert.h>
3665 #endif
3666                      Syntax error
3667 _ACEOF
3668 if { (ac_try="$ac_cpp conftest.$ac_ext"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3675   ac_status=$?
3676   grep -v '^ *+' conftest.er1 >conftest.err
3677   rm -f conftest.er1
3678   cat conftest.err >&5
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); } >/dev/null && {
3681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3682          test ! -s conftest.err
3683        }; then
3684   :
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689   # Broken: fails on valid input.
3690 continue
3691 fi
3692
3693 rm -f conftest.err conftest.$ac_ext
3694
3695   # OK, works on sane cases.  Now check whether nonexistent headers
3696   # can be detected and how.
3697   cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h.  */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h.  */
3703 #include <ac_nonexistent.h>
3704 _ACEOF
3705 if { (ac_try="$ac_cpp conftest.$ac_ext"
3706 case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } >/dev/null && {
3718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3719          test ! -s conftest.err
3720        }; then
3721   # Broken: success on invalid input.
3722 continue
3723 else
3724   echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727   # Passes both tests.
3728 ac_preproc_ok=:
3729 break
3730 fi
3731
3732 rm -f conftest.err conftest.$ac_ext
3733
3734 done
3735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3736 rm -f conftest.err conftest.$ac_ext
3737 if $ac_preproc_ok; then
3738   :
3739 else
3740   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3741 See \`config.log' for more details." >&5
3742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&2;}
3744    { (exit 1); exit 1; }; }
3745 fi
3746
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753 # Find a good install program.  We prefer a C program (faster),
3754 # so one script is as good as another.  But avoid the broken or
3755 # incompatible versions:
3756 # SysV /etc/install, /usr/sbin/install
3757 # SunOS /usr/etc/install
3758 # IRIX /sbin/install
3759 # AIX /bin/install
3760 # AmigaOS /C/install, which installs bootblocks on floppy discs
3761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3764 # OS/2's system install, which has a completely different semantic
3765 # ./install, which can be erroneously created by make from ./install.sh.
3766 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3767 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3768 if test -z "$INSTALL"; then
3769 if test "${ac_cv_path_install+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   # Account for people who put trailing slashes in PATH elements.
3778 case $as_dir/ in
3779   ./ | .// | /cC/* | \
3780   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3781   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3782   /usr/ucb/* ) ;;
3783   *)
3784     # OSF1 and SCO ODT 3.0 have their own names for install.
3785     # Don't use installbsd from OSF since it installs stuff as root
3786     # by default.
3787     for ac_prog in ginstall scoinst install; do
3788       for ac_exec_ext in '' $ac_executable_extensions; do
3789         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3790           if test $ac_prog = install &&
3791             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3792             # AIX install.  It has an incompatible calling convention.
3793             :
3794           elif test $ac_prog = install &&
3795             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3796             # program-specific install script used by HP pwplus--don't use.
3797             :
3798           else
3799             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3800             break 3
3801           fi
3802         fi
3803       done
3804     done
3805     ;;
3806 esac
3807 done
3808 IFS=$as_save_IFS
3809
3810
3811 fi
3812   if test "${ac_cv_path_install+set}" = set; then
3813     INSTALL=$ac_cv_path_install
3814   else
3815     # As a last resort, use the slow shell script.  Don't cache a
3816     # value for INSTALL within a source directory, because that will
3817     # break other packages using the cache if that directory is
3818     # removed, or if the value is a relative name.
3819     INSTALL=$ac_install_sh
3820   fi
3821 fi
3822 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3823 echo "${ECHO_T}$INSTALL" >&6; }
3824
3825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3826 # It thinks the first close brace ends the variable substitution.
3827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3828
3829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3830
3831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3832
3833 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3834 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3835 LN_S=$as_ln_s
3836 if test "$LN_S" = "ln -s"; then
3837   { echo "$as_me:$LINENO: result: yes" >&5
3838 echo "${ECHO_T}yes" >&6; }
3839 else
3840   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3841 echo "${ECHO_T}no, using $LN_S" >&6; }
3842 fi
3843
3844 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3845 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3846 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3847 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   cat >conftest.make <<\_ACEOF
3851 SHELL = /bin/sh
3852 all:
3853         @echo '@@@%%%=$(MAKE)=@@@%%%'
3854 _ACEOF
3855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3856 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3857   *@@@%%%=?*=@@@%%%*)
3858     eval ac_cv_prog_make_${ac_make}_set=yes;;
3859   *)
3860     eval ac_cv_prog_make_${ac_make}_set=no;;
3861 esac
3862 rm -f conftest.make
3863 fi
3864 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3865   { echo "$as_me:$LINENO: result: yes" >&5
3866 echo "${ECHO_T}yes" >&6; }
3867   SET_MAKE=
3868 else
3869   { echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6; }
3871   SET_MAKE="MAKE=${MAKE-make}"
3872 fi
3873
3874
3875 test_gcc_flag() {
3876     cat >conftest.$ac_ext <<_ACEOF
3877 int main() {}
3878 _ACEOF
3879     $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
3880     ret=$?
3881     rm -f conftest.o
3882     return $ret
3883 }
3884
3885 # If using GCC specify some additional parameters
3886 if test "x$GCC" = "xyes" ; then
3887
3888     # We use gnu99 instead of c99 because many have interpreted the standard
3889     # in a way that int64_t isn't defined on non-64 bit platforms.
3890     DESIRED_FLAGS="-std=gnu99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter"
3891
3892     for flag in $DESIRED_FLAGS ; do
3893         { echo "$as_me:$LINENO: checking whether $CC accepts $flag" >&5
3894 echo $ECHO_N "checking whether $CC accepts $flag... $ECHO_C" >&6; }
3895         if test_gcc_flag $flag ; then
3896            CFLAGS="$CFLAGS $flag"
3897            { echo "$as_me:$LINENO: result: yes" >&5
3898 echo "${ECHO_T}yes" >&6; }
3899         else
3900            { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3902         fi
3903     done
3904 fi
3905
3906 # libtool stuff
3907 # Check whether --enable-static was given.
3908 if test "${enable_static+set}" = set; then
3909   enableval=$enable_static; p=${PACKAGE-default}
3910     case $enableval in
3911     yes) enable_static=yes ;;
3912     no) enable_static=no ;;
3913     *)
3914      enable_static=no
3915       # Look at the argument we got.  We use all the common list separators.
3916       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3917       for pkg in $enableval; do
3918         IFS="$lt_save_ifs"
3919         if test "X$pkg" = "X$p"; then
3920           enable_static=yes
3921         fi
3922       done
3923       IFS="$lt_save_ifs"
3924       ;;
3925     esac
3926 else
3927   enable_static=no
3928 fi
3929
3930
3931
3932 # Check whether --enable-shared was given.
3933 if test "${enable_shared+set}" = set; then
3934   enableval=$enable_shared; p=${PACKAGE-default}
3935     case $enableval in
3936     yes) enable_shared=yes ;;
3937     no) enable_shared=no ;;
3938     *)
3939       enable_shared=no
3940       # Look at the argument we got.  We use all the common list separators.
3941       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3942       for pkg in $enableval; do
3943         IFS="$lt_save_ifs"
3944         if test "X$pkg" = "X$p"; then
3945           enable_shared=yes
3946         fi
3947       done
3948       IFS="$lt_save_ifs"
3949       ;;
3950     esac
3951 else
3952   enable_shared=yes
3953 fi
3954
3955
3956 # Check whether --enable-fast-install was given.
3957 if test "${enable_fast_install+set}" = set; then
3958   enableval=$enable_fast_install; p=${PACKAGE-default}
3959     case $enableval in
3960     yes) enable_fast_install=yes ;;
3961     no) enable_fast_install=no ;;
3962     *)
3963       enable_fast_install=no
3964       # Look at the argument we got.  We use all the common list separators.
3965       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3966       for pkg in $enableval; do
3967         IFS="$lt_save_ifs"
3968         if test "X$pkg" = "X$p"; then
3969           enable_fast_install=yes
3970         fi
3971       done
3972       IFS="$lt_save_ifs"
3973       ;;
3974     esac
3975 else
3976   enable_fast_install=yes
3977 fi
3978
3979
3980 # Make sure we can run config.sub.
3981 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3982   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3983 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3984    { (exit 1); exit 1; }; }
3985
3986 { echo "$as_me:$LINENO: checking build system type" >&5
3987 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3988 if test "${ac_cv_build+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   ac_build_alias=$build_alias
3992 test "x$ac_build_alias" = x &&
3993   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3994 test "x$ac_build_alias" = x &&
3995   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3996 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3997    { (exit 1); exit 1; }; }
3998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3999   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4001    { (exit 1); exit 1; }; }
4002
4003 fi
4004 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4005 echo "${ECHO_T}$ac_cv_build" >&6; }
4006 case $ac_cv_build in
4007 *-*-*) ;;
4008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4009 echo "$as_me: error: invalid value of canonical build" >&2;}
4010    { (exit 1); exit 1; }; };;
4011 esac
4012 build=$ac_cv_build
4013 ac_save_IFS=$IFS; IFS='-'
4014 set x $ac_cv_build
4015 shift
4016 build_cpu=$1
4017 build_vendor=$2
4018 shift; shift
4019 # Remember, the first character of IFS is used to create $*,
4020 # except with old shells:
4021 build_os=$*
4022 IFS=$ac_save_IFS
4023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4024
4025
4026 { echo "$as_me:$LINENO: checking host system type" >&5
4027 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4028 if test "${ac_cv_host+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   if test "x$host_alias" = x; then
4032   ac_cv_host=$ac_cv_build
4033 else
4034   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4035     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4037    { (exit 1); exit 1; }; }
4038 fi
4039
4040 fi
4041 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4042 echo "${ECHO_T}$ac_cv_host" >&6; }
4043 case $ac_cv_host in
4044 *-*-*) ;;
4045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4046 echo "$as_me: error: invalid value of canonical host" >&2;}
4047    { (exit 1); exit 1; }; };;
4048 esac
4049 host=$ac_cv_host
4050 ac_save_IFS=$IFS; IFS='-'
4051 set x $ac_cv_host
4052 shift
4053 host_cpu=$1
4054 host_vendor=$2
4055 shift; shift
4056 # Remember, the first character of IFS is used to create $*,
4057 # except with old shells:
4058 host_os=$*
4059 IFS=$ac_save_IFS
4060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4061
4062
4063 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4064 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4065 if test "${lt_cv_path_SED+set}" = set; then
4066   echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068   # Loop through the user's path and test for sed and gsed.
4069 # Then use that list of sed's as ones to test for truncation.
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073   IFS=$as_save_IFS
4074   test -z "$as_dir" && as_dir=.
4075   for lt_ac_prog in sed gsed; do
4076     for ac_exec_ext in '' $ac_executable_extensions; do
4077       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4078         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4079       fi
4080     done
4081   done
4082 done
4083 lt_ac_max=0
4084 lt_ac_count=0
4085 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4086 # along with /bin/sed that truncates output.
4087 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4088   test ! -f $lt_ac_sed && continue
4089   cat /dev/null > conftest.in
4090   lt_ac_count=0
4091   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4092   # Check for GNU sed and select it if it is found.
4093   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4094     lt_cv_path_SED=$lt_ac_sed
4095     break
4096   fi
4097   while true; do
4098     cat conftest.in conftest.in >conftest.tmp
4099     mv conftest.tmp conftest.in
4100     cp conftest.in conftest.nl
4101     echo >>conftest.nl
4102     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4103     cmp -s conftest.out conftest.nl || break
4104     # 10000 chars as input seems more than enough
4105     test $lt_ac_count -gt 10 && break
4106     lt_ac_count=`expr $lt_ac_count + 1`
4107     if test $lt_ac_count -gt $lt_ac_max; then
4108       lt_ac_max=$lt_ac_count
4109       lt_cv_path_SED=$lt_ac_sed
4110     fi
4111   done
4112 done
4113
4114 fi
4115
4116 SED=$lt_cv_path_SED
4117 { echo "$as_me:$LINENO: result: $SED" >&5
4118 echo "${ECHO_T}$SED" >&6; }
4119
4120 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4121 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4122 if test "${ac_cv_path_GREP+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   # Extract the first word of "grep ggrep" to use in msg output
4126 if test -z "$GREP"; then
4127 set dummy grep ggrep; ac_prog_name=$2
4128 if test "${ac_cv_path_GREP+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   ac_path_GREP_found=false
4132 # Loop through the user's path and test for each of PROGNAME-LIST
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_prog in grep ggrep; do
4139   for ac_exec_ext in '' $ac_executable_extensions; do
4140     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4141     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4142     # Check for GNU ac_path_GREP and select it if it is found.
4143   # Check for GNU $ac_path_GREP
4144 case `"$ac_path_GREP" --version 2>&1` in
4145 *GNU*)
4146   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4147 *)
4148   ac_count=0
4149   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4150   while :
4151   do
4152     cat "conftest.in" "conftest.in" >"conftest.tmp"
4153     mv "conftest.tmp" "conftest.in"
4154     cp "conftest.in" "conftest.nl"
4155     echo 'GREP' >> "conftest.nl"
4156     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158     ac_count=`expr $ac_count + 1`
4159     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160       # Best one so far, save it but keep looking for a better one
4161       ac_cv_path_GREP="$ac_path_GREP"
4162       ac_path_GREP_max=$ac_count
4163     fi
4164     # 10*(2^10) chars as input seems more than enough
4165     test $ac_count -gt 10 && break
4166   done
4167   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168 esac
4169
4170
4171     $ac_path_GREP_found && break 3
4172   done
4173 done
4174
4175 done
4176 IFS=$as_save_IFS
4177
4178
4179 fi
4180
4181 GREP="$ac_cv_path_GREP"
4182 if test -z "$GREP"; then
4183   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4184 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4185    { (exit 1); exit 1; }; }
4186 fi
4187
4188 else
4189   ac_cv_path_GREP=$GREP
4190 fi
4191
4192
4193 fi
4194 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4195 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4196  GREP="$ac_cv_path_GREP"
4197
4198
4199 { echo "$as_me:$LINENO: checking for egrep" >&5
4200 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_EGREP+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4205    then ac_cv_path_EGREP="$GREP -E"
4206    else
4207      # Extract the first word of "egrep" to use in msg output
4208 if test -z "$EGREP"; then
4209 set dummy egrep; ac_prog_name=$2
4210 if test "${ac_cv_path_EGREP+set}" = set; then
4211   echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213   ac_path_EGREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220   for ac_prog in egrep; do
4221   for ac_exec_ext in '' $ac_executable_extensions; do
4222     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4223     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4224     # Check for GNU ac_path_EGREP and select it if it is found.
4225   # Check for GNU $ac_path_EGREP
4226 case `"$ac_path_EGREP" --version 2>&1` in
4227 *GNU*)
4228   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229 *)
4230   ac_count=0
4231   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4232   while :
4233   do
4234     cat "conftest.in" "conftest.in" >"conftest.tmp"
4235     mv "conftest.tmp" "conftest.in"
4236     cp "conftest.in" "conftest.nl"
4237     echo 'EGREP' >> "conftest.nl"
4238     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240     ac_count=`expr $ac_count + 1`
4241     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4242       # Best one so far, save it but keep looking for a better one
4243       ac_cv_path_EGREP="$ac_path_EGREP"
4244       ac_path_EGREP_max=$ac_count
4245     fi
4246     # 10*(2^10) chars as input seems more than enough
4247     test $ac_count -gt 10 && break
4248   done
4249   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 esac
4251
4252
4253     $ac_path_EGREP_found && break 3
4254   done
4255 done
4256
4257 done
4258 IFS=$as_save_IFS
4259
4260
4261 fi
4262
4263 EGREP="$ac_cv_path_EGREP"
4264 if test -z "$EGREP"; then
4265   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4266 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4267    { (exit 1); exit 1; }; }
4268 fi
4269
4270 else
4271   ac_cv_path_EGREP=$EGREP
4272 fi
4273
4274
4275    fi
4276 fi
4277 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4278 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4279  EGREP="$ac_cv_path_EGREP"
4280
4281
4282
4283 # Check whether --with-gnu-ld was given.
4284 if test "${with_gnu_ld+set}" = set; then
4285   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4286 else
4287   with_gnu_ld=no
4288 fi
4289
4290 ac_prog=ld
4291 if test "$GCC" = yes; then
4292   # Check if gcc -print-prog-name=ld gives a path.
4293   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4294 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4295   case $host in
4296   *-*-mingw*)
4297     # gcc leaves a trailing carriage return which upsets mingw
4298     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4299   *)
4300     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4301   esac
4302   case $ac_prog in
4303     # Accept absolute paths.
4304     [\\/]* | ?:[\\/]*)
4305       re_direlt='/[^/][^/]*/\.\./'
4306       # Canonicalize the pathname of ld
4307       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4308       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4309         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4310       done
4311       test -z "$LD" && LD="$ac_prog"
4312       ;;
4313   "")
4314     # If it fails, then pretend we aren't using GCC.
4315     ac_prog=ld
4316     ;;
4317   *)
4318     # If it is relative, then search for the first ld in PATH.
4319     with_gnu_ld=unknown
4320     ;;
4321   esac
4322 elif test "$with_gnu_ld" = yes; then
4323   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4324 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4325 else
4326   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4327 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4328 fi
4329 if test "${lt_cv_path_LD+set}" = set; then
4330   echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332   if test -z "$LD"; then
4333   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4334   for ac_dir in $PATH; do
4335     IFS="$lt_save_ifs"
4336     test -z "$ac_dir" && ac_dir=.
4337     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4338       lt_cv_path_LD="$ac_dir/$ac_prog"
4339       # Check to see if the program is GNU ld.  I'd rather use --version,
4340       # but apparently some variants of GNU ld only accept -v.
4341       # Break only if it was the GNU/non-GNU ld that we prefer.
4342       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4343       *GNU* | *'with BFD'*)
4344         test "$with_gnu_ld" != no && break
4345         ;;
4346       *)
4347         test "$with_gnu_ld" != yes && break
4348         ;;
4349       esac
4350     fi
4351   done
4352   IFS="$lt_save_ifs"
4353 else
4354   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4355 fi
4356 fi
4357
4358 LD="$lt_cv_path_LD"
4359 if test -n "$LD"; then
4360   { echo "$as_me:$LINENO: result: $LD" >&5
4361 echo "${ECHO_T}$LD" >&6; }
4362 else
4363   { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4365 fi
4366 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4367 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4368    { (exit 1); exit 1; }; }
4369 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4370 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4371 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4375 case `$LD -v 2>&1 </dev/null` in
4376 *GNU* | *'with BFD'*)
4377   lt_cv_prog_gnu_ld=yes
4378   ;;
4379 *)
4380   lt_cv_prog_gnu_ld=no
4381   ;;
4382 esac
4383 fi
4384 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4385 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4386 with_gnu_ld=$lt_cv_prog_gnu_ld
4387
4388
4389 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4390 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4391 if test "${lt_cv_ld_reload_flag+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   lt_cv_ld_reload_flag='-r'
4395 fi
4396 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4397 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4398 reload_flag=$lt_cv_ld_reload_flag
4399 case $reload_flag in
4400 "" | " "*) ;;
4401 *) reload_flag=" $reload_flag" ;;
4402 esac
4403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4404 case $host_os in
4405   darwin*)
4406     if test "$GCC" = yes; then
4407       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4408     else
4409       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4410     fi
4411     ;;
4412 esac
4413
4414 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4415 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4416 if test "${lt_cv_path_NM+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   if test -n "$NM"; then
4420   # Let the user override the test.
4421   lt_cv_path_NM="$NM"
4422 else
4423   lt_nm_to_check="${ac_tool_prefix}nm"
4424   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4425     lt_nm_to_check="$lt_nm_to_check nm"
4426   fi
4427   for lt_tmp_nm in $lt_nm_to_check; do
4428     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4429     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4430       IFS="$lt_save_ifs"
4431       test -z "$ac_dir" && ac_dir=.
4432       tmp_nm="$ac_dir/$lt_tmp_nm"
4433       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4434         # Check to see if the nm accepts a BSD-compat flag.
4435         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4436         #   nm: unknown option "B" ignored
4437         # Tru64's nm complains that /dev/null is an invalid object file
4438         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4439         */dev/null* | *'Invalid file or object type'*)
4440           lt_cv_path_NM="$tmp_nm -B"
4441           break
4442           ;;
4443         *)
4444           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4445           */dev/null*)
4446             lt_cv_path_NM="$tmp_nm -p"
4447             break
4448             ;;
4449           *)
4450             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4451             continue # so that we can try to find one that supports BSD flags
4452             ;;
4453           esac
4454           ;;
4455         esac
4456       fi
4457     done
4458     IFS="$lt_save_ifs"
4459   done
4460   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4461 fi
4462 fi
4463 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4464 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4465 NM="$lt_cv_path_NM"
4466
4467 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4468 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4469 if test "${lt_cv_deplibs_check_method+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   lt_cv_file_magic_cmd='$MAGIC_CMD'
4473 lt_cv_file_magic_test_file=
4474 lt_cv_deplibs_check_method='unknown'
4475 # Need to set the preceding variable on all platforms that support
4476 # interlibrary dependencies.
4477 # 'none' -- dependencies not supported.
4478 # `unknown' -- same as none, but documents that we really don't know.
4479 # 'pass_all' -- all dependencies passed with no checks.
4480 # 'test_compile' -- check by making test program.
4481 # 'file_magic [[regex]]' -- check by looking for files in library path
4482 # which responds to the $file_magic_cmd with a given extended regex.
4483 # If you have `file' or equivalent on your system and you're not sure
4484 # whether `pass_all' will *always* work, you probably want this one.
4485
4486 case $host_os in
4487 aix4* | aix5*)
4488   lt_cv_deplibs_check_method=pass_all
4489   ;;
4490
4491 beos*)
4492   lt_cv_deplibs_check_method=pass_all
4493   ;;
4494
4495 bsdi[45]*)
4496   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4497   lt_cv_file_magic_cmd='/usr/bin/file -L'
4498   lt_cv_file_magic_test_file=/shlib/libc.so
4499   ;;
4500
4501 cygwin*)
4502   # func_win32_libid is a shell function defined in ltmain.sh
4503   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4504   lt_cv_file_magic_cmd='func_win32_libid'
4505   ;;
4506
4507 mingw* | pw32*)
4508   # Base MSYS/MinGW do not provide the 'file' command needed by
4509   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4510   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4511   lt_cv_file_magic_cmd='$OBJDUMP -f'
4512   ;;
4513
4514 darwin* | rhapsody*)
4515   lt_cv_deplibs_check_method=pass_all
4516   ;;
4517
4518 freebsd* | dragonfly*)
4519   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4520     case $host_cpu in
4521     i*86 )
4522       # Not sure whether the presence of OpenBSD here was a mistake.
4523       # Let's accept both of them until this is cleared up.
4524       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4525       lt_cv_file_magic_cmd=/usr/bin/file
4526       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4527       ;;
4528     esac
4529   else
4530     lt_cv_deplibs_check_method=pass_all
4531   fi
4532   ;;
4533
4534 gnu*)
4535   lt_cv_deplibs_check_method=pass_all
4536   ;;
4537
4538 hpux10.20* | hpux11*)
4539   lt_cv_file_magic_cmd=/usr/bin/file
4540   case $host_cpu in
4541   ia64*)
4542     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4543     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4544     ;;
4545   hppa*64*)
4546     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]'
4547     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4548     ;;
4549   *)
4550     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4551     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4552     ;;
4553   esac
4554   ;;
4555
4556 interix3*)
4557   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4558   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4559   ;;
4560
4561 irix5* | irix6* | nonstopux*)
4562   case $LD in
4563   *-32|*"-32 ") libmagic=32-bit;;
4564   *-n32|*"-n32 ") libmagic=N32;;
4565   *-64|*"-64 ") libmagic=64-bit;;
4566   *) libmagic=never-match;;
4567   esac
4568   lt_cv_deplibs_check_method=pass_all
4569   ;;
4570
4571 # This must be Linux ELF.
4572 linux* | k*bsd*-gnu)
4573   lt_cv_deplibs_check_method=pass_all
4574   ;;
4575
4576 netbsd* | netbsdelf*-gnu)
4577   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4579   else
4580     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4581   fi
4582   ;;
4583
4584 newos6*)
4585   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4586   lt_cv_file_magic_cmd=/usr/bin/file
4587   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4588   ;;
4589
4590 nto-qnx*)
4591   lt_cv_deplibs_check_method=unknown
4592   ;;
4593
4594 openbsd*)
4595   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4597   else
4598     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4599   fi
4600   ;;
4601
4602 osf3* | osf4* | osf5*)
4603   lt_cv_deplibs_check_method=pass_all
4604   ;;
4605
4606 solaris*)
4607   lt_cv_deplibs_check_method=pass_all
4608   ;;
4609
4610 sysv4 | sysv4.3*)
4611   case $host_vendor in
4612   motorola)
4613     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]'
4614     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4615     ;;
4616   ncr)
4617     lt_cv_deplibs_check_method=pass_all
4618     ;;
4619   sequent)
4620     lt_cv_file_magic_cmd='/bin/file'
4621     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4622     ;;
4623   sni)
4624     lt_cv_file_magic_cmd='/bin/file'
4625     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4626     lt_cv_file_magic_test_file=/lib/libc.so
4627     ;;
4628   siemens)
4629     lt_cv_deplibs_check_method=pass_all
4630     ;;
4631   pc)
4632     lt_cv_deplibs_check_method=pass_all
4633     ;;
4634   esac
4635   ;;
4636
4637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4638   lt_cv_deplibs_check_method=pass_all
4639   ;;
4640 esac
4641
4642 fi
4643 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4645 file_magic_cmd=$lt_cv_file_magic_cmd
4646 deplibs_check_method=$lt_cv_deplibs_check_method
4647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4648
4649
4650
4651
4652 # If no C compiler was specified, use CC.
4653 LTCC=${LTCC-"$CC"}
4654
4655 # If no C compiler flags were specified, use CFLAGS.
4656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4657
4658 # Allow CC to be a program name with arguments.
4659 compiler=$CC
4660
4661
4662 # Check whether --enable-libtool-lock was given.
4663 if test "${enable_libtool_lock+set}" = set; then
4664   enableval=$enable_libtool_lock;
4665 fi
4666
4667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4668
4669 # Some flags need to be propagated to the compiler or linker for good
4670 # libtool support.
4671 case $host in
4672 ia64-*-hpux*)
4673   # Find out which ABI we are using.
4674   echo 'int i;' > conftest.$ac_ext
4675   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676   (eval $ac_compile) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; then
4680     case `/usr/bin/file conftest.$ac_objext` in
4681     *ELF-32*)
4682       HPUX_IA64_MODE="32"
4683       ;;
4684     *ELF-64*)
4685       HPUX_IA64_MODE="64"
4686       ;;
4687     esac
4688   fi
4689   rm -rf conftest*
4690   ;;
4691 *-*-irix6*)
4692   # Find out which ABI we are using.
4693   echo '#line 4693 "configure"' > conftest.$ac_ext
4694   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695   (eval $ac_compile) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; then
4699    if test "$lt_cv_prog_gnu_ld" = yes; then
4700     case `/usr/bin/file conftest.$ac_objext` in
4701     *32-bit*)
4702       LD="${LD-ld} -melf32bsmip"
4703       ;;
4704     *N32*)
4705       LD="${LD-ld} -melf32bmipn32"
4706       ;;
4707     *64-bit*)
4708       LD="${LD-ld} -melf64bmip"
4709       ;;
4710     esac
4711    else
4712     case `/usr/bin/file conftest.$ac_objext` in
4713     *32-bit*)
4714       LD="${LD-ld} -32"
4715       ;;
4716     *N32*)
4717       LD="${LD-ld} -n32"
4718       ;;
4719     *64-bit*)
4720       LD="${LD-ld} -64"
4721       ;;
4722     esac
4723    fi
4724   fi
4725   rm -rf conftest*
4726   ;;
4727
4728 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4729   # Find out which ABI we are using.
4730   echo 'int i;' > conftest.$ac_ext
4731   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732   (eval $ac_compile) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); }; then
4736     case `/usr/bin/file conftest.o` in
4737     *32-bit*)
4738       case $host in
4739         x86_64-*linux*)
4740           LD="${LD-ld} -m elf_i386"
4741           ;;
4742         ppc64-*linux*|powerpc64-*linux*)
4743           LD="${LD-ld} -m elf32ppclinux"
4744           ;;
4745         s390x-*linux*)
4746           LD="${LD-ld} -m elf_s390"
4747           ;;
4748         sparc64-*linux*)
4749           LD="${LD-ld} -m elf32_sparc"
4750           ;;
4751       esac
4752       ;;
4753     *64-bit*)
4754       case $host in
4755         x86_64-*linux*)
4756           LD="${LD-ld} -m elf_x86_64"
4757           ;;
4758         ppc*-*linux*|powerpc*-*linux*)
4759           LD="${LD-ld} -m elf64ppc"
4760           ;;
4761         s390*-*linux*)
4762           LD="${LD-ld} -m elf64_s390"
4763           ;;
4764         sparc*-*linux*)
4765           LD="${LD-ld} -m elf64_sparc"
4766           ;;
4767       esac
4768       ;;
4769     esac
4770   fi
4771   rm -rf conftest*
4772   ;;
4773
4774 *-*-sco3.2v5*)
4775   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4776   SAVE_CFLAGS="$CFLAGS"
4777   CFLAGS="$CFLAGS -belf"
4778   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4779 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4780 if test "${lt_cv_cc_needs_belf+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789      cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795
4796 int
4797 main ()
4798 {
4799
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (ac_try="$ac_link"
4806 case "(($ac_try" in
4807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808   *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811   (eval "$ac_link") 2>conftest.er1
4812   ac_status=$?
4813   grep -v '^ *+' conftest.er1 >conftest.err
4814   rm -f conftest.er1
4815   cat conftest.err >&5
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); } && {
4818          test -z "$ac_c_werror_flag" ||
4819          test ! -s conftest.err
4820        } && test -s conftest$ac_exeext &&
4821        $as_test_x conftest$ac_exeext; then
4822   lt_cv_cc_needs_belf=yes
4823 else
4824   echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827         lt_cv_cc_needs_belf=no
4828 fi
4829
4830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4831       conftest$ac_exeext conftest.$ac_ext
4832      ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
4838 fi
4839 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4840 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4841   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4842     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4843     CFLAGS="$SAVE_CFLAGS"
4844   fi
4845   ;;
4846 sparc*-*solaris*)
4847   # Find out which ABI we are using.
4848   echo 'int i;' > conftest.$ac_ext
4849   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850   (eval $ac_compile) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; then
4854     case `/usr/bin/file conftest.o` in
4855     *64-bit*)
4856       case $lt_cv_prog_gnu_ld in
4857       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4858       *)    LD="${LD-ld} -64" ;;
4859       esac
4860       ;;
4861     esac
4862   fi
4863   rm -rf conftest*
4864   ;;
4865
4866
4867 esac
4868
4869 need_locks="$enable_libtool_lock"
4870
4871
4872
4873 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4875 if test "${ac_cv_header_stdc+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h.  */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h.  */
4884 #include <stdlib.h>
4885 #include <stdarg.h>
4886 #include <string.h>
4887 #include <float.h>
4888
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4899 case "(($ac_try" in
4900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901   *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904   (eval "$ac_compile") 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } && {
4911          test -z "$ac_c_werror_flag" ||
4912          test ! -s conftest.err
4913        } && test -s conftest.$ac_objext; then
4914   ac_cv_header_stdc=yes
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919         ac_cv_header_stdc=no
4920 fi
4921
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923
4924 if test $ac_cv_header_stdc = yes; then
4925   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4926   cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932 #include <string.h>
4933
4934 _ACEOF
4935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936   $EGREP "memchr" >/dev/null 2>&1; then
4937   :
4938 else
4939   ac_cv_header_stdc=no
4940 fi
4941 rm -f conftest*
4942
4943 fi
4944
4945 if test $ac_cv_header_stdc = yes; then
4946   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4947   cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953 #include <stdlib.h>
4954
4955 _ACEOF
4956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4957   $EGREP "free" >/dev/null 2>&1; then
4958   :
4959 else
4960   ac_cv_header_stdc=no
4961 fi
4962 rm -f conftest*
4963
4964 fi
4965
4966 if test $ac_cv_header_stdc = yes; then
4967   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4968   if test "$cross_compiling" = yes; then
4969   :
4970 else
4971   cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 #include <ctype.h>
4978 #include <stdlib.h>
4979 #if ((' ' & 0x0FF) == 0x020)
4980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4982 #else
4983 # define ISLOWER(c) \
4984                    (('a' <= (c) && (c) <= 'i') \
4985                      || ('j' <= (c) && (c) <= 'r') \
4986                      || ('s' <= (c) && (c) <= 'z'))
4987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4988 #endif
4989
4990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4991 int
4992 main ()
4993 {
4994   int i;
4995   for (i = 0; i < 256; i++)
4996     if (XOR (islower (i), ISLOWER (i))
4997         || toupper (i) != TOUPPER (i))
4998       return 2;
4999   return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest$ac_exeext
5003 if { (ac_try="$ac_link"
5004 case "(($ac_try" in
5005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006   *) ac_try_echo=$ac_try;;
5007 esac
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009   (eval "$ac_link") 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5013   { (case "(($ac_try" in
5014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015   *) ac_try_echo=$ac_try;;
5016 esac
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018   (eval "$ac_try") 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; }; then
5022   :
5023 else
5024   echo "$as_me: program exited with status $ac_status" >&5
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 ( exit $ac_status )
5029 ac_cv_header_stdc=no
5030 fi
5031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5032 fi
5033
5034
5035 fi
5036 fi
5037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5039 if test $ac_cv_header_stdc = yes; then
5040
5041 cat >>confdefs.h <<\_ACEOF
5042 #define STDC_HEADERS 1
5043 _ACEOF
5044
5045 fi
5046
5047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5058                   inttypes.h stdint.h unistd.h
5059 do
5060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 $ac_includes_default
5073
5074 #include <$ac_header>
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (ac_try="$ac_compile"
5078 case "(($ac_try" in
5079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080   *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083   (eval "$ac_compile") 2>conftest.er1
5084   ac_status=$?
5085   grep -v '^ *+' conftest.er1 >conftest.err
5086   rm -f conftest.er1
5087   cat conftest.err >&5
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } && {
5090          test -z "$ac_c_werror_flag" ||
5091          test ! -s conftest.err
5092        } && test -s conftest.$ac_objext; then
5093   eval "$as_ac_Header=yes"
5094 else
5095   echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098         eval "$as_ac_Header=no"
5099 fi
5100
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 fi
5103 ac_res=`eval echo '${'$as_ac_Header'}'`
5104                { echo "$as_me:$LINENO: result: $ac_res" >&5
5105 echo "${ECHO_T}$ac_res" >&6; }
5106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5107   cat >>confdefs.h <<_ACEOF
5108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 _ACEOF
5110
5111 fi
5112
5113 done
5114
5115
5116
5117 for ac_header in dlfcn.h
5118 do
5119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5121   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 fi
5126 ac_res=`eval echo '${'$as_ac_Header'}'`
5127                { echo "$as_me:$LINENO: result: $ac_res" >&5
5128 echo "${ECHO_T}$ac_res" >&6; }
5129 else
5130   # Is the header compilable?
5131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h.  */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h.  */
5139 $ac_includes_default
5140 #include <$ac_header>
5141 _ACEOF
5142 rm -f conftest.$ac_objext
5143 if { (ac_try="$ac_compile"
5144 case "(($ac_try" in
5145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146   *) ac_try_echo=$ac_try;;
5147 esac
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149   (eval "$ac_compile") 2>conftest.er1
5150   ac_status=$?
5151   grep -v '^ *+' conftest.er1 >conftest.err
5152   rm -f conftest.er1
5153   cat conftest.err >&5
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); } && {
5156          test -z "$ac_c_werror_flag" ||
5157          test ! -s conftest.err
5158        } && test -s conftest.$ac_objext; then
5159   ac_header_compiler=yes
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164         ac_header_compiler=no
5165 fi
5166
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5169 echo "${ECHO_T}$ac_header_compiler" >&6; }
5170
5171 # Is the header present?
5172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h.  */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h.  */
5180 #include <$ac_header>
5181 _ACEOF
5182 if { (ac_try="$ac_cpp conftest.$ac_ext"
5183 case "(($ac_try" in
5184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185   *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189   ac_status=$?
5190   grep -v '^ *+' conftest.er1 >conftest.err
5191   rm -f conftest.er1
5192   cat conftest.err >&5
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } >/dev/null && {
5195          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5196          test ! -s conftest.err
5197        }; then
5198   ac_header_preproc=yes
5199 else
5200   echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203   ac_header_preproc=no
5204 fi
5205
5206 rm -f conftest.err conftest.$ac_ext
5207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5208 echo "${ECHO_T}$ac_header_preproc" >&6; }
5209
5210 # So?  What about this header?
5211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5212   yes:no: )
5213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5217     ac_header_preproc=yes
5218     ;;
5219   no:yes:* )
5220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5232     ( cat <<\_ASBOX
5233 ## ----------------------------------------------- ##
5234 ## Report this to mzaffzqaf (at) 0pointer (dot) de ##
5235 ## ----------------------------------------------- ##
5236 _ASBOX
5237      ) | sed "s/^/$as_me: WARNING:     /" >&2
5238     ;;
5239 esac
5240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   eval "$as_ac_Header=\$ac_header_preproc"
5246 fi
5247 ac_res=`eval echo '${'$as_ac_Header'}'`
5248                { echo "$as_me:$LINENO: result: $ac_res" >&5
5249 echo "${ECHO_T}$ac_res" >&6; }
5250
5251 fi
5252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5253   cat >>confdefs.h <<_ACEOF
5254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 _ACEOF
5256
5257 fi
5258
5259 done
5260
5261 ac_ext=cpp
5262 ac_cpp='$CXXCPP $CPPFLAGS'
5263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5266 if test -z "$CXX"; then
5267   if test -n "$CCC"; then
5268     CXX=$CCC
5269   else
5270     if test -n "$ac_tool_prefix"; then
5271   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5272   do
5273     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5277 if test "${ac_cv_prog_CXX+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   if test -n "$CXX"; then
5281   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288   for ac_exec_ext in '' $ac_executable_extensions; do
5289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 CXX=$ac_cv_prog_CXX
5301 if test -n "$CXX"; then
5302   { echo "$as_me:$LINENO: result: $CXX" >&5
5303 echo "${ECHO_T}$CXX" >&6; }
5304 else
5305   { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5307 fi
5308
5309
5310     test -n "$CXX" && break
5311   done
5312 fi
5313 if test -z "$CXX"; then
5314   ac_ct_CXX=$CXX
5315   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5316 do
5317   # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5321 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   if test -n "$ac_ct_CXX"; then
5325   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332   for ac_exec_ext in '' $ac_executable_extensions; do
5333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334     ac_cv_prog_ac_ct_CXX="$ac_prog"
5335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5345 if test -n "$ac_ct_CXX"; then
5346   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5347 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5348 else
5349   { echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6; }
5351 fi
5352
5353
5354   test -n "$ac_ct_CXX" && break
5355 done
5356
5357   if test "x$ac_ct_CXX" = x; then
5358     CXX="g++"
5359   else
5360     case $cross_compiling:$ac_tool_warned in
5361 yes:)
5362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5363 whose name does not start with the host triplet.  If you think this
5364 configuration is useful to you, please write to autoconf@gnu.org." >&5
5365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5366 whose name does not start with the host triplet.  If you think this
5367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5368 ac_tool_warned=yes ;;
5369 esac
5370     CXX=$ac_ct_CXX
5371   fi
5372 fi
5373
5374   fi
5375 fi
5376 # Provide some information about the compiler.
5377 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5378 ac_compiler=`set X $ac_compile; echo $2`
5379 { (ac_try="$ac_compiler --version >&5"
5380 case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_compiler --version >&5") 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }
5389 { (ac_try="$ac_compiler -v >&5"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_compiler -v >&5") 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }
5399 { (ac_try="$ac_compiler -V >&5"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_compiler -V >&5") 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }
5409
5410 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5411 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421
5422 int
5423 main ()
5424 {
5425 #ifndef __GNUC__
5426        choke me
5427 #endif
5428
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5435 case "(($ac_try" in
5436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437   *) ac_try_echo=$ac_try;;
5438 esac
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440   (eval "$ac_compile") 2>conftest.er1
5441   ac_status=$?
5442   grep -v '^ *+' conftest.er1 >conftest.err
5443   rm -f conftest.er1
5444   cat conftest.err >&5
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); } && {
5447          test -z "$ac_cxx_werror_flag" ||
5448          test ! -s conftest.err
5449        } && test -s conftest.$ac_objext; then
5450   ac_compiler_gnu=yes
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455         ac_compiler_gnu=no
5456 fi
5457
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5460
5461 fi
5462 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5463 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5464 GXX=`test $ac_compiler_gnu = yes && echo yes`
5465 ac_test_CXXFLAGS=${CXXFLAGS+set}
5466 ac_save_CXXFLAGS=$CXXFLAGS
5467 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5468 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5469 if test "${ac_cv_prog_cxx_g+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5473    ac_cxx_werror_flag=yes
5474    ac_cv_prog_cxx_g=no
5475    CXXFLAGS="-g"
5476    cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482
5483 int
5484 main ()
5485 {
5486
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5493 case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498   (eval "$ac_compile") 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } && {
5505          test -z "$ac_cxx_werror_flag" ||
5506          test ! -s conftest.err
5507        } && test -s conftest.$ac_objext; then
5508   ac_cv_prog_cxx_g=yes
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513         CXXFLAGS=""
5514       cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520
5521 int
5522 main ()
5523 {
5524
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5531 case "(($ac_try" in
5532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533   *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536   (eval "$ac_compile") 2>conftest.er1
5537   ac_status=$?
5538   grep -v '^ *+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && {
5543          test -z "$ac_cxx_werror_flag" ||
5544          test ! -s conftest.err
5545        } && test -s conftest.$ac_objext; then
5546   :
5547 else
5548   echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5552          CXXFLAGS="-g"
5553          cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559
5560 int
5561 main ()
5562 {
5563
5564   ;
5565   return 0;
5566 }
5567 _ACEOF
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5570 case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_compile") 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } && {
5582          test -z "$ac_cxx_werror_flag" ||
5583          test ! -s conftest.err
5584        } && test -s conftest.$ac_objext; then
5585   ac_cv_prog_cxx_g=yes
5586 else
5587   echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590
5591 fi
5592
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 fi
5595
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 fi
5598
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5601 fi
5602 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5603 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5604 if test "$ac_test_CXXFLAGS" = set; then
5605   CXXFLAGS=$ac_save_CXXFLAGS
5606 elif test $ac_cv_prog_cxx_g = yes; then
5607   if test "$GXX" = yes; then
5608     CXXFLAGS="-g -O2"
5609   else
5610     CXXFLAGS="-g"
5611   fi
5612 else
5613   if test "$GXX" = yes; then
5614     CXXFLAGS="-O2"
5615   else
5616     CXXFLAGS=
5617   fi
5618 fi
5619 ac_ext=cpp
5620 ac_cpp='$CXXCPP $CPPFLAGS'
5621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5624
5625 depcc="$CXX"  am_compiler_list=
5626
5627 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5628 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5629 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5633   # We make a subdir and do the tests there.  Otherwise we can end up
5634   # making bogus files that we don't know about and never remove.  For
5635   # instance it was reported that on HP-UX the gcc test will end up
5636   # making a dummy file named `D' -- because `-MD' means `put the output
5637   # in D'.
5638   mkdir conftest.dir
5639   # Copy depcomp to subdir because otherwise we won't find it if we're
5640   # using a relative directory.
5641   cp "$am_depcomp" conftest.dir
5642   cd conftest.dir
5643   # We will build objects and dependencies in a subdirectory because
5644   # it helps to detect inapplicable dependency modes.  For instance
5645   # both Tru64's cc and ICC support -MD to output dependencies as a
5646   # side effect of compilation, but ICC will put the dependencies in
5647   # the current directory while Tru64 will put them in the object
5648   # directory.
5649   mkdir sub
5650
5651   am_cv_CXX_dependencies_compiler_type=none
5652   if test "$am_compiler_list" = ""; then
5653      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5654   fi
5655   for depmode in $am_compiler_list; do
5656     # Setup a source with many dependencies, because some compilers
5657     # like to wrap large dependency lists on column 80 (with \), and
5658     # we should not choose a depcomp mode which is confused by this.
5659     #
5660     # We need to recreate these files for each test, as the compiler may
5661     # overwrite some of them when testing with obscure command lines.
5662     # This happens at least with the AIX C compiler.
5663     : > sub/conftest.c
5664     for i in 1 2 3 4 5 6; do
5665       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5666       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5667       # Solaris 8's {/usr,}/bin/sh.
5668       touch sub/conftst$i.h
5669     done
5670     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5671
5672     case $depmode in
5673     nosideeffect)
5674       # after this tag, mechanisms are not by side-effect, so they'll
5675       # only be used when explicitly requested
5676       if test "x$enable_dependency_tracking" = xyes; then
5677         continue
5678       else
5679         break
5680       fi
5681       ;;
5682     none) break ;;
5683     esac
5684     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5685     # mode.  It turns out that the SunPro C++ compiler does not properly
5686     # handle `-M -o', and we need to detect this.
5687     if depmode=$depmode \
5688        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5689        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5690        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5691          >/dev/null 2>conftest.err &&
5692        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5693        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5694        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5695       # icc doesn't choke on unknown options, it will just issue warnings
5696       # or remarks (even with -Werror).  So we grep stderr for any message
5697       # that says an option was ignored or not supported.
5698       # When given -MP, icc 7.0 and 7.1 complain thusly:
5699       #   icc: Command line warning: ignoring option '-M'; no argument required
5700       # The diagnosis changed in icc 8.0:
5701       #   icc: Command line remark: option '-MP' not supported
5702       if (grep 'ignoring option' conftest.err ||
5703           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5704         am_cv_CXX_dependencies_compiler_type=$depmode
5705         break
5706       fi
5707     fi
5708   done
5709
5710   cd ..
5711   rm -rf conftest.dir
5712 else
5713   am_cv_CXX_dependencies_compiler_type=none
5714 fi
5715
5716 fi
5717 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5718 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5719 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5720
5721
5722
5723 if
5724   test "x$enable_dependency_tracking" != xno \
5725   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5726   am__fastdepCXX_TRUE=
5727   am__fastdepCXX_FALSE='#'
5728 else
5729   am__fastdepCXX_TRUE='#'
5730   am__fastdepCXX_FALSE=
5731 fi
5732
5733
5734
5735
5736 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5737     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5738     (test "X$CXX" != "Xg++"))) ; then
5739   ac_ext=cpp
5740 ac_cpp='$CXXCPP $CPPFLAGS'
5741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5744 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5745 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5746 if test -z "$CXXCPP"; then
5747   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750       # Double quotes because CXXCPP needs to be expanded
5751     for CXXCPP in "$CXX -E" "/lib/cpp"
5752     do
5753       ac_preproc_ok=false
5754 for ac_cxx_preproc_warn_flag in '' yes
5755 do
5756   # Use a header file that comes with gcc, so configuring glibc
5757   # with a fresh cross-compiler works.
5758   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759   # <limits.h> exists even on freestanding compilers.
5760   # On the NeXT, cc -E runs the code through the compiler's parser,
5761   # not just through cpp. "Syntax error" is here to catch this case.
5762   cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h.  */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h.  */
5768 #ifdef __STDC__
5769 # include <limits.h>
5770 #else
5771 # include <assert.h>
5772 #endif
5773                      Syntax error
5774 _ACEOF
5775 if { (ac_try="$ac_cpp conftest.$ac_ext"
5776 case "(($ac_try" in
5777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778   *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782   ac_status=$?
5783   grep -v '^ *+' conftest.er1 >conftest.err
5784   rm -f conftest.er1
5785   cat conftest.err >&5
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); } >/dev/null && {
5788          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5789          test ! -s conftest.err
5790        }; then
5791   :
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796   # Broken: fails on valid input.
5797 continue
5798 fi
5799
5800 rm -f conftest.err conftest.$ac_ext
5801
5802   # OK, works on sane cases.  Now check whether nonexistent headers
5803   # can be detected and how.
5804   cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 #include <ac_nonexistent.h>
5811 _ACEOF
5812 if { (ac_try="$ac_cpp conftest.$ac_ext"
5813 case "(($ac_try" in
5814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815   *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5819   ac_status=$?
5820   grep -v '^ *+' conftest.er1 >conftest.err
5821   rm -f conftest.er1
5822   cat conftest.err >&5
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); } >/dev/null && {
5825          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5826          test ! -s conftest.err
5827        }; then
5828   # Broken: success on invalid input.
5829 continue
5830 else
5831   echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834   # Passes both tests.
5835 ac_preproc_ok=:
5836 break
5837 fi
5838
5839 rm -f conftest.err conftest.$ac_ext
5840
5841 done
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then
5845   break
5846 fi
5847
5848     done
5849     ac_cv_prog_CXXCPP=$CXXCPP
5850
5851 fi
5852   CXXCPP=$ac_cv_prog_CXXCPP
5853 else
5854   ac_cv_prog_CXXCPP=$CXXCPP
5855 fi
5856 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5857 echo "${ECHO_T}$CXXCPP" >&6; }
5858 ac_preproc_ok=false
5859 for ac_cxx_preproc_warn_flag in '' yes
5860 do
5861   # Use a header file that comes with gcc, so configuring glibc
5862   # with a fresh cross-compiler works.
5863   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5864   # <limits.h> exists even on freestanding compilers.
5865   # On the NeXT, cc -E runs the code through the compiler's parser,
5866   # not just through cpp. "Syntax error" is here to catch this case.
5867   cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h.  */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h.  */
5873 #ifdef __STDC__
5874 # include <limits.h>
5875 #else
5876 # include <assert.h>
5877 #endif
5878                      Syntax error
5879 _ACEOF
5880 if { (ac_try="$ac_cpp conftest.$ac_ext"
5881 case "(($ac_try" in
5882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883   *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } >/dev/null && {
5893          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5894          test ! -s conftest.err
5895        }; then
5896   :
5897 else
5898   echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901   # Broken: fails on valid input.
5902 continue
5903 fi
5904
5905 rm -f conftest.err conftest.$ac_ext
5906
5907   # OK, works on sane cases.  Now check whether nonexistent headers
5908   # can be detected and how.
5909   cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915 #include <ac_nonexistent.h>
5916 _ACEOF
5917 if { (ac_try="$ac_cpp conftest.$ac_ext"
5918 case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } >/dev/null && {
5930          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5931          test ! -s conftest.err
5932        }; then
5933   # Broken: success on invalid input.
5934 continue
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939   # Passes both tests.
5940 ac_preproc_ok=:
5941 break
5942 fi
5943
5944 rm -f conftest.err conftest.$ac_ext
5945
5946 done
5947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5948 rm -f conftest.err conftest.$ac_ext
5949 if $ac_preproc_ok; then
5950   :
5951 else
5952   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5953 See \`config.log' for more details." >&5
5954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5955 See \`config.log' for more details." >&2;}
5956    { (exit 1); exit 1; }; }
5957 fi
5958
5959 ac_ext=cpp
5960 ac_cpp='$CXXCPP $CPPFLAGS'
5961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5964
5965 fi
5966
5967
5968 ac_ext=f
5969 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5970 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5972 if test -n "$ac_tool_prefix"; then
5973   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
5974   do
5975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979 if test "${ac_cv_prog_F77+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   if test -n "$F77"; then
5983   ac_cv_prog_F77="$F77" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988   IFS=$as_save_IFS
5989   test -z "$as_dir" && as_dir=.
5990   for ac_exec_ext in '' $ac_executable_extensions; do
5991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994     break 2
5995   fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000 fi
6001 fi
6002 F77=$ac_cv_prog_F77
6003 if test -n "$F77"; then
6004   { echo "$as_me:$LINENO: result: $F77" >&5
6005 echo "${ECHO_T}$F77" >&6; }
6006 else
6007   { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6009 fi
6010
6011
6012     test -n "$F77" && break
6013   done
6014 fi
6015 if test -z "$F77"; then
6016   ac_ct_F77=$F77
6017   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
6018 do
6019   # Extract the first word of "$ac_prog", so it can be a program name with args.
6020 set dummy $ac_prog; ac_word=$2
6021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   if test -n "$ac_ct_F77"; then
6027   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6031 do
6032   IFS=$as_save_IFS
6033   test -z "$as_dir" && as_dir=.
6034   for ac_exec_ext in '' $ac_executable_extensions; do
6035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6036     ac_cv_prog_ac_ct_F77="$ac_prog"
6037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038     break 2
6039   fi
6040 done
6041 done
6042 IFS=$as_save_IFS
6043
6044 fi
6045 fi
6046 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6047 if test -n "$ac_ct_F77"; then
6048   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6049 echo "${ECHO_T}$ac_ct_F77" >&6; }
6050 else
6051   { echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6; }
6053 fi
6054
6055
6056   test -n "$ac_ct_F77" && break
6057 done
6058
6059   if test "x$ac_ct_F77" = x; then
6060     F77=""
6061   else
6062     case $cross_compiling:$ac_tool_warned in
6063 yes:)
6064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6065 whose name does not start with the host triplet.  If you think this
6066 configuration is useful to you, please write to autoconf@gnu.org." >&5
6067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6068 whose name does not start with the host triplet.  If you think this
6069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6070 ac_tool_warned=yes ;;
6071 esac
6072     F77=$ac_ct_F77
6073   fi
6074 fi
6075
6076
6077 # Provide some information about the compiler.
6078 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6079 ac_compiler=`set X $ac_compile; echo $2`
6080 { (ac_try="$ac_compiler --version >&5"
6081 case "(($ac_try" in
6082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083   *) ac_try_echo=$ac_try;;
6084 esac
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086   (eval "$ac_compiler --version >&5") 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }
6090 { (ac_try="$ac_compiler -v >&5"
6091 case "(($ac_try" in
6092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093   *) ac_try_echo=$ac_try;;
6094 esac
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096   (eval "$ac_compiler -v >&5") 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }
6100 { (ac_try="$ac_compiler -V >&5"
6101 case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_compiler -V >&5") 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); }
6110 rm -f a.out
6111
6112 # If we don't use `.F' as extension, the preprocessor is not run on the
6113 # input file.  (Note that this only needs to work for GNU compilers.)
6114 ac_save_ext=$ac_ext
6115 ac_ext=F
6116 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6117 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6118 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   cat >conftest.$ac_ext <<_ACEOF
6122       program main
6123 #ifndef __GNUC__
6124        choke me
6125 #endif
6126
6127       end
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6131 case "(($ac_try" in
6132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133   *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136   (eval "$ac_compile") 2>conftest.er1
6137   ac_status=$?
6138   grep -v '^ *+' conftest.er1 >conftest.err
6139   rm -f conftest.er1
6140   cat conftest.err >&5
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); } && {
6143          test -z "$ac_f77_werror_flag" ||
6144          test ! -s conftest.err
6145        } && test -s conftest.$ac_objext; then
6146   ac_compiler_gnu=yes
6147 else
6148   echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6150
6151         ac_compiler_gnu=no
6152 fi
6153
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6156
6157 fi
6158 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6159 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6160 ac_ext=$ac_save_ext
6161 ac_test_FFLAGS=${FFLAGS+set}
6162 ac_save_FFLAGS=$FFLAGS
6163 FFLAGS=
6164 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6165 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6166 if test "${ac_cv_prog_f77_g+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   FFLAGS=-g
6170 cat >conftest.$ac_ext <<_ACEOF
6171       program main
6172
6173       end
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (ac_try="$ac_compile"
6177 case "(($ac_try" in
6178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179   *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182   (eval "$ac_compile") 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } && {
6189          test -z "$ac_f77_werror_flag" ||
6190          test ! -s conftest.err
6191        } && test -s conftest.$ac_objext; then
6192   ac_cv_prog_f77_g=yes
6193 else
6194   echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197         ac_cv_prog_f77_g=no
6198 fi
6199
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201
6202 fi
6203 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6204 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6205 if test "$ac_test_FFLAGS" = set; then
6206   FFLAGS=$ac_save_FFLAGS
6207 elif test $ac_cv_prog_f77_g = yes; then
6208   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6209     FFLAGS="-g -O2"
6210   else
6211     FFLAGS="-g"
6212   fi
6213 else
6214   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6215     FFLAGS="-O2"
6216   else
6217     FFLAGS=
6218   fi
6219 fi
6220
6221 G77=`test $ac_compiler_gnu = yes && echo yes`
6222 ac_ext=c
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227
6228
6229
6230 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6231
6232 # find the maximum length of command line arguments
6233 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6234 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6235 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238     i=0
6239   teststring="ABCD"
6240
6241   case $build_os in
6242   msdosdjgpp*)
6243     # On DJGPP, this test can blow up pretty badly due to problems in libc
6244     # (any single argument exceeding 2000 bytes causes a buffer overrun
6245     # during glob expansion).  Even if it were fixed, the result of this
6246     # check would be larger than it should be.
6247     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6248     ;;
6249
6250   gnu*)
6251     # Under GNU Hurd, this test is not required because there is
6252     # no limit to the length of command line arguments.
6253     # Libtool will interpret -1 as no limit whatsoever
6254     lt_cv_sys_max_cmd_len=-1;
6255     ;;
6256
6257   cygwin* | mingw*)
6258     # On Win9x/ME, this test blows up -- it succeeds, but takes
6259     # about 5 minutes as the teststring grows exponentially.
6260     # Worse, since 9x/ME are not pre-emptively multitasking,
6261     # you end up with a "frozen" computer, even though with patience
6262     # the test eventually succeeds (with a max line length of 256k).
6263     # Instead, let's just punt: use the minimum linelength reported by
6264     # all of the supported platforms: 8192 (on NT/2K/XP).
6265     lt_cv_sys_max_cmd_len=8192;
6266     ;;
6267
6268   amigaos*)
6269     # On AmigaOS with pdksh, this test takes hours, literally.
6270     # So we just punt and use a minimum line length of 8192.
6271     lt_cv_sys_max_cmd_len=8192;
6272     ;;
6273
6274   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6275     # This has been around since 386BSD, at least.  Likely further.
6276     if test -x /sbin/sysctl; then
6277       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6278     elif test -x /usr/sbin/sysctl; then
6279       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6280     else
6281       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6282     fi
6283     # And add a safety zone
6284     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6285     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6286     ;;
6287
6288   interix*)
6289     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6290     lt_cv_sys_max_cmd_len=196608
6291     ;;
6292
6293   osf*)
6294     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6295     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6296     # nice to cause kernel panics so lets avoid the loop below.
6297     # First set a reasonable default.
6298     lt_cv_sys_max_cmd_len=16384
6299     #
6300     if test -x /sbin/sysconfig; then
6301       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6302         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6303       esac
6304     fi
6305     ;;
6306   sco3.2v5*)
6307     lt_cv_sys_max_cmd_len=102400
6308     ;;
6309   sysv5* | sco5v6* | sysv4.2uw2*)
6310     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6311     if test -n "$kargmax"; then
6312       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6313     else
6314       lt_cv_sys_max_cmd_len=32768
6315     fi
6316     ;;
6317   *)
6318     # If test is not a shell built-in, we'll probably end up computing a
6319     # maximum length that is only half of the actual maximum length, but
6320     # we can't tell.
6321     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6322     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6323                = "XX$teststring") >/dev/null 2>&1 &&
6324             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6325             lt_cv_sys_max_cmd_len=$new_result &&
6326             test $i != 17 # 1/2 MB should be enough
6327     do
6328       i=`expr $i + 1`
6329       teststring=$teststring$teststring
6330     done
6331     teststring=
6332     # Add a significant safety factor because C++ compilers can tack on massive
6333     # amounts of additional arguments before passing them to the linker.
6334     # It appears as though 1/2 is a usable value.
6335     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6336     ;;
6337   esac
6338
6339 fi
6340
6341 if test -n $lt_cv_sys_max_cmd_len ; then
6342   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6343 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6344 else
6345   { echo "$as_me:$LINENO: result: none" >&5
6346 echo "${ECHO_T}none" >&6; }
6347 fi
6348
6349
6350
6351
6352 # Check for command to grab the raw symbol name followed by C symbol from nm.
6353 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6354 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6355 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358
6359 # These are sane defaults that work on at least a few old systems.
6360 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6361
6362 # Character class describing NM global symbol codes.
6363 symcode='[BCDEGRST]'
6364
6365 # Regexp to match symbols that can be accessed directly from C.
6366 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6367
6368 # Transform an extracted symbol line into a proper C declaration
6369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6370
6371 # Transform an extracted symbol line into symbol name and symbol address
6372 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'"
6373
6374 # Define system-specific variables.
6375 case $host_os in
6376 aix*)
6377   symcode='[BCDT]'
6378   ;;
6379 cygwin* | mingw* | pw32*)
6380   symcode='[ABCDGISTW]'
6381   ;;
6382 hpux*) # Its linker distinguishes data from code symbols
6383   if test "$host_cpu" = ia64; then
6384     symcode='[ABCDEGRST]'
6385   fi
6386   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6387   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'"
6388   ;;
6389 linux* | k*bsd*-gnu)
6390   if test "$host_cpu" = ia64; then
6391     symcode='[ABCDGIRSTW]'
6392     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6393     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'"
6394   fi
6395   ;;
6396 irix* | nonstopux*)
6397   symcode='[BCDEGRST]'
6398   ;;
6399 osf*)
6400   symcode='[BCDEGQRST]'
6401   ;;
6402 solaris*)
6403   symcode='[BDRT]'
6404   ;;
6405 sco3.2v5*)
6406   symcode='[DT]'
6407   ;;
6408 sysv4.2uw2*)
6409   symcode='[DT]'
6410   ;;
6411 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6412   symcode='[ABDT]'
6413   ;;
6414 sysv4)
6415   symcode='[DFNSTU]'
6416   ;;
6417 esac
6418
6419 # Handle CRLF in mingw tool chain
6420 opt_cr=
6421 case $build_os in
6422 mingw*)
6423   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6424   ;;
6425 esac
6426
6427 # If we're using GNU nm, then use its standard symbol codes.
6428 case `$NM -V 2>&1` in
6429 *GNU* | *'with BFD'*)
6430   symcode='[ABCDGIRSTW]' ;;
6431 esac
6432
6433 # Try without a prefix undercore, then with it.
6434 for ac_symprfx in "" "_"; do
6435
6436   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6437   symxfrm="\\1 $ac_symprfx\\2 \\2"
6438
6439   # Write the raw and C identifiers.
6440   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6441
6442   # Check to see that the pipe works correctly.
6443   pipe_works=no
6444
6445   rm -f conftest*
6446   cat > conftest.$ac_ext <<EOF
6447 #ifdef __cplusplus
6448 extern "C" {
6449 #endif
6450 char nm_test_var;
6451 void nm_test_func(){}
6452 #ifdef __cplusplus
6453 }
6454 #endif
6455 int main(){nm_test_var='a';nm_test_func();return(0);}
6456 EOF
6457
6458   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459   (eval $ac_compile) 2>&5
6460   ac_status=$?
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); }; then
6463     # Now try to grab the symbols.
6464     nlist=conftest.nm
6465     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6466   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } && test -s "$nlist"; then
6470       # Try sorting and uniquifying the output.
6471       if sort "$nlist" | uniq > "$nlist"T; then
6472         mv -f "$nlist"T "$nlist"
6473       else
6474         rm -f "$nlist"T
6475       fi
6476
6477       # Make sure that we snagged all the symbols we need.
6478       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6479         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6480           cat <<EOF > conftest.$ac_ext
6481 #ifdef __cplusplus
6482 extern "C" {
6483 #endif
6484
6485 EOF
6486           # Now generate the symbol file.
6487           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6488
6489           cat <<EOF >> conftest.$ac_ext
6490 #if defined (__STDC__) && __STDC__
6491 # define lt_ptr_t void *
6492 #else
6493 # define lt_ptr_t char *
6494 # define const
6495 #endif
6496
6497 /* The mapping between symbol names and symbols. */
6498 const struct {
6499   const char *name;
6500   lt_ptr_t address;
6501 }
6502 lt_preloaded_symbols[] =
6503 {
6504 EOF
6505           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6506           cat <<\EOF >> conftest.$ac_ext
6507   {0, (lt_ptr_t) 0}
6508 };
6509
6510 #ifdef __cplusplus
6511 }
6512 #endif
6513 EOF
6514           # Now try linking the two files.
6515           mv conftest.$ac_objext conftstm.$ac_objext
6516           lt_save_LIBS="$LIBS"
6517           lt_save_CFLAGS="$CFLAGS"
6518           LIBS="conftstm.$ac_objext"
6519           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6520           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521   (eval $ac_link) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6525             pipe_works=yes
6526           fi
6527           LIBS="$lt_save_LIBS"
6528           CFLAGS="$lt_save_CFLAGS"
6529         else
6530           echo "cannot find nm_test_func in $nlist" >&5
6531         fi
6532       else
6533         echo "cannot find nm_test_var in $nlist" >&5
6534       fi
6535     else
6536       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6537     fi
6538   else
6539     echo "$progname: failed program was:" >&5
6540     cat conftest.$ac_ext >&5
6541   fi
6542   rm -f conftest* conftst*
6543
6544   # Do not use the global_symbol_pipe unless it works.
6545   if test "$pipe_works" = yes; then
6546     break
6547   else
6548     lt_cv_sys_global_symbol_pipe=
6549   fi
6550 done
6551
6552 fi
6553
6554 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6555   lt_cv_sys_global_symbol_to_cdecl=
6556 fi
6557 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6558   { echo "$as_me:$LINENO: result: failed" >&5
6559 echo "${ECHO_T}failed" >&6; }
6560 else
6561   { echo "$as_me:$LINENO: result: ok" >&5
6562 echo "${ECHO_T}ok" >&6; }
6563 fi
6564
6565 { echo "$as_me:$LINENO: checking for objdir" >&5
6566 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6567 if test "${lt_cv_objdir+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   rm -f .libs 2>/dev/null
6571 mkdir .libs 2>/dev/null
6572 if test -d .libs; then
6573   lt_cv_objdir=.libs
6574 else
6575   # MS-DOS does not allow filenames that begin with a dot.
6576   lt_cv_objdir=_libs
6577 fi
6578 rmdir .libs 2>/dev/null
6579 fi
6580 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6581 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6582 objdir=$lt_cv_objdir
6583
6584
6585
6586
6587
6588 case $host_os in
6589 aix3*)
6590   # AIX sometimes has problems with the GCC collect2 program.  For some
6591   # reason, if we set the COLLECT_NAMES environment variable, the problems
6592   # vanish in a puff of smoke.
6593   if test "X${COLLECT_NAMES+set}" != Xset; then
6594     COLLECT_NAMES=
6595     export COLLECT_NAMES
6596   fi
6597   ;;
6598 esac
6599
6600 # Sed substitution that helps us do robust quoting.  It backslashifies
6601 # metacharacters that are still active within double-quoted strings.
6602 Xsed='sed -e 1s/^X//'
6603 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6604
6605 # Same as above, but do not quote variable references.
6606 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6607
6608 # Sed substitution to delay expansion of an escaped shell variable in a
6609 # double_quote_subst'ed string.
6610 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6611
6612 # Sed substitution to avoid accidental globbing in evaled expressions
6613 no_glob_subst='s/\*/\\\*/g'
6614
6615 # Constants:
6616 rm="rm -f"
6617
6618 # Global variables:
6619 default_ofile=libtool
6620 can_build_shared=yes
6621
6622 # All known linkers require a `.a' archive for static linking (except MSVC,
6623 # which needs '.lib').
6624 libext=a
6625 ltmain="$ac_aux_dir/ltmain.sh"
6626 ofile="$default_ofile"
6627 with_gnu_ld="$lt_cv_prog_gnu_ld"
6628
6629 if test -n "$ac_tool_prefix"; then
6630   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}ar; ac_word=$2
6632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6634 if test "${ac_cv_prog_AR+set}" = set; then
6635   echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637   if test -n "$AR"; then
6638   ac_cv_prog_AR="$AR" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645   for ac_exec_ext in '' $ac_executable_extensions; do
6646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647     ac_cv_prog_AR="${ac_tool_prefix}ar"
6648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 AR=$ac_cv_prog_AR
6658 if test -n "$AR"; then
6659   { echo "$as_me:$LINENO: result: $AR" >&5
6660 echo "${ECHO_T}$AR" >&6; }
6661 else
6662   { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_prog_AR"; then
6669   ac_ct_AR=$AR
6670   # Extract the first word of "ar", so it can be a program name with args.
6671 set dummy ar; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   if test -n "$ac_ct_AR"; then
6678   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685   for ac_exec_ext in '' $ac_executable_extensions; do
6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687     ac_cv_prog_ac_ct_AR="ar"
6688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6698 if test -n "$ac_ct_AR"; then
6699   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6700 echo "${ECHO_T}$ac_ct_AR" >&6; }
6701 else
6702   { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706   if test "x$ac_ct_AR" = x; then
6707     AR="false"
6708   else
6709     case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6712 whose name does not start with the host triplet.  If you think this
6713 configuration is useful to you, please write to autoconf@gnu.org." >&5
6714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6715 whose name does not start with the host triplet.  If you think this
6716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719     AR=$ac_ct_AR
6720   fi
6721 else
6722   AR="$ac_cv_prog_AR"
6723 fi
6724
6725 if test -n "$ac_tool_prefix"; then
6726   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_prog_RANLIB+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   if test -n "$RANLIB"; then
6734   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741   for ac_exec_ext in '' $ac_executable_extensions; do
6742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 RANLIB=$ac_cv_prog_RANLIB
6754 if test -n "$RANLIB"; then
6755   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6756 echo "${ECHO_T}$RANLIB" >&6; }
6757 else
6758   { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6760 fi
6761
6762
6763 fi
6764 if test -z "$ac_cv_prog_RANLIB"; then
6765   ac_ct_RANLIB=$RANLIB
6766   # Extract the first word of "ranlib", so it can be a program name with args.
6767 set dummy ranlib; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773   if test -n "$ac_ct_RANLIB"; then
6774   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781   for ac_exec_ext in '' $ac_executable_extensions; do
6782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783     ac_cv_prog_ac_ct_RANLIB="ranlib"
6784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6794 if test -n "$ac_ct_RANLIB"; then
6795   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6796 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6797 else
6798   { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6800 fi
6801
6802   if test "x$ac_ct_RANLIB" = x; then
6803     RANLIB=":"
6804   else
6805     case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6808 whose name does not start with the host triplet.  If you think this
6809 configuration is useful to you, please write to autoconf@gnu.org." >&5
6810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet.  If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815     RANLIB=$ac_ct_RANLIB
6816   fi
6817 else
6818   RANLIB="$ac_cv_prog_RANLIB"
6819 fi
6820
6821 if test -n "$ac_tool_prefix"; then
6822   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}strip; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_prog_STRIP+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   if test -n "$STRIP"; then
6830   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 STRIP=$ac_cv_prog_STRIP
6850 if test -n "$STRIP"; then
6851   { echo "$as_me:$LINENO: result: $STRIP" >&5
6852 echo "${ECHO_T}$STRIP" >&6; }
6853 else
6854   { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_STRIP"; then
6861   ac_ct_STRIP=$STRIP
6862   # Extract the first word of "strip", so it can be a program name with args.
6863 set dummy strip; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   if test -n "$ac_ct_STRIP"; then
6870   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_prog_ac_ct_STRIP="strip"
6880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6890 if test -n "$ac_ct_STRIP"; then
6891   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6892 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6893 else
6894   { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 fi
6897
6898   if test "x$ac_ct_STRIP" = x; then
6899     STRIP=":"
6900   else
6901     case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6904 whose name does not start with the host triplet.  If you think this
6905 configuration is useful to you, please write to autoconf@gnu.org." >&5
6906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6907 whose name does not start with the host triplet.  If you think this
6908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911     STRIP=$ac_ct_STRIP
6912   fi
6913 else
6914   STRIP="$ac_cv_prog_STRIP"
6915 fi
6916
6917
6918 old_CC="$CC"
6919 old_CFLAGS="$CFLAGS"
6920
6921 # Set sane defaults for various variables
6922 test -z "$AR" && AR=ar
6923 test -z "$AR_FLAGS" && AR_FLAGS=cru
6924 test -z "$AS" && AS=as
6925 test -z "$CC" && CC=cc
6926 test -z "$LTCC" && LTCC=$CC
6927 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6928 test -z "$DLLTOOL" && DLLTOOL=dlltool
6929 test -z "$LD" && LD=ld
6930 test -z "$LN_S" && LN_S="ln -s"
6931 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6932 test -z "$NM" && NM=nm
6933 test -z "$SED" && SED=sed
6934 test -z "$OBJDUMP" && OBJDUMP=objdump
6935 test -z "$RANLIB" && RANLIB=:
6936 test -z "$STRIP" && STRIP=:
6937 test -z "$ac_objext" && ac_objext=o
6938
6939 # Determine commands to create old-style static archives.
6940 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6941 old_postinstall_cmds='chmod 644 $oldlib'
6942 old_postuninstall_cmds=
6943
6944 if test -n "$RANLIB"; then
6945   case $host_os in
6946   openbsd*)
6947     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6948     ;;
6949   *)
6950     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6951     ;;
6952   esac
6953   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6954 fi
6955
6956 for cc_temp in $compiler""; do
6957   case $cc_temp in
6958     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6959     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6960     \-*) ;;
6961     *) break;;
6962   esac
6963 done
6964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6965
6966
6967 # Only perform the check for file, if the check method requires it
6968 case $deplibs_check_method in
6969 file_magic*)
6970   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6971     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6972 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   case $MAGIC_CMD in
6977 [\\/*] |  ?:[\\/]*)
6978   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6979   ;;
6980 *)
6981   lt_save_MAGIC_CMD="$MAGIC_CMD"
6982   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6983   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6984   for ac_dir in $ac_dummy; do
6985     IFS="$lt_save_ifs"
6986     test -z "$ac_dir" && ac_dir=.
6987     if test -f $ac_dir/${ac_tool_prefix}file; then
6988       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6989       if test -n "$file_magic_test_file"; then
6990         case $deplibs_check_method in
6991         "file_magic "*)
6992           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6993           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6994           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6995             $EGREP "$file_magic_regex" > /dev/null; then
6996             :
6997           else
6998             cat <<EOF 1>&2
6999
7000 *** Warning: the command libtool uses to detect shared libraries,
7001 *** $file_magic_cmd, produces output that libtool cannot recognize.
7002 *** The result is that libtool may fail to recognize shared libraries
7003 *** as such.  This will affect the creation of libtool libraries that
7004 *** depend on shared libraries, but programs linked with such libtool
7005 *** libraries will work regardless of this problem.  Nevertheless, you
7006 *** may want to report the problem to your system manager and/or to
7007 *** bug-libtool@gnu.org
7008
7009 EOF
7010           fi ;;
7011         esac
7012       fi
7013       break
7014     fi
7015   done
7016   IFS="$lt_save_ifs"
7017   MAGIC_CMD="$lt_save_MAGIC_CMD"
7018   ;;
7019 esac
7020 fi
7021
7022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7023 if test -n "$MAGIC_CMD"; then
7024   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7025 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7026 else
7027   { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7029 fi
7030
7031 if test -z "$lt_cv_path_MAGIC_CMD"; then
7032   if test -n "$ac_tool_prefix"; then
7033     { echo "$as_me:$LINENO: checking for file" >&5
7034 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7035 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   case $MAGIC_CMD in
7039 [\\/*] |  ?:[\\/]*)
7040   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7041   ;;
7042 *)
7043   lt_save_MAGIC_CMD="$MAGIC_CMD"
7044   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7045   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7046   for ac_dir in $ac_dummy; do
7047     IFS="$lt_save_ifs"
7048     test -z "$ac_dir" && ac_dir=.
7049     if test -f $ac_dir/file; then
7050       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7051       if test -n "$file_magic_test_file"; then
7052         case $deplibs_check_method in
7053         "file_magic "*)
7054           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7055           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7056           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7057             $EGREP "$file_magic_regex" > /dev/null; then
7058             :
7059           else
7060             cat <<EOF 1>&2
7061
7062 *** Warning: the command libtool uses to detect shared libraries,
7063 *** $file_magic_cmd, produces output that libtool cannot recognize.
7064 *** The result is that libtool may fail to recognize shared libraries
7065 *** as such.  This will affect the creation of libtool libraries that
7066 *** depend on shared libraries, but programs linked with such libtool
7067 *** libraries will work regardless of this problem.  Nevertheless, you
7068 *** may want to report the problem to your system manager and/or to
7069 *** bug-libtool@gnu.org
7070
7071 EOF
7072           fi ;;
7073         esac
7074       fi
7075       break
7076     fi
7077   done
7078   IFS="$lt_save_ifs"
7079   MAGIC_CMD="$lt_save_MAGIC_CMD"
7080   ;;
7081 esac
7082 fi
7083
7084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7085 if test -n "$MAGIC_CMD"; then
7086   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7087 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7088 else
7089   { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7091 fi
7092
7093   else
7094     MAGIC_CMD=:
7095   fi
7096 fi
7097
7098   fi
7099   ;;
7100 esac
7101
7102 enable_dlopen=no
7103 enable_win32_dll=no
7104
7105 # Check whether --enable-libtool-lock was given.
7106 if test "${enable_libtool_lock+set}" = set; then
7107   enableval=$enable_libtool_lock;
7108 fi
7109
7110 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7111
7112
7113 # Check whether --with-pic was given.
7114 if test "${with_pic+set}" = set; then
7115   withval=$with_pic; pic_mode="$withval"
7116 else
7117   pic_mode=default
7118 fi
7119
7120 test -z "$pic_mode" && pic_mode=default
7121
7122 # Use C for the default configuration in the libtool script
7123 tagname=
7124 lt_save_CC="$CC"
7125 ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131
7132 # Source file extension for C test sources.
7133 ac_ext=c
7134
7135 # Object file extension for compiled C test sources.
7136 objext=o
7137 objext=$objext
7138
7139 # Code to be used in simple compile tests
7140 lt_simple_compile_test_code="int some_variable = 0;\n"
7141
7142 # Code to be used in simple link tests
7143 lt_simple_link_test_code='int main(){return(0);}\n'
7144
7145
7146 # If no C compiler was specified, use CC.
7147 LTCC=${LTCC-"$CC"}
7148
7149 # If no C compiler flags were specified, use CFLAGS.
7150 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7151
7152 # Allow CC to be a program name with arguments.
7153 compiler=$CC
7154
7155
7156 # save warnings/boilerplate of simple test code
7157 ac_outfile=conftest.$ac_objext
7158 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7159 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7160 _lt_compiler_boilerplate=`cat conftest.err`
7161 $rm conftest*
7162
7163 ac_outfile=conftest.$ac_objext
7164 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7165 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7166 _lt_linker_boilerplate=`cat conftest.err`
7167 $rm conftest*
7168
7169
7170
7171 lt_prog_compiler_no_builtin_flag=
7172
7173 if test "$GCC" = yes; then
7174   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7175
7176
7177 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7178 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7179 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   lt_cv_prog_compiler_rtti_exceptions=no
7183   ac_outfile=conftest.$ac_objext
7184    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7185    lt_compiler_flag="-fno-rtti -fno-exceptions"
7186    # Insert the option either (1) after the last *FLAGS variable, or
7187    # (2) before a word containing "conftest.", or (3) at the end.
7188    # Note that $ac_compile itself does not contain backslashes and begins
7189    # with a dollar sign (not a hyphen), so the echo should work correctly.
7190    # The option is referenced via a variable to avoid confusing sed.
7191    lt_compile=`echo "$ac_compile" | $SED \
7192    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7194    -e 's:$: $lt_compiler_flag:'`
7195    (eval echo "\"\$as_me:7195: $lt_compile\"" >&5)
7196    (eval "$lt_compile" 2>conftest.err)
7197    ac_status=$?
7198    cat conftest.err >&5
7199    echo "$as_me:7199: \$? = $ac_status" >&5
7200    if (exit $ac_status) && test -s "$ac_outfile"; then
7201      # The compiler can only warn and ignore the option if not recognized
7202      # So say no if there are warnings other than the usual output.
7203      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7204      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7205      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7206        lt_cv_prog_compiler_rtti_exceptions=yes
7207      fi
7208    fi
7209    $rm conftest*
7210
7211 fi
7212 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7213 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7214
7215 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7216     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7217 else
7218     :
7219 fi
7220
7221 fi
7222
7223 lt_prog_compiler_wl=
7224 lt_prog_compiler_pic=
7225 lt_prog_compiler_static=
7226
7227 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7228 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7229
7230   if test "$GCC" = yes; then
7231     lt_prog_compiler_wl='-Wl,'
7232     lt_prog_compiler_static='-static'
7233
7234     case $host_os in
7235       aix*)
7236       # All AIX code is PIC.
7237       if test "$host_cpu" = ia64; then
7238         # AIX 5 now supports IA64 processor
7239         lt_prog_compiler_static='-Bstatic'
7240       fi
7241       ;;
7242
7243     amigaos*)
7244       # FIXME: we need at least 68020 code to build shared libraries, but
7245       # adding the `-m68020' flag to GCC prevents building anything better,
7246       # like `-m68040'.
7247       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7248       ;;
7249
7250     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7251       # PIC is the default for these OSes.
7252       ;;
7253
7254     mingw* | pw32* | os2*)
7255       # This hack is so that the source file can tell whether it is being
7256       # built for inclusion in a dll (and should export symbols for example).
7257       lt_prog_compiler_pic='-DDLL_EXPORT'
7258       ;;
7259
7260     darwin* | rhapsody*)
7261       # PIC is the default on this platform
7262       # Common symbols not allowed in MH_DYLIB files
7263       lt_prog_compiler_pic='-fno-common'
7264       ;;
7265
7266     interix3*)
7267       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7268       # Instead, we relocate shared libraries at runtime.
7269       ;;
7270
7271     msdosdjgpp*)
7272       # Just because we use GCC doesn't mean we suddenly get shared libraries
7273       # on systems that don't support them.
7274       lt_prog_compiler_can_build_shared=no
7275       enable_shared=no
7276       ;;
7277
7278     sysv4*MP*)
7279       if test -d /usr/nec; then
7280         lt_prog_compiler_pic=-Kconform_pic
7281       fi
7282       ;;
7283
7284     hpux*)
7285       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7286       # not for PA HP-UX.
7287       case $host_cpu in
7288       hppa*64*|ia64*)
7289         # +Z the default
7290         ;;
7291       *)
7292         lt_prog_compiler_pic='-fPIC'
7293         ;;
7294       esac
7295       ;;
7296
7297     *)
7298       lt_prog_compiler_pic='-fPIC'
7299       ;;
7300     esac
7301   else
7302     # PORTME Check for flag to pass linker flags through the system compiler.
7303     case $host_os in
7304     aix*)
7305       lt_prog_compiler_wl='-Wl,'
7306       if test "$host_cpu" = ia64; then
7307         # AIX 5 now supports IA64 processor
7308         lt_prog_compiler_static='-Bstatic'
7309       else
7310         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7311       fi
7312       ;;
7313       darwin*)
7314         # PIC is the default on this platform
7315         # Common symbols not allowed in MH_DYLIB files
7316        case $cc_basename in
7317          xlc*)
7318          lt_prog_compiler_pic='-qnocommon'
7319          lt_prog_compiler_wl='-Wl,'
7320          ;;
7321        esac
7322        ;;
7323
7324     mingw* | pw32* | os2*)
7325       # This hack is so that the source file can tell whether it is being
7326       # built for inclusion in a dll (and should export symbols for example).
7327       lt_prog_compiler_pic='-DDLL_EXPORT'
7328       ;;
7329
7330     hpux9* | hpux10* | hpux11*)
7331       lt_prog_compiler_wl='-Wl,'
7332       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7333       # not for PA HP-UX.
7334       case $host_cpu in
7335       hppa*64*|ia64*)
7336         # +Z the default
7337         ;;
7338       *)
7339         lt_prog_compiler_pic='+Z'
7340         ;;
7341       esac
7342       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7343       lt_prog_compiler_static='${wl}-a ${wl}archive'
7344       ;;
7345
7346     irix5* | irix6* | nonstopux*)
7347       lt_prog_compiler_wl='-Wl,'
7348       # PIC (with -KPIC) is the default.
7349       lt_prog_compiler_static='-non_shared'
7350       ;;
7351
7352     newsos6)
7353       lt_prog_compiler_pic='-KPIC'
7354       lt_prog_compiler_static='-Bstatic'
7355       ;;
7356
7357     linux* | k*bsd*-gnu)
7358       case $cc_basename in
7359       icc* | ecc*)
7360         lt_prog_compiler_wl='-Wl,'
7361         lt_prog_compiler_pic='-KPIC'
7362         lt_prog_compiler_static='-static'
7363         ;;
7364       pgcc* | pgf77* | pgf90* | pgf95*)
7365         # Portland Group compilers (*not* the Pentium gcc compiler,
7366         # which looks to be a dead project)
7367         lt_prog_compiler_wl='-Wl,'
7368         lt_prog_compiler_pic='-fpic'
7369         lt_prog_compiler_static='-Bstatic'
7370         ;;
7371       ccc*)
7372         lt_prog_compiler_wl='-Wl,'
7373         # All Alpha code is PIC.
7374         lt_prog_compiler_static='-non_shared'
7375         ;;
7376       esac
7377       ;;
7378
7379     osf3* | osf4* | osf5*)
7380       lt_prog_compiler_wl='-Wl,'
7381       # All OSF/1 code is PIC.
7382       lt_prog_compiler_static='-non_shared'
7383       ;;
7384
7385     solaris*)
7386       lt_prog_compiler_pic='-KPIC'
7387       lt_prog_compiler_static='-Bstatic'
7388       case $cc_basename in
7389       f77* | f90* | f95*)
7390         lt_prog_compiler_wl='-Qoption ld ';;
7391       *)
7392         lt_prog_compiler_wl='-Wl,';;
7393       esac
7394       ;;
7395
7396     sunos4*)
7397       lt_prog_compiler_wl='-Qoption ld '
7398       lt_prog_compiler_pic='-PIC'
7399       lt_prog_compiler_static='-Bstatic'
7400       ;;
7401
7402     sysv4 | sysv4.2uw2* | sysv4.3*)
7403       lt_prog_compiler_wl='-Wl,'
7404       lt_prog_compiler_pic='-KPIC'
7405       lt_prog_compiler_static='-Bstatic'
7406       ;;
7407
7408     sysv4*MP*)
7409       if test -d /usr/nec ;then
7410         lt_prog_compiler_pic='-Kconform_pic'
7411         lt_prog_compiler_static='-Bstatic'
7412       fi
7413       ;;
7414
7415     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7416       lt_prog_compiler_wl='-Wl,'
7417       lt_prog_compiler_pic='-KPIC'
7418       lt_prog_compiler_static='-Bstatic'
7419       ;;
7420
7421     unicos*)
7422       lt_prog_compiler_wl='-Wl,'
7423       lt_prog_compiler_can_build_shared=no
7424       ;;
7425
7426     uts4*)
7427       lt_prog_compiler_pic='-pic'
7428       lt_prog_compiler_static='-Bstatic'
7429       ;;
7430
7431     *)
7432       lt_prog_compiler_can_build_shared=no
7433       ;;
7434     esac
7435   fi
7436
7437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7438 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7439
7440 #
7441 # Check to make sure the PIC flag actually works.
7442 #
7443 if test -n "$lt_prog_compiler_pic"; then
7444
7445 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7447 if test "${lt_prog_compiler_pic_works+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   lt_prog_compiler_pic_works=no
7451   ac_outfile=conftest.$ac_objext
7452    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7453    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7454    # Insert the option either (1) after the last *FLAGS variable, or
7455    # (2) before a word containing "conftest.", or (3) at the end.
7456    # Note that $ac_compile itself does not contain backslashes and begins
7457    # with a dollar sign (not a hyphen), so the echo should work correctly.
7458    # The option is referenced via a variable to avoid confusing sed.
7459    lt_compile=`echo "$ac_compile" | $SED \
7460    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7462    -e 's:$: $lt_compiler_flag:'`
7463    (eval echo "\"\$as_me:7463: $lt_compile\"" >&5)
7464    (eval "$lt_compile" 2>conftest.err)
7465    ac_status=$?
7466    cat conftest.err >&5
7467    echo "$as_me:7467: \$? = $ac_status" >&5
7468    if (exit $ac_status) && test -s "$ac_outfile"; then
7469      # The compiler can only warn and ignore the option if not recognized
7470      # So say no if there are warnings other than the usual output.
7471      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7472      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7473      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7474        lt_prog_compiler_pic_works=yes
7475      fi
7476    fi
7477    $rm conftest*
7478
7479 fi
7480 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7481 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7482
7483 if test x"$lt_prog_compiler_pic_works" = xyes; then
7484     case $lt_prog_compiler_pic in
7485      "" | " "*) ;;
7486      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7487      esac
7488 else
7489     lt_prog_compiler_pic=
7490      lt_prog_compiler_can_build_shared=no
7491 fi
7492
7493 fi
7494 case $host_os in
7495   # For platforms which do not support PIC, -DPIC is meaningless:
7496   *djgpp*)
7497     lt_prog_compiler_pic=
7498     ;;
7499   *)
7500     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7501     ;;
7502 esac
7503
7504 #
7505 # Check to make sure the static flag actually works.
7506 #
7507 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7508 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7509 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7510 if test "${lt_prog_compiler_static_works+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   lt_prog_compiler_static_works=no
7514    save_LDFLAGS="$LDFLAGS"
7515    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7516    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7517    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7518      # The linker can only warn and ignore the option if not recognized
7519      # So say no if there are warnings
7520      if test -s conftest.err; then
7521        # Append any errors to the config.log.
7522        cat conftest.err 1>&5
7523        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7524        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7525        if diff conftest.exp conftest.er2 >/dev/null; then
7526          lt_prog_compiler_static_works=yes
7527        fi
7528      else
7529        lt_prog_compiler_static_works=yes
7530      fi
7531    fi
7532    $rm conftest*
7533    LDFLAGS="$save_LDFLAGS"
7534
7535 fi
7536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7537 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7538
7539 if test x"$lt_prog_compiler_static_works" = xyes; then
7540     :
7541 else
7542     lt_prog_compiler_static=
7543 fi
7544
7545
7546 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   lt_cv_prog_compiler_c_o=no
7552    $rm -r conftest 2>/dev/null
7553    mkdir conftest
7554    cd conftest
7555    mkdir out
7556    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7557
7558    lt_compiler_flag="-o out/conftest2.$ac_objext"
7559    # Insert the option either (1) after the last *FLAGS variable, or
7560    # (2) before a word containing "conftest.", or (3) at the end.
7561    # Note that $ac_compile itself does not contain backslashes and begins
7562    # with a dollar sign (not a hyphen), so the echo should work correctly.
7563    lt_compile=`echo "$ac_compile" | $SED \
7564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7566    -e 's:$: $lt_compiler_flag:'`
7567    (eval echo "\"\$as_me:7567: $lt_compile\"" >&5)
7568    (eval "$lt_compile" 2>out/conftest.err)
7569    ac_status=$?
7570    cat out/conftest.err >&5
7571    echo "$as_me:7571: \$? = $ac_status" >&5
7572    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7573    then
7574      # The compiler can only warn and ignore the option if not recognized
7575      # So say no if there are warnings
7576      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7577      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7578      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7579        lt_cv_prog_compiler_c_o=yes
7580      fi
7581    fi
7582    chmod u+w . 2>&5
7583    $rm conftest*
7584    # SGI C++ compiler will create directory out/ii_files/ for
7585    # template instantiation
7586    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7587    $rm out/* && rmdir out
7588    cd ..
7589    rmdir conftest
7590    $rm conftest*
7591
7592 fi
7593 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7595
7596
7597 hard_links="nottested"
7598 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7599   # do not overwrite the value of need_locks provided by the user
7600   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7601 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7602   hard_links=yes
7603   $rm conftest*
7604   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7605   touch conftest.a
7606   ln conftest.a conftest.b 2>&5 || hard_links=no
7607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7608   { echo "$as_me:$LINENO: result: $hard_links" >&5
7609 echo "${ECHO_T}$hard_links" >&6; }
7610   if test "$hard_links" = no; then
7611     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7612 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7613     need_locks=warn
7614   fi
7615 else
7616   need_locks=no
7617 fi
7618
7619 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7621
7622   runpath_var=
7623   allow_undefined_flag=
7624   enable_shared_with_static_runtimes=no
7625   archive_cmds=
7626   archive_expsym_cmds=
7627   old_archive_From_new_cmds=
7628   old_archive_from_expsyms_cmds=
7629   export_dynamic_flag_spec=
7630   whole_archive_flag_spec=
7631   thread_safe_flag_spec=
7632   hardcode_libdir_flag_spec=
7633   hardcode_libdir_flag_spec_ld=
7634   hardcode_libdir_separator=
7635   hardcode_direct=no
7636   hardcode_minus_L=no
7637   hardcode_shlibpath_var=unsupported
7638   link_all_deplibs=unknown
7639   hardcode_automatic=no
7640   module_cmds=
7641   module_expsym_cmds=
7642   always_export_symbols=no
7643   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7644   # include_expsyms should be a list of space-separated symbols to be *always*
7645   # included in the symbol list
7646   include_expsyms=
7647   # exclude_expsyms can be an extended regexp of symbols to exclude
7648   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7649   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7650   # as well as any symbol that contains `d'.
7651   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7652   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7653   # platforms (ab)use it in PIC code, but their linkers get confused if
7654   # the symbol is explicitly referenced.  Since portable code cannot
7655   # rely on this symbol name, it's probably fine to never include it in
7656   # preloaded symbol tables.
7657   extract_expsyms_cmds=
7658   # Just being paranoid about ensuring that cc_basename is set.
7659   for cc_temp in $compiler""; do
7660   case $cc_temp in
7661     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7662     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7663     \-*) ;;
7664     *) break;;
7665   esac
7666 done
7667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7668
7669   case $host_os in
7670   cygwin* | mingw* | pw32*)
7671     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7672     # When not using gcc, we currently assume that we are using
7673     # Microsoft Visual C++.
7674     if test "$GCC" != yes; then
7675       with_gnu_ld=no
7676     fi
7677     ;;
7678   interix*)
7679     # we just hope/assume this is gcc and not c89 (= MSVC++)
7680     with_gnu_ld=yes
7681     ;;
7682   openbsd*)
7683     with_gnu_ld=no
7684     ;;
7685   esac
7686
7687   ld_shlibs=yes
7688   if test "$with_gnu_ld" = yes; then
7689     # If archive_cmds runs LD, not CC, wlarc should be empty
7690     wlarc='${wl}'
7691
7692     # Set some defaults for GNU ld with shared library support. These
7693     # are reset later if shared libraries are not supported. Putting them
7694     # here allows them to be overridden if necessary.
7695     runpath_var=LD_RUN_PATH
7696     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7697     export_dynamic_flag_spec='${wl}--export-dynamic'
7698     # ancient GNU ld didn't support --whole-archive et. al.
7699     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7700         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7701       else
7702         whole_archive_flag_spec=
7703     fi
7704     supports_anon_versioning=no
7705     case `$LD -v 2>/dev/null` in
7706       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7707       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7708       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7709       *\ 2.11.*) ;; # other 2.11 versions
7710       *) supports_anon_versioning=yes ;;
7711     esac
7712
7713     # See if GNU ld supports shared libraries.
7714     case $host_os in
7715     aix3* | aix4* | aix5*)
7716       # On AIX/PPC, the GNU linker is very broken
7717       if test "$host_cpu" != ia64; then
7718         ld_shlibs=no
7719         cat <<EOF 1>&2
7720
7721 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7722 *** to be unable to reliably create shared libraries on AIX.
7723 *** Therefore, libtool is disabling shared libraries support.  If you
7724 *** really care for shared libraries, you may want to modify your PATH
7725 *** so that a non-GNU linker is found, and then restart.
7726
7727 EOF
7728       fi
7729       ;;
7730
7731     amigaos*)
7732       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)'
7733       hardcode_libdir_flag_spec='-L$libdir'
7734       hardcode_minus_L=yes
7735
7736       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7737       # that the semantics of dynamic libraries on AmigaOS, at least up
7738       # to version 4, is to share data among multiple programs linked
7739       # with the same dynamic library.  Since this doesn't match the
7740       # behavior of shared libraries on other platforms, we can't use
7741       # them.
7742       ld_shlibs=no
7743       ;;
7744
7745     beos*)
7746       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7747         allow_undefined_flag=unsupported
7748         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7749         # support --undefined.  This deserves some investigation.  FIXME
7750         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7751       else
7752         ld_shlibs=no
7753       fi
7754       ;;
7755
7756     cygwin* | mingw* | pw32*)
7757       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7758       # as there is no search path for DLLs.
7759       hardcode_libdir_flag_spec='-L$libdir'
7760       allow_undefined_flag=unsupported
7761       always_export_symbols=no
7762       enable_shared_with_static_runtimes=yes
7763       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7764
7765       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7766         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7767         # If the export-symbols file already is a .def file (1st line
7768         # is EXPORTS), use it as is; otherwise, prepend...
7769         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7770           cp $export_symbols $output_objdir/$soname.def;
7771         else
7772           echo EXPORTS > $output_objdir/$soname.def;
7773           cat $export_symbols >> $output_objdir/$soname.def;
7774         fi~
7775         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7776       else
7777         ld_shlibs=no
7778       fi
7779       ;;
7780
7781     interix3*)
7782       hardcode_direct=no
7783       hardcode_shlibpath_var=no
7784       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7785       export_dynamic_flag_spec='${wl}-E'
7786       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7787       # Instead, shared libraries are loaded at an image base (0x10000000 by
7788       # default) and relocated if they conflict, which is a slow very memory
7789       # consuming and fragmenting process.  To avoid this, we pick a random,
7790       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7791       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7792       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7793       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'
7794       ;;
7795
7796     linux* | k*bsd*-gnu)
7797       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7798         tmp_addflag=
7799         case $cc_basename,$host_cpu in
7800         pgcc*)                          # Portland Group C compiler
7801           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'
7802           tmp_addflag=' $pic_flag'
7803           ;;
7804         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7805           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'
7806           tmp_addflag=' $pic_flag -Mnomain' ;;
7807         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7808           tmp_addflag=' -i_dynamic' ;;
7809         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7810           tmp_addflag=' -i_dynamic -nofor_main' ;;
7811         ifc* | ifort*)                  # Intel Fortran compiler
7812           tmp_addflag=' -nofor_main' ;;
7813         esac
7814         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7815
7816         if test $supports_anon_versioning = yes; then
7817           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7818   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7819   $echo "local: *; };" >> $output_objdir/$libname.ver~
7820           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7821         fi
7822         link_all_deplibs=no
7823       else
7824         ld_shlibs=no
7825       fi
7826       ;;
7827
7828     netbsd* | netbsdelf*-gnu)
7829       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7830         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7831         wlarc=
7832       else
7833         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7834         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7835       fi
7836       ;;
7837
7838     solaris*)
7839       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7840         ld_shlibs=no
7841         cat <<EOF 1>&2
7842
7843 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7844 *** create shared libraries on Solaris systems.  Therefore, libtool
7845 *** is disabling shared libraries support.  We urge you to upgrade GNU
7846 *** binutils to release 2.9.1 or newer.  Another option is to modify
7847 *** your PATH or compiler configuration so that the native linker is
7848 *** used, and then restart.
7849
7850 EOF
7851       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7852         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7853         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7854       else
7855         ld_shlibs=no
7856       fi
7857       ;;
7858
7859     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7860       case `$LD -v 2>&1` in
7861         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7862         ld_shlibs=no
7863         cat <<_LT_EOF 1>&2
7864
7865 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7866 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7867 *** is disabling shared libraries support.  We urge you to upgrade GNU
7868 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7869 *** your PATH or compiler configuration so that the native linker is
7870 *** used, and then restart.
7871
7872 _LT_EOF
7873         ;;
7874         *)
7875           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7876             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7877             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7878             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7879           else
7880             ld_shlibs=no
7881           fi
7882         ;;
7883       esac
7884       ;;
7885
7886     sunos4*)
7887       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7888       wlarc=
7889       hardcode_direct=yes
7890       hardcode_shlibpath_var=no
7891       ;;
7892
7893     *)
7894       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7895         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7896         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7897       else
7898         ld_shlibs=no
7899       fi
7900       ;;
7901     esac
7902
7903     if test "$ld_shlibs" = no; then
7904       runpath_var=
7905       hardcode_libdir_flag_spec=
7906       export_dynamic_flag_spec=
7907       whole_archive_flag_spec=
7908     fi
7909   else
7910     # PORTME fill in a description of your system's linker (not GNU ld)
7911     case $host_os in
7912     aix3*)
7913       allow_undefined_flag=unsupported
7914       always_export_symbols=yes
7915       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'
7916       # Note: this linker hardcodes the directories in LIBPATH if there
7917       # are no directories specified by -L.
7918       hardcode_minus_L=yes
7919       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7920         # Neither direct hardcoding nor static linking is supported with a
7921         # broken collect2.
7922         hardcode_direct=unsupported
7923       fi
7924       ;;
7925
7926     aix4* | aix5*)
7927       if test "$host_cpu" = ia64; then
7928         # On IA64, the linker does run time linking by default, so we don't
7929         # have to do anything special.
7930         aix_use_runtimelinking=no
7931         exp_sym_flag='-Bexport'
7932         no_entry_flag=""
7933       else
7934         # If we're using GNU nm, then we don't want the "-C" option.
7935         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7936         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7937           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'
7938         else
7939           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'
7940         fi
7941         aix_use_runtimelinking=no
7942
7943         # Test if we are trying to use run time linking or normal
7944         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7945         # need to do runtime linking.
7946         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7947           for ld_flag in $LDFLAGS; do
7948           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7949             aix_use_runtimelinking=yes
7950             break
7951           fi
7952           done
7953           ;;
7954         esac
7955
7956         exp_sym_flag='-bexport'
7957         no_entry_flag='-bnoentry'
7958       fi
7959
7960       # When large executables or shared objects are built, AIX ld can
7961       # have problems creating the table of contents.  If linking a library
7962       # or program results in "error TOC overflow" add -mminimal-toc to
7963       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7964       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7965
7966       archive_cmds=''
7967       hardcode_direct=yes
7968       hardcode_libdir_separator=':'
7969       link_all_deplibs=yes
7970
7971       if test "$GCC" = yes; then
7972         case $host_os in aix4.[012]|aix4.[012].*)
7973         # We only want to do this on AIX 4.2 and lower, the check
7974         # below for broken collect2 doesn't work under 4.3+
7975           collect2name=`${CC} -print-prog-name=collect2`
7976           if test -f "$collect2name" && \
7977            strings "$collect2name" | grep resolve_lib_name >/dev/null
7978           then
7979           # We have reworked collect2
7980           hardcode_direct=yes
7981           else
7982           # We have old collect2
7983           hardcode_direct=unsupported
7984           # It fails to find uninstalled libraries when the uninstalled
7985           # path is not listed in the libpath.  Setting hardcode_minus_L
7986           # to unsupported forces relinking
7987           hardcode_minus_L=yes
7988           hardcode_libdir_flag_spec='-L$libdir'
7989           hardcode_libdir_separator=
7990           fi
7991           ;;
7992         esac
7993         shared_flag='-shared'
7994         if test "$aix_use_runtimelinking" = yes; then
7995           shared_flag="$shared_flag "'${wl}-G'
7996         fi
7997       else
7998         # not using gcc
7999         if test "$host_cpu" = ia64; then
8000         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8001         # chokes on -Wl,-G. The following line is correct:
8002           shared_flag='-G'
8003         else
8004           if test "$aix_use_runtimelinking" = yes; then
8005             shared_flag='${wl}-G'
8006           else
8007             shared_flag='${wl}-bM:SRE'
8008           fi
8009         fi
8010       fi
8011
8012       # It seems that -bexpall does not export symbols beginning with
8013       # underscore (_), so it is better to generate a list of symbols to export.
8014       always_export_symbols=yes
8015       if test "$aix_use_runtimelinking" = yes; then
8016         # Warning - without using the other runtime loading flags (-brtl),
8017         # -berok will link without error, but may produce a broken library.
8018         allow_undefined_flag='-berok'
8019        # Determine the default libpath from the value encoded in an empty executable.
8020        cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026
8027 int
8028 main ()
8029 {
8030
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8037 case "(($ac_try" in
8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039   *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042   (eval "$ac_link") 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } && {
8049          test -z "$ac_c_werror_flag" ||
8050          test ! -s conftest.err
8051        } && test -s conftest$ac_exeext &&
8052        $as_test_x conftest$ac_exeext; then
8053
8054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8055 }'`
8056 # Check for a 64-bit object if we didn't find anything.
8057 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8058 }'`; fi
8059 else
8060   echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063
8064 fi
8065
8066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8067       conftest$ac_exeext conftest.$ac_ext
8068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8069
8070        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8071         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"
8072        else
8073         if test "$host_cpu" = ia64; then
8074           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8075           allow_undefined_flag="-z nodefs"
8076           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"
8077         else
8078          # Determine the default libpath from the value encoded in an empty executable.
8079          cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085
8086 int
8087 main ()
8088 {
8089
8090   ;
8091   return 0;
8092 }
8093 _ACEOF
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (ac_try="$ac_link"
8096 case "(($ac_try" in
8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098   *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101   (eval "$ac_link") 2>conftest.er1
8102   ac_status=$?
8103   grep -v '^ *+' conftest.er1 >conftest.err
8104   rm -f conftest.er1
8105   cat conftest.err >&5
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } && {
8108          test -z "$ac_c_werror_flag" ||
8109          test ! -s conftest.err
8110        } && test -s conftest$ac_exeext &&
8111        $as_test_x conftest$ac_exeext; then
8112
8113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8114 }'`
8115 # Check for a 64-bit object if we didn't find anything.
8116 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8117 }'`; fi
8118 else
8119   echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122
8123 fi
8124
8125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8126       conftest$ac_exeext conftest.$ac_ext
8127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8128
8129          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8130           # Warning - without using the other run time loading flags,
8131           # -berok will link without error, but may produce a broken library.
8132           no_undefined_flag=' ${wl}-bernotok'
8133           allow_undefined_flag=' ${wl}-berok'
8134           # Exported symbols can be pulled into shared objects from archives
8135           whole_archive_flag_spec='$convenience'
8136           archive_cmds_need_lc=yes
8137           # This is similar to how AIX traditionally builds its shared libraries.
8138           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'
8139         fi
8140       fi
8141       ;;
8142
8143     amigaos*)
8144       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)'
8145       hardcode_libdir_flag_spec='-L$libdir'
8146       hardcode_minus_L=yes
8147       # see comment about different semantics on the GNU ld section
8148       ld_shlibs=no
8149       ;;
8150
8151     bsdi[45]*)
8152       export_dynamic_flag_spec=-rdynamic
8153       ;;
8154
8155     cygwin* | mingw* | pw32*)
8156       # When not using gcc, we currently assume that we are using
8157       # Microsoft Visual C++.
8158       # hardcode_libdir_flag_spec is actually meaningless, as there is
8159       # no search path for DLLs.
8160       hardcode_libdir_flag_spec=' '
8161       allow_undefined_flag=unsupported
8162       # Tell ltmain to make .lib files, not .a files.
8163       libext=lib
8164       # Tell ltmain to make .dll files, not .so files.
8165       shrext_cmds=".dll"
8166       # FIXME: Setting linknames here is a bad hack.
8167       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8168       # The linker will automatically build a .lib file if we build a DLL.
8169       old_archive_From_new_cmds='true'
8170       # FIXME: Should let the user specify the lib program.
8171       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8172       fix_srcfile_path='`cygpath -w "$srcfile"`'
8173       enable_shared_with_static_runtimes=yes
8174       ;;
8175
8176     darwin* | rhapsody*)
8177       case $host_os in
8178         rhapsody* | darwin1.[012])
8179          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8180          ;;
8181        *) # Darwin 1.3 on
8182          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8183            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8184          else
8185            case ${MACOSX_DEPLOYMENT_TARGET} in
8186              10.[012])
8187                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8188                ;;
8189              10.*)
8190                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8191                ;;
8192            esac
8193          fi
8194          ;;
8195       esac
8196       archive_cmds_need_lc=no
8197       hardcode_direct=no
8198       hardcode_automatic=yes
8199       hardcode_shlibpath_var=unsupported
8200       whole_archive_flag_spec=''
8201       link_all_deplibs=yes
8202     if test "$GCC" = yes ; then
8203         output_verbose_link_cmd='echo'
8204         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8205       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8206       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8207       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8208       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}'
8209     else
8210       case $cc_basename in
8211         xlc*)
8212          output_verbose_link_cmd='echo'
8213          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8214          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8215           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8216          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8217           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}'
8218           ;;
8219        *)
8220          ld_shlibs=no
8221           ;;
8222       esac
8223     fi
8224       ;;
8225
8226     dgux*)
8227       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8228       hardcode_libdir_flag_spec='-L$libdir'
8229       hardcode_shlibpath_var=no
8230       ;;
8231
8232     freebsd1*)
8233       ld_shlibs=no
8234       ;;
8235
8236     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8237     # support.  Future versions do this automatically, but an explicit c++rt0.o
8238     # does not break anything, and helps significantly (at the cost of a little
8239     # extra space).
8240     freebsd2.2*)
8241       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8242       hardcode_libdir_flag_spec='-R$libdir'
8243       hardcode_direct=yes
8244       hardcode_shlibpath_var=no
8245       ;;
8246
8247     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8248     freebsd2*)
8249       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8250       hardcode_direct=yes
8251       hardcode_minus_L=yes
8252       hardcode_shlibpath_var=no
8253       ;;
8254
8255     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8256     freebsd* | dragonfly*)
8257       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8258       hardcode_libdir_flag_spec='-R$libdir'
8259       hardcode_direct=yes
8260       hardcode_shlibpath_var=no
8261       ;;
8262
8263     hpux9*)
8264       if test "$GCC" = yes; then
8265         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'
8266       else
8267         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'
8268       fi
8269       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8270       hardcode_libdir_separator=:
8271       hardcode_direct=yes
8272
8273       # hardcode_minus_L: Not really in the search PATH,
8274       # but as the default location of the library.
8275       hardcode_minus_L=yes
8276       export_dynamic_flag_spec='${wl}-E'
8277       ;;
8278
8279     hpux10*)
8280       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8281         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8282       else
8283         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8284       fi
8285       if test "$with_gnu_ld" = no; then
8286         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8287         hardcode_libdir_separator=:
8288
8289         hardcode_direct=yes
8290         export_dynamic_flag_spec='${wl}-E'
8291
8292         # hardcode_minus_L: Not really in the search PATH,
8293         # but as the default location of the library.
8294         hardcode_minus_L=yes
8295       fi
8296       ;;
8297
8298     hpux11*)
8299       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8300         case $host_cpu in
8301         hppa*64*)
8302           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8303           ;;
8304         ia64*)
8305           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8306           ;;
8307         *)
8308           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8309           ;;
8310         esac
8311       else
8312         case $host_cpu in
8313         hppa*64*)
8314           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8315           ;;
8316         ia64*)
8317           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8318           ;;
8319         *)
8320           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8321           ;;
8322         esac
8323       fi
8324       if test "$with_gnu_ld" = no; then
8325         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8326         hardcode_libdir_separator=:
8327
8328         case $host_cpu in
8329         hppa*64*|ia64*)
8330           hardcode_libdir_flag_spec_ld='+b $libdir'
8331           hardcode_direct=no
8332           hardcode_shlibpath_var=no
8333           ;;
8334         *)
8335           hardcode_direct=yes
8336           export_dynamic_flag_spec='${wl}-E'
8337
8338           # hardcode_minus_L: Not really in the search PATH,
8339           # but as the default location of the library.
8340           hardcode_minus_L=yes
8341           ;;
8342         esac
8343       fi
8344       ;;
8345
8346     irix5* | irix6* | nonstopux*)
8347       if test "$GCC" = yes; then
8348         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'
8349       else
8350         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'
8351         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8352       fi
8353       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8354       hardcode_libdir_separator=:
8355       link_all_deplibs=yes
8356       ;;
8357
8358     netbsd* | netbsdelf*-gnu)
8359       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8360         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8361       else
8362         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8363       fi
8364       hardcode_libdir_flag_spec='-R$libdir'
8365       hardcode_direct=yes
8366       hardcode_shlibpath_var=no
8367       ;;
8368
8369     newsos6)
8370       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371       hardcode_direct=yes
8372       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373       hardcode_libdir_separator=:
8374       hardcode_shlibpath_var=no
8375       ;;
8376
8377     openbsd*)
8378       hardcode_direct=yes
8379       hardcode_shlibpath_var=no
8380       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8381         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8382         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8383         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8384         export_dynamic_flag_spec='${wl}-E'
8385       else
8386        case $host_os in
8387          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8388            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8389            hardcode_libdir_flag_spec='-R$libdir'
8390            ;;
8391          *)
8392            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8393            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8394            ;;
8395        esac
8396       fi
8397       ;;
8398
8399     os2*)
8400       hardcode_libdir_flag_spec='-L$libdir'
8401       hardcode_minus_L=yes
8402       allow_undefined_flag=unsupported
8403       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'
8404       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8405       ;;
8406
8407     osf3*)
8408       if test "$GCC" = yes; then
8409         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8410         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'
8411       else
8412         allow_undefined_flag=' -expect_unresolved \*'
8413         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'
8414       fi
8415       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416       hardcode_libdir_separator=:
8417       ;;
8418
8419     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8420       if test "$GCC" = yes; then
8421         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8422         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'
8423         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424       else
8425         allow_undefined_flag=' -expect_unresolved \*'
8426         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'
8427         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8428         $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'
8429
8430         # Both c and cxx compiler support -rpath directly
8431         hardcode_libdir_flag_spec='-rpath $libdir'
8432       fi
8433       hardcode_libdir_separator=:
8434       ;;
8435
8436     solaris*)
8437       no_undefined_flag=' -z text'
8438       if test "$GCC" = yes; then
8439         wlarc='${wl}'
8440         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8442           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8443       else
8444         wlarc=''
8445         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8447         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8448       fi
8449       hardcode_libdir_flag_spec='-R$libdir'
8450       hardcode_shlibpath_var=no
8451       case $host_os in
8452       solaris2.[0-5] | solaris2.[0-5].*) ;;
8453       *)
8454         # The compiler driver will combine linker options so we
8455         # cannot just pass the convience library names through
8456         # without $wl, iff we do not link with $LD.
8457         # Luckily, gcc supports the same syntax we need for Sun Studio.
8458         # Supported since Solaris 2.6 (maybe 2.5.1?)
8459         case $wlarc in
8460         '')
8461           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8462         *)
8463           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8464         esac ;;
8465       esac
8466       link_all_deplibs=yes
8467       ;;
8468
8469     sunos4*)
8470       if test "x$host_vendor" = xsequent; then
8471         # Use $CC to link under sequent, because it throws in some extra .o
8472         # files that make .init and .fini sections work.
8473         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8474       else
8475         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8476       fi
8477       hardcode_libdir_flag_spec='-L$libdir'
8478       hardcode_direct=yes
8479       hardcode_minus_L=yes
8480       hardcode_shlibpath_var=no
8481       ;;
8482
8483     sysv4)
8484       case $host_vendor in
8485         sni)
8486           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487           hardcode_direct=yes # is this really true???
8488         ;;
8489         siemens)
8490           ## LD is ld it makes a PLAMLIB
8491           ## CC just makes a GrossModule.
8492           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8493           reload_cmds='$CC -r -o $output$reload_objs'
8494           hardcode_direct=no
8495         ;;
8496         motorola)
8497           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8499         ;;
8500       esac
8501       runpath_var='LD_RUN_PATH'
8502       hardcode_shlibpath_var=no
8503       ;;
8504
8505     sysv4.3*)
8506       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507       hardcode_shlibpath_var=no
8508       export_dynamic_flag_spec='-Bexport'
8509       ;;
8510
8511     sysv4*MP*)
8512       if test -d /usr/nec; then
8513         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514         hardcode_shlibpath_var=no
8515         runpath_var=LD_RUN_PATH
8516         hardcode_runpath_var=yes
8517         ld_shlibs=yes
8518       fi
8519       ;;
8520
8521     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8522       no_undefined_flag='${wl}-z,text'
8523       archive_cmds_need_lc=no
8524       hardcode_shlibpath_var=no
8525       runpath_var='LD_RUN_PATH'
8526
8527       if test "$GCC" = yes; then
8528         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8530       else
8531         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8533       fi
8534       ;;
8535
8536     sysv5* | sco3.2v5* | sco5v6*)
8537       # Note: We can NOT use -z defs as we might desire, because we do not
8538       # link with -lc, and that would cause any symbols used from libc to
8539       # always be unresolved, which means just about no library would
8540       # ever link correctly.  If we're not using GNU ld we use -z text
8541       # though, which does catch some bad symbols but isn't as heavy-handed
8542       # as -z defs.
8543       no_undefined_flag='${wl}-z,text'
8544       allow_undefined_flag='${wl}-z,nodefs'
8545       archive_cmds_need_lc=no
8546       hardcode_shlibpath_var=no
8547       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8548       hardcode_libdir_separator=':'
8549       link_all_deplibs=yes
8550       export_dynamic_flag_spec='${wl}-Bexport'
8551       runpath_var='LD_RUN_PATH'
8552
8553       if test "$GCC" = yes; then
8554         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556       else
8557         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559       fi
8560       ;;
8561
8562     uts4*)
8563       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564       hardcode_libdir_flag_spec='-L$libdir'
8565       hardcode_shlibpath_var=no
8566       ;;
8567
8568     *)
8569       ld_shlibs=no
8570       ;;
8571     esac
8572   fi
8573
8574 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8575 echo "${ECHO_T}$ld_shlibs" >&6; }
8576 test "$ld_shlibs" = no && can_build_shared=no
8577
8578 #
8579 # Do we need to explicitly link libc?
8580 #
8581 case "x$archive_cmds_need_lc" in
8582 x|xyes)
8583   # Assume -lc should be added
8584   archive_cmds_need_lc=yes
8585
8586   if test "$enable_shared" = yes && test "$GCC" = yes; then
8587     case $archive_cmds in
8588     *'~'*)
8589       # FIXME: we may have to deal with multi-command sequences.
8590       ;;
8591     '$CC '*)
8592       # Test whether the compiler implicitly links with -lc since on some
8593       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8594       # to ld, don't add -lc before -lgcc.
8595       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8597       $rm conftest*
8598       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8599
8600       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601   (eval $ac_compile) 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } 2>conftest.err; then
8605         soname=conftest
8606         lib=conftest
8607         libobjs=conftest.$ac_objext
8608         deplibs=
8609         wl=$lt_prog_compiler_wl
8610         pic_flag=$lt_prog_compiler_pic
8611         compiler_flags=-v
8612         linker_flags=-v
8613         verstring=
8614         output_objdir=.
8615         libname=conftest
8616         lt_save_allow_undefined_flag=$allow_undefined_flag
8617         allow_undefined_flag=
8618         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8619   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); }
8623         then
8624           archive_cmds_need_lc=no
8625         else
8626           archive_cmds_need_lc=yes
8627         fi
8628         allow_undefined_flag=$lt_save_allow_undefined_flag
8629       else
8630         cat conftest.err 1>&5
8631       fi
8632       $rm conftest*
8633       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8634 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8635       ;;
8636     esac
8637   fi
8638   ;;
8639 esac
8640
8641 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8643 library_names_spec=
8644 libname_spec='lib$name'
8645 soname_spec=
8646 shrext_cmds=".so"
8647 postinstall_cmds=
8648 postuninstall_cmds=
8649 finish_cmds=
8650 finish_eval=
8651 shlibpath_var=
8652 shlibpath_overrides_runpath=unknown
8653 version_type=none
8654 dynamic_linker="$host_os ld.so"
8655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8656 if test "$GCC" = yes; then
8657   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8658   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8659     # if the path contains ";" then we assume it to be the separator
8660     # otherwise default to the standard path separator (i.e. ":") - it is
8661     # assumed that no part of a normal pathname contains ";" but that should
8662     # okay in the real world where ";" in dirpaths is itself problematic.
8663     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8664   else
8665     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8666   fi
8667 else
8668   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8669 fi
8670 need_lib_prefix=unknown
8671 hardcode_into_libs=no
8672
8673 # when you set need_version to no, make sure it does not cause -set_version
8674 # flags to be left without arguments
8675 need_version=unknown
8676
8677 case $host_os in
8678 aix3*)
8679   version_type=linux
8680   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8681   shlibpath_var=LIBPATH
8682
8683   # AIX 3 has no versioning support, so we append a major version to the name.
8684   soname_spec='${libname}${release}${shared_ext}$major'
8685   ;;
8686
8687 aix4* | aix5*)
8688   version_type=linux
8689   need_lib_prefix=no
8690   need_version=no
8691   hardcode_into_libs=yes
8692   if test "$host_cpu" = ia64; then
8693     # AIX 5 supports IA64
8694     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8695     shlibpath_var=LD_LIBRARY_PATH
8696   else
8697     # With GCC up to 2.95.x, collect2 would create an import file
8698     # for dependence libraries.  The import file would start with
8699     # the line `#! .'.  This would cause the generated library to
8700     # depend on `.', always an invalid library.  This was fixed in
8701     # development snapshots of GCC prior to 3.0.
8702     case $host_os in
8703       aix4 | aix4.[01] | aix4.[01].*)
8704       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8705            echo ' yes '
8706            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8707         :
8708       else
8709         can_build_shared=no
8710       fi
8711       ;;
8712     esac
8713     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8714     # soname into executable. Probably we can add versioning support to
8715     # collect2, so additional links can be useful in future.
8716     if test "$aix_use_runtimelinking" = yes; then
8717       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8718       # instead of lib<name>.a to let people know that these are not
8719       # typical AIX shared libraries.
8720       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721     else
8722       # We preserve .a as extension for shared libraries through AIX4.2
8723       # and later when we are not doing run time linking.
8724       library_names_spec='${libname}${release}.a $libname.a'
8725       soname_spec='${libname}${release}${shared_ext}$major'
8726     fi
8727     shlibpath_var=LIBPATH
8728   fi
8729   ;;
8730
8731 amigaos*)
8732   library_names_spec='$libname.ixlibrary $libname.a'
8733   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8734   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'
8735   ;;
8736
8737 beos*)
8738   library_names_spec='${libname}${shared_ext}'
8739   dynamic_linker="$host_os ld.so"
8740   shlibpath_var=LIBRARY_PATH
8741   ;;
8742
8743 bsdi[45]*)
8744   version_type=linux
8745   need_version=no
8746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747   soname_spec='${libname}${release}${shared_ext}$major'
8748   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8749   shlibpath_var=LD_LIBRARY_PATH
8750   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8751   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8752   # the default ld.so.conf also contains /usr/contrib/lib and
8753   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8754   # libtool to hard-code these into programs
8755   ;;
8756
8757 cygwin* | mingw* | pw32*)
8758   version_type=windows
8759   shrext_cmds=".dll"
8760   need_version=no
8761   need_lib_prefix=no
8762
8763   case $GCC,$host_os in
8764   yes,cygwin* | yes,mingw* | yes,pw32*)
8765     library_names_spec='$libname.dll.a'
8766     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8767     postinstall_cmds='base_file=`basename \${file}`~
8768       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8769       dldir=$destdir/`dirname \$dlpath`~
8770       test -d \$dldir || mkdir -p \$dldir~
8771       $install_prog $dir/$dlname \$dldir/$dlname~
8772       chmod a+x \$dldir/$dlname'
8773     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8774       dlpath=$dir/\$dldll~
8775        $rm \$dlpath'
8776     shlibpath_overrides_runpath=yes
8777
8778     case $host_os in
8779     cygwin*)
8780       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8781       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8782       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8783       ;;
8784     mingw*)
8785       # MinGW DLLs use traditional 'lib' prefix
8786       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8787       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8789         # It is most probably a Windows format PATH printed by
8790         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8791         # path with ; separators, and with drive letters. We can handle the
8792         # drive letters (cygwin fileutils understands them), so leave them,
8793         # especially as we might pass files found there to a mingw objdump,
8794         # which wouldn't understand a cygwinified path. Ahh.
8795         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8796       else
8797         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8798       fi
8799       ;;
8800     pw32*)
8801       # pw32 DLLs use 'pw' prefix rather than 'lib'
8802       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8803       ;;
8804     esac
8805     ;;
8806
8807   *)
8808     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8809     ;;
8810   esac
8811   dynamic_linker='Win32 ld.exe'
8812   # FIXME: first we should search . and the directory the executable is in
8813   shlibpath_var=PATH
8814   ;;
8815
8816 darwin* | rhapsody*)
8817   dynamic_linker="$host_os dyld"
8818   version_type=darwin
8819   need_lib_prefix=no
8820   need_version=no
8821   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8822   soname_spec='${libname}${release}${major}$shared_ext'
8823   shlibpath_overrides_runpath=yes
8824   shlibpath_var=DYLD_LIBRARY_PATH
8825   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8826   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8827   if test "$GCC" = yes; then
8828     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8829   else
8830     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8831   fi
8832   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8833   ;;
8834
8835 dgux*)
8836   version_type=linux
8837   need_lib_prefix=no
8838   need_version=no
8839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8840   soname_spec='${libname}${release}${shared_ext}$major'
8841   shlibpath_var=LD_LIBRARY_PATH
8842   ;;
8843
8844 freebsd1*)
8845   dynamic_linker=no
8846   ;;
8847
8848 freebsd* | dragonfly*)
8849   # DragonFly does not have aout.  When/if they implement a new
8850   # versioning mechanism, adjust this.
8851   if test -x /usr/bin/objformat; then
8852     objformat=`/usr/bin/objformat`
8853   else
8854     case $host_os in
8855     freebsd[123]*) objformat=aout ;;
8856     *) objformat=elf ;;
8857     esac
8858   fi
8859   version_type=freebsd-$objformat
8860   case $version_type in
8861     freebsd-elf*)
8862       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8863       need_version=no
8864       need_lib_prefix=no
8865       ;;
8866     freebsd-*)
8867       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8868       need_version=yes
8869       ;;
8870   esac
8871   shlibpath_var=LD_LIBRARY_PATH
8872   case $host_os in
8873   freebsd2*)
8874     shlibpath_overrides_runpath=yes
8875     ;;
8876   freebsd3.[01]* | freebsdelf3.[01]*)
8877     shlibpath_overrides_runpath=yes
8878     hardcode_into_libs=yes
8879     ;;
8880   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8881   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8882     shlibpath_overrides_runpath=no
8883     hardcode_into_libs=yes
8884     ;;
8885   freebsd*) # from 4.6 on
8886     shlibpath_overrides_runpath=yes
8887     hardcode_into_libs=yes
8888     ;;
8889   esac
8890   ;;
8891
8892 gnu*)
8893   version_type=linux
8894   need_lib_prefix=no
8895   need_version=no
8896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8897   soname_spec='${libname}${release}${shared_ext}$major'
8898   shlibpath_var=LD_LIBRARY_PATH
8899   hardcode_into_libs=yes
8900   ;;
8901
8902 hpux9* | hpux10* | hpux11*)
8903   # Give a soname corresponding to the major version so that dld.sl refuses to
8904   # link against other versions.
8905   version_type=sunos
8906   need_lib_prefix=no
8907   need_version=no
8908   case $host_cpu in
8909   ia64*)
8910     shrext_cmds='.so'
8911     hardcode_into_libs=yes
8912     dynamic_linker="$host_os dld.so"
8913     shlibpath_var=LD_LIBRARY_PATH
8914     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916     soname_spec='${libname}${release}${shared_ext}$major'
8917     if test "X$HPUX_IA64_MODE" = X32; then
8918       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8919     else
8920       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8921     fi
8922     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8923     ;;
8924    hppa*64*)
8925      shrext_cmds='.sl'
8926      hardcode_into_libs=yes
8927      dynamic_linker="$host_os dld.sl"
8928      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8929      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8930      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931      soname_spec='${libname}${release}${shared_ext}$major'
8932      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8933      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8934      ;;
8935    *)
8936     shrext_cmds='.sl'
8937     dynamic_linker="$host_os dld.sl"
8938     shlibpath_var=SHLIB_PATH
8939     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941     soname_spec='${libname}${release}${shared_ext}$major'
8942     ;;
8943   esac
8944   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8945   postinstall_cmds='chmod 555 $lib'
8946   ;;
8947
8948 interix3*)
8949   version_type=linux
8950   need_lib_prefix=no
8951   need_version=no
8952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8953   soname_spec='${libname}${release}${shared_ext}$major'
8954   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8955   shlibpath_var=LD_LIBRARY_PATH
8956   shlibpath_overrides_runpath=no
8957   hardcode_into_libs=yes
8958   ;;
8959
8960 irix5* | irix6* | nonstopux*)
8961   case $host_os in
8962     nonstopux*) version_type=nonstopux ;;
8963     *)
8964         if test "$lt_cv_prog_gnu_ld" = yes; then
8965                 version_type=linux
8966         else
8967                 version_type=irix
8968         fi ;;
8969   esac
8970   need_lib_prefix=no
8971   need_version=no
8972   soname_spec='${libname}${release}${shared_ext}$major'
8973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8974   case $host_os in
8975   irix5* | nonstopux*)
8976     libsuff= shlibsuff=
8977     ;;
8978   *)
8979     case $LD in # libtool.m4 will add one of these switches to LD
8980     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8981       libsuff= shlibsuff= libmagic=32-bit;;
8982     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8983       libsuff=32 shlibsuff=N32 libmagic=N32;;
8984     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8985       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8986     *) libsuff= shlibsuff= libmagic=never-match;;
8987     esac
8988     ;;
8989   esac
8990   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8991   shlibpath_overrides_runpath=no
8992   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8993   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8994   hardcode_into_libs=yes
8995   ;;
8996
8997 # No shared lib support for Linux oldld, aout, or coff.
8998 linux*oldld* | linux*aout* | linux*coff*)
8999   dynamic_linker=no
9000   ;;
9001
9002 # This must be Linux ELF.
9003 linux* | k*bsd*-gnu)
9004   version_type=linux
9005   need_lib_prefix=no
9006   need_version=no
9007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008   soname_spec='${libname}${release}${shared_ext}$major'
9009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9010   shlibpath_var=LD_LIBRARY_PATH
9011   shlibpath_overrides_runpath=no
9012   # This implies no fast_install, which is unacceptable.
9013   # Some rework will be needed to allow for fast_install
9014   # before this can be enabled.
9015   hardcode_into_libs=yes
9016
9017   # Append ld.so.conf contents to the search path
9018   if test -f /etc/ld.so.conf; then
9019     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9020     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9021   fi
9022
9023   # We used to test for /lib/ld.so.1 and disable shared libraries on
9024   # powerpc, because MkLinux only supported shared libraries with the
9025   # GNU dynamic linker.  Since this was broken with cross compilers,
9026   # most powerpc-linux boxes support dynamic linking these days and
9027   # people can always --disable-shared, the test was removed, and we
9028   # assume the GNU/Linux dynamic linker is in use.
9029   dynamic_linker='GNU/Linux ld.so'
9030   ;;
9031
9032 netbsdelf*-gnu)
9033   version_type=linux
9034   need_lib_prefix=no
9035   need_version=no
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9037   soname_spec='${libname}${release}${shared_ext}$major'
9038   shlibpath_var=LD_LIBRARY_PATH
9039   shlibpath_overrides_runpath=no
9040   hardcode_into_libs=yes
9041   dynamic_linker='NetBSD ld.elf_so'
9042   ;;
9043
9044 netbsd*)
9045   version_type=sunos
9046   need_lib_prefix=no
9047   need_version=no
9048   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9050     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9051     dynamic_linker='NetBSD (a.out) ld.so'
9052   else
9053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054     soname_spec='${libname}${release}${shared_ext}$major'
9055     dynamic_linker='NetBSD ld.elf_so'
9056   fi
9057   shlibpath_var=LD_LIBRARY_PATH
9058   shlibpath_overrides_runpath=yes
9059   hardcode_into_libs=yes
9060   ;;
9061
9062 newsos6)
9063   version_type=linux
9064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065   shlibpath_var=LD_LIBRARY_PATH
9066   shlibpath_overrides_runpath=yes
9067   ;;
9068
9069 nto-qnx*)
9070   version_type=linux
9071   need_lib_prefix=no
9072   need_version=no
9073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074   soname_spec='${libname}${release}${shared_ext}$major'
9075   shlibpath_var=LD_LIBRARY_PATH
9076   shlibpath_overrides_runpath=yes
9077   ;;
9078
9079 openbsd*)
9080   version_type=sunos
9081   sys_lib_dlsearch_path_spec="/usr/lib"
9082   need_lib_prefix=no
9083   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9084   case $host_os in
9085     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9086     *)                         need_version=no  ;;
9087   esac
9088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9089   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9090   shlibpath_var=LD_LIBRARY_PATH
9091   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9092     case $host_os in
9093       openbsd2.[89] | openbsd2.[89].*)
9094         shlibpath_overrides_runpath=no
9095         ;;
9096       *)
9097         shlibpath_overrides_runpath=yes
9098         ;;
9099       esac
9100   else
9101     shlibpath_overrides_runpath=yes
9102   fi
9103   ;;
9104
9105 os2*)
9106   libname_spec='$name'
9107   shrext_cmds=".dll"
9108   need_lib_prefix=no
9109   library_names_spec='$libname${shared_ext} $libname.a'
9110   dynamic_linker='OS/2 ld.exe'
9111   shlibpath_var=LIBPATH
9112   ;;
9113
9114 osf3* | osf4* | osf5*)
9115   version_type=osf
9116   need_lib_prefix=no
9117   need_version=no
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9122   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9123   ;;
9124
9125 solaris*)
9126   version_type=linux
9127   need_lib_prefix=no
9128   need_version=no
9129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130   soname_spec='${libname}${release}${shared_ext}$major'
9131   shlibpath_var=LD_LIBRARY_PATH
9132   shlibpath_overrides_runpath=yes
9133   hardcode_into_libs=yes
9134   # ldd complains unless libraries are executable
9135   postinstall_cmds='chmod +x $lib'
9136   ;;
9137
9138 sunos4*)
9139   version_type=sunos
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9141   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   shlibpath_overrides_runpath=yes
9144   if test "$with_gnu_ld" = yes; then
9145     need_lib_prefix=no
9146   fi
9147   need_version=yes
9148   ;;
9149
9150 sysv4 | sysv4.3*)
9151   version_type=linux
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   case $host_vendor in
9156     sni)
9157       shlibpath_overrides_runpath=no
9158       need_lib_prefix=no
9159       export_dynamic_flag_spec='${wl}-Blargedynsym'
9160       runpath_var=LD_RUN_PATH
9161       ;;
9162     siemens)
9163       need_lib_prefix=no
9164       ;;
9165     motorola)
9166       need_lib_prefix=no
9167       need_version=no
9168       shlibpath_overrides_runpath=no
9169       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9170       ;;
9171   esac
9172   ;;
9173
9174 sysv4*MP*)
9175   if test -d /usr/nec ;then
9176     version_type=linux
9177     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9178     soname_spec='$libname${shared_ext}.$major'
9179     shlibpath_var=LD_LIBRARY_PATH
9180   fi
9181   ;;
9182
9183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9184   version_type=freebsd-elf
9185   need_lib_prefix=no
9186   need_version=no
9187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9188   soname_spec='${libname}${release}${shared_ext}$major'
9189   shlibpath_var=LD_LIBRARY_PATH
9190   hardcode_into_libs=yes
9191   if test "$with_gnu_ld" = yes; then
9192     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9193     shlibpath_overrides_runpath=no
9194   else
9195     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9196     shlibpath_overrides_runpath=yes
9197     case $host_os in
9198       sco3.2v5*)
9199         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9200         ;;
9201     esac
9202   fi
9203   sys_lib_dlsearch_path_spec='/usr/lib'
9204   ;;
9205
9206 uts4*)
9207   version_type=linux
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   ;;
9212
9213 *)
9214   dynamic_linker=no
9215   ;;
9216 esac
9217 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9218 echo "${ECHO_T}$dynamic_linker" >&6; }
9219 test "$dynamic_linker" = no && can_build_shared=no
9220
9221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9222 if test "$GCC" = yes; then
9223   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9224 fi
9225
9226 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9227 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9228 hardcode_action=
9229 if test -n "$hardcode_libdir_flag_spec" || \
9230    test -n "$runpath_var" || \
9231    test "X$hardcode_automatic" = "Xyes" ; then
9232
9233   # We can hardcode non-existant directories.
9234   if test "$hardcode_direct" != no &&
9235      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9236      # have to relink, otherwise we might link with an installed library
9237      # when we should be linking with a yet-to-be-installed one
9238      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9239      test "$hardcode_minus_L" != no; then
9240     # Linking always hardcodes the temporary library directory.
9241     hardcode_action=relink
9242   else
9243     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9244     hardcode_action=immediate
9245   fi
9246 else
9247   # We cannot hardcode anything, or else we can only hardcode existing
9248   # directories.
9249   hardcode_action=unsupported
9250 fi
9251 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9252 echo "${ECHO_T}$hardcode_action" >&6; }
9253
9254 if test "$hardcode_action" = relink; then
9255   # Fast installation is not supported
9256   enable_fast_install=no
9257 elif test "$shlibpath_overrides_runpath" = yes ||
9258      test "$enable_shared" = no; then
9259   # Fast installation is not necessary
9260   enable_fast_install=needless
9261 fi
9262
9263 striplib=
9264 old_striplib=
9265 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9266 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9267 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9268   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9269   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9270   { echo "$as_me:$LINENO: result: yes" >&5
9271 echo "${ECHO_T}yes" >&6; }
9272 else
9273 # FIXME - insert some real tests, host_os isn't really good enough
9274   case $host_os in
9275    darwin*)
9276        if test -n "$STRIP" ; then
9277          striplib="$STRIP -x"
9278          { echo "$as_me:$LINENO: result: yes" >&5
9279 echo "${ECHO_T}yes" >&6; }
9280        else
9281   { echo "$as_me:$LINENO: result: no" >&5
9282 echo "${ECHO_T}no" >&6; }
9283 fi
9284        ;;
9285    *)
9286   { echo "$as_me:$LINENO: result: no" >&5
9287 echo "${ECHO_T}no" >&6; }
9288     ;;
9289   esac
9290 fi
9291
9292 if test "x$enable_dlopen" != xyes; then
9293   enable_dlopen=unknown
9294   enable_dlopen_self=unknown
9295   enable_dlopen_self_static=unknown
9296 else
9297   lt_cv_dlopen=no
9298   lt_cv_dlopen_libs=
9299
9300   case $host_os in
9301   beos*)
9302     lt_cv_dlopen="load_add_on"
9303     lt_cv_dlopen_libs=
9304     lt_cv_dlopen_self=yes
9305     ;;
9306
9307   mingw* | pw32*)
9308     lt_cv_dlopen="LoadLibrary"
9309     lt_cv_dlopen_libs=
9310    ;;
9311
9312   cygwin*)
9313     lt_cv_dlopen="dlopen"
9314     lt_cv_dlopen_libs=
9315    ;;
9316
9317   darwin*)
9318   # if libdl is installed we need to link against it
9319     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9320 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9321 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   ac_check_lib_save_LIBS=$LIBS
9325 LIBS="-ldl  $LIBS"
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h.  */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h.  */
9332
9333 /* Override any GCC internal prototype to avoid an error.
9334    Use char because int might match the return type of a GCC
9335    builtin and then its argument prototype would still apply.  */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 char dlopen ();
9340 int
9341 main ()
9342 {
9343 return dlopen ();
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
9350 case "(($ac_try" in
9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352   *) ac_try_echo=$ac_try;;
9353 esac
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355   (eval "$ac_link") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } && {
9362          test -z "$ac_c_werror_flag" ||
9363          test ! -s conftest.err
9364        } && test -s conftest$ac_exeext &&
9365        $as_test_x conftest$ac_exeext; then
9366   ac_cv_lib_dl_dlopen=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371         ac_cv_lib_dl_dlopen=no
9372 fi
9373
9374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9375       conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_check_lib_save_LIBS
9377 fi
9378 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9379 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9380 if test $ac_cv_lib_dl_dlopen = yes; then
9381   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9382 else
9383
9384     lt_cv_dlopen="dyld"
9385     lt_cv_dlopen_libs=
9386     lt_cv_dlopen_self=yes
9387
9388 fi
9389
9390    ;;
9391
9392   *)
9393     { echo "$as_me:$LINENO: checking for shl_load" >&5
9394 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9395 if test "${ac_cv_func_shl_load+set}" = set; then
9396   echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
9398   cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h.  */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h.  */
9404 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9406 #define shl_load innocuous_shl_load
9407
9408 /* System header to define __stub macros and hopefully few prototypes,
9409     which can conflict with char shl_load (); below.
9410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411     <limits.h> exists even on freestanding compilers.  */
9412
9413 #ifdef __STDC__
9414 # include <limits.h>
9415 #else
9416 # include <assert.h>
9417 #endif
9418
9419 #undef shl_load
9420
9421 /* Override any GCC internal prototype to avoid an error.
9422    Use char because int might match the return type of a GCC
9423    builtin and then its argument prototype would still apply.  */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 char shl_load ();
9428 /* The GNU C library defines this for functions which it implements
9429     to always fail with ENOSYS.  Some functions are actually named
9430     something starting with __ and the normal name is an alias.  */
9431 #if defined __stub_shl_load || defined __stub___shl_load
9432 choke me
9433 #endif
9434
9435 int
9436 main ()
9437 {
9438 return shl_load ();
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9445 case "(($ac_try" in
9446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447   *) ac_try_echo=$ac_try;;
9448 esac
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450   (eval "$ac_link") 2>conftest.er1
9451   ac_status=$?
9452   grep -v '^ *+' conftest.er1 >conftest.err
9453   rm -f conftest.er1
9454   cat conftest.err >&5
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); } && {
9457          test -z "$ac_c_werror_flag" ||
9458          test ! -s conftest.err
9459        } && test -s conftest$ac_exeext &&
9460        $as_test_x conftest$ac_exeext; then
9461   ac_cv_func_shl_load=yes
9462 else
9463   echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9465
9466         ac_cv_func_shl_load=no
9467 fi
9468
9469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470       conftest$ac_exeext conftest.$ac_ext
9471 fi
9472 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9473 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9474 if test $ac_cv_func_shl_load = yes; then
9475   lt_cv_dlopen="shl_load"
9476 else
9477   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9478 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9479 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   ac_check_lib_save_LIBS=$LIBS
9483 LIBS="-ldld  $LIBS"
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h.  */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h.  */
9490
9491 /* Override any GCC internal prototype to avoid an error.
9492    Use char because int might match the return type of a GCC
9493    builtin and then its argument prototype would still apply.  */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char shl_load ();
9498 int
9499 main ()
9500 {
9501 return shl_load ();
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9508 case "(($ac_try" in
9509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510   *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513   (eval "$ac_link") 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } && {
9520          test -z "$ac_c_werror_flag" ||
9521          test ! -s conftest.err
9522        } && test -s conftest$ac_exeext &&
9523        $as_test_x conftest$ac_exeext; then
9524   ac_cv_lib_dld_shl_load=yes
9525 else
9526   echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529         ac_cv_lib_dld_shl_load=no
9530 fi
9531
9532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9533       conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
9535 fi
9536 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9537 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9538 if test $ac_cv_lib_dld_shl_load = yes; then
9539   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9540 else
9541   { echo "$as_me:$LINENO: checking for dlopen" >&5
9542 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9543 if test "${ac_cv_func_dlopen+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9554 #define dlopen innocuous_dlopen
9555
9556 /* System header to define __stub macros and hopefully few prototypes,
9557     which can conflict with char dlopen (); below.
9558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559     <limits.h> exists even on freestanding compilers.  */
9560
9561 #ifdef __STDC__
9562 # include <limits.h>
9563 #else
9564 # include <assert.h>
9565 #endif
9566
9567 #undef dlopen
9568
9569 /* Override any GCC internal prototype to avoid an error.
9570    Use char because int might match the return type of a GCC
9571    builtin and then its argument prototype would still apply.  */
9572 #ifdef __cplusplus
9573 extern "C"
9574 #endif
9575 char dlopen ();
9576 /* The GNU C library defines this for functions which it implements
9577     to always fail with ENOSYS.  Some functions are actually named
9578     something starting with __ and the normal name is an alias.  */
9579 #if defined __stub_dlopen || defined __stub___dlopen
9580 choke me
9581 #endif
9582
9583 int
9584 main ()
9585 {
9586 return dlopen ();
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (ac_try="$ac_link"
9593 case "(($ac_try" in
9594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595   *) ac_try_echo=$ac_try;;
9596 esac
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598   (eval "$ac_link") 2>conftest.er1
9599   ac_status=$?
9600   grep -v '^ *+' conftest.er1 >conftest.err
9601   rm -f conftest.er1
9602   cat conftest.err >&5
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); } && {
9605          test -z "$ac_c_werror_flag" ||
9606          test ! -s conftest.err
9607        } && test -s conftest$ac_exeext &&
9608        $as_test_x conftest$ac_exeext; then
9609   ac_cv_func_dlopen=yes
9610 else
9611   echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614         ac_cv_func_dlopen=no
9615 fi
9616
9617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9618       conftest$ac_exeext conftest.$ac_ext
9619 fi
9620 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9621 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9622 if test $ac_cv_func_dlopen = yes; then
9623   lt_cv_dlopen="dlopen"
9624 else
9625   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9626 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9627 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9628   echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630   ac_check_lib_save_LIBS=$LIBS
9631 LIBS="-ldl  $LIBS"
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h.  */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h.  */
9638
9639 /* Override any GCC internal prototype to avoid an error.
9640    Use char because int might match the return type of a GCC
9641    builtin and then its argument prototype would still apply.  */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 char dlopen ();
9646 int
9647 main ()
9648 {
9649 return dlopen ();
9650   ;
9651   return 0;
9652 }
9653 _ACEOF
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9656 case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661   (eval "$ac_link") 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } && {
9668          test -z "$ac_c_werror_flag" ||
9669          test ! -s conftest.err
9670        } && test -s conftest$ac_exeext &&
9671        $as_test_x conftest$ac_exeext; then
9672   ac_cv_lib_dl_dlopen=yes
9673 else
9674   echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677         ac_cv_lib_dl_dlopen=no
9678 fi
9679
9680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681       conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9683 fi
9684 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9685 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9686 if test $ac_cv_lib_dl_dlopen = yes; then
9687   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9688 else
9689   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9690 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9691 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   ac_check_lib_save_LIBS=$LIBS
9695 LIBS="-lsvld  $LIBS"
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h.  */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h.  */
9702
9703 /* Override any GCC internal prototype to avoid an error.
9704    Use char because int might match the return type of a GCC
9705    builtin and then its argument prototype would still apply.  */
9706 #ifdef __cplusplus
9707 extern "C"
9708 #endif
9709 char dlopen ();
9710 int
9711 main ()
9712 {
9713 return dlopen ();
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9720 case "(($ac_try" in
9721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722   *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725   (eval "$ac_link") 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } && {
9732          test -z "$ac_c_werror_flag" ||
9733          test ! -s conftest.err
9734        } && test -s conftest$ac_exeext &&
9735        $as_test_x conftest$ac_exeext; then
9736   ac_cv_lib_svld_dlopen=yes
9737 else
9738   echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741         ac_cv_lib_svld_dlopen=no
9742 fi
9743
9744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745       conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9747 fi
9748 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9749 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9750 if test $ac_cv_lib_svld_dlopen = yes; then
9751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9752 else
9753   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9754 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9755 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   ac_check_lib_save_LIBS=$LIBS
9759 LIBS="-ldld  $LIBS"
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766
9767 /* Override any GCC internal prototype to avoid an error.
9768    Use char because int might match the return type of a GCC
9769    builtin and then its argument prototype would still apply.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char dld_link ();
9774 int
9775 main ()
9776 {
9777 return dld_link ();
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_link") 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } && {
9796          test -z "$ac_c_werror_flag" ||
9797          test ! -s conftest.err
9798        } && test -s conftest$ac_exeext &&
9799        $as_test_x conftest$ac_exeext; then
9800   ac_cv_lib_dld_dld_link=yes
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805         ac_cv_lib_dld_dld_link=no
9806 fi
9807
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809       conftest$ac_exeext conftest.$ac_ext
9810 LIBS=$ac_check_lib_save_LIBS
9811 fi
9812 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9813 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9814 if test $ac_cv_lib_dld_dld_link = yes; then
9815   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9816 fi
9817
9818
9819 fi
9820
9821
9822 fi
9823
9824
9825 fi
9826
9827
9828 fi
9829
9830
9831 fi
9832
9833     ;;
9834   esac
9835
9836   if test "x$lt_cv_dlopen" != xno; then
9837     enable_dlopen=yes
9838   else
9839     enable_dlopen=no
9840   fi
9841
9842   case $lt_cv_dlopen in
9843   dlopen)
9844     save_CPPFLAGS="$CPPFLAGS"
9845     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9846
9847     save_LDFLAGS="$LDFLAGS"
9848     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9849
9850     save_LIBS="$LIBS"
9851     LIBS="$lt_cv_dlopen_libs $LIBS"
9852
9853     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9854 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9855 if test "${lt_cv_dlopen_self+set}" = set; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858           if test "$cross_compiling" = yes; then :
9859   lt_cv_dlopen_self=cross
9860 else
9861   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9862   lt_status=$lt_dlunknown
9863   cat > conftest.$ac_ext <<EOF
9864 #line 9864 "configure"
9865 #include "confdefs.h"
9866
9867 #if HAVE_DLFCN_H
9868 #include <dlfcn.h>
9869 #endif
9870
9871 #include <stdio.h>
9872
9873 #ifdef RTLD_GLOBAL
9874 #  define LT_DLGLOBAL           RTLD_GLOBAL
9875 #else
9876 #  ifdef DL_GLOBAL
9877 #    define LT_DLGLOBAL         DL_GLOBAL
9878 #  else
9879 #    define LT_DLGLOBAL         0
9880 #  endif
9881 #endif
9882
9883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9884    find out it does not work in some platform. */
9885 #ifndef LT_DLLAZY_OR_NOW
9886 #  ifdef RTLD_LAZY
9887 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9888 #  else
9889 #    ifdef DL_LAZY
9890 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9891 #    else
9892 #      ifdef RTLD_NOW
9893 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9894 #      else
9895 #        ifdef DL_NOW
9896 #          define LT_DLLAZY_OR_NOW      DL_NOW
9897 #        else
9898 #          define LT_DLLAZY_OR_NOW      0
9899 #        endif
9900 #      endif
9901 #    endif
9902 #  endif
9903 #endif
9904
9905 #ifdef __cplusplus
9906 extern "C" void exit (int);
9907 #endif
9908
9909 void fnord() { int i=42;}
9910 int main ()
9911 {
9912   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9913   int status = $lt_dlunknown;
9914
9915   if (self)
9916     {
9917       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9918       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9919       /* dlclose (self); */
9920     }
9921   else
9922     puts (dlerror ());
9923
9924     exit (status);
9925 }
9926 EOF
9927   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928   (eval $ac_link) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9932     (./conftest; exit; ) >&5 2>/dev/null
9933     lt_status=$?
9934     case x$lt_status in
9935       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9936       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9937       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9938     esac
9939   else :
9940     # compilation failed
9941     lt_cv_dlopen_self=no
9942   fi
9943 fi
9944 rm -fr conftest*
9945
9946
9947 fi
9948 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9949 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9950
9951     if test "x$lt_cv_dlopen_self" = xyes; then
9952       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9953       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9954 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9955 if test "${lt_cv_dlopen_self_static+set}" = set; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958           if test "$cross_compiling" = yes; then :
9959   lt_cv_dlopen_self_static=cross
9960 else
9961   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9962   lt_status=$lt_dlunknown
9963   cat > conftest.$ac_ext <<EOF
9964 #line 9964 "configure"
9965 #include "confdefs.h"
9966
9967 #if HAVE_DLFCN_H
9968 #include <dlfcn.h>
9969 #endif
9970
9971 #include <stdio.h>
9972
9973 #ifdef RTLD_GLOBAL
9974 #  define LT_DLGLOBAL           RTLD_GLOBAL
9975 #else
9976 #  ifdef DL_GLOBAL
9977 #    define LT_DLGLOBAL         DL_GLOBAL
9978 #  else
9979 #    define LT_DLGLOBAL         0
9980 #  endif
9981 #endif
9982
9983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9984    find out it does not work in some platform. */
9985 #ifndef LT_DLLAZY_OR_NOW
9986 #  ifdef RTLD_LAZY
9987 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9988 #  else
9989 #    ifdef DL_LAZY
9990 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9991 #    else
9992 #      ifdef RTLD_NOW
9993 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9994 #      else
9995 #        ifdef DL_NOW
9996 #          define LT_DLLAZY_OR_NOW      DL_NOW
9997 #        else
9998 #          define LT_DLLAZY_OR_NOW      0
9999 #        endif
10000 #      endif
10001 #    endif
10002 #  endif
10003 #endif
10004
10005 #ifdef __cplusplus
10006 extern "C" void exit (int);
10007 #endif
10008
10009 void fnord() { int i=42;}
10010 int main ()
10011 {
10012   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10013   int status = $lt_dlunknown;
10014
10015   if (self)
10016     {
10017       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10018       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10019       /* dlclose (self); */
10020     }
10021   else
10022     puts (dlerror ());
10023
10024     exit (status);
10025 }
10026 EOF
10027   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028   (eval $ac_link) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10032     (./conftest; exit; ) >&5 2>/dev/null
10033     lt_status=$?
10034     case x$lt_status in
10035       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10036       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10037       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10038     esac
10039   else :
10040     # compilation failed
10041     lt_cv_dlopen_self_static=no
10042   fi
10043 fi
10044 rm -fr conftest*
10045
10046
10047 fi
10048 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10049 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10050     fi
10051
10052     CPPFLAGS="$save_CPPFLAGS"
10053     LDFLAGS="$save_LDFLAGS"
10054     LIBS="$save_LIBS"
10055     ;;
10056   esac
10057
10058   case $lt_cv_dlopen_self in
10059   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10060   *) enable_dlopen_self=unknown ;;
10061   esac
10062
10063   case $lt_cv_dlopen_self_static in
10064   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10065   *) enable_dlopen_self_static=unknown ;;
10066   esac
10067 fi
10068
10069
10070 # Report which library types will actually be built
10071 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10072 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10073 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10074 echo "${ECHO_T}$can_build_shared" >&6; }
10075
10076 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10077 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10078 test "$can_build_shared" = "no" && enable_shared=no
10079
10080 # On AIX, shared libraries and static libraries use the same namespace, and
10081 # are all built from PIC.
10082 case $host_os in
10083 aix3*)
10084   test "$enable_shared" = yes && enable_static=no
10085   if test -n "$RANLIB"; then
10086     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10087     postinstall_cmds='$RANLIB $lib'
10088   fi
10089   ;;
10090
10091 aix4* | aix5*)
10092   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10093     test "$enable_shared" = yes && enable_static=no
10094   fi
10095     ;;
10096 esac
10097 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10098 echo "${ECHO_T}$enable_shared" >&6; }
10099
10100 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10101 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10102 # Make sure either enable_shared or enable_static is yes.
10103 test "$enable_shared" = yes || enable_static=yes
10104 { echo "$as_me:$LINENO: result: $enable_static" >&5
10105 echo "${ECHO_T}$enable_static" >&6; }
10106
10107 # The else clause should only fire when bootstrapping the
10108 # libtool distribution, otherwise you forgot to ship ltmain.sh
10109 # with your package, and you will get complaints that there are
10110 # no rules to generate ltmain.sh.
10111 if test -f "$ltmain"; then
10112   # See if we are running on zsh, and set the options which allow our commands through
10113   # without removal of \ escapes.
10114   if test -n "${ZSH_VERSION+set}" ; then
10115     setopt NO_GLOB_SUBST
10116   fi
10117   # Now quote all the things that may contain metacharacters while being
10118   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10119   # variables and quote the copies for generation of the libtool script.
10120   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10121     SED SHELL STRIP \
10122     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10123     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10124     deplibs_check_method reload_flag reload_cmds need_locks \
10125     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10126     lt_cv_sys_global_symbol_to_c_name_address \
10127     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10128     old_postinstall_cmds old_postuninstall_cmds \
10129     compiler \
10130     CC \
10131     LD \
10132     lt_prog_compiler_wl \
10133     lt_prog_compiler_pic \
10134     lt_prog_compiler_static \
10135     lt_prog_compiler_no_builtin_flag \
10136     export_dynamic_flag_spec \
10137     thread_safe_flag_spec \
10138     whole_archive_flag_spec \
10139     enable_shared_with_static_runtimes \
10140     old_archive_cmds \
10141     old_archive_from_new_cmds \
10142     predep_objects \
10143     postdep_objects \
10144     predeps \
10145     postdeps \
10146     compiler_lib_search_path \
10147     archive_cmds \
10148     archive_expsym_cmds \
10149     postinstall_cmds \
10150     postuninstall_cmds \
10151     old_archive_from_expsyms_cmds \
10152     allow_undefined_flag \
10153     no_undefined_flag \
10154     export_symbols_cmds \
10155     hardcode_libdir_flag_spec \
10156     hardcode_libdir_flag_spec_ld \
10157     hardcode_libdir_separator \
10158     hardcode_automatic \
10159     module_cmds \
10160     module_expsym_cmds \
10161     lt_cv_prog_compiler_c_o \
10162     exclude_expsyms \
10163     include_expsyms; do
10164
10165     case $var in
10166     old_archive_cmds | \
10167     old_archive_from_new_cmds | \
10168     archive_cmds | \
10169     archive_expsym_cmds | \
10170     module_cmds | \
10171     module_expsym_cmds | \
10172     old_archive_from_expsyms_cmds | \
10173     export_symbols_cmds | \
10174     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10175     postinstall_cmds | postuninstall_cmds | \
10176     old_postinstall_cmds | old_postuninstall_cmds | \
10177     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10178       # Double-quote double-evaled strings.
10179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10180       ;;
10181     *)
10182       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10183       ;;
10184     esac
10185   done
10186
10187   case $lt_echo in
10188   *'\$0 --fallback-echo"')
10189     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10190     ;;
10191   esac
10192
10193 cfgfile="${ofile}T"
10194   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10195   $rm -f "$cfgfile"
10196   { echo "$as_me:$LINENO: creating $ofile" >&5
10197 echo "$as_me: creating $ofile" >&6;}
10198
10199   cat <<__EOF__ >> "$cfgfile"
10200 #! $SHELL
10201
10202 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10203 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10204 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10205 #
10206 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10207 # Free Software Foundation, Inc.
10208 #
10209 # This file is part of GNU Libtool:
10210 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10211 #
10212 # This program is free software; you can redistribute it and/or modify
10213 # it under the terms of the GNU General Public License as published by
10214 # the Free Software Foundation; either version 2 of the License, or
10215 # (at your option) any later version.
10216 #
10217 # This program is distributed in the hope that it will be useful, but
10218 # WITHOUT ANY WARRANTY; without even the implied warranty of
10219 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10220 # General Public License for more details.
10221 #
10222 # You should have received a copy of the GNU General Public License
10223 # along with this program; if not, write to the Free Software
10224 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10225 #
10226 # As a special exception to the GNU General Public License, if you
10227 # distribute this file as part of a program that contains a
10228 # configuration script generated by Autoconf, you may include it under
10229 # the same distribution terms that you use for the rest of that program.
10230
10231 # A sed program that does not truncate output.
10232 SED=$lt_SED
10233
10234 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10235 Xsed="$SED -e 1s/^X//"
10236
10237 # The HP-UX ksh and POSIX shell print the target directory to stdout
10238 # if CDPATH is set.
10239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10240
10241 # The names of the tagged configurations supported by this script.
10242 available_tags=
10243
10244 # ### BEGIN LIBTOOL CONFIG
10245
10246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10247
10248 # Shell to use when invoking shell scripts.
10249 SHELL=$lt_SHELL
10250
10251 # Whether or not to build shared libraries.
10252 build_libtool_libs=$enable_shared
10253
10254 # Whether or not to build static libraries.
10255 build_old_libs=$enable_static
10256
10257 # Whether or not to add -lc for building shared libraries.
10258 build_libtool_need_lc=$archive_cmds_need_lc
10259
10260 # Whether or not to disallow shared libs when runtime libs are static
10261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10262
10263 # Whether or not to optimize for fast installation.
10264 fast_install=$enable_fast_install
10265
10266 # The host system.
10267 host_alias=$host_alias
10268 host=$host
10269 host_os=$host_os
10270
10271 # The build system.
10272 build_alias=$build_alias
10273 build=$build
10274 build_os=$build_os
10275
10276 # An echo program that does not interpret backslashes.
10277 echo=$lt_echo
10278
10279 # The archiver.
10280 AR=$lt_AR
10281 AR_FLAGS=$lt_AR_FLAGS
10282
10283 # A C compiler.
10284 LTCC=$lt_LTCC
10285
10286 # LTCC compiler flags.
10287 LTCFLAGS=$lt_LTCFLAGS
10288
10289 # A language-specific compiler.
10290 CC=$lt_compiler
10291
10292 # Is the compiler the GNU C compiler?
10293 with_gcc=$GCC
10294
10295 # An ERE matcher.
10296 EGREP=$lt_EGREP
10297
10298 # The linker used to build libraries.
10299 LD=$lt_LD
10300
10301 # Whether we need hard or soft links.
10302 LN_S=$lt_LN_S
10303
10304 # A BSD-compatible nm program.
10305 NM=$lt_NM
10306
10307 # A symbol stripping program
10308 STRIP=$lt_STRIP
10309
10310 # Used to examine libraries when file_magic_cmd begins "file"
10311 MAGIC_CMD=$MAGIC_CMD
10312
10313 # Used on cygwin: DLL creation program.
10314 DLLTOOL="$DLLTOOL"
10315
10316 # Used on cygwin: object dumper.
10317 OBJDUMP="$OBJDUMP"
10318
10319 # Used on cygwin: assembler.
10320 AS="$AS"
10321
10322 # The name of the directory that contains temporary libtool files.
10323 objdir=$objdir
10324
10325 # How to create reloadable object files.
10326 reload_flag=$lt_reload_flag
10327 reload_cmds=$lt_reload_cmds
10328
10329 # How to pass a linker flag through the compiler.
10330 wl=$lt_lt_prog_compiler_wl
10331
10332 # Object file suffix (normally "o").
10333 objext="$ac_objext"
10334
10335 # Old archive suffix (normally "a").
10336 libext="$libext"
10337
10338 # Shared library suffix (normally ".so").
10339 shrext_cmds='$shrext_cmds'
10340
10341 # Executable file suffix (normally "").
10342 exeext="$exeext"
10343
10344 # Additional compiler flags for building library objects.
10345 pic_flag=$lt_lt_prog_compiler_pic
10346 pic_mode=$pic_mode
10347
10348 # What is the maximum length of a command?
10349 max_cmd_len=$lt_cv_sys_max_cmd_len
10350
10351 # Does compiler simultaneously support -c and -o options?
10352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10353
10354 # Must we lock files when doing compilation?
10355 need_locks=$lt_need_locks
10356
10357 # Do we need the lib prefix for modules?
10358 need_lib_prefix=$need_lib_prefix
10359
10360 # Do we need a version for libraries?
10361 need_version=$need_version
10362
10363 # Whether dlopen is supported.
10364 dlopen_support=$enable_dlopen
10365
10366 # Whether dlopen of programs is supported.
10367 dlopen_self=$enable_dlopen_self
10368
10369 # Whether dlopen of statically linked programs is supported.
10370 dlopen_self_static=$enable_dlopen_self_static
10371
10372 # Compiler flag to prevent dynamic linking.
10373 link_static_flag=$lt_lt_prog_compiler_static
10374
10375 # Compiler flag to turn off builtin functions.
10376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10377
10378 # Compiler flag to allow reflexive dlopens.
10379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10380
10381 # Compiler flag to generate shared objects directly from archives.
10382 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10383
10384 # Compiler flag to generate thread-safe objects.
10385 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10386
10387 # Library versioning type.
10388 version_type=$version_type
10389
10390 # Format of library name prefix.
10391 libname_spec=$lt_libname_spec
10392
10393 # List of archive names.  First name is the real one, the rest are links.
10394 # The last name is the one that the linker finds with -lNAME.
10395 library_names_spec=$lt_library_names_spec
10396
10397 # The coded name of the library, if different from the real name.
10398 soname_spec=$lt_soname_spec
10399
10400 # Commands used to build and install an old-style archive.
10401 RANLIB=$lt_RANLIB
10402 old_archive_cmds=$lt_old_archive_cmds
10403 old_postinstall_cmds=$lt_old_postinstall_cmds
10404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10405
10406 # Create an old-style archive from a shared archive.
10407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10408
10409 # Create a temporary old-style archive to link instead of a shared archive.
10410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10411
10412 # Commands used to build and install a shared archive.
10413 archive_cmds=$lt_archive_cmds
10414 archive_expsym_cmds=$lt_archive_expsym_cmds
10415 postinstall_cmds=$lt_postinstall_cmds
10416 postuninstall_cmds=$lt_postuninstall_cmds
10417
10418 # Commands used to build a loadable module (assumed same as above if empty)
10419 module_cmds=$lt_module_cmds
10420 module_expsym_cmds=$lt_module_expsym_cmds
10421
10422 # Commands to strip libraries.
10423 old_striplib=$lt_old_striplib
10424 striplib=$lt_striplib
10425
10426 # Dependencies to place before the objects being linked to create a
10427 # shared library.
10428 predep_objects=$lt_predep_objects
10429
10430 # Dependencies to place after the objects being linked to create a
10431 # shared library.
10432 postdep_objects=$lt_postdep_objects
10433
10434 # Dependencies to place before the objects being linked to create a
10435 # shared library.
10436 predeps=$lt_predeps
10437
10438 # Dependencies to place after the objects being linked to create a
10439 # shared library.
10440 postdeps=$lt_postdeps
10441
10442 # The library search path used internally by the compiler when linking
10443 # a shared library.
10444 compiler_lib_search_path=$lt_compiler_lib_search_path
10445
10446 # Method to check whether dependent libraries are shared objects.
10447 deplibs_check_method=$lt_deplibs_check_method
10448
10449 # Command to use when deplibs_check_method == file_magic.
10450 file_magic_cmd=$lt_file_magic_cmd
10451
10452 # Flag that allows shared libraries with undefined symbols to be built.
10453 allow_undefined_flag=$lt_allow_undefined_flag
10454
10455 # Flag that forces no undefined symbols.
10456 no_undefined_flag=$lt_no_undefined_flag
10457
10458 # Commands used to finish a libtool library installation in a directory.
10459 finish_cmds=$lt_finish_cmds
10460
10461 # Same as above, but a single script fragment to be evaled but not shown.
10462 finish_eval=$lt_finish_eval
10463
10464 # Take the output of nm and produce a listing of raw symbols and C names.
10465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10466
10467 # Transform the output of nm in a proper C declaration
10468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10469
10470 # Transform the output of nm in a C name address pair
10471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10472
10473 # This is the shared library runtime path variable.
10474 runpath_var=$runpath_var
10475
10476 # This is the shared library path variable.
10477 shlibpath_var=$shlibpath_var
10478
10479 # Is shlibpath searched before the hard-coded library search path?
10480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10481
10482 # How to hardcode a shared library path into an executable.
10483 hardcode_action=$hardcode_action
10484
10485 # Whether we should hardcode library paths into libraries.
10486 hardcode_into_libs=$hardcode_into_libs
10487
10488 # Flag to hardcode \$libdir into a binary during linking.
10489 # This must work even if \$libdir does not exist.
10490 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10491
10492 # If ld is used when linking, flag to hardcode \$libdir into
10493 # a binary during linking. This must work even if \$libdir does
10494 # not exist.
10495 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10496
10497 # Whether we need a single -rpath flag with a separated argument.
10498 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10499
10500 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10501 # resulting binary.
10502 hardcode_direct=$hardcode_direct
10503
10504 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10505 # resulting binary.
10506 hardcode_minus_L=$hardcode_minus_L
10507
10508 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10509 # the resulting binary.
10510 hardcode_shlibpath_var=$hardcode_shlibpath_var
10511
10512 # Set to yes if building a shared library automatically hardcodes DIR into the library
10513 # and all subsequent libraries and executables linked against it.
10514 hardcode_automatic=$hardcode_automatic
10515
10516 # Variables whose values should be saved in libtool wrapper scripts and
10517 # restored at relink time.
10518 variables_saved_for_relink="$variables_saved_for_relink"
10519
10520 # Whether libtool must link a program against all its dependency libraries.
10521 link_all_deplibs=$link_all_deplibs
10522
10523 # Compile-time system search path for libraries
10524 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10525
10526 # Run-time system search path for libraries
10527 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10528
10529 # Fix the shell variable \$srcfile for the compiler.
10530 fix_srcfile_path="$fix_srcfile_path"
10531
10532 # Set to yes if exported symbols are required.
10533 always_export_symbols=$always_export_symbols
10534
10535 # The commands to list exported symbols.
10536 export_symbols_cmds=$lt_export_symbols_cmds
10537
10538 # The commands to extract the exported symbol list from a shared archive.
10539 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10540
10541 # Symbols that should not be listed in the preloaded symbols.
10542 exclude_expsyms=$lt_exclude_expsyms
10543
10544 # Symbols that must always be exported.
10545 include_expsyms=$lt_include_expsyms
10546
10547 # ### END LIBTOOL CONFIG
10548
10549 __EOF__
10550
10551
10552   case $host_os in
10553   aix3*)
10554     cat <<\EOF >> "$cfgfile"
10555
10556 # AIX sometimes has problems with the GCC collect2 program.  For some
10557 # reason, if we set the COLLECT_NAMES environment variable, the problems
10558 # vanish in a puff of smoke.
10559 if test "X${COLLECT_NAMES+set}" != Xset; then
10560   COLLECT_NAMES=
10561   export COLLECT_NAMES
10562 fi
10563 EOF
10564     ;;
10565   esac
10566
10567   # We use sed instead of cat because bash on DJGPP gets confused if
10568   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10569   # text mode, it properly converts lines to CR/LF.  This bash problem
10570   # is reportedly fixed, but why not run on old versions too?
10571   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10572
10573   mv -f "$cfgfile" "$ofile" || \
10574     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10575   chmod +x "$ofile"
10576
10577 else
10578   # If there is no Makefile yet, we rely on a make rule to execute
10579   # `config.status --recheck' to rerun these tests and create the
10580   # libtool script then.
10581   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10582   if test -f "$ltmain_in"; then
10583     test -f Makefile && make "$ltmain"
10584   fi
10585 fi
10586
10587
10588 ac_ext=c
10589 ac_cpp='$CPP $CPPFLAGS'
10590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10593
10594 CC="$lt_save_CC"
10595
10596
10597 # Check whether --with-tags was given.
10598 if test "${with_tags+set}" = set; then
10599   withval=$with_tags; tagnames="$withval"
10600 fi
10601
10602
10603 if test -f "$ltmain" && test -n "$tagnames"; then
10604   if test ! -f "${ofile}"; then
10605     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10606 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10607   fi
10608
10609   if test -z "$LTCC"; then
10610     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10611     if test -z "$LTCC"; then
10612       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10613 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10614     else
10615       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10616 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10617     fi
10618   fi
10619   if test -z "$LTCFLAGS"; then
10620     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10621   fi
10622
10623   # Extract list of available tagged configurations in $ofile.
10624   # Note that this assumes the entire list is on one line.
10625   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10626
10627   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10628   for tagname in $tagnames; do
10629     IFS="$lt_save_ifs"
10630     # Check whether tagname contains only valid characters
10631     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10632     "") ;;
10633     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10634 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10635    { (exit 1); exit 1; }; }
10636         ;;
10637     esac
10638
10639     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10640     then
10641       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10642 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10643    { (exit 1); exit 1; }; }
10644     fi
10645
10646     # Update the list of available tags.
10647     if test -n "$tagname"; then
10648       echo appending configuration tag \"$tagname\" to $ofile
10649
10650       case $tagname in
10651       CXX)
10652         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10653             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10654             (test "X$CXX" != "Xg++"))) ; then
10655           ac_ext=cpp
10656 ac_cpp='$CXXCPP $CPPFLAGS'
10657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10660
10661
10662
10663
10664 archive_cmds_need_lc_CXX=no
10665 allow_undefined_flag_CXX=
10666 always_export_symbols_CXX=no
10667 archive_expsym_cmds_CXX=
10668 export_dynamic_flag_spec_CXX=
10669 hardcode_direct_CXX=no
10670 hardcode_libdir_flag_spec_CXX=
10671 hardcode_libdir_flag_spec_ld_CXX=
10672 hardcode_libdir_separator_CXX=
10673 hardcode_minus_L_CXX=no
10674 hardcode_shlibpath_var_CXX=unsupported
10675 hardcode_automatic_CXX=no
10676 module_cmds_CXX=
10677 module_expsym_cmds_CXX=
10678 link_all_deplibs_CXX=unknown
10679 old_archive_cmds_CXX=$old_archive_cmds
10680 no_undefined_flag_CXX=
10681 whole_archive_flag_spec_CXX=
10682 enable_shared_with_static_runtimes_CXX=no
10683
10684 # Dependencies to place before and after the object being linked:
10685 predep_objects_CXX=
10686 postdep_objects_CXX=
10687 predeps_CXX=
10688 postdeps_CXX=
10689 compiler_lib_search_path_CXX=
10690
10691 # Source file extension for C++ test sources.
10692 ac_ext=cpp
10693
10694 # Object file extension for compiled C++ test sources.
10695 objext=o
10696 objext_CXX=$objext
10697
10698 # Code to be used in simple compile tests
10699 lt_simple_compile_test_code="int some_variable = 0;\n"
10700
10701 # Code to be used in simple link tests
10702 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10703
10704 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10705
10706 # If no C compiler was specified, use CC.
10707 LTCC=${LTCC-"$CC"}
10708
10709 # If no C compiler flags were specified, use CFLAGS.
10710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10711
10712 # Allow CC to be a program name with arguments.
10713 compiler=$CC
10714
10715
10716 # save warnings/boilerplate of simple test code
10717 ac_outfile=conftest.$ac_objext
10718 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10719 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10720 _lt_compiler_boilerplate=`cat conftest.err`
10721 $rm conftest*
10722
10723 ac_outfile=conftest.$ac_objext
10724 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10725 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10726 _lt_linker_boilerplate=`cat conftest.err`
10727 $rm conftest*
10728
10729
10730 # Allow CC to be a program name with arguments.
10731 lt_save_CC=$CC
10732 lt_save_LD=$LD
10733 lt_save_GCC=$GCC
10734 GCC=$GXX
10735 lt_save_with_gnu_ld=$with_gnu_ld
10736 lt_save_path_LD=$lt_cv_path_LD
10737 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10738   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10739 else
10740   $as_unset lt_cv_prog_gnu_ld
10741 fi
10742 if test -n "${lt_cv_path_LDCXX+set}"; then
10743   lt_cv_path_LD=$lt_cv_path_LDCXX
10744 else
10745   $as_unset lt_cv_path_LD
10746 fi
10747 test -z "${LDCXX+set}" || LD=$LDCXX
10748 CC=${CXX-"c++"}
10749 compiler=$CC
10750 compiler_CXX=$CC
10751 for cc_temp in $compiler""; do
10752   case $cc_temp in
10753     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10754     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10755     \-*) ;;
10756     *) break;;
10757   esac
10758 done
10759 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10760
10761
10762 # We don't want -fno-exception wen compiling C++ code, so set the
10763 # no_builtin_flag separately
10764 if test "$GXX" = yes; then
10765   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10766 else
10767   lt_prog_compiler_no_builtin_flag_CXX=
10768 fi
10769
10770 if test "$GXX" = yes; then
10771   # Set up default GNU C++ configuration
10772
10773
10774 # Check whether --with-gnu-ld was given.
10775 if test "${with_gnu_ld+set}" = set; then
10776   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10777 else
10778   with_gnu_ld=no
10779 fi
10780
10781 ac_prog=ld
10782 if test "$GCC" = yes; then
10783   # Check if gcc -print-prog-name=ld gives a path.
10784   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10785 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10786   case $host in
10787   *-*-mingw*)
10788     # gcc leaves a trailing carriage return which upsets mingw
10789     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10790   *)
10791     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10792   esac
10793   case $ac_prog in
10794     # Accept absolute paths.
10795     [\\/]* | ?:[\\/]*)
10796       re_direlt='/[^/][^/]*/\.\./'
10797       # Canonicalize the pathname of ld
10798       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10799       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10800         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10801       done
10802       test -z "$LD" && LD="$ac_prog"
10803       ;;
10804   "")
10805     # If it fails, then pretend we aren't using GCC.
10806     ac_prog=ld
10807     ;;
10808   *)
10809     # If it is relative, then search for the first ld in PATH.
10810     with_gnu_ld=unknown
10811     ;;
10812   esac
10813 elif test "$with_gnu_ld" = yes; then
10814   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10815 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10816 else
10817   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10818 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10819 fi
10820 if test "${lt_cv_path_LD+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   if test -z "$LD"; then
10824   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10825   for ac_dir in $PATH; do
10826     IFS="$lt_save_ifs"
10827     test -z "$ac_dir" && ac_dir=.
10828     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10829       lt_cv_path_LD="$ac_dir/$ac_prog"
10830       # Check to see if the program is GNU ld.  I'd rather use --version,
10831       # but apparently some variants of GNU ld only accept -v.
10832       # Break only if it was the GNU/non-GNU ld that we prefer.
10833       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10834       *GNU* | *'with BFD'*)
10835         test "$with_gnu_ld" != no && break
10836         ;;
10837       *)
10838         test "$with_gnu_ld" != yes && break
10839         ;;
10840       esac
10841     fi
10842   done
10843   IFS="$lt_save_ifs"
10844 else
10845   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10846 fi
10847 fi
10848
10849 LD="$lt_cv_path_LD"
10850 if test -n "$LD"; then
10851   { echo "$as_me:$LINENO: result: $LD" >&5
10852 echo "${ECHO_T}$LD" >&6; }
10853 else
10854   { echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6; }
10856 fi
10857 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10858 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10859    { (exit 1); exit 1; }; }
10860 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10861 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10862 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10863   echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10866 case `$LD -v 2>&1 </dev/null` in
10867 *GNU* | *'with BFD'*)
10868   lt_cv_prog_gnu_ld=yes
10869   ;;
10870 *)
10871   lt_cv_prog_gnu_ld=no
10872   ;;
10873 esac
10874 fi
10875 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10876 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10877 with_gnu_ld=$lt_cv_prog_gnu_ld
10878
10879
10880
10881   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10882   # archiving commands below assume that GNU ld is being used.
10883   if test "$with_gnu_ld" = yes; then
10884     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885     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'
10886
10887     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10888     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10889
10890     # If archive_cmds runs LD, not CC, wlarc should be empty
10891     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10892     #     investigate it a little bit more. (MM)
10893     wlarc='${wl}'
10894
10895     # ancient GNU ld didn't support --whole-archive et. al.
10896     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10897         grep 'no-whole-archive' > /dev/null; then
10898       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10899     else
10900       whole_archive_flag_spec_CXX=
10901     fi
10902   else
10903     with_gnu_ld=no
10904     wlarc=
10905
10906     # A generic and very simple default shared library creation
10907     # command for GNU C++ for the case where it uses the native
10908     # linker, instead of GNU ld.  If possible, this setting should
10909     # overridden to take advantage of the native linker features on
10910     # the platform it is being used on.
10911     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10912   fi
10913
10914   # Commands to make compiler produce verbose output that lists
10915   # what "hidden" libraries, object files and flags are used when
10916   # linking a shared library.
10917   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10918
10919 else
10920   GXX=no
10921   with_gnu_ld=no
10922   wlarc=
10923 fi
10924
10925 # PORTME: fill in a description of your system's C++ link characteristics
10926 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10927 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10928 ld_shlibs_CXX=yes
10929 case $host_os in
10930   aix3*)
10931     # FIXME: insert proper C++ library support
10932     ld_shlibs_CXX=no
10933     ;;
10934   aix4* | aix5*)
10935     if test "$host_cpu" = ia64; then
10936       # On IA64, the linker does run time linking by default, so we don't
10937       # have to do anything special.
10938       aix_use_runtimelinking=no
10939       exp_sym_flag='-Bexport'
10940       no_entry_flag=""
10941     else
10942       aix_use_runtimelinking=no
10943
10944       # Test if we are trying to use run time linking or normal
10945       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10946       # need to do runtime linking.
10947       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10948         for ld_flag in $LDFLAGS; do
10949           case $ld_flag in
10950           *-brtl*)
10951             aix_use_runtimelinking=yes
10952             break
10953             ;;
10954           esac
10955         done
10956         ;;
10957       esac
10958
10959       exp_sym_flag='-bexport'
10960       no_entry_flag='-bnoentry'
10961     fi
10962
10963     # When large executables or shared objects are built, AIX ld can
10964     # have problems creating the table of contents.  If linking a library
10965     # or program results in "error TOC overflow" add -mminimal-toc to
10966     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10967     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10968
10969     archive_cmds_CXX=''
10970     hardcode_direct_CXX=yes
10971     hardcode_libdir_separator_CXX=':'
10972     link_all_deplibs_CXX=yes
10973
10974     if test "$GXX" = yes; then
10975       case $host_os in aix4.[012]|aix4.[012].*)
10976       # We only want to do this on AIX 4.2 and lower, the check
10977       # below for broken collect2 doesn't work under 4.3+
10978         collect2name=`${CC} -print-prog-name=collect2`
10979         if test -f "$collect2name" && \
10980            strings "$collect2name" | grep resolve_lib_name >/dev/null
10981         then
10982           # We have reworked collect2
10983           hardcode_direct_CXX=yes
10984         else
10985           # We have old collect2
10986           hardcode_direct_CXX=unsupported
10987           # It fails to find uninstalled libraries when the uninstalled
10988           # path is not listed in the libpath.  Setting hardcode_minus_L
10989           # to unsupported forces relinking
10990           hardcode_minus_L_CXX=yes
10991           hardcode_libdir_flag_spec_CXX='-L$libdir'
10992           hardcode_libdir_separator_CXX=
10993         fi
10994         ;;
10995       esac
10996       shared_flag='-shared'
10997       if test "$aix_use_runtimelinking" = yes; then
10998         shared_flag="$shared_flag "'${wl}-G'
10999       fi
11000     else
11001       # not using gcc
11002       if test "$host_cpu" = ia64; then
11003         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11004         # chokes on -Wl,-G. The following line is correct:
11005         shared_flag='-G'
11006       else
11007         if test "$aix_use_runtimelinking" = yes; then
11008           shared_flag='${wl}-G'
11009         else
11010           shared_flag='${wl}-bM:SRE'
11011         fi
11012       fi
11013     fi
11014
11015     # It seems that -bexpall does not export symbols beginning with
11016     # underscore (_), so it is better to generate a list of symbols to export.
11017     always_export_symbols_CXX=yes
11018     if test "$aix_use_runtimelinking" = yes; then
11019       # Warning - without using the other runtime loading flags (-brtl),
11020       # -berok will link without error, but may produce a broken library.
11021       allow_undefined_flag_CXX='-berok'
11022       # Determine the default libpath from the value encoded in an empty executable.
11023       cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029
11030 int
11031 main ()
11032 {
11033
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_link") 2>conftest.er1
11046   ac_status=$?
11047   grep -v '^ *+' conftest.er1 >conftest.err
11048   rm -f conftest.er1
11049   cat conftest.err >&5
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } && {
11052          test -z "$ac_cxx_werror_flag" ||
11053          test ! -s conftest.err
11054        } && test -s conftest$ac_exeext &&
11055        $as_test_x conftest$ac_exeext; then
11056
11057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11058 }'`
11059 # Check for a 64-bit object if we didn't find anything.
11060 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11061 }'`; fi
11062 else
11063   echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11065
11066
11067 fi
11068
11069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11070       conftest$ac_exeext conftest.$ac_ext
11071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11072
11073       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11074
11075       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"
11076      else
11077       if test "$host_cpu" = ia64; then
11078         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11079         allow_undefined_flag_CXX="-z nodefs"
11080         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"
11081       else
11082         # Determine the default libpath from the value encoded in an empty executable.
11083         cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h.  */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h.  */
11089
11090 int
11091 main ()
11092 {
11093
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (ac_try="$ac_link"
11100 case "(($ac_try" in
11101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102   *) ac_try_echo=$ac_try;;
11103 esac
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105   (eval "$ac_link") 2>conftest.er1
11106   ac_status=$?
11107   grep -v '^ *+' conftest.er1 >conftest.err
11108   rm -f conftest.er1
11109   cat conftest.err >&5
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); } && {
11112          test -z "$ac_cxx_werror_flag" ||
11113          test ! -s conftest.err
11114        } && test -s conftest$ac_exeext &&
11115        $as_test_x conftest$ac_exeext; then
11116
11117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11118 }'`
11119 # Check for a 64-bit object if we didn't find anything.
11120 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11121 }'`; fi
11122 else
11123   echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126
11127 fi
11128
11129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11130       conftest$ac_exeext conftest.$ac_ext
11131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11132
11133         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11134         # Warning - without using the other run time loading flags,
11135         # -berok will link without error, but may produce a broken library.
11136         no_undefined_flag_CXX=' ${wl}-bernotok'
11137         allow_undefined_flag_CXX=' ${wl}-berok'
11138         # Exported symbols can be pulled into shared objects from archives
11139         whole_archive_flag_spec_CXX='$convenience'
11140         archive_cmds_need_lc_CXX=yes
11141         # This is similar to how AIX traditionally builds its shared libraries.
11142         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'
11143       fi
11144     fi
11145     ;;
11146
11147   beos*)
11148     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11149       allow_undefined_flag_CXX=unsupported
11150       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11151       # support --undefined.  This deserves some investigation.  FIXME
11152       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11153     else
11154       ld_shlibs_CXX=no
11155     fi
11156     ;;
11157
11158   chorus*)
11159     case $cc_basename in
11160       *)
11161         # FIXME: insert proper C++ library support
11162         ld_shlibs_CXX=no
11163         ;;
11164     esac
11165     ;;
11166
11167   cygwin* | mingw* | pw32*)
11168     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11169     # as there is no search path for DLLs.
11170     hardcode_libdir_flag_spec_CXX='-L$libdir'
11171     allow_undefined_flag_CXX=unsupported
11172     always_export_symbols_CXX=no
11173     enable_shared_with_static_runtimes_CXX=yes
11174
11175     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11176       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'
11177       # If the export-symbols file already is a .def file (1st line
11178       # is EXPORTS), use it as is; otherwise, prepend...
11179       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11180         cp $export_symbols $output_objdir/$soname.def;
11181       else
11182         echo EXPORTS > $output_objdir/$soname.def;
11183         cat $export_symbols >> $output_objdir/$soname.def;
11184       fi~
11185       $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'
11186     else
11187       ld_shlibs_CXX=no
11188     fi
11189   ;;
11190       darwin* | rhapsody*)
11191         case $host_os in
11192         rhapsody* | darwin1.[012])
11193          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11194          ;;
11195        *) # Darwin 1.3 on
11196          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11197            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11198          else
11199            case ${MACOSX_DEPLOYMENT_TARGET} in
11200              10.[012])
11201                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11202                ;;
11203              10.*)
11204                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11205                ;;
11206            esac
11207          fi
11208          ;;
11209         esac
11210       archive_cmds_need_lc_CXX=no
11211       hardcode_direct_CXX=no
11212       hardcode_automatic_CXX=yes
11213       hardcode_shlibpath_var_CXX=unsupported
11214       whole_archive_flag_spec_CXX=''
11215       link_all_deplibs_CXX=yes
11216
11217     if test "$GXX" = yes ; then
11218       lt_int_apple_cc_single_mod=no
11219       output_verbose_link_cmd='echo'
11220       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11221        lt_int_apple_cc_single_mod=yes
11222       fi
11223       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11224        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11225       else
11226           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'
11227         fi
11228         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11229         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11230           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11231             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11232           else
11233             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11234           fi
11235             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}'
11236       else
11237       case $cc_basename in
11238         xlc*)
11239          output_verbose_link_cmd='echo'
11240           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11241           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11242           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11243           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11244           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}'
11245           ;;
11246        *)
11247          ld_shlibs_CXX=no
11248           ;;
11249       esac
11250       fi
11251         ;;
11252
11253   dgux*)
11254     case $cc_basename in
11255       ec++*)
11256         # FIXME: insert proper C++ library support
11257         ld_shlibs_CXX=no
11258         ;;
11259       ghcx*)
11260         # Green Hills C++ Compiler
11261         # FIXME: insert proper C++ library support
11262         ld_shlibs_CXX=no
11263         ;;
11264       *)
11265         # FIXME: insert proper C++ library support
11266         ld_shlibs_CXX=no
11267         ;;
11268     esac
11269     ;;
11270   freebsd[12]*)
11271     # C++ shared libraries reported to be fairly broken before switch to ELF
11272     ld_shlibs_CXX=no
11273     ;;
11274   freebsd-elf*)
11275     archive_cmds_need_lc_CXX=no
11276     ;;
11277   freebsd* | dragonfly*)
11278     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11279     # conventions
11280     ld_shlibs_CXX=yes
11281     ;;
11282   gnu*)
11283     ;;
11284   hpux9*)
11285     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11286     hardcode_libdir_separator_CXX=:
11287     export_dynamic_flag_spec_CXX='${wl}-E'
11288     hardcode_direct_CXX=yes
11289     hardcode_minus_L_CXX=yes # Not in the search PATH,
11290                                 # but as the default
11291                                 # location of the library.
11292
11293     case $cc_basename in
11294     CC*)
11295       # FIXME: insert proper C++ library support
11296       ld_shlibs_CXX=no
11297       ;;
11298     aCC*)
11299       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'
11300       # Commands to make compiler produce verbose output that lists
11301       # what "hidden" libraries, object files and flags are used when
11302       # linking a shared library.
11303       #
11304       # There doesn't appear to be a way to prevent this compiler from
11305       # explicitly linking system object files so we need to strip them
11306       # from the output so that they don't get included in the library
11307       # dependencies.
11308       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'
11309       ;;
11310     *)
11311       if test "$GXX" = yes; then
11312         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'
11313       else
11314         # FIXME: insert proper C++ library support
11315         ld_shlibs_CXX=no
11316       fi
11317       ;;
11318     esac
11319     ;;
11320   hpux10*|hpux11*)
11321     if test $with_gnu_ld = no; then
11322       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11323       hardcode_libdir_separator_CXX=:
11324
11325       case $host_cpu in
11326       hppa*64*|ia64*)
11327         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11328         ;;
11329       *)
11330         export_dynamic_flag_spec_CXX='${wl}-E'
11331         ;;
11332       esac
11333     fi
11334     case $host_cpu in
11335     hppa*64*|ia64*)
11336       hardcode_direct_CXX=no
11337       hardcode_shlibpath_var_CXX=no
11338       ;;
11339     *)
11340       hardcode_direct_CXX=yes
11341       hardcode_minus_L_CXX=yes # Not in the search PATH,
11342                                               # but as the default
11343                                               # location of the library.
11344       ;;
11345     esac
11346
11347     case $cc_basename in
11348       CC*)
11349         # FIXME: insert proper C++ library support
11350         ld_shlibs_CXX=no
11351         ;;
11352       aCC*)
11353         case $host_cpu in
11354         hppa*64*)
11355           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11356           ;;
11357         ia64*)
11358           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11359           ;;
11360         *)
11361           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11362           ;;
11363         esac
11364         # Commands to make compiler produce verbose output that lists
11365         # what "hidden" libraries, object files and flags are used when
11366         # linking a shared library.
11367         #
11368         # There doesn't appear to be a way to prevent this compiler from
11369         # explicitly linking system object files so we need to strip them
11370         # from the output so that they don't get included in the library
11371         # dependencies.
11372         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'
11373         ;;
11374       *)
11375         if test "$GXX" = yes; then
11376           if test $with_gnu_ld = no; then
11377             case $host_cpu in
11378             hppa*64*)
11379               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11380               ;;
11381             ia64*)
11382               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11383               ;;
11384             *)
11385               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'
11386               ;;
11387             esac
11388           fi
11389         else
11390           # FIXME: insert proper C++ library support
11391           ld_shlibs_CXX=no
11392         fi
11393         ;;
11394     esac
11395     ;;
11396   interix3*)
11397     hardcode_direct_CXX=no
11398     hardcode_shlibpath_var_CXX=no
11399     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11400     export_dynamic_flag_spec_CXX='${wl}-E'
11401     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11402     # Instead, shared libraries are loaded at an image base (0x10000000 by
11403     # default) and relocated if they conflict, which is a slow very memory
11404     # consuming and fragmenting process.  To avoid this, we pick a random,
11405     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11406     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11407     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'
11408     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'
11409     ;;
11410   irix5* | irix6*)
11411     case $cc_basename in
11412       CC*)
11413         # SGI C++
11414         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'
11415
11416         # Archives containing C++ object files must be created using
11417         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11418         # necessary to make sure instantiated templates are included
11419         # in the archive.
11420         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11421         ;;
11422       *)
11423         if test "$GXX" = yes; then
11424           if test "$with_gnu_ld" = no; then
11425             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'
11426           else
11427             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'
11428           fi
11429         fi
11430         link_all_deplibs_CXX=yes
11431         ;;
11432     esac
11433     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11434     hardcode_libdir_separator_CXX=:
11435     ;;
11436   linux* | k*bsd*-gnu)
11437     case $cc_basename in
11438       KCC*)
11439         # Kuck and Associates, Inc. (KAI) C++ Compiler
11440
11441         # KCC will only create a shared library if the output file
11442         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11443         # to its proper name (with version) after linking.
11444         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'
11445         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'
11446         # Commands to make compiler produce verbose output that lists
11447         # what "hidden" libraries, object files and flags are used when
11448         # linking a shared library.
11449         #
11450         # There doesn't appear to be a way to prevent this compiler from
11451         # explicitly linking system object files so we need to strip them
11452         # from the output so that they don't get included in the library
11453         # dependencies.
11454         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'
11455
11456         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11457         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11458
11459         # Archives containing C++ object files must be created using
11460         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11461         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11462         ;;
11463       icpc*)
11464         # Intel C++
11465         with_gnu_ld=yes
11466         # version 8.0 and above of icpc choke on multiply defined symbols
11467         # if we add $predep_objects and $postdep_objects, however 7.1 and
11468         # earlier do not add the objects themselves.
11469         case `$CC -V 2>&1` in
11470         *"Version 7."*)
11471           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472           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'
11473           ;;
11474         *)  # Version 8.0 or newer
11475           tmp_idyn=
11476           case $host_cpu in
11477             ia64*) tmp_idyn=' -i_dynamic';;
11478           esac
11479           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480           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'
11481           ;;
11482         esac
11483         archive_cmds_need_lc_CXX=no
11484         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11485         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11487         ;;
11488       pgCC*)
11489         # Portland Group C++ compiler
11490         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11491         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'
11492
11493         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11494         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11495         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'
11496         ;;
11497       cxx*)
11498         # Compaq C++
11499         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500         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'
11501
11502         runpath_var=LD_RUN_PATH
11503         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11504         hardcode_libdir_separator_CXX=:
11505
11506         # Commands to make compiler produce verbose output that lists
11507         # what "hidden" libraries, object files and flags are used when
11508         # linking a shared library.
11509         #
11510         # There doesn't appear to be a way to prevent this compiler from
11511         # explicitly linking system object files so we need to strip them
11512         # from the output so that they don't get included in the library
11513         # dependencies.
11514         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'
11515         ;;
11516     esac
11517     ;;
11518   lynxos*)
11519     # FIXME: insert proper C++ library support
11520     ld_shlibs_CXX=no
11521     ;;
11522   m88k*)
11523     # FIXME: insert proper C++ library support
11524     ld_shlibs_CXX=no
11525     ;;
11526   mvs*)
11527     case $cc_basename in
11528       cxx*)
11529         # FIXME: insert proper C++ library support
11530         ld_shlibs_CXX=no
11531         ;;
11532       *)
11533         # FIXME: insert proper C++ library support
11534         ld_shlibs_CXX=no
11535         ;;
11536     esac
11537     ;;
11538   netbsd* | netbsdelf*-gnu)
11539     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11540       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11541       wlarc=
11542       hardcode_libdir_flag_spec_CXX='-R$libdir'
11543       hardcode_direct_CXX=yes
11544       hardcode_shlibpath_var_CXX=no
11545     fi
11546     # Workaround some broken pre-1.5 toolchains
11547     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11548     ;;
11549   openbsd2*)
11550     # C++ shared libraries are fairly broken
11551     ld_shlibs_CXX=no
11552     ;;
11553   openbsd*)
11554     hardcode_direct_CXX=yes
11555     hardcode_shlibpath_var_CXX=no
11556     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11557     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11558     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11559       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11560       export_dynamic_flag_spec_CXX='${wl}-E'
11561       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11562     fi
11563     output_verbose_link_cmd='echo'
11564     ;;
11565   osf3*)
11566     case $cc_basename in
11567       KCC*)
11568         # Kuck and Associates, Inc. (KAI) C++ Compiler
11569
11570         # KCC will only create a shared library if the output file
11571         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11572         # to its proper name (with version) after linking.
11573         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'
11574
11575         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11576         hardcode_libdir_separator_CXX=:
11577
11578         # Archives containing C++ object files must be created using
11579         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11580         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11581
11582         ;;
11583       RCC*)
11584         # Rational C++ 2.4.1
11585         # FIXME: insert proper C++ library support
11586         ld_shlibs_CXX=no
11587         ;;
11588       cxx*)
11589         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11590         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'
11591
11592         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11593         hardcode_libdir_separator_CXX=:
11594
11595         # Commands to make compiler produce verbose output that lists
11596         # what "hidden" libraries, object files and flags are used when
11597         # linking a shared library.
11598         #
11599         # There doesn't appear to be a way to prevent this compiler from
11600         # explicitly linking system object files so we need to strip them
11601         # from the output so that they don't get included in the library
11602         # dependencies.
11603         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'
11604         ;;
11605       *)
11606         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11607           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11608           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'
11609
11610           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11611           hardcode_libdir_separator_CXX=:
11612
11613           # Commands to make compiler produce verbose output that lists
11614           # what "hidden" libraries, object files and flags are used when
11615           # linking a shared library.
11616           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11617
11618         else
11619           # FIXME: insert proper C++ library support
11620           ld_shlibs_CXX=no
11621         fi
11622         ;;
11623     esac
11624     ;;
11625   osf4* | osf5*)
11626     case $cc_basename in
11627       KCC*)
11628         # Kuck and Associates, Inc. (KAI) C++ Compiler
11629
11630         # KCC will only create a shared library if the output file
11631         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11632         # to its proper name (with version) after linking.
11633         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'
11634
11635         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11636         hardcode_libdir_separator_CXX=:
11637
11638         # Archives containing C++ object files must be created using
11639         # the KAI C++ compiler.
11640         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11641         ;;
11642       RCC*)
11643         # Rational C++ 2.4.1
11644         # FIXME: insert proper C++ library support
11645         ld_shlibs_CXX=no
11646         ;;
11647       cxx*)
11648         allow_undefined_flag_CXX=' -expect_unresolved \*'
11649         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'
11650         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11651           echo "-hidden">> $lib.exp~
11652           $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~
11653           $rm $lib.exp'
11654
11655         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11656         hardcode_libdir_separator_CXX=:
11657
11658         # Commands to make compiler produce verbose output that lists
11659         # what "hidden" libraries, object files and flags are used when
11660         # linking a shared library.
11661         #
11662         # There doesn't appear to be a way to prevent this compiler from
11663         # explicitly linking system object files so we need to strip them
11664         # from the output so that they don't get included in the library
11665         # dependencies.
11666         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'
11667         ;;
11668       *)
11669         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11670           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11671          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'
11672
11673           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11674           hardcode_libdir_separator_CXX=:
11675
11676           # Commands to make compiler produce verbose output that lists
11677           # what "hidden" libraries, object files and flags are used when
11678           # linking a shared library.
11679           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11680
11681         else
11682           # FIXME: insert proper C++ library support
11683           ld_shlibs_CXX=no
11684         fi
11685         ;;
11686     esac
11687     ;;
11688   psos*)
11689     # FIXME: insert proper C++ library support
11690     ld_shlibs_CXX=no
11691     ;;
11692   sunos4*)
11693     case $cc_basename in
11694       CC*)
11695         # Sun C++ 4.x
11696         # FIXME: insert proper C++ library support
11697         ld_shlibs_CXX=no
11698         ;;
11699       lcc*)
11700         # Lucid
11701         # FIXME: insert proper C++ library support
11702         ld_shlibs_CXX=no
11703         ;;
11704       *)
11705         # FIXME: insert proper C++ library support
11706         ld_shlibs_CXX=no
11707         ;;
11708     esac
11709     ;;
11710   solaris*)
11711     case $cc_basename in
11712       CC*)
11713         # Sun C++ 4.2, 5.x and Centerline C++
11714         archive_cmds_need_lc_CXX=yes
11715         no_undefined_flag_CXX=' -zdefs'
11716         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11717         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11718         $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'
11719
11720         hardcode_libdir_flag_spec_CXX='-R$libdir'
11721         hardcode_shlibpath_var_CXX=no
11722         case $host_os in
11723           solaris2.[0-5] | solaris2.[0-5].*) ;;
11724           *)
11725             # The C++ compiler is used as linker so we must use $wl
11726             # flag to pass the commands to the underlying system
11727             # linker. We must also pass each convience library through
11728             # to the system linker between allextract/defaultextract.
11729             # The C++ compiler will combine linker options so we
11730             # cannot just pass the convience library names through
11731             # without $wl.
11732             # Supported since Solaris 2.6 (maybe 2.5.1?)
11733             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11734             ;;
11735         esac
11736         link_all_deplibs_CXX=yes
11737
11738         output_verbose_link_cmd='echo'
11739
11740         # Archives containing C++ object files must be created using
11741         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11742         # necessary to make sure instantiated templates are included
11743         # in the archive.
11744         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11745         ;;
11746       gcx*)
11747         # Green Hills C++ Compiler
11748         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11749
11750         # The C++ compiler must be used to create the archive.
11751         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11752         ;;
11753       *)
11754         # GNU C++ compiler with Solaris linker
11755         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11756           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11757           if $CC --version | grep -v '^2\.7' > /dev/null; then
11758             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11759             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11760                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11761
11762             # Commands to make compiler produce verbose output that lists
11763             # what "hidden" libraries, object files and flags are used when
11764             # linking a shared library.
11765             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11766           else
11767             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11768             # platform.
11769             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11770             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11771                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11772
11773             # Commands to make compiler produce verbose output that lists
11774             # what "hidden" libraries, object files and flags are used when
11775             # linking a shared library.
11776             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11777           fi
11778
11779           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11780         fi
11781         ;;
11782     esac
11783     ;;
11784   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11785     no_undefined_flag_CXX='${wl}-z,text'
11786     archive_cmds_need_lc_CXX=no
11787     hardcode_shlibpath_var_CXX=no
11788     runpath_var='LD_RUN_PATH'
11789
11790     case $cc_basename in
11791       CC*)
11792         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11794         ;;
11795       *)
11796         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798         ;;
11799     esac
11800     ;;
11801   sysv5* | sco3.2v5* | sco5v6*)
11802     # Note: We can NOT use -z defs as we might desire, because we do not
11803     # link with -lc, and that would cause any symbols used from libc to
11804     # always be unresolved, which means just about no library would
11805     # ever link correctly.  If we're not using GNU ld we use -z text
11806     # though, which does catch some bad symbols but isn't as heavy-handed
11807     # as -z defs.
11808     # For security reasons, it is highly recommended that you always
11809     # use absolute paths for naming shared libraries, and exclude the
11810     # DT_RUNPATH tag from executables and libraries.  But doing so
11811     # requires that you compile everything twice, which is a pain.
11812     # So that behaviour is only enabled if SCOABSPATH is set to a
11813     # non-empty value in the environment.  Most likely only useful for
11814     # creating official distributions of packages.
11815     # This is a hack until libtool officially supports absolute path
11816     # names for shared libraries.
11817     no_undefined_flag_CXX='${wl}-z,text'
11818     allow_undefined_flag_CXX='${wl}-z,nodefs'
11819     archive_cmds_need_lc_CXX=no
11820     hardcode_shlibpath_var_CXX=no
11821     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11822     hardcode_libdir_separator_CXX=':'
11823     link_all_deplibs_CXX=yes
11824     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11825     runpath_var='LD_RUN_PATH'
11826
11827     case $cc_basename in
11828       CC*)
11829         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831         ;;
11832       *)
11833         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11835         ;;
11836     esac
11837     ;;
11838   tandem*)
11839     case $cc_basename in
11840       NCC*)
11841         # NonStop-UX NCC 3.20
11842         # FIXME: insert proper C++ library support
11843         ld_shlibs_CXX=no
11844         ;;
11845       *)
11846         # FIXME: insert proper C++ library support
11847         ld_shlibs_CXX=no
11848         ;;
11849     esac
11850     ;;
11851   vxworks*)
11852     # FIXME: insert proper C++ library support
11853     ld_shlibs_CXX=no
11854     ;;
11855   *)
11856     # FIXME: insert proper C++ library support
11857     ld_shlibs_CXX=no
11858     ;;
11859 esac
11860 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11861 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11862 test "$ld_shlibs_CXX" = no && can_build_shared=no
11863
11864 GCC_CXX="$GXX"
11865 LD_CXX="$LD"
11866
11867
11868 cat > conftest.$ac_ext <<EOF
11869 class Foo
11870 {
11871 public:
11872   Foo (void) { a = 0; }
11873 private:
11874   int a;
11875 };
11876 EOF
11877
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879   (eval $ac_compile) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; then
11883   # Parse the compiler output and extract the necessary
11884   # objects, libraries and library flags.
11885
11886   # Sentinel used to keep track of whether or not we are before
11887   # the conftest object file.
11888   pre_test_object_deps_done=no
11889
11890   # The `*' in the case matches for architectures that use `case' in
11891   # $output_verbose_cmd can trigger glob expansion during the loop
11892   # eval without this substitution.
11893   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11894
11895   for p in `eval $output_verbose_link_cmd`; do
11896     case $p in
11897
11898     -L* | -R* | -l*)
11899        # Some compilers place space between "-{L,R}" and the path.
11900        # Remove the space.
11901        if test $p = "-L" \
11902           || test $p = "-R"; then
11903          prev=$p
11904          continue
11905        else
11906          prev=
11907        fi
11908
11909        if test "$pre_test_object_deps_done" = no; then
11910          case $p in
11911          -L* | -R*)
11912            # Internal compiler library paths should come after those
11913            # provided the user.  The postdeps already come after the
11914            # user supplied libs so there is no need to process them.
11915            if test -z "$compiler_lib_search_path_CXX"; then
11916              compiler_lib_search_path_CXX="${prev}${p}"
11917            else
11918              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11919            fi
11920            ;;
11921          # The "-l" case would never come before the object being
11922          # linked, so don't bother handling this case.
11923          esac
11924        else
11925          if test -z "$postdeps_CXX"; then
11926            postdeps_CXX="${prev}${p}"
11927          else
11928            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11929          fi
11930        fi
11931        ;;
11932
11933     *.$objext)
11934        # This assumes that the test object file only shows up
11935        # once in the compiler output.
11936        if test "$p" = "conftest.$objext"; then
11937          pre_test_object_deps_done=yes
11938          continue
11939        fi
11940
11941        if test "$pre_test_object_deps_done" = no; then
11942          if test -z "$predep_objects_CXX"; then
11943            predep_objects_CXX="$p"
11944          else
11945            predep_objects_CXX="$predep_objects_CXX $p"
11946          fi
11947        else
11948          if test -z "$postdep_objects_CXX"; then
11949            postdep_objects_CXX="$p"
11950          else
11951            postdep_objects_CXX="$postdep_objects_CXX $p"
11952          fi
11953        fi
11954        ;;
11955
11956     *) ;; # Ignore the rest.
11957
11958     esac
11959   done
11960
11961   # Clean up.
11962   rm -f a.out a.exe
11963 else
11964   echo "libtool.m4: error: problem compiling CXX test program"
11965 fi
11966
11967 $rm -f confest.$objext
11968
11969 # PORTME: override above test on systems where it is broken
11970 case $host_os in
11971 interix3*)
11972   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11973   # hack all around it, let's just trust "g++" to DTRT.
11974   predep_objects_CXX=
11975   postdep_objects_CXX=
11976   postdeps_CXX=
11977   ;;
11978
11979 solaris*)
11980   case $cc_basename in
11981   CC*)
11982     # Adding this requires a known-good setup of shared libraries for
11983     # Sun compiler versions before 5.6, else PIC objects from an old
11984     # archive will be linked into the output, leading to subtle bugs.
11985     postdeps_CXX='-lCstd -lCrun'
11986     ;;
11987   esac
11988   ;;
11989 esac
11990
11991
11992 case " $postdeps_CXX " in
11993 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11994 esac
11995
11996 lt_prog_compiler_wl_CXX=
11997 lt_prog_compiler_pic_CXX=
11998 lt_prog_compiler_static_CXX=
11999
12000 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12001 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12002
12003   # C++ specific cases for pic, static, wl, etc.
12004   if test "$GXX" = yes; then
12005     lt_prog_compiler_wl_CXX='-Wl,'
12006     lt_prog_compiler_static_CXX='-static'
12007
12008     case $host_os in
12009     aix*)
12010       # All AIX code is PIC.
12011       if test "$host_cpu" = ia64; then
12012         # AIX 5 now supports IA64 processor
12013         lt_prog_compiler_static_CXX='-Bstatic'
12014       fi
12015       ;;
12016     amigaos*)
12017       # FIXME: we need at least 68020 code to build shared libraries, but
12018       # adding the `-m68020' flag to GCC prevents building anything better,
12019       # like `-m68040'.
12020       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12021       ;;
12022     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12023       # PIC is the default for these OSes.
12024       ;;
12025     mingw* | os2* | pw32*)
12026       # This hack is so that the source file can tell whether it is being
12027       # built for inclusion in a dll (and should export symbols for example).
12028       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12029       ;;
12030     darwin* | rhapsody*)
12031       # PIC is the default on this platform
12032       # Common symbols not allowed in MH_DYLIB files
12033       lt_prog_compiler_pic_CXX='-fno-common'
12034       ;;
12035     *djgpp*)
12036       # DJGPP does not support shared libraries at all
12037       lt_prog_compiler_pic_CXX=
12038       ;;
12039     interix3*)
12040       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12041       # Instead, we relocate shared libraries at runtime.
12042       ;;
12043     sysv4*MP*)
12044       if test -d /usr/nec; then
12045         lt_prog_compiler_pic_CXX=-Kconform_pic
12046       fi
12047       ;;
12048     hpux*)
12049       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12050       # not for PA HP-UX.
12051       case $host_cpu in
12052       hppa*64*|ia64*)
12053         ;;
12054       *)
12055         lt_prog_compiler_pic_CXX='-fPIC'
12056         ;;
12057       esac
12058       ;;
12059     *)
12060       lt_prog_compiler_pic_CXX='-fPIC'
12061       ;;
12062     esac
12063   else
12064     case $host_os in
12065       aix4* | aix5*)
12066         # All AIX code is PIC.
12067         if test "$host_cpu" = ia64; then
12068           # AIX 5 now supports IA64 processor
12069           lt_prog_compiler_static_CXX='-Bstatic'
12070         else
12071           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12072         fi
12073         ;;
12074       chorus*)
12075         case $cc_basename in
12076         cxch68*)
12077           # Green Hills C++ Compiler
12078           # _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"
12079           ;;
12080         esac
12081         ;;
12082        darwin*)
12083          # PIC is the default on this platform
12084          # Common symbols not allowed in MH_DYLIB files
12085          case $cc_basename in
12086            xlc*)
12087            lt_prog_compiler_pic_CXX='-qnocommon'
12088            lt_prog_compiler_wl_CXX='-Wl,'
12089            ;;
12090          esac
12091        ;;
12092       dgux*)
12093         case $cc_basename in
12094           ec++*)
12095             lt_prog_compiler_pic_CXX='-KPIC'
12096             ;;
12097           ghcx*)
12098             # Green Hills C++ Compiler
12099             lt_prog_compiler_pic_CXX='-pic'
12100             ;;
12101           *)
12102             ;;
12103         esac
12104         ;;
12105       freebsd* | dragonfly*)
12106         # FreeBSD uses GNU C++
12107         ;;
12108       hpux9* | hpux10* | hpux11*)
12109         case $cc_basename in
12110           CC*)
12111             lt_prog_compiler_wl_CXX='-Wl,'
12112             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12113             if test "$host_cpu" != ia64; then
12114               lt_prog_compiler_pic_CXX='+Z'
12115             fi
12116             ;;
12117           aCC*)
12118             lt_prog_compiler_wl_CXX='-Wl,'
12119             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12120             case $host_cpu in
12121             hppa*64*|ia64*)
12122               # +Z the default
12123               ;;
12124             *)
12125               lt_prog_compiler_pic_CXX='+Z'
12126               ;;
12127             esac
12128             ;;
12129           *)
12130             ;;
12131         esac
12132         ;;
12133       interix*)
12134         # This is c89, which is MS Visual C++ (no shared libs)
12135         # Anyone wants to do a port?
12136         ;;
12137       irix5* | irix6* | nonstopux*)
12138         case $cc_basename in
12139           CC*)
12140             lt_prog_compiler_wl_CXX='-Wl,'
12141             lt_prog_compiler_static_CXX='-non_shared'
12142             # CC pic flag -KPIC is the default.
12143             ;;
12144           *)
12145             ;;
12146         esac
12147         ;;
12148       linux* | k*bsd*-gnu)
12149         case $cc_basename in
12150           KCC*)
12151             # KAI C++ Compiler
12152             lt_prog_compiler_wl_CXX='--backend -Wl,'
12153             lt_prog_compiler_pic_CXX='-fPIC'
12154             ;;
12155           icpc* | ecpc*)
12156             # Intel C++
12157             lt_prog_compiler_wl_CXX='-Wl,'
12158             lt_prog_compiler_pic_CXX='-KPIC'
12159             lt_prog_compiler_static_CXX='-static'
12160             ;;
12161           pgCC*)
12162             # Portland Group C++ compiler.
12163             lt_prog_compiler_wl_CXX='-Wl,'
12164             lt_prog_compiler_pic_CXX='-fpic'
12165             lt_prog_compiler_static_CXX='-Bstatic'
12166             ;;
12167           cxx*)
12168             # Compaq C++
12169             # Make sure the PIC flag is empty.  It appears that all Alpha
12170             # Linux and Compaq Tru64 Unix objects are PIC.
12171             lt_prog_compiler_pic_CXX=
12172             lt_prog_compiler_static_CXX='-non_shared'
12173             ;;
12174           *)
12175             ;;
12176         esac
12177         ;;
12178       lynxos*)
12179         ;;
12180       m88k*)
12181         ;;
12182       mvs*)
12183         case $cc_basename in
12184           cxx*)
12185             lt_prog_compiler_pic_CXX='-W c,exportall'
12186             ;;
12187           *)
12188             ;;
12189         esac
12190         ;;
12191       netbsd* | netbsdelf*-gnu)
12192         ;;
12193       osf3* | osf4* | osf5*)
12194         case $cc_basename in
12195           KCC*)
12196             lt_prog_compiler_wl_CXX='--backend -Wl,'
12197             ;;
12198           RCC*)
12199             # Rational C++ 2.4.1
12200             lt_prog_compiler_pic_CXX='-pic'
12201             ;;
12202           cxx*)
12203             # Digital/Compaq C++
12204             lt_prog_compiler_wl_CXX='-Wl,'
12205             # Make sure the PIC flag is empty.  It appears that all Alpha
12206             # Linux and Compaq Tru64 Unix objects are PIC.
12207             lt_prog_compiler_pic_CXX=
12208             lt_prog_compiler_static_CXX='-non_shared'
12209             ;;
12210           *)
12211             ;;
12212         esac
12213         ;;
12214       psos*)
12215         ;;
12216       solaris*)
12217         case $cc_basename in
12218           CC*)
12219             # Sun C++ 4.2, 5.x and Centerline C++
12220             lt_prog_compiler_pic_CXX='-KPIC'
12221             lt_prog_compiler_static_CXX='-Bstatic'
12222             lt_prog_compiler_wl_CXX='-Qoption ld '
12223             ;;
12224           gcx*)
12225             # Green Hills C++ Compiler
12226             lt_prog_compiler_pic_CXX='-PIC'
12227             ;;
12228           *)
12229             ;;
12230         esac
12231         ;;
12232       sunos4*)
12233         case $cc_basename in
12234           CC*)
12235             # Sun C++ 4.x
12236             lt_prog_compiler_pic_CXX='-pic'
12237             lt_prog_compiler_static_CXX='-Bstatic'
12238             ;;
12239           lcc*)
12240             # Lucid
12241             lt_prog_compiler_pic_CXX='-pic'
12242             ;;
12243           *)
12244             ;;
12245         esac
12246         ;;
12247       tandem*)
12248         case $cc_basename in
12249           NCC*)
12250             # NonStop-UX NCC 3.20
12251             lt_prog_compiler_pic_CXX='-KPIC'
12252             ;;
12253           *)
12254             ;;
12255         esac
12256         ;;
12257       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12258         case $cc_basename in
12259           CC*)
12260             lt_prog_compiler_wl_CXX='-Wl,'
12261             lt_prog_compiler_pic_CXX='-KPIC'
12262             lt_prog_compiler_static_CXX='-Bstatic'
12263             ;;
12264         esac
12265         ;;
12266       vxworks*)
12267         ;;
12268       *)
12269         lt_prog_compiler_can_build_shared_CXX=no
12270         ;;
12271     esac
12272   fi
12273
12274 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12275 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12276
12277 #
12278 # Check to make sure the PIC flag actually works.
12279 #
12280 if test -n "$lt_prog_compiler_pic_CXX"; then
12281
12282 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12284 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   lt_prog_compiler_pic_works_CXX=no
12288   ac_outfile=conftest.$ac_objext
12289    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12290    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12291    # Insert the option either (1) after the last *FLAGS variable, or
12292    # (2) before a word containing "conftest.", or (3) at the end.
12293    # Note that $ac_compile itself does not contain backslashes and begins
12294    # with a dollar sign (not a hyphen), so the echo should work correctly.
12295    # The option is referenced via a variable to avoid confusing sed.
12296    lt_compile=`echo "$ac_compile" | $SED \
12297    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12298    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299    -e 's:$: $lt_compiler_flag:'`
12300    (eval echo "\"\$as_me:12300: $lt_compile\"" >&5)
12301    (eval "$lt_compile" 2>conftest.err)
12302    ac_status=$?
12303    cat conftest.err >&5
12304    echo "$as_me:12304: \$? = $ac_status" >&5
12305    if (exit $ac_status) && test -s "$ac_outfile"; then
12306      # The compiler can only warn and ignore the option if not recognized
12307      # So say no if there are warnings other than the usual output.
12308      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12309      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12310      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12311        lt_prog_compiler_pic_works_CXX=yes
12312      fi
12313    fi
12314    $rm conftest*
12315
12316 fi
12317 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12318 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12319
12320 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12321     case $lt_prog_compiler_pic_CXX in
12322      "" | " "*) ;;
12323      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12324      esac
12325 else
12326     lt_prog_compiler_pic_CXX=
12327      lt_prog_compiler_can_build_shared_CXX=no
12328 fi
12329
12330 fi
12331 case $host_os in
12332   # For platforms which do not support PIC, -DPIC is meaningless:
12333   *djgpp*)
12334     lt_prog_compiler_pic_CXX=
12335     ;;
12336   *)
12337     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12338     ;;
12339 esac
12340
12341 #
12342 # Check to make sure the static flag actually works.
12343 #
12344 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12345 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12346 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12347 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12348   echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350   lt_prog_compiler_static_works_CXX=no
12351    save_LDFLAGS="$LDFLAGS"
12352    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12353    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12354    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12355      # The linker can only warn and ignore the option if not recognized
12356      # So say no if there are warnings
12357      if test -s conftest.err; then
12358        # Append any errors to the config.log.
12359        cat conftest.err 1>&5
12360        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12361        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12362        if diff conftest.exp conftest.er2 >/dev/null; then
12363          lt_prog_compiler_static_works_CXX=yes
12364        fi
12365      else
12366        lt_prog_compiler_static_works_CXX=yes
12367      fi
12368    fi
12369    $rm conftest*
12370    LDFLAGS="$save_LDFLAGS"
12371
12372 fi
12373 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12374 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12375
12376 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12377     :
12378 else
12379     lt_prog_compiler_static_CXX=
12380 fi
12381
12382
12383 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12384 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12385 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12386   echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388   lt_cv_prog_compiler_c_o_CXX=no
12389    $rm -r conftest 2>/dev/null
12390    mkdir conftest
12391    cd conftest
12392    mkdir out
12393    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12394
12395    lt_compiler_flag="-o out/conftest2.$ac_objext"
12396    # Insert the option either (1) after the last *FLAGS variable, or
12397    # (2) before a word containing "conftest.", or (3) at the end.
12398    # Note that $ac_compile itself does not contain backslashes and begins
12399    # with a dollar sign (not a hyphen), so the echo should work correctly.
12400    lt_compile=`echo "$ac_compile" | $SED \
12401    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12402    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12403    -e 's:$: $lt_compiler_flag:'`
12404    (eval echo "\"\$as_me:12404: $lt_compile\"" >&5)
12405    (eval "$lt_compile" 2>out/conftest.err)
12406    ac_status=$?
12407    cat out/conftest.err >&5
12408    echo "$as_me:12408: \$? = $ac_status" >&5
12409    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12410    then
12411      # The compiler can only warn and ignore the option if not recognized
12412      # So say no if there are warnings
12413      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12414      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12415      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12416        lt_cv_prog_compiler_c_o_CXX=yes
12417      fi
12418    fi
12419    chmod u+w . 2>&5
12420    $rm conftest*
12421    # SGI C++ compiler will create directory out/ii_files/ for
12422    # template instantiation
12423    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12424    $rm out/* && rmdir out
12425    cd ..
12426    rmdir conftest
12427    $rm conftest*
12428
12429 fi
12430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12432
12433
12434 hard_links="nottested"
12435 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12436   # do not overwrite the value of need_locks provided by the user
12437   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12438 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12439   hard_links=yes
12440   $rm conftest*
12441   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12442   touch conftest.a
12443   ln conftest.a conftest.b 2>&5 || hard_links=no
12444   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12445   { echo "$as_me:$LINENO: result: $hard_links" >&5
12446 echo "${ECHO_T}$hard_links" >&6; }
12447   if test "$hard_links" = no; then
12448     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12449 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12450     need_locks=warn
12451   fi
12452 else
12453   need_locks=no
12454 fi
12455
12456 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12458
12459   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12460   case $host_os in
12461   aix4* | aix5*)
12462     # If we're using GNU nm, then we don't want the "-C" option.
12463     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12464     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12465       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'
12466     else
12467       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'
12468     fi
12469     ;;
12470   pw32*)
12471     export_symbols_cmds_CXX="$ltdll_cmds"
12472   ;;
12473   cygwin* | mingw*)
12474     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'
12475   ;;
12476   linux* | k*bsd*-gnu)
12477     link_all_deplibs_CXX=no
12478   ;;
12479   *)
12480     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12481   ;;
12482   esac
12483
12484 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12485 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12486 test "$ld_shlibs_CXX" = no && can_build_shared=no
12487
12488 #
12489 # Do we need to explicitly link libc?
12490 #
12491 case "x$archive_cmds_need_lc_CXX" in
12492 x|xyes)
12493   # Assume -lc should be added
12494   archive_cmds_need_lc_CXX=yes
12495
12496   if test "$enable_shared" = yes && test "$GCC" = yes; then
12497     case $archive_cmds_CXX in
12498     *'~'*)
12499       # FIXME: we may have to deal with multi-command sequences.
12500       ;;
12501     '$CC '*)
12502       # Test whether the compiler implicitly links with -lc since on some
12503       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12504       # to ld, don't add -lc before -lgcc.
12505       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12506 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12507       $rm conftest*
12508       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12509
12510       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511   (eval $ac_compile) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } 2>conftest.err; then
12515         soname=conftest
12516         lib=conftest
12517         libobjs=conftest.$ac_objext
12518         deplibs=
12519         wl=$lt_prog_compiler_wl_CXX
12520         pic_flag=$lt_prog_compiler_pic_CXX
12521         compiler_flags=-v
12522         linker_flags=-v
12523         verstring=
12524         output_objdir=.
12525         libname=conftest
12526         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12527         allow_undefined_flag_CXX=
12528         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12529   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); }
12533         then
12534           archive_cmds_need_lc_CXX=no
12535         else
12536           archive_cmds_need_lc_CXX=yes
12537         fi
12538         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12539       else
12540         cat conftest.err 1>&5
12541       fi
12542       $rm conftest*
12543       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12544 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12545       ;;
12546     esac
12547   fi
12548   ;;
12549 esac
12550
12551 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12552 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12553 library_names_spec=
12554 libname_spec='lib$name'
12555 soname_spec=
12556 shrext_cmds=".so"
12557 postinstall_cmds=
12558 postuninstall_cmds=
12559 finish_cmds=
12560 finish_eval=
12561 shlibpath_var=
12562 shlibpath_overrides_runpath=unknown
12563 version_type=none
12564 dynamic_linker="$host_os ld.so"
12565 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12566 if test "$GCC" = yes; then
12567   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12568   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12569     # if the path contains ";" then we assume it to be the separator
12570     # otherwise default to the standard path separator (i.e. ":") - it is
12571     # assumed that no part of a normal pathname contains ";" but that should
12572     # okay in the real world where ";" in dirpaths is itself problematic.
12573     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12574   else
12575     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12576   fi
12577 else
12578   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12579 fi
12580 need_lib_prefix=unknown
12581 hardcode_into_libs=no
12582
12583 # when you set need_version to no, make sure it does not cause -set_version
12584 # flags to be left without arguments
12585 need_version=unknown
12586
12587 case $host_os in
12588 aix3*)
12589   version_type=linux
12590   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12591   shlibpath_var=LIBPATH
12592
12593   # AIX 3 has no versioning support, so we append a major version to the name.
12594   soname_spec='${libname}${release}${shared_ext}$major'
12595   ;;
12596
12597 aix4* | aix5*)
12598   version_type=linux
12599   need_lib_prefix=no
12600   need_version=no
12601   hardcode_into_libs=yes
12602   if test "$host_cpu" = ia64; then
12603     # AIX 5 supports IA64
12604     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12605     shlibpath_var=LD_LIBRARY_PATH
12606   else
12607     # With GCC up to 2.95.x, collect2 would create an import file
12608     # for dependence libraries.  The import file would start with
12609     # the line `#! .'.  This would cause the generated library to
12610     # depend on `.', always an invalid library.  This was fixed in
12611     # development snapshots of GCC prior to 3.0.
12612     case $host_os in
12613       aix4 | aix4.[01] | aix4.[01].*)
12614       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12615            echo ' yes '
12616            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12617         :
12618       else
12619         can_build_shared=no
12620       fi
12621       ;;
12622     esac
12623     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12624     # soname into executable. Probably we can add versioning support to
12625     # collect2, so additional links can be useful in future.
12626     if test "$aix_use_runtimelinking" = yes; then
12627       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12628       # instead of lib<name>.a to let people know that these are not
12629       # typical AIX shared libraries.
12630       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631     else
12632       # We preserve .a as extension for shared libraries through AIX4.2
12633       # and later when we are not doing run time linking.
12634       library_names_spec='${libname}${release}.a $libname.a'
12635       soname_spec='${libname}${release}${shared_ext}$major'
12636     fi
12637     shlibpath_var=LIBPATH
12638   fi
12639   ;;
12640
12641 amigaos*)
12642   library_names_spec='$libname.ixlibrary $libname.a'
12643   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12644   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'
12645   ;;
12646
12647 beos*)
12648   library_names_spec='${libname}${shared_ext}'
12649   dynamic_linker="$host_os ld.so"
12650   shlibpath_var=LIBRARY_PATH
12651   ;;
12652
12653 bsdi[45]*)
12654   version_type=linux
12655   need_version=no
12656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12657   soname_spec='${libname}${release}${shared_ext}$major'
12658   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12659   shlibpath_var=LD_LIBRARY_PATH
12660   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12661   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12662   # the default ld.so.conf also contains /usr/contrib/lib and
12663   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12664   # libtool to hard-code these into programs
12665   ;;
12666
12667 cygwin* | mingw* | pw32*)
12668   version_type=windows
12669   shrext_cmds=".dll"
12670   need_version=no
12671   need_lib_prefix=no
12672
12673   case $GCC,$host_os in
12674   yes,cygwin* | yes,mingw* | yes,pw32*)
12675     library_names_spec='$libname.dll.a'
12676     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12677     postinstall_cmds='base_file=`basename \${file}`~
12678       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12679       dldir=$destdir/`dirname \$dlpath`~
12680       test -d \$dldir || mkdir -p \$dldir~
12681       $install_prog $dir/$dlname \$dldir/$dlname~
12682       chmod a+x \$dldir/$dlname'
12683     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12684       dlpath=$dir/\$dldll~
12685        $rm \$dlpath'
12686     shlibpath_overrides_runpath=yes
12687
12688     case $host_os in
12689     cygwin*)
12690       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12691       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12692       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12693       ;;
12694     mingw*)
12695       # MinGW DLLs use traditional 'lib' prefix
12696       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12697       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12698       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12699         # It is most probably a Windows format PATH printed by
12700         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12701         # path with ; separators, and with drive letters. We can handle the
12702         # drive letters (cygwin fileutils understands them), so leave them,
12703         # especially as we might pass files found there to a mingw objdump,
12704         # which wouldn't understand a cygwinified path. Ahh.
12705         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12706       else
12707         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12708       fi
12709       ;;
12710     pw32*)
12711       # pw32 DLLs use 'pw' prefix rather than 'lib'
12712       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12713       ;;
12714     esac
12715     ;;
12716
12717   *)
12718     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12719     ;;
12720   esac
12721   dynamic_linker='Win32 ld.exe'
12722   # FIXME: first we should search . and the directory the executable is in
12723   shlibpath_var=PATH
12724   ;;
12725
12726 darwin* | rhapsody*)
12727   dynamic_linker="$host_os dyld"
12728   version_type=darwin
12729   need_lib_prefix=no
12730   need_version=no
12731   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12732   soname_spec='${libname}${release}${major}$shared_ext'
12733   shlibpath_overrides_runpath=yes
12734   shlibpath_var=DYLD_LIBRARY_PATH
12735   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12736   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12737   if test "$GCC" = yes; then
12738     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12739   else
12740     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12741   fi
12742   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12743   ;;
12744
12745 dgux*)
12746   version_type=linux
12747   need_lib_prefix=no
12748   need_version=no
12749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12750   soname_spec='${libname}${release}${shared_ext}$major'
12751   shlibpath_var=LD_LIBRARY_PATH
12752   ;;
12753
12754 freebsd1*)
12755   dynamic_linker=no
12756   ;;
12757
12758 freebsd* | dragonfly*)
12759   # DragonFly does not have aout.  When/if they implement a new
12760   # versioning mechanism, adjust this.
12761   if test -x /usr/bin/objformat; then
12762     objformat=`/usr/bin/objformat`
12763   else
12764     case $host_os in
12765     freebsd[123]*) objformat=aout ;;
12766     *) objformat=elf ;;
12767     esac
12768   fi
12769   version_type=freebsd-$objformat
12770   case $version_type in
12771     freebsd-elf*)
12772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12773       need_version=no
12774       need_lib_prefix=no
12775       ;;
12776     freebsd-*)
12777       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12778       need_version=yes
12779       ;;
12780   esac
12781   shlibpath_var=LD_LIBRARY_PATH
12782   case $host_os in
12783   freebsd2*)
12784     shlibpath_overrides_runpath=yes
12785     ;;
12786   freebsd3.[01]* | freebsdelf3.[01]*)
12787     shlibpath_overrides_runpath=yes
12788     hardcode_into_libs=yes
12789     ;;
12790   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12791   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12792     shlibpath_overrides_runpath=no
12793     hardcode_into_libs=yes
12794     ;;
12795   freebsd*) # from 4.6 on
12796     shlibpath_overrides_runpath=yes
12797     hardcode_into_libs=yes
12798     ;;
12799   esac
12800   ;;
12801
12802 gnu*)
12803   version_type=linux
12804   need_lib_prefix=no
12805   need_version=no
12806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12807   soname_spec='${libname}${release}${shared_ext}$major'
12808   shlibpath_var=LD_LIBRARY_PATH
12809   hardcode_into_libs=yes
12810   ;;
12811
12812 hpux9* | hpux10* | hpux11*)
12813   # Give a soname corresponding to the major version so that dld.sl refuses to
12814   # link against other versions.
12815   version_type=sunos
12816   need_lib_prefix=no
12817   need_version=no
12818   case $host_cpu in
12819   ia64*)
12820     shrext_cmds='.so'
12821     hardcode_into_libs=yes
12822     dynamic_linker="$host_os dld.so"
12823     shlibpath_var=LD_LIBRARY_PATH
12824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12826     soname_spec='${libname}${release}${shared_ext}$major'
12827     if test "X$HPUX_IA64_MODE" = X32; then
12828       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12829     else
12830       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12831     fi
12832     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12833     ;;
12834    hppa*64*)
12835      shrext_cmds='.sl'
12836      hardcode_into_libs=yes
12837      dynamic_linker="$host_os dld.sl"
12838      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12839      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12840      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841      soname_spec='${libname}${release}${shared_ext}$major'
12842      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12843      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12844      ;;
12845    *)
12846     shrext_cmds='.sl'
12847     dynamic_linker="$host_os dld.sl"
12848     shlibpath_var=SHLIB_PATH
12849     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851     soname_spec='${libname}${release}${shared_ext}$major'
12852     ;;
12853   esac
12854   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12855   postinstall_cmds='chmod 555 $lib'
12856   ;;
12857
12858 interix3*)
12859   version_type=linux
12860   need_lib_prefix=no
12861   need_version=no
12862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12863   soname_spec='${libname}${release}${shared_ext}$major'
12864   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12865   shlibpath_var=LD_LIBRARY_PATH
12866   shlibpath_overrides_runpath=no
12867   hardcode_into_libs=yes
12868   ;;
12869
12870 irix5* | irix6* | nonstopux*)
12871   case $host_os in
12872     nonstopux*) version_type=nonstopux ;;
12873     *)
12874         if test "$lt_cv_prog_gnu_ld" = yes; then
12875                 version_type=linux
12876         else
12877                 version_type=irix
12878         fi ;;
12879   esac
12880   need_lib_prefix=no
12881   need_version=no
12882   soname_spec='${libname}${release}${shared_ext}$major'
12883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12884   case $host_os in
12885   irix5* | nonstopux*)
12886     libsuff= shlibsuff=
12887     ;;
12888   *)
12889     case $LD in # libtool.m4 will add one of these switches to LD
12890     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12891       libsuff= shlibsuff= libmagic=32-bit;;
12892     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12893       libsuff=32 shlibsuff=N32 libmagic=N32;;
12894     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12895       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12896     *) libsuff= shlibsuff= libmagic=never-match;;
12897     esac
12898     ;;
12899   esac
12900   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12901   shlibpath_overrides_runpath=no
12902   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12903   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12904   hardcode_into_libs=yes
12905   ;;
12906
12907 # No shared lib support for Linux oldld, aout, or coff.
12908 linux*oldld* | linux*aout* | linux*coff*)
12909   dynamic_linker=no
12910   ;;
12911
12912 # This must be Linux ELF.
12913 linux* | k*bsd*-gnu)
12914   version_type=linux
12915   need_lib_prefix=no
12916   need_version=no
12917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918   soname_spec='${libname}${release}${shared_ext}$major'
12919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12920   shlibpath_var=LD_LIBRARY_PATH
12921   shlibpath_overrides_runpath=no
12922   # This implies no fast_install, which is unacceptable.
12923   # Some rework will be needed to allow for fast_install
12924   # before this can be enabled.
12925   hardcode_into_libs=yes
12926
12927   # Append ld.so.conf contents to the search path
12928   if test -f /etc/ld.so.conf; then
12929     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12930     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12931   fi
12932
12933   # We used to test for /lib/ld.so.1 and disable shared libraries on
12934   # powerpc, because MkLinux only supported shared libraries with the
12935   # GNU dynamic linker.  Since this was broken with cross compilers,
12936   # most powerpc-linux boxes support dynamic linking these days and
12937   # people can always --disable-shared, the test was removed, and we
12938   # assume the GNU/Linux dynamic linker is in use.
12939   dynamic_linker='GNU/Linux ld.so'
12940   ;;
12941
12942 netbsdelf*-gnu)
12943   version_type=linux
12944   need_lib_prefix=no
12945   need_version=no
12946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12947   soname_spec='${libname}${release}${shared_ext}$major'
12948   shlibpath_var=LD_LIBRARY_PATH
12949   shlibpath_overrides_runpath=no
12950   hardcode_into_libs=yes
12951   dynamic_linker='NetBSD ld.elf_so'
12952   ;;
12953
12954 netbsd*)
12955   version_type=sunos
12956   need_lib_prefix=no
12957   need_version=no
12958   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12960     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12961     dynamic_linker='NetBSD (a.out) ld.so'
12962   else
12963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12964     soname_spec='${libname}${release}${shared_ext}$major'
12965     dynamic_linker='NetBSD ld.elf_so'
12966   fi
12967   shlibpath_var=LD_LIBRARY_PATH
12968   shlibpath_overrides_runpath=yes
12969   hardcode_into_libs=yes
12970   ;;
12971
12972 newsos6)
12973   version_type=linux
12974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975   shlibpath_var=LD_LIBRARY_PATH
12976   shlibpath_overrides_runpath=yes
12977   ;;
12978
12979 nto-qnx*)
12980   version_type=linux
12981   need_lib_prefix=no
12982   need_version=no
12983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984   soname_spec='${libname}${release}${shared_ext}$major'
12985   shlibpath_var=LD_LIBRARY_PATH
12986   shlibpath_overrides_runpath=yes
12987   ;;
12988
12989 openbsd*)
12990   version_type=sunos
12991   sys_lib_dlsearch_path_spec="/usr/lib"
12992   need_lib_prefix=no
12993   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12994   case $host_os in
12995     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12996     *)                         need_version=no  ;;
12997   esac
12998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13000   shlibpath_var=LD_LIBRARY_PATH
13001   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13002     case $host_os in
13003       openbsd2.[89] | openbsd2.[89].*)
13004         shlibpath_overrides_runpath=no
13005         ;;
13006       *)
13007         shlibpath_overrides_runpath=yes
13008         ;;
13009       esac
13010   else
13011     shlibpath_overrides_runpath=yes
13012   fi
13013   ;;
13014
13015 os2*)
13016   libname_spec='$name'
13017   shrext_cmds=".dll"
13018   need_lib_prefix=no
13019   library_names_spec='$libname${shared_ext} $libname.a'
13020   dynamic_linker='OS/2 ld.exe'
13021   shlibpath_var=LIBPATH
13022   ;;
13023
13024 osf3* | osf4* | osf5*)
13025   version_type=osf
13026   need_lib_prefix=no
13027   need_version=no
13028   soname_spec='${libname}${release}${shared_ext}$major'
13029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030   shlibpath_var=LD_LIBRARY_PATH
13031   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13032   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13033   ;;
13034
13035 solaris*)
13036   version_type=linux
13037   need_lib_prefix=no
13038   need_version=no
13039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040   soname_spec='${libname}${release}${shared_ext}$major'
13041   shlibpath_var=LD_LIBRARY_PATH
13042   shlibpath_overrides_runpath=yes
13043   hardcode_into_libs=yes
13044   # ldd complains unless libraries are executable
13045   postinstall_cmds='chmod +x $lib'
13046   ;;
13047
13048 sunos4*)
13049   version_type=sunos
13050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13051   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13052   shlibpath_var=LD_LIBRARY_PATH
13053   shlibpath_overrides_runpath=yes
13054   if test "$with_gnu_ld" = yes; then
13055     need_lib_prefix=no
13056   fi
13057   need_version=yes
13058   ;;
13059
13060 sysv4 | sysv4.3*)
13061   version_type=linux
13062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13063   soname_spec='${libname}${release}${shared_ext}$major'
13064   shlibpath_var=LD_LIBRARY_PATH
13065   case $host_vendor in
13066     sni)
13067       shlibpath_overrides_runpath=no
13068       need_lib_prefix=no
13069       export_dynamic_flag_spec='${wl}-Blargedynsym'
13070       runpath_var=LD_RUN_PATH
13071       ;;
13072     siemens)
13073       need_lib_prefix=no
13074       ;;
13075     motorola)
13076       need_lib_prefix=no
13077       need_version=no
13078       shlibpath_overrides_runpath=no
13079       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13080       ;;
13081   esac
13082   ;;
13083
13084 sysv4*MP*)
13085   if test -d /usr/nec ;then
13086     version_type=linux
13087     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13088     soname_spec='$libname${shared_ext}.$major'
13089     shlibpath_var=LD_LIBRARY_PATH
13090   fi
13091   ;;
13092
13093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13094   version_type=freebsd-elf
13095   need_lib_prefix=no
13096   need_version=no
13097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13098   soname_spec='${libname}${release}${shared_ext}$major'
13099   shlibpath_var=LD_LIBRARY_PATH
13100   hardcode_into_libs=yes
13101   if test "$with_gnu_ld" = yes; then
13102     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13103     shlibpath_overrides_runpath=no
13104   else
13105     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13106     shlibpath_overrides_runpath=yes
13107     case $host_os in
13108       sco3.2v5*)
13109         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13110         ;;
13111     esac
13112   fi
13113   sys_lib_dlsearch_path_spec='/usr/lib'
13114   ;;
13115
13116 uts4*)
13117   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
13121   ;;
13122
13123 *)
13124   dynamic_linker=no
13125   ;;
13126 esac
13127 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13128 echo "${ECHO_T}$dynamic_linker" >&6; }
13129 test "$dynamic_linker" = no && can_build_shared=no
13130
13131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13132 if test "$GCC" = yes; then
13133   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13134 fi
13135
13136 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13137 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13138 hardcode_action_CXX=
13139 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13140    test -n "$runpath_var_CXX" || \
13141    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13142
13143   # We can hardcode non-existant directories.
13144   if test "$hardcode_direct_CXX" != no &&
13145      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13146      # have to relink, otherwise we might link with an installed library
13147      # when we should be linking with a yet-to-be-installed one
13148      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13149      test "$hardcode_minus_L_CXX" != no; then
13150     # Linking always hardcodes the temporary library directory.
13151     hardcode_action_CXX=relink
13152   else
13153     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13154     hardcode_action_CXX=immediate
13155   fi
13156 else
13157   # We cannot hardcode anything, or else we can only hardcode existing
13158   # directories.
13159   hardcode_action_CXX=unsupported
13160 fi
13161 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13162 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13163
13164 if test "$hardcode_action_CXX" = relink; then
13165   # Fast installation is not supported
13166   enable_fast_install=no
13167 elif test "$shlibpath_overrides_runpath" = yes ||
13168      test "$enable_shared" = no; then
13169   # Fast installation is not necessary
13170   enable_fast_install=needless
13171 fi
13172
13173
13174 # The else clause should only fire when bootstrapping the
13175 # libtool distribution, otherwise you forgot to ship ltmain.sh
13176 # with your package, and you will get complaints that there are
13177 # no rules to generate ltmain.sh.
13178 if test -f "$ltmain"; then
13179   # See if we are running on zsh, and set the options which allow our commands through
13180   # without removal of \ escapes.
13181   if test -n "${ZSH_VERSION+set}" ; then
13182     setopt NO_GLOB_SUBST
13183   fi
13184   # Now quote all the things that may contain metacharacters while being
13185   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13186   # variables and quote the copies for generation of the libtool script.
13187   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13188     SED SHELL STRIP \
13189     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13190     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13191     deplibs_check_method reload_flag reload_cmds need_locks \
13192     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13193     lt_cv_sys_global_symbol_to_c_name_address \
13194     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13195     old_postinstall_cmds old_postuninstall_cmds \
13196     compiler_CXX \
13197     CC_CXX \
13198     LD_CXX \
13199     lt_prog_compiler_wl_CXX \
13200     lt_prog_compiler_pic_CXX \
13201     lt_prog_compiler_static_CXX \
13202     lt_prog_compiler_no_builtin_flag_CXX \
13203     export_dynamic_flag_spec_CXX \
13204     thread_safe_flag_spec_CXX \
13205     whole_archive_flag_spec_CXX \
13206     enable_shared_with_static_runtimes_CXX \
13207     old_archive_cmds_CXX \
13208     old_archive_from_new_cmds_CXX \
13209     predep_objects_CXX \
13210     postdep_objects_CXX \
13211     predeps_CXX \
13212     postdeps_CXX \
13213     compiler_lib_search_path_CXX \
13214     archive_cmds_CXX \
13215     archive_expsym_cmds_CXX \
13216     postinstall_cmds_CXX \
13217     postuninstall_cmds_CXX \
13218     old_archive_from_expsyms_cmds_CXX \
13219     allow_undefined_flag_CXX \
13220     no_undefined_flag_CXX \
13221     export_symbols_cmds_CXX \
13222     hardcode_libdir_flag_spec_CXX \
13223     hardcode_libdir_flag_spec_ld_CXX \
13224     hardcode_libdir_separator_CXX \
13225     hardcode_automatic_CXX \
13226     module_cmds_CXX \
13227     module_expsym_cmds_CXX \
13228     lt_cv_prog_compiler_c_o_CXX \
13229     exclude_expsyms_CXX \
13230     include_expsyms_CXX; do
13231
13232     case $var in
13233     old_archive_cmds_CXX | \
13234     old_archive_from_new_cmds_CXX | \
13235     archive_cmds_CXX | \
13236     archive_expsym_cmds_CXX | \
13237     module_cmds_CXX | \
13238     module_expsym_cmds_CXX | \
13239     old_archive_from_expsyms_cmds_CXX | \
13240     export_symbols_cmds_CXX | \
13241     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13242     postinstall_cmds | postuninstall_cmds | \
13243     old_postinstall_cmds | old_postuninstall_cmds | \
13244     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13245       # Double-quote double-evaled strings.
13246       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13247       ;;
13248     *)
13249       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13250       ;;
13251     esac
13252   done
13253
13254   case $lt_echo in
13255   *'\$0 --fallback-echo"')
13256     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13257     ;;
13258   esac
13259
13260 cfgfile="$ofile"
13261
13262   cat <<__EOF__ >> "$cfgfile"
13263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13264
13265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13266
13267 # Shell to use when invoking shell scripts.
13268 SHELL=$lt_SHELL
13269
13270 # Whether or not to build shared libraries.
13271 build_libtool_libs=$enable_shared
13272
13273 # Whether or not to build static libraries.
13274 build_old_libs=$enable_static
13275
13276 # Whether or not to add -lc for building shared libraries.
13277 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13278
13279 # Whether or not to disallow shared libs when runtime libs are static
13280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13281
13282 # Whether or not to optimize for fast installation.
13283 fast_install=$enable_fast_install
13284
13285 # The host system.
13286 host_alias=$host_alias
13287 host=$host
13288 host_os=$host_os
13289
13290 # The build system.
13291 build_alias=$build_alias
13292 build=$build
13293 build_os=$build_os
13294
13295 # An echo program that does not interpret backslashes.
13296 echo=$lt_echo
13297
13298 # The archiver.
13299 AR=$lt_AR
13300 AR_FLAGS=$lt_AR_FLAGS
13301
13302 # A C compiler.
13303 LTCC=$lt_LTCC
13304
13305 # LTCC compiler flags.
13306 LTCFLAGS=$lt_LTCFLAGS
13307
13308 # A language-specific compiler.
13309 CC=$lt_compiler_CXX
13310
13311 # Is the compiler the GNU C compiler?
13312 with_gcc=$GCC_CXX
13313
13314 # An ERE matcher.
13315 EGREP=$lt_EGREP
13316
13317 # The linker used to build libraries.
13318 LD=$lt_LD_CXX
13319
13320 # Whether we need hard or soft links.
13321 LN_S=$lt_LN_S
13322
13323 # A BSD-compatible nm program.
13324 NM=$lt_NM
13325
13326 # A symbol stripping program
13327 STRIP=$lt_STRIP
13328
13329 # Used to examine libraries when file_magic_cmd begins "file"
13330 MAGIC_CMD=$MAGIC_CMD
13331
13332 # Used on cygwin: DLL creation program.
13333 DLLTOOL="$DLLTOOL"
13334
13335 # Used on cygwin: object dumper.
13336 OBJDUMP="$OBJDUMP"
13337
13338 # Used on cygwin: assembler.
13339 AS="$AS"
13340
13341 # The name of the directory that contains temporary libtool files.
13342 objdir=$objdir
13343
13344 # How to create reloadable object files.
13345 reload_flag=$lt_reload_flag
13346 reload_cmds=$lt_reload_cmds
13347
13348 # How to pass a linker flag through the compiler.
13349 wl=$lt_lt_prog_compiler_wl_CXX
13350
13351 # Object file suffix (normally "o").
13352 objext="$ac_objext"
13353
13354 # Old archive suffix (normally "a").
13355 libext="$libext"
13356
13357 # Shared library suffix (normally ".so").
13358 shrext_cmds='$shrext_cmds'
13359
13360 # Executable file suffix (normally "").
13361 exeext="$exeext"
13362
13363 # Additional compiler flags for building library objects.
13364 pic_flag=$lt_lt_prog_compiler_pic_CXX
13365 pic_mode=$pic_mode
13366
13367 # What is the maximum length of a command?
13368 max_cmd_len=$lt_cv_sys_max_cmd_len
13369
13370 # Does compiler simultaneously support -c and -o options?
13371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13372
13373 # Must we lock files when doing compilation?
13374 need_locks=$lt_need_locks
13375
13376 # Do we need the lib prefix for modules?
13377 need_lib_prefix=$need_lib_prefix
13378
13379 # Do we need a version for libraries?
13380 need_version=$need_version
13381
13382 # Whether dlopen is supported.
13383 dlopen_support=$enable_dlopen
13384
13385 # Whether dlopen of programs is supported.
13386 dlopen_self=$enable_dlopen_self
13387
13388 # Whether dlopen of statically linked programs is supported.
13389 dlopen_self_static=$enable_dlopen_self_static
13390
13391 # Compiler flag to prevent dynamic linking.
13392 link_static_flag=$lt_lt_prog_compiler_static_CXX
13393
13394 # Compiler flag to turn off builtin functions.
13395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13396
13397 # Compiler flag to allow reflexive dlopens.
13398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13399
13400 # Compiler flag to generate shared objects directly from archives.
13401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13402
13403 # Compiler flag to generate thread-safe objects.
13404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13405
13406 # Library versioning type.
13407 version_type=$version_type
13408
13409 # Format of library name prefix.
13410 libname_spec=$lt_libname_spec
13411
13412 # List of archive names.  First name is the real one, the rest are links.
13413 # The last name is the one that the linker finds with -lNAME.
13414 library_names_spec=$lt_library_names_spec
13415
13416 # The coded name of the library, if different from the real name.
13417 soname_spec=$lt_soname_spec
13418
13419 # Commands used to build and install an old-style archive.
13420 RANLIB=$lt_RANLIB
13421 old_archive_cmds=$lt_old_archive_cmds_CXX
13422 old_postinstall_cmds=$lt_old_postinstall_cmds
13423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13424
13425 # Create an old-style archive from a shared archive.
13426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13427
13428 # Create a temporary old-style archive to link instead of a shared archive.
13429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13430
13431 # Commands used to build and install a shared archive.
13432 archive_cmds=$lt_archive_cmds_CXX
13433 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13434 postinstall_cmds=$lt_postinstall_cmds
13435 postuninstall_cmds=$lt_postuninstall_cmds
13436
13437 # Commands used to build a loadable module (assumed same as above if empty)
13438 module_cmds=$lt_module_cmds_CXX
13439 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13440
13441 # Commands to strip libraries.
13442 old_striplib=$lt_old_striplib
13443 striplib=$lt_striplib
13444
13445 # Dependencies to place before the objects being linked to create a
13446 # shared library.
13447 predep_objects=$lt_predep_objects_CXX
13448
13449 # Dependencies to place after the objects being linked to create a
13450 # shared library.
13451 postdep_objects=$lt_postdep_objects_CXX
13452
13453 # Dependencies to place before the objects being linked to create a
13454 # shared library.
13455 predeps=$lt_predeps_CXX
13456
13457 # Dependencies to place after the objects being linked to create a
13458 # shared library.
13459 postdeps=$lt_postdeps_CXX
13460
13461 # The library search path used internally by the compiler when linking
13462 # a shared library.
13463 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13464
13465 # Method to check whether dependent libraries are shared objects.
13466 deplibs_check_method=$lt_deplibs_check_method
13467
13468 # Command to use when deplibs_check_method == file_magic.
13469 file_magic_cmd=$lt_file_magic_cmd
13470
13471 # Flag that allows shared libraries with undefined symbols to be built.
13472 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13473
13474 # Flag that forces no undefined symbols.
13475 no_undefined_flag=$lt_no_undefined_flag_CXX
13476
13477 # Commands used to finish a libtool library installation in a directory.
13478 finish_cmds=$lt_finish_cmds
13479
13480 # Same as above, but a single script fragment to be evaled but not shown.
13481 finish_eval=$lt_finish_eval
13482
13483 # Take the output of nm and produce a listing of raw symbols and C names.
13484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13485
13486 # Transform the output of nm in a proper C declaration
13487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13488
13489 # Transform the output of nm in a C name address pair
13490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13491
13492 # This is the shared library runtime path variable.
13493 runpath_var=$runpath_var
13494
13495 # This is the shared library path variable.
13496 shlibpath_var=$shlibpath_var
13497
13498 # Is shlibpath searched before the hard-coded library search path?
13499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13500
13501 # How to hardcode a shared library path into an executable.
13502 hardcode_action=$hardcode_action_CXX
13503
13504 # Whether we should hardcode library paths into libraries.
13505 hardcode_into_libs=$hardcode_into_libs
13506
13507 # Flag to hardcode \$libdir into a binary during linking.
13508 # This must work even if \$libdir does not exist.
13509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13510
13511 # If ld is used when linking, flag to hardcode \$libdir into
13512 # a binary during linking. This must work even if \$libdir does
13513 # not exist.
13514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13515
13516 # Whether we need a single -rpath flag with a separated argument.
13517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13518
13519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13520 # resulting binary.
13521 hardcode_direct=$hardcode_direct_CXX
13522
13523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13524 # resulting binary.
13525 hardcode_minus_L=$hardcode_minus_L_CXX
13526
13527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13528 # the resulting binary.
13529 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13530
13531 # Set to yes if building a shared library automatically hardcodes DIR into the library
13532 # and all subsequent libraries and executables linked against it.
13533 hardcode_automatic=$hardcode_automatic_CXX
13534
13535 # Variables whose values should be saved in libtool wrapper scripts and
13536 # restored at relink time.
13537 variables_saved_for_relink="$variables_saved_for_relink"
13538
13539 # Whether libtool must link a program against all its dependency libraries.
13540 link_all_deplibs=$link_all_deplibs_CXX
13541
13542 # Compile-time system search path for libraries
13543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13544
13545 # Run-time system search path for libraries
13546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13547
13548 # Fix the shell variable \$srcfile for the compiler.
13549 fix_srcfile_path="$fix_srcfile_path_CXX"
13550
13551 # Set to yes if exported symbols are required.
13552 always_export_symbols=$always_export_symbols_CXX
13553
13554 # The commands to list exported symbols.
13555 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13556
13557 # The commands to extract the exported symbol list from a shared archive.
13558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13559
13560 # Symbols that should not be listed in the preloaded symbols.
13561 exclude_expsyms=$lt_exclude_expsyms_CXX
13562
13563 # Symbols that must always be exported.
13564 include_expsyms=$lt_include_expsyms_CXX
13565
13566 # ### END LIBTOOL TAG CONFIG: $tagname
13567
13568 __EOF__
13569
13570
13571 else
13572   # If there is no Makefile yet, we rely on a make rule to execute
13573   # `config.status --recheck' to rerun these tests and create the
13574   # libtool script then.
13575   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13576   if test -f "$ltmain_in"; then
13577     test -f Makefile && make "$ltmain"
13578   fi
13579 fi
13580
13581
13582 ac_ext=c
13583 ac_cpp='$CPP $CPPFLAGS'
13584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13587
13588 CC=$lt_save_CC
13589 LDCXX=$LD
13590 LD=$lt_save_LD
13591 GCC=$lt_save_GCC
13592 with_gnu_ldcxx=$with_gnu_ld
13593 with_gnu_ld=$lt_save_with_gnu_ld
13594 lt_cv_path_LDCXX=$lt_cv_path_LD
13595 lt_cv_path_LD=$lt_save_path_LD
13596 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13597 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13598
13599         else
13600           tagname=""
13601         fi
13602         ;;
13603
13604       F77)
13605         if test -n "$F77" && test "X$F77" != "Xno"; then
13606
13607 ac_ext=f
13608 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13609 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13610 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13611
13612
13613 archive_cmds_need_lc_F77=no
13614 allow_undefined_flag_F77=
13615 always_export_symbols_F77=no
13616 archive_expsym_cmds_F77=
13617 export_dynamic_flag_spec_F77=
13618 hardcode_direct_F77=no
13619 hardcode_libdir_flag_spec_F77=
13620 hardcode_libdir_flag_spec_ld_F77=
13621 hardcode_libdir_separator_F77=
13622 hardcode_minus_L_F77=no
13623 hardcode_automatic_F77=no
13624 module_cmds_F77=
13625 module_expsym_cmds_F77=
13626 link_all_deplibs_F77=unknown
13627 old_archive_cmds_F77=$old_archive_cmds
13628 no_undefined_flag_F77=
13629 whole_archive_flag_spec_F77=
13630 enable_shared_with_static_runtimes_F77=no
13631
13632 # Source file extension for f77 test sources.
13633 ac_ext=f
13634
13635 # Object file extension for compiled f77 test sources.
13636 objext=o
13637 objext_F77=$objext
13638
13639 # Code to be used in simple compile tests
13640 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13641
13642 # Code to be used in simple link tests
13643 lt_simple_link_test_code="      program t\n      end\n"
13644
13645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13646
13647 # If no C compiler was specified, use CC.
13648 LTCC=${LTCC-"$CC"}
13649
13650 # If no C compiler flags were specified, use CFLAGS.
13651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13652
13653 # Allow CC to be a program name with arguments.
13654 compiler=$CC
13655
13656
13657 # save warnings/boilerplate of simple test code
13658 ac_outfile=conftest.$ac_objext
13659 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13661 _lt_compiler_boilerplate=`cat conftest.err`
13662 $rm conftest*
13663
13664 ac_outfile=conftest.$ac_objext
13665 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13667 _lt_linker_boilerplate=`cat conftest.err`
13668 $rm conftest*
13669
13670
13671 # Allow CC to be a program name with arguments.
13672 lt_save_CC="$CC"
13673 CC=${F77-"f77"}
13674 compiler=$CC
13675 compiler_F77=$CC
13676 for cc_temp in $compiler""; do
13677   case $cc_temp in
13678     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13679     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13680     \-*) ;;
13681     *) break;;
13682   esac
13683 done
13684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13685
13686
13687 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13688 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13689 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13690 echo "${ECHO_T}$can_build_shared" >&6; }
13691
13692 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13693 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13694 test "$can_build_shared" = "no" && enable_shared=no
13695
13696 # On AIX, shared libraries and static libraries use the same namespace, and
13697 # are all built from PIC.
13698 case $host_os in
13699 aix3*)
13700   test "$enable_shared" = yes && enable_static=no
13701   if test -n "$RANLIB"; then
13702     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13703     postinstall_cmds='$RANLIB $lib'
13704   fi
13705   ;;
13706 aix4* | aix5*)
13707   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13708     test "$enable_shared" = yes && enable_static=no
13709   fi
13710   ;;
13711 esac
13712 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13713 echo "${ECHO_T}$enable_shared" >&6; }
13714
13715 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13716 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13717 # Make sure either enable_shared or enable_static is yes.
13718 test "$enable_shared" = yes || enable_static=yes
13719 { echo "$as_me:$LINENO: result: $enable_static" >&5
13720 echo "${ECHO_T}$enable_static" >&6; }
13721
13722 GCC_F77="$G77"
13723 LD_F77="$LD"
13724
13725 lt_prog_compiler_wl_F77=
13726 lt_prog_compiler_pic_F77=
13727 lt_prog_compiler_static_F77=
13728
13729 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13730 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13731
13732   if test "$GCC" = yes; then
13733     lt_prog_compiler_wl_F77='-Wl,'
13734     lt_prog_compiler_static_F77='-static'
13735
13736     case $host_os in
13737       aix*)
13738       # All AIX code is PIC.
13739       if test "$host_cpu" = ia64; then
13740         # AIX 5 now supports IA64 processor
13741         lt_prog_compiler_static_F77='-Bstatic'
13742       fi
13743       ;;
13744
13745     amigaos*)
13746       # FIXME: we need at least 68020 code to build shared libraries, but
13747       # adding the `-m68020' flag to GCC prevents building anything better,
13748       # like `-m68040'.
13749       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13750       ;;
13751
13752     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13753       # PIC is the default for these OSes.
13754       ;;
13755
13756     mingw* | pw32* | os2*)
13757       # This hack is so that the source file can tell whether it is being
13758       # built for inclusion in a dll (and should export symbols for example).
13759       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13760       ;;
13761
13762     darwin* | rhapsody*)
13763       # PIC is the default on this platform
13764       # Common symbols not allowed in MH_DYLIB files
13765       lt_prog_compiler_pic_F77='-fno-common'
13766       ;;
13767
13768     interix3*)
13769       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13770       # Instead, we relocate shared libraries at runtime.
13771       ;;
13772
13773     msdosdjgpp*)
13774       # Just because we use GCC doesn't mean we suddenly get shared libraries
13775       # on systems that don't support them.
13776       lt_prog_compiler_can_build_shared_F77=no
13777       enable_shared=no
13778       ;;
13779
13780     sysv4*MP*)
13781       if test -d /usr/nec; then
13782         lt_prog_compiler_pic_F77=-Kconform_pic
13783       fi
13784       ;;
13785
13786     hpux*)
13787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13788       # not for PA HP-UX.
13789       case $host_cpu in
13790       hppa*64*|ia64*)
13791         # +Z the default
13792         ;;
13793       *)
13794         lt_prog_compiler_pic_F77='-fPIC'
13795         ;;
13796       esac
13797       ;;
13798
13799     *)
13800       lt_prog_compiler_pic_F77='-fPIC'
13801       ;;
13802     esac
13803   else
13804     # PORTME Check for flag to pass linker flags through the system compiler.
13805     case $host_os in
13806     aix*)
13807       lt_prog_compiler_wl_F77='-Wl,'
13808       if test "$host_cpu" = ia64; then
13809         # AIX 5 now supports IA64 processor
13810         lt_prog_compiler_static_F77='-Bstatic'
13811       else
13812         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13813       fi
13814       ;;
13815       darwin*)
13816         # PIC is the default on this platform
13817         # Common symbols not allowed in MH_DYLIB files
13818        case $cc_basename in
13819          xlc*)
13820          lt_prog_compiler_pic_F77='-qnocommon'
13821          lt_prog_compiler_wl_F77='-Wl,'
13822          ;;
13823        esac
13824        ;;
13825
13826     mingw* | pw32* | os2*)
13827       # This hack is so that the source file can tell whether it is being
13828       # built for inclusion in a dll (and should export symbols for example).
13829       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13830       ;;
13831
13832     hpux9* | hpux10* | hpux11*)
13833       lt_prog_compiler_wl_F77='-Wl,'
13834       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13835       # not for PA HP-UX.
13836       case $host_cpu in
13837       hppa*64*|ia64*)
13838         # +Z the default
13839         ;;
13840       *)
13841         lt_prog_compiler_pic_F77='+Z'
13842         ;;
13843       esac
13844       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13845       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13846       ;;
13847
13848     irix5* | irix6* | nonstopux*)
13849       lt_prog_compiler_wl_F77='-Wl,'
13850       # PIC (with -KPIC) is the default.
13851       lt_prog_compiler_static_F77='-non_shared'
13852       ;;
13853
13854     newsos6)
13855       lt_prog_compiler_pic_F77='-KPIC'
13856       lt_prog_compiler_static_F77='-Bstatic'
13857       ;;
13858
13859     linux* | k*bsd*-gnu)
13860       case $cc_basename in
13861       icc* | ecc*)
13862         lt_prog_compiler_wl_F77='-Wl,'
13863         lt_prog_compiler_pic_F77='-KPIC'
13864         lt_prog_compiler_static_F77='-static'
13865         ;;
13866       pgcc* | pgf77* | pgf90* | pgf95*)
13867         # Portland Group compilers (*not* the Pentium gcc compiler,
13868         # which looks to be a dead project)
13869         lt_prog_compiler_wl_F77='-Wl,'
13870         lt_prog_compiler_pic_F77='-fpic'
13871         lt_prog_compiler_static_F77='-Bstatic'
13872         ;;
13873       ccc*)
13874         lt_prog_compiler_wl_F77='-Wl,'
13875         # All Alpha code is PIC.
13876         lt_prog_compiler_static_F77='-non_shared'
13877         ;;
13878       esac
13879       ;;
13880
13881     osf3* | osf4* | osf5*)
13882       lt_prog_compiler_wl_F77='-Wl,'
13883       # All OSF/1 code is PIC.
13884       lt_prog_compiler_static_F77='-non_shared'
13885       ;;
13886
13887     solaris*)
13888       lt_prog_compiler_pic_F77='-KPIC'
13889       lt_prog_compiler_static_F77='-Bstatic'
13890       case $cc_basename in
13891       f77* | f90* | f95*)
13892         lt_prog_compiler_wl_F77='-Qoption ld ';;
13893       *)
13894         lt_prog_compiler_wl_F77='-Wl,';;
13895       esac
13896       ;;
13897
13898     sunos4*)
13899       lt_prog_compiler_wl_F77='-Qoption ld '
13900       lt_prog_compiler_pic_F77='-PIC'
13901       lt_prog_compiler_static_F77='-Bstatic'
13902       ;;
13903
13904     sysv4 | sysv4.2uw2* | sysv4.3*)
13905       lt_prog_compiler_wl_F77='-Wl,'
13906       lt_prog_compiler_pic_F77='-KPIC'
13907       lt_prog_compiler_static_F77='-Bstatic'
13908       ;;
13909
13910     sysv4*MP*)
13911       if test -d /usr/nec ;then
13912         lt_prog_compiler_pic_F77='-Kconform_pic'
13913         lt_prog_compiler_static_F77='-Bstatic'
13914       fi
13915       ;;
13916
13917     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13918       lt_prog_compiler_wl_F77='-Wl,'
13919       lt_prog_compiler_pic_F77='-KPIC'
13920       lt_prog_compiler_static_F77='-Bstatic'
13921       ;;
13922
13923     unicos*)
13924       lt_prog_compiler_wl_F77='-Wl,'
13925       lt_prog_compiler_can_build_shared_F77=no
13926       ;;
13927
13928     uts4*)
13929       lt_prog_compiler_pic_F77='-pic'
13930       lt_prog_compiler_static_F77='-Bstatic'
13931       ;;
13932
13933     *)
13934       lt_prog_compiler_can_build_shared_F77=no
13935       ;;
13936     esac
13937   fi
13938
13939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13940 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13941
13942 #
13943 # Check to make sure the PIC flag actually works.
13944 #
13945 if test -n "$lt_prog_compiler_pic_F77"; then
13946
13947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13949 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13950   echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952   lt_prog_compiler_pic_works_F77=no
13953   ac_outfile=conftest.$ac_objext
13954    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13956    # Insert the option either (1) after the last *FLAGS variable, or
13957    # (2) before a word containing "conftest.", or (3) at the end.
13958    # Note that $ac_compile itself does not contain backslashes and begins
13959    # with a dollar sign (not a hyphen), so the echo should work correctly.
13960    # The option is referenced via a variable to avoid confusing sed.
13961    lt_compile=`echo "$ac_compile" | $SED \
13962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964    -e 's:$: $lt_compiler_flag:'`
13965    (eval echo "\"\$as_me:13965: $lt_compile\"" >&5)
13966    (eval "$lt_compile" 2>conftest.err)
13967    ac_status=$?
13968    cat conftest.err >&5
13969    echo "$as_me:13969: \$? = $ac_status" >&5
13970    if (exit $ac_status) && test -s "$ac_outfile"; then
13971      # The compiler can only warn and ignore the option if not recognized
13972      # So say no if there are warnings other than the usual output.
13973      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13974      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13975      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13976        lt_prog_compiler_pic_works_F77=yes
13977      fi
13978    fi
13979    $rm conftest*
13980
13981 fi
13982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13983 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13984
13985 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13986     case $lt_prog_compiler_pic_F77 in
13987      "" | " "*) ;;
13988      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13989      esac
13990 else
13991     lt_prog_compiler_pic_F77=
13992      lt_prog_compiler_can_build_shared_F77=no
13993 fi
13994
13995 fi
13996 case $host_os in
13997   # For platforms which do not support PIC, -DPIC is meaningless:
13998   *djgpp*)
13999     lt_prog_compiler_pic_F77=
14000     ;;
14001   *)
14002     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14003     ;;
14004 esac
14005
14006 #
14007 # Check to make sure the static flag actually works.
14008 #
14009 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14010 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14011 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14012 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   lt_prog_compiler_static_works_F77=no
14016    save_LDFLAGS="$LDFLAGS"
14017    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14018    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14019    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14020      # The linker can only warn and ignore the option if not recognized
14021      # So say no if there are warnings
14022      if test -s conftest.err; then
14023        # Append any errors to the config.log.
14024        cat conftest.err 1>&5
14025        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14026        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14027        if diff conftest.exp conftest.er2 >/dev/null; then
14028          lt_prog_compiler_static_works_F77=yes
14029        fi
14030      else
14031        lt_prog_compiler_static_works_F77=yes
14032      fi
14033    fi
14034    $rm conftest*
14035    LDFLAGS="$save_LDFLAGS"
14036
14037 fi
14038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14039 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14040
14041 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14042     :
14043 else
14044     lt_prog_compiler_static_F77=
14045 fi
14046
14047
14048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14050 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   lt_cv_prog_compiler_c_o_F77=no
14054    $rm -r conftest 2>/dev/null
14055    mkdir conftest
14056    cd conftest
14057    mkdir out
14058    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14059
14060    lt_compiler_flag="-o out/conftest2.$ac_objext"
14061    # Insert the option either (1) after the last *FLAGS variable, or
14062    # (2) before a word containing "conftest.", or (3) at the end.
14063    # Note that $ac_compile itself does not contain backslashes and begins
14064    # with a dollar sign (not a hyphen), so the echo should work correctly.
14065    lt_compile=`echo "$ac_compile" | $SED \
14066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14068    -e 's:$: $lt_compiler_flag:'`
14069    (eval echo "\"\$as_me:14069: $lt_compile\"" >&5)
14070    (eval "$lt_compile" 2>out/conftest.err)
14071    ac_status=$?
14072    cat out/conftest.err >&5
14073    echo "$as_me:14073: \$? = $ac_status" >&5
14074    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14075    then
14076      # The compiler can only warn and ignore the option if not recognized
14077      # So say no if there are warnings
14078      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14079      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14080      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14081        lt_cv_prog_compiler_c_o_F77=yes
14082      fi
14083    fi
14084    chmod u+w . 2>&5
14085    $rm conftest*
14086    # SGI C++ compiler will create directory out/ii_files/ for
14087    # template instantiation
14088    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14089    $rm out/* && rmdir out
14090    cd ..
14091    rmdir conftest
14092    $rm conftest*
14093
14094 fi
14095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14097
14098
14099 hard_links="nottested"
14100 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14101   # do not overwrite the value of need_locks provided by the user
14102   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14104   hard_links=yes
14105   $rm conftest*
14106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14107   touch conftest.a
14108   ln conftest.a conftest.b 2>&5 || hard_links=no
14109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110   { echo "$as_me:$LINENO: result: $hard_links" >&5
14111 echo "${ECHO_T}$hard_links" >&6; }
14112   if test "$hard_links" = no; then
14113     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14115     need_locks=warn
14116   fi
14117 else
14118   need_locks=no
14119 fi
14120
14121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14123
14124   runpath_var=
14125   allow_undefined_flag_F77=
14126   enable_shared_with_static_runtimes_F77=no
14127   archive_cmds_F77=
14128   archive_expsym_cmds_F77=
14129   old_archive_From_new_cmds_F77=
14130   old_archive_from_expsyms_cmds_F77=
14131   export_dynamic_flag_spec_F77=
14132   whole_archive_flag_spec_F77=
14133   thread_safe_flag_spec_F77=
14134   hardcode_libdir_flag_spec_F77=
14135   hardcode_libdir_flag_spec_ld_F77=
14136   hardcode_libdir_separator_F77=
14137   hardcode_direct_F77=no
14138   hardcode_minus_L_F77=no
14139   hardcode_shlibpath_var_F77=unsupported
14140   link_all_deplibs_F77=unknown
14141   hardcode_automatic_F77=no
14142   module_cmds_F77=
14143   module_expsym_cmds_F77=
14144   always_export_symbols_F77=no
14145   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14146   # include_expsyms should be a list of space-separated symbols to be *always*
14147   # included in the symbol list
14148   include_expsyms_F77=
14149   # exclude_expsyms can be an extended regexp of symbols to exclude
14150   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14151   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14152   # as well as any symbol that contains `d'.
14153   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14154   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14155   # platforms (ab)use it in PIC code, but their linkers get confused if
14156   # the symbol is explicitly referenced.  Since portable code cannot
14157   # rely on this symbol name, it's probably fine to never include it in
14158   # preloaded symbol tables.
14159   extract_expsyms_cmds=
14160   # Just being paranoid about ensuring that cc_basename is set.
14161   for cc_temp in $compiler""; do
14162   case $cc_temp in
14163     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14164     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14165     \-*) ;;
14166     *) break;;
14167   esac
14168 done
14169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14170
14171   case $host_os in
14172   cygwin* | mingw* | pw32*)
14173     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14174     # When not using gcc, we currently assume that we are using
14175     # Microsoft Visual C++.
14176     if test "$GCC" != yes; then
14177       with_gnu_ld=no
14178     fi
14179     ;;
14180   interix*)
14181     # we just hope/assume this is gcc and not c89 (= MSVC++)
14182     with_gnu_ld=yes
14183     ;;
14184   openbsd*)
14185     with_gnu_ld=no
14186     ;;
14187   esac
14188
14189   ld_shlibs_F77=yes
14190   if test "$with_gnu_ld" = yes; then
14191     # If archive_cmds runs LD, not CC, wlarc should be empty
14192     wlarc='${wl}'
14193
14194     # Set some defaults for GNU ld with shared library support. These
14195     # are reset later if shared libraries are not supported. Putting them
14196     # here allows them to be overridden if necessary.
14197     runpath_var=LD_RUN_PATH
14198     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14199     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14200     # ancient GNU ld didn't support --whole-archive et. al.
14201     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14202         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14203       else
14204         whole_archive_flag_spec_F77=
14205     fi
14206     supports_anon_versioning=no
14207     case `$LD -v 2>/dev/null` in
14208       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14209       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14210       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14211       *\ 2.11.*) ;; # other 2.11 versions
14212       *) supports_anon_versioning=yes ;;
14213     esac
14214
14215     # See if GNU ld supports shared libraries.
14216     case $host_os in
14217     aix3* | aix4* | aix5*)
14218       # On AIX/PPC, the GNU linker is very broken
14219       if test "$host_cpu" != ia64; then
14220         ld_shlibs_F77=no
14221         cat <<EOF 1>&2
14222
14223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14224 *** to be unable to reliably create shared libraries on AIX.
14225 *** Therefore, libtool is disabling shared libraries support.  If you
14226 *** really care for shared libraries, you may want to modify your PATH
14227 *** so that a non-GNU linker is found, and then restart.
14228
14229 EOF
14230       fi
14231       ;;
14232
14233     amigaos*)
14234       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)'
14235       hardcode_libdir_flag_spec_F77='-L$libdir'
14236       hardcode_minus_L_F77=yes
14237
14238       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14239       # that the semantics of dynamic libraries on AmigaOS, at least up
14240       # to version 4, is to share data among multiple programs linked
14241       # with the same dynamic library.  Since this doesn't match the
14242       # behavior of shared libraries on other platforms, we can't use
14243       # them.
14244       ld_shlibs_F77=no
14245       ;;
14246
14247     beos*)
14248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249         allow_undefined_flag_F77=unsupported
14250         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14251         # support --undefined.  This deserves some investigation.  FIXME
14252         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253       else
14254         ld_shlibs_F77=no
14255       fi
14256       ;;
14257
14258     cygwin* | mingw* | pw32*)
14259       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14260       # as there is no search path for DLLs.
14261       hardcode_libdir_flag_spec_F77='-L$libdir'
14262       allow_undefined_flag_F77=unsupported
14263       always_export_symbols_F77=no
14264       enable_shared_with_static_runtimes_F77=yes
14265       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14266
14267       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14268         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14269         # If the export-symbols file already is a .def file (1st line
14270         # is EXPORTS), use it as is; otherwise, prepend...
14271         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14272           cp $export_symbols $output_objdir/$soname.def;
14273         else
14274           echo EXPORTS > $output_objdir/$soname.def;
14275           cat $export_symbols >> $output_objdir/$soname.def;
14276         fi~
14277         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14278       else
14279         ld_shlibs_F77=no
14280       fi
14281       ;;
14282
14283     interix3*)
14284       hardcode_direct_F77=no
14285       hardcode_shlibpath_var_F77=no
14286       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14287       export_dynamic_flag_spec_F77='${wl}-E'
14288       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14289       # Instead, shared libraries are loaded at an image base (0x10000000 by
14290       # default) and relocated if they conflict, which is a slow very memory
14291       # consuming and fragmenting process.  To avoid this, we pick a random,
14292       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14293       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14294       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'
14295       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'
14296       ;;
14297
14298     linux* | k*bsd*-gnu)
14299       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300         tmp_addflag=
14301         case $cc_basename,$host_cpu in
14302         pgcc*)                          # Portland Group C compiler
14303           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'
14304           tmp_addflag=' $pic_flag'
14305           ;;
14306         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14307           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'
14308           tmp_addflag=' $pic_flag -Mnomain' ;;
14309         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14310           tmp_addflag=' -i_dynamic' ;;
14311         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14312           tmp_addflag=' -i_dynamic -nofor_main' ;;
14313         ifc* | ifort*)                  # Intel Fortran compiler
14314           tmp_addflag=' -nofor_main' ;;
14315         esac
14316         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317
14318         if test $supports_anon_versioning = yes; then
14319           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14320   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14321   $echo "local: *; };" >> $output_objdir/$libname.ver~
14322           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14323         fi
14324         link_all_deplibs_F77=no
14325       else
14326         ld_shlibs_F77=no
14327       fi
14328       ;;
14329
14330     netbsd* | netbsdelf*-gnu)
14331       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14332         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14333         wlarc=
14334       else
14335         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14336         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14337       fi
14338       ;;
14339
14340     solaris*)
14341       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14342         ld_shlibs_F77=no
14343         cat <<EOF 1>&2
14344
14345 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14346 *** create shared libraries on Solaris systems.  Therefore, libtool
14347 *** is disabling shared libraries support.  We urge you to upgrade GNU
14348 *** binutils to release 2.9.1 or newer.  Another option is to modify
14349 *** your PATH or compiler configuration so that the native linker is
14350 *** used, and then restart.
14351
14352 EOF
14353       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14354         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14355         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14356       else
14357         ld_shlibs_F77=no
14358       fi
14359       ;;
14360
14361     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14362       case `$LD -v 2>&1` in
14363         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14364         ld_shlibs_F77=no
14365         cat <<_LT_EOF 1>&2
14366
14367 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14368 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14369 *** is disabling shared libraries support.  We urge you to upgrade GNU
14370 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14371 *** your PATH or compiler configuration so that the native linker is
14372 *** used, and then restart.
14373
14374 _LT_EOF
14375         ;;
14376         *)
14377           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14379             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14380             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14381           else
14382             ld_shlibs_F77=no
14383           fi
14384         ;;
14385       esac
14386       ;;
14387
14388     sunos4*)
14389       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14390       wlarc=
14391       hardcode_direct_F77=yes
14392       hardcode_shlibpath_var_F77=no
14393       ;;
14394
14395     *)
14396       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14397         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14398         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14399       else
14400         ld_shlibs_F77=no
14401       fi
14402       ;;
14403     esac
14404
14405     if test "$ld_shlibs_F77" = no; then
14406       runpath_var=
14407       hardcode_libdir_flag_spec_F77=
14408       export_dynamic_flag_spec_F77=
14409       whole_archive_flag_spec_F77=
14410     fi
14411   else
14412     # PORTME fill in a description of your system's linker (not GNU ld)
14413     case $host_os in
14414     aix3*)
14415       allow_undefined_flag_F77=unsupported
14416       always_export_symbols_F77=yes
14417       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'
14418       # Note: this linker hardcodes the directories in LIBPATH if there
14419       # are no directories specified by -L.
14420       hardcode_minus_L_F77=yes
14421       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14422         # Neither direct hardcoding nor static linking is supported with a
14423         # broken collect2.
14424         hardcode_direct_F77=unsupported
14425       fi
14426       ;;
14427
14428     aix4* | aix5*)
14429       if test "$host_cpu" = ia64; then
14430         # On IA64, the linker does run time linking by default, so we don't
14431         # have to do anything special.
14432         aix_use_runtimelinking=no
14433         exp_sym_flag='-Bexport'
14434         no_entry_flag=""
14435       else
14436         # If we're using GNU nm, then we don't want the "-C" option.
14437         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14438         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14439           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'
14440         else
14441           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'
14442         fi
14443         aix_use_runtimelinking=no
14444
14445         # Test if we are trying to use run time linking or normal
14446         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14447         # need to do runtime linking.
14448         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14449           for ld_flag in $LDFLAGS; do
14450           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14451             aix_use_runtimelinking=yes
14452             break
14453           fi
14454           done
14455           ;;
14456         esac
14457
14458         exp_sym_flag='-bexport'
14459         no_entry_flag='-bnoentry'
14460       fi
14461
14462       # When large executables or shared objects are built, AIX ld can
14463       # have problems creating the table of contents.  If linking a library
14464       # or program results in "error TOC overflow" add -mminimal-toc to
14465       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14466       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14467
14468       archive_cmds_F77=''
14469       hardcode_direct_F77=yes
14470       hardcode_libdir_separator_F77=':'
14471       link_all_deplibs_F77=yes
14472
14473       if test "$GCC" = yes; then
14474         case $host_os in aix4.[012]|aix4.[012].*)
14475         # We only want to do this on AIX 4.2 and lower, the check
14476         # below for broken collect2 doesn't work under 4.3+
14477           collect2name=`${CC} -print-prog-name=collect2`
14478           if test -f "$collect2name" && \
14479            strings "$collect2name" | grep resolve_lib_name >/dev/null
14480           then
14481           # We have reworked collect2
14482           hardcode_direct_F77=yes
14483           else
14484           # We have old collect2
14485           hardcode_direct_F77=unsupported
14486           # It fails to find uninstalled libraries when the uninstalled
14487           # path is not listed in the libpath.  Setting hardcode_minus_L
14488           # to unsupported forces relinking
14489           hardcode_minus_L_F77=yes
14490           hardcode_libdir_flag_spec_F77='-L$libdir'
14491           hardcode_libdir_separator_F77=
14492           fi
14493           ;;
14494         esac
14495         shared_flag='-shared'
14496         if test "$aix_use_runtimelinking" = yes; then
14497           shared_flag="$shared_flag "'${wl}-G'
14498         fi
14499       else
14500         # not using gcc
14501         if test "$host_cpu" = ia64; then
14502         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14503         # chokes on -Wl,-G. The following line is correct:
14504           shared_flag='-G'
14505         else
14506           if test "$aix_use_runtimelinking" = yes; then
14507             shared_flag='${wl}-G'
14508           else
14509             shared_flag='${wl}-bM:SRE'
14510           fi
14511         fi
14512       fi
14513
14514       # It seems that -bexpall does not export symbols beginning with
14515       # underscore (_), so it is better to generate a list of symbols to export.
14516       always_export_symbols_F77=yes
14517       if test "$aix_use_runtimelinking" = yes; then
14518         # Warning - without using the other runtime loading flags (-brtl),
14519         # -berok will link without error, but may produce a broken library.
14520         allow_undefined_flag_F77='-berok'
14521        # Determine the default libpath from the value encoded in an empty executable.
14522        cat >conftest.$ac_ext <<_ACEOF
14523       program main
14524
14525       end
14526 _ACEOF
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531   *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534   (eval "$ac_link") 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } && {
14541          test -z "$ac_f77_werror_flag" ||
14542          test ! -s conftest.err
14543        } && test -s conftest$ac_exeext &&
14544        $as_test_x conftest$ac_exeext; then
14545
14546 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14547 }'`
14548 # Check for a 64-bit object if we didn't find anything.
14549 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14550 }'`; fi
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555
14556 fi
14557
14558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14559       conftest$ac_exeext conftest.$ac_ext
14560 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14561
14562        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14563         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"
14564        else
14565         if test "$host_cpu" = ia64; then
14566           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14567           allow_undefined_flag_F77="-z nodefs"
14568           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"
14569         else
14570          # Determine the default libpath from the value encoded in an empty executable.
14571          cat >conftest.$ac_ext <<_ACEOF
14572       program main
14573
14574       end
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (ac_try="$ac_link"
14578 case "(($ac_try" in
14579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580   *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583   (eval "$ac_link") 2>conftest.er1
14584   ac_status=$?
14585   grep -v '^ *+' conftest.er1 >conftest.err
14586   rm -f conftest.er1
14587   cat conftest.err >&5
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } && {
14590          test -z "$ac_f77_werror_flag" ||
14591          test ! -s conftest.err
14592        } && test -s conftest$ac_exeext &&
14593        $as_test_x conftest$ac_exeext; then
14594
14595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14596 }'`
14597 # Check for a 64-bit object if we didn't find anything.
14598 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14599 }'`; fi
14600 else
14601   echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604
14605 fi
14606
14607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14608       conftest$ac_exeext conftest.$ac_ext
14609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14610
14611          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14612           # Warning - without using the other run time loading flags,
14613           # -berok will link without error, but may produce a broken library.
14614           no_undefined_flag_F77=' ${wl}-bernotok'
14615           allow_undefined_flag_F77=' ${wl}-berok'
14616           # Exported symbols can be pulled into shared objects from archives
14617           whole_archive_flag_spec_F77='$convenience'
14618           archive_cmds_need_lc_F77=yes
14619           # This is similar to how AIX traditionally builds its shared libraries.
14620           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'
14621         fi
14622       fi
14623       ;;
14624
14625     amigaos*)
14626       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)'
14627       hardcode_libdir_flag_spec_F77='-L$libdir'
14628       hardcode_minus_L_F77=yes
14629       # see comment about different semantics on the GNU ld section
14630       ld_shlibs_F77=no
14631       ;;
14632
14633     bsdi[45]*)
14634       export_dynamic_flag_spec_F77=-rdynamic
14635       ;;
14636
14637     cygwin* | mingw* | pw32*)
14638       # When not using gcc, we currently assume that we are using
14639       # Microsoft Visual C++.
14640       # hardcode_libdir_flag_spec is actually meaningless, as there is
14641       # no search path for DLLs.
14642       hardcode_libdir_flag_spec_F77=' '
14643       allow_undefined_flag_F77=unsupported
14644       # Tell ltmain to make .lib files, not .a files.
14645       libext=lib
14646       # Tell ltmain to make .dll files, not .so files.
14647       shrext_cmds=".dll"
14648       # FIXME: Setting linknames here is a bad hack.
14649       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14650       # The linker will automatically build a .lib file if we build a DLL.
14651       old_archive_From_new_cmds_F77='true'
14652       # FIXME: Should let the user specify the lib program.
14653       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14654       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14655       enable_shared_with_static_runtimes_F77=yes
14656       ;;
14657
14658     darwin* | rhapsody*)
14659       case $host_os in
14660         rhapsody* | darwin1.[012])
14661          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14662          ;;
14663        *) # Darwin 1.3 on
14664          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14665            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14666          else
14667            case ${MACOSX_DEPLOYMENT_TARGET} in
14668              10.[012])
14669                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14670                ;;
14671              10.*)
14672                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14673                ;;
14674            esac
14675          fi
14676          ;;
14677       esac
14678       archive_cmds_need_lc_F77=no
14679       hardcode_direct_F77=no
14680       hardcode_automatic_F77=yes
14681       hardcode_shlibpath_var_F77=unsupported
14682       whole_archive_flag_spec_F77=''
14683       link_all_deplibs_F77=yes
14684     if test "$GCC" = yes ; then
14685         output_verbose_link_cmd='echo'
14686         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14687       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14688       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14689       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14690       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}'
14691     else
14692       case $cc_basename in
14693         xlc*)
14694          output_verbose_link_cmd='echo'
14695          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14696          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14697           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14698          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14699           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}'
14700           ;;
14701        *)
14702          ld_shlibs_F77=no
14703           ;;
14704       esac
14705     fi
14706       ;;
14707
14708     dgux*)
14709       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14710       hardcode_libdir_flag_spec_F77='-L$libdir'
14711       hardcode_shlibpath_var_F77=no
14712       ;;
14713
14714     freebsd1*)
14715       ld_shlibs_F77=no
14716       ;;
14717
14718     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14719     # support.  Future versions do this automatically, but an explicit c++rt0.o
14720     # does not break anything, and helps significantly (at the cost of a little
14721     # extra space).
14722     freebsd2.2*)
14723       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14724       hardcode_libdir_flag_spec_F77='-R$libdir'
14725       hardcode_direct_F77=yes
14726       hardcode_shlibpath_var_F77=no
14727       ;;
14728
14729     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14730     freebsd2*)
14731       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14732       hardcode_direct_F77=yes
14733       hardcode_minus_L_F77=yes
14734       hardcode_shlibpath_var_F77=no
14735       ;;
14736
14737     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14738     freebsd* | dragonfly*)
14739       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14740       hardcode_libdir_flag_spec_F77='-R$libdir'
14741       hardcode_direct_F77=yes
14742       hardcode_shlibpath_var_F77=no
14743       ;;
14744
14745     hpux9*)
14746       if test "$GCC" = yes; then
14747         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'
14748       else
14749         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'
14750       fi
14751       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14752       hardcode_libdir_separator_F77=:
14753       hardcode_direct_F77=yes
14754
14755       # hardcode_minus_L: Not really in the search PATH,
14756       # but as the default location of the library.
14757       hardcode_minus_L_F77=yes
14758       export_dynamic_flag_spec_F77='${wl}-E'
14759       ;;
14760
14761     hpux10*)
14762       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14763         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14764       else
14765         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14766       fi
14767       if test "$with_gnu_ld" = no; then
14768         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14769         hardcode_libdir_separator_F77=:
14770
14771         hardcode_direct_F77=yes
14772         export_dynamic_flag_spec_F77='${wl}-E'
14773
14774         # hardcode_minus_L: Not really in the search PATH,
14775         # but as the default location of the library.
14776         hardcode_minus_L_F77=yes
14777       fi
14778       ;;
14779
14780     hpux11*)
14781       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14782         case $host_cpu in
14783         hppa*64*)
14784           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14785           ;;
14786         ia64*)
14787           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14788           ;;
14789         *)
14790           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14791           ;;
14792         esac
14793       else
14794         case $host_cpu in
14795         hppa*64*)
14796           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14797           ;;
14798         ia64*)
14799           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14800           ;;
14801         *)
14802           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14803           ;;
14804         esac
14805       fi
14806       if test "$with_gnu_ld" = no; then
14807         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14808         hardcode_libdir_separator_F77=:
14809
14810         case $host_cpu in
14811         hppa*64*|ia64*)
14812           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14813           hardcode_direct_F77=no
14814           hardcode_shlibpath_var_F77=no
14815           ;;
14816         *)
14817           hardcode_direct_F77=yes
14818           export_dynamic_flag_spec_F77='${wl}-E'
14819
14820           # hardcode_minus_L: Not really in the search PATH,
14821           # but as the default location of the library.
14822           hardcode_minus_L_F77=yes
14823           ;;
14824         esac
14825       fi
14826       ;;
14827
14828     irix5* | irix6* | nonstopux*)
14829       if test "$GCC" = yes; then
14830         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'
14831       else
14832         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'
14833         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14834       fi
14835       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14836       hardcode_libdir_separator_F77=:
14837       link_all_deplibs_F77=yes
14838       ;;
14839
14840     netbsd* | netbsdelf*-gnu)
14841       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14842         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14843       else
14844         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14845       fi
14846       hardcode_libdir_flag_spec_F77='-R$libdir'
14847       hardcode_direct_F77=yes
14848       hardcode_shlibpath_var_F77=no
14849       ;;
14850
14851     newsos6)
14852       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14853       hardcode_direct_F77=yes
14854       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14855       hardcode_libdir_separator_F77=:
14856       hardcode_shlibpath_var_F77=no
14857       ;;
14858
14859     openbsd*)
14860       hardcode_direct_F77=yes
14861       hardcode_shlibpath_var_F77=no
14862       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14863         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14864         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14865         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14866         export_dynamic_flag_spec_F77='${wl}-E'
14867       else
14868        case $host_os in
14869          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14870            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14871            hardcode_libdir_flag_spec_F77='-R$libdir'
14872            ;;
14873          *)
14874            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14875            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14876            ;;
14877        esac
14878       fi
14879       ;;
14880
14881     os2*)
14882       hardcode_libdir_flag_spec_F77='-L$libdir'
14883       hardcode_minus_L_F77=yes
14884       allow_undefined_flag_F77=unsupported
14885       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'
14886       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14887       ;;
14888
14889     osf3*)
14890       if test "$GCC" = yes; then
14891         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14892         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'
14893       else
14894         allow_undefined_flag_F77=' -expect_unresolved \*'
14895         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'
14896       fi
14897       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14898       hardcode_libdir_separator_F77=:
14899       ;;
14900
14901     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14902       if test "$GCC" = yes; then
14903         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14904         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'
14905         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14906       else
14907         allow_undefined_flag_F77=' -expect_unresolved \*'
14908         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'
14909         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~
14910         $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'
14911
14912         # Both c and cxx compiler support -rpath directly
14913         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14914       fi
14915       hardcode_libdir_separator_F77=:
14916       ;;
14917
14918     solaris*)
14919       no_undefined_flag_F77=' -z text'
14920       if test "$GCC" = yes; then
14921         wlarc='${wl}'
14922         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14923         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14924           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14925       else
14926         wlarc=''
14927         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14928         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14929         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14930       fi
14931       hardcode_libdir_flag_spec_F77='-R$libdir'
14932       hardcode_shlibpath_var_F77=no
14933       case $host_os in
14934       solaris2.[0-5] | solaris2.[0-5].*) ;;
14935       *)
14936         # The compiler driver will combine linker options so we
14937         # cannot just pass the convience library names through
14938         # without $wl, iff we do not link with $LD.
14939         # Luckily, gcc supports the same syntax we need for Sun Studio.
14940         # Supported since Solaris 2.6 (maybe 2.5.1?)
14941         case $wlarc in
14942         '')
14943           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14944         *)
14945           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14946         esac ;;
14947       esac
14948       link_all_deplibs_F77=yes
14949       ;;
14950
14951     sunos4*)
14952       if test "x$host_vendor" = xsequent; then
14953         # Use $CC to link under sequent, because it throws in some extra .o
14954         # files that make .init and .fini sections work.
14955         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14956       else
14957         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14958       fi
14959       hardcode_libdir_flag_spec_F77='-L$libdir'
14960       hardcode_direct_F77=yes
14961       hardcode_minus_L_F77=yes
14962       hardcode_shlibpath_var_F77=no
14963       ;;
14964
14965     sysv4)
14966       case $host_vendor in
14967         sni)
14968           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969           hardcode_direct_F77=yes # is this really true???
14970         ;;
14971         siemens)
14972           ## LD is ld it makes a PLAMLIB
14973           ## CC just makes a GrossModule.
14974           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14975           reload_cmds_F77='$CC -r -o $output$reload_objs'
14976           hardcode_direct_F77=no
14977         ;;
14978         motorola)
14979           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14980           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14981         ;;
14982       esac
14983       runpath_var='LD_RUN_PATH'
14984       hardcode_shlibpath_var_F77=no
14985       ;;
14986
14987     sysv4.3*)
14988       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14989       hardcode_shlibpath_var_F77=no
14990       export_dynamic_flag_spec_F77='-Bexport'
14991       ;;
14992
14993     sysv4*MP*)
14994       if test -d /usr/nec; then
14995         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14996         hardcode_shlibpath_var_F77=no
14997         runpath_var=LD_RUN_PATH
14998         hardcode_runpath_var=yes
14999         ld_shlibs_F77=yes
15000       fi
15001       ;;
15002
15003     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15004       no_undefined_flag_F77='${wl}-z,text'
15005       archive_cmds_need_lc_F77=no
15006       hardcode_shlibpath_var_F77=no
15007       runpath_var='LD_RUN_PATH'
15008
15009       if test "$GCC" = yes; then
15010         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15011         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012       else
15013         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15014         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015       fi
15016       ;;
15017
15018     sysv5* | sco3.2v5* | sco5v6*)
15019       # Note: We can NOT use -z defs as we might desire, because we do not
15020       # link with -lc, and that would cause any symbols used from libc to
15021       # always be unresolved, which means just about no library would
15022       # ever link correctly.  If we're not using GNU ld we use -z text
15023       # though, which does catch some bad symbols but isn't as heavy-handed
15024       # as -z defs.
15025       no_undefined_flag_F77='${wl}-z,text'
15026       allow_undefined_flag_F77='${wl}-z,nodefs'
15027       archive_cmds_need_lc_F77=no
15028       hardcode_shlibpath_var_F77=no
15029       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15030       hardcode_libdir_separator_F77=':'
15031       link_all_deplibs_F77=yes
15032       export_dynamic_flag_spec_F77='${wl}-Bexport'
15033       runpath_var='LD_RUN_PATH'
15034
15035       if test "$GCC" = yes; then
15036         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15037         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038       else
15039         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15040         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15041       fi
15042       ;;
15043
15044     uts4*)
15045       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046       hardcode_libdir_flag_spec_F77='-L$libdir'
15047       hardcode_shlibpath_var_F77=no
15048       ;;
15049
15050     *)
15051       ld_shlibs_F77=no
15052       ;;
15053     esac
15054   fi
15055
15056 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15057 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15058 test "$ld_shlibs_F77" = no && can_build_shared=no
15059
15060 #
15061 # Do we need to explicitly link libc?
15062 #
15063 case "x$archive_cmds_need_lc_F77" in
15064 x|xyes)
15065   # Assume -lc should be added
15066   archive_cmds_need_lc_F77=yes
15067
15068   if test "$enable_shared" = yes && test "$GCC" = yes; then
15069     case $archive_cmds_F77 in
15070     *'~'*)
15071       # FIXME: we may have to deal with multi-command sequences.
15072       ;;
15073     '$CC '*)
15074       # Test whether the compiler implicitly links with -lc since on some
15075       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15076       # to ld, don't add -lc before -lgcc.
15077       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15079       $rm conftest*
15080       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15081
15082       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083   (eval $ac_compile) 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); } 2>conftest.err; then
15087         soname=conftest
15088         lib=conftest
15089         libobjs=conftest.$ac_objext
15090         deplibs=
15091         wl=$lt_prog_compiler_wl_F77
15092         pic_flag=$lt_prog_compiler_pic_F77
15093         compiler_flags=-v
15094         linker_flags=-v
15095         verstring=
15096         output_objdir=.
15097         libname=conftest
15098         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15099         allow_undefined_flag_F77=
15100         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15101   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }
15105         then
15106           archive_cmds_need_lc_F77=no
15107         else
15108           archive_cmds_need_lc_F77=yes
15109         fi
15110         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15111       else
15112         cat conftest.err 1>&5
15113       fi
15114       $rm conftest*
15115       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15116 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15117       ;;
15118     esac
15119   fi
15120   ;;
15121 esac
15122
15123 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15124 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15125 library_names_spec=
15126 libname_spec='lib$name'
15127 soname_spec=
15128 shrext_cmds=".so"
15129 postinstall_cmds=
15130 postuninstall_cmds=
15131 finish_cmds=
15132 finish_eval=
15133 shlibpath_var=
15134 shlibpath_overrides_runpath=unknown
15135 version_type=none
15136 dynamic_linker="$host_os ld.so"
15137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15138 if test "$GCC" = yes; then
15139   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15140   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15141     # if the path contains ";" then we assume it to be the separator
15142     # otherwise default to the standard path separator (i.e. ":") - it is
15143     # assumed that no part of a normal pathname contains ";" but that should
15144     # okay in the real world where ";" in dirpaths is itself problematic.
15145     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15146   else
15147     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15148   fi
15149 else
15150   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15151 fi
15152 need_lib_prefix=unknown
15153 hardcode_into_libs=no
15154
15155 # when you set need_version to no, make sure it does not cause -set_version
15156 # flags to be left without arguments
15157 need_version=unknown
15158
15159 case $host_os in
15160 aix3*)
15161   version_type=linux
15162   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15163   shlibpath_var=LIBPATH
15164
15165   # AIX 3 has no versioning support, so we append a major version to the name.
15166   soname_spec='${libname}${release}${shared_ext}$major'
15167   ;;
15168
15169 aix4* | aix5*)
15170   version_type=linux
15171   need_lib_prefix=no
15172   need_version=no
15173   hardcode_into_libs=yes
15174   if test "$host_cpu" = ia64; then
15175     # AIX 5 supports IA64
15176     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15177     shlibpath_var=LD_LIBRARY_PATH
15178   else
15179     # With GCC up to 2.95.x, collect2 would create an import file
15180     # for dependence libraries.  The import file would start with
15181     # the line `#! .'.  This would cause the generated library to
15182     # depend on `.', always an invalid library.  This was fixed in
15183     # development snapshots of GCC prior to 3.0.
15184     case $host_os in
15185       aix4 | aix4.[01] | aix4.[01].*)
15186       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15187            echo ' yes '
15188            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15189         :
15190       else
15191         can_build_shared=no
15192       fi
15193       ;;
15194     esac
15195     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15196     # soname into executable. Probably we can add versioning support to
15197     # collect2, so additional links can be useful in future.
15198     if test "$aix_use_runtimelinking" = yes; then
15199       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15200       # instead of lib<name>.a to let people know that these are not
15201       # typical AIX shared libraries.
15202       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203     else
15204       # We preserve .a as extension for shared libraries through AIX4.2
15205       # and later when we are not doing run time linking.
15206       library_names_spec='${libname}${release}.a $libname.a'
15207       soname_spec='${libname}${release}${shared_ext}$major'
15208     fi
15209     shlibpath_var=LIBPATH
15210   fi
15211   ;;
15212
15213 amigaos*)
15214   library_names_spec='$libname.ixlibrary $libname.a'
15215   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15216   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'
15217   ;;
15218
15219 beos*)
15220   library_names_spec='${libname}${shared_ext}'
15221   dynamic_linker="$host_os ld.so"
15222   shlibpath_var=LIBRARY_PATH
15223   ;;
15224
15225 bsdi[45]*)
15226   version_type=linux
15227   need_version=no
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229   soname_spec='${libname}${release}${shared_ext}$major'
15230   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15231   shlibpath_var=LD_LIBRARY_PATH
15232   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15233   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15234   # the default ld.so.conf also contains /usr/contrib/lib and
15235   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15236   # libtool to hard-code these into programs
15237   ;;
15238
15239 cygwin* | mingw* | pw32*)
15240   version_type=windows
15241   shrext_cmds=".dll"
15242   need_version=no
15243   need_lib_prefix=no
15244
15245   case $GCC,$host_os in
15246   yes,cygwin* | yes,mingw* | yes,pw32*)
15247     library_names_spec='$libname.dll.a'
15248     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15249     postinstall_cmds='base_file=`basename \${file}`~
15250       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15251       dldir=$destdir/`dirname \$dlpath`~
15252       test -d \$dldir || mkdir -p \$dldir~
15253       $install_prog $dir/$dlname \$dldir/$dlname~
15254       chmod a+x \$dldir/$dlname'
15255     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15256       dlpath=$dir/\$dldll~
15257        $rm \$dlpath'
15258     shlibpath_overrides_runpath=yes
15259
15260     case $host_os in
15261     cygwin*)
15262       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15263       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15264       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15265       ;;
15266     mingw*)
15267       # MinGW DLLs use traditional 'lib' prefix
15268       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15269       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15270       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15271         # It is most probably a Windows format PATH printed by
15272         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15273         # path with ; separators, and with drive letters. We can handle the
15274         # drive letters (cygwin fileutils understands them), so leave them,
15275         # especially as we might pass files found there to a mingw objdump,
15276         # which wouldn't understand a cygwinified path. Ahh.
15277         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15278       else
15279         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15280       fi
15281       ;;
15282     pw32*)
15283       # pw32 DLLs use 'pw' prefix rather than 'lib'
15284       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15285       ;;
15286     esac
15287     ;;
15288
15289   *)
15290     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15291     ;;
15292   esac
15293   dynamic_linker='Win32 ld.exe'
15294   # FIXME: first we should search . and the directory the executable is in
15295   shlibpath_var=PATH
15296   ;;
15297
15298 darwin* | rhapsody*)
15299   dynamic_linker="$host_os dyld"
15300   version_type=darwin
15301   need_lib_prefix=no
15302   need_version=no
15303   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15304   soname_spec='${libname}${release}${major}$shared_ext'
15305   shlibpath_overrides_runpath=yes
15306   shlibpath_var=DYLD_LIBRARY_PATH
15307   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15308   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15309   if test "$GCC" = yes; then
15310     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15311   else
15312     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15313   fi
15314   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15315   ;;
15316
15317 dgux*)
15318   version_type=linux
15319   need_lib_prefix=no
15320   need_version=no
15321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15322   soname_spec='${libname}${release}${shared_ext}$major'
15323   shlibpath_var=LD_LIBRARY_PATH
15324   ;;
15325
15326 freebsd1*)
15327   dynamic_linker=no
15328   ;;
15329
15330 freebsd* | dragonfly*)
15331   # DragonFly does not have aout.  When/if they implement a new
15332   # versioning mechanism, adjust this.
15333   if test -x /usr/bin/objformat; then
15334     objformat=`/usr/bin/objformat`
15335   else
15336     case $host_os in
15337     freebsd[123]*) objformat=aout ;;
15338     *) objformat=elf ;;
15339     esac
15340   fi
15341   version_type=freebsd-$objformat
15342   case $version_type in
15343     freebsd-elf*)
15344       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15345       need_version=no
15346       need_lib_prefix=no
15347       ;;
15348     freebsd-*)
15349       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15350       need_version=yes
15351       ;;
15352   esac
15353   shlibpath_var=LD_LIBRARY_PATH
15354   case $host_os in
15355   freebsd2*)
15356     shlibpath_overrides_runpath=yes
15357     ;;
15358   freebsd3.[01]* | freebsdelf3.[01]*)
15359     shlibpath_overrides_runpath=yes
15360     hardcode_into_libs=yes
15361     ;;
15362   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15363   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15364     shlibpath_overrides_runpath=no
15365     hardcode_into_libs=yes
15366     ;;
15367   freebsd*) # from 4.6 on
15368     shlibpath_overrides_runpath=yes
15369     hardcode_into_libs=yes
15370     ;;
15371   esac
15372   ;;
15373
15374 gnu*)
15375   version_type=linux
15376   need_lib_prefix=no
15377   need_version=no
15378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15379   soname_spec='${libname}${release}${shared_ext}$major'
15380   shlibpath_var=LD_LIBRARY_PATH
15381   hardcode_into_libs=yes
15382   ;;
15383
15384 hpux9* | hpux10* | hpux11*)
15385   # Give a soname corresponding to the major version so that dld.sl refuses to
15386   # link against other versions.
15387   version_type=sunos
15388   need_lib_prefix=no
15389   need_version=no
15390   case $host_cpu in
15391   ia64*)
15392     shrext_cmds='.so'
15393     hardcode_into_libs=yes
15394     dynamic_linker="$host_os dld.so"
15395     shlibpath_var=LD_LIBRARY_PATH
15396     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398     soname_spec='${libname}${release}${shared_ext}$major'
15399     if test "X$HPUX_IA64_MODE" = X32; then
15400       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15401     else
15402       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15403     fi
15404     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15405     ;;
15406    hppa*64*)
15407      shrext_cmds='.sl'
15408      hardcode_into_libs=yes
15409      dynamic_linker="$host_os dld.sl"
15410      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15411      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15412      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413      soname_spec='${libname}${release}${shared_ext}$major'
15414      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15415      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15416      ;;
15417    *)
15418     shrext_cmds='.sl'
15419     dynamic_linker="$host_os dld.sl"
15420     shlibpath_var=SHLIB_PATH
15421     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15423     soname_spec='${libname}${release}${shared_ext}$major'
15424     ;;
15425   esac
15426   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15427   postinstall_cmds='chmod 555 $lib'
15428   ;;
15429
15430 interix3*)
15431   version_type=linux
15432   need_lib_prefix=no
15433   need_version=no
15434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15435   soname_spec='${libname}${release}${shared_ext}$major'
15436   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15437   shlibpath_var=LD_LIBRARY_PATH
15438   shlibpath_overrides_runpath=no
15439   hardcode_into_libs=yes
15440   ;;
15441
15442 irix5* | irix6* | nonstopux*)
15443   case $host_os in
15444     nonstopux*) version_type=nonstopux ;;
15445     *)
15446         if test "$lt_cv_prog_gnu_ld" = yes; then
15447                 version_type=linux
15448         else
15449                 version_type=irix
15450         fi ;;
15451   esac
15452   need_lib_prefix=no
15453   need_version=no
15454   soname_spec='${libname}${release}${shared_ext}$major'
15455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15456   case $host_os in
15457   irix5* | nonstopux*)
15458     libsuff= shlibsuff=
15459     ;;
15460   *)
15461     case $LD in # libtool.m4 will add one of these switches to LD
15462     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15463       libsuff= shlibsuff= libmagic=32-bit;;
15464     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15465       libsuff=32 shlibsuff=N32 libmagic=N32;;
15466     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15467       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15468     *) libsuff= shlibsuff= libmagic=never-match;;
15469     esac
15470     ;;
15471   esac
15472   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15473   shlibpath_overrides_runpath=no
15474   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15475   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15476   hardcode_into_libs=yes
15477   ;;
15478
15479 # No shared lib support for Linux oldld, aout, or coff.
15480 linux*oldld* | linux*aout* | linux*coff*)
15481   dynamic_linker=no
15482   ;;
15483
15484 # This must be Linux ELF.
15485 linux* | k*bsd*-gnu)
15486   version_type=linux
15487   need_lib_prefix=no
15488   need_version=no
15489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15490   soname_spec='${libname}${release}${shared_ext}$major'
15491   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15492   shlibpath_var=LD_LIBRARY_PATH
15493   shlibpath_overrides_runpath=no
15494   # This implies no fast_install, which is unacceptable.
15495   # Some rework will be needed to allow for fast_install
15496   # before this can be enabled.
15497   hardcode_into_libs=yes
15498
15499   # Append ld.so.conf contents to the search path
15500   if test -f /etc/ld.so.conf; then
15501     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15502     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15503   fi
15504
15505   # We used to test for /lib/ld.so.1 and disable shared libraries on
15506   # powerpc, because MkLinux only supported shared libraries with the
15507   # GNU dynamic linker.  Since this was broken with cross compilers,
15508   # most powerpc-linux boxes support dynamic linking these days and
15509   # people can always --disable-shared, the test was removed, and we
15510   # assume the GNU/Linux dynamic linker is in use.
15511   dynamic_linker='GNU/Linux ld.so'
15512   ;;
15513
15514 netbsdelf*-gnu)
15515   version_type=linux
15516   need_lib_prefix=no
15517   need_version=no
15518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15519   soname_spec='${libname}${release}${shared_ext}$major'
15520   shlibpath_var=LD_LIBRARY_PATH
15521   shlibpath_overrides_runpath=no
15522   hardcode_into_libs=yes
15523   dynamic_linker='NetBSD ld.elf_so'
15524   ;;
15525
15526 netbsd*)
15527   version_type=sunos
15528   need_lib_prefix=no
15529   need_version=no
15530   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15532     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15533     dynamic_linker='NetBSD (a.out) ld.so'
15534   else
15535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15536     soname_spec='${libname}${release}${shared_ext}$major'
15537     dynamic_linker='NetBSD ld.elf_so'
15538   fi
15539   shlibpath_var=LD_LIBRARY_PATH
15540   shlibpath_overrides_runpath=yes
15541   hardcode_into_libs=yes
15542   ;;
15543
15544 newsos6)
15545   version_type=linux
15546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547   shlibpath_var=LD_LIBRARY_PATH
15548   shlibpath_overrides_runpath=yes
15549   ;;
15550
15551 nto-qnx*)
15552   version_type=linux
15553   need_lib_prefix=no
15554   need_version=no
15555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556   soname_spec='${libname}${release}${shared_ext}$major'
15557   shlibpath_var=LD_LIBRARY_PATH
15558   shlibpath_overrides_runpath=yes
15559   ;;
15560
15561 openbsd*)
15562   version_type=sunos
15563   sys_lib_dlsearch_path_spec="/usr/lib"
15564   need_lib_prefix=no
15565   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15566   case $host_os in
15567     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15568     *)                         need_version=no  ;;
15569   esac
15570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15571   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15572   shlibpath_var=LD_LIBRARY_PATH
15573   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15574     case $host_os in
15575       openbsd2.[89] | openbsd2.[89].*)
15576         shlibpath_overrides_runpath=no
15577         ;;
15578       *)
15579         shlibpath_overrides_runpath=yes
15580         ;;
15581       esac
15582   else
15583     shlibpath_overrides_runpath=yes
15584   fi
15585   ;;
15586
15587 os2*)
15588   libname_spec='$name'
15589   shrext_cmds=".dll"
15590   need_lib_prefix=no
15591   library_names_spec='$libname${shared_ext} $libname.a'
15592   dynamic_linker='OS/2 ld.exe'
15593   shlibpath_var=LIBPATH
15594   ;;
15595
15596 osf3* | osf4* | osf5*)
15597   version_type=osf
15598   need_lib_prefix=no
15599   need_version=no
15600   soname_spec='${libname}${release}${shared_ext}$major'
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602   shlibpath_var=LD_LIBRARY_PATH
15603   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15604   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15605   ;;
15606
15607 solaris*)
15608   version_type=linux
15609   need_lib_prefix=no
15610   need_version=no
15611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612   soname_spec='${libname}${release}${shared_ext}$major'
15613   shlibpath_var=LD_LIBRARY_PATH
15614   shlibpath_overrides_runpath=yes
15615   hardcode_into_libs=yes
15616   # ldd complains unless libraries are executable
15617   postinstall_cmds='chmod +x $lib'
15618   ;;
15619
15620 sunos4*)
15621   version_type=sunos
15622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15623   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15624   shlibpath_var=LD_LIBRARY_PATH
15625   shlibpath_overrides_runpath=yes
15626   if test "$with_gnu_ld" = yes; then
15627     need_lib_prefix=no
15628   fi
15629   need_version=yes
15630   ;;
15631
15632 sysv4 | sysv4.3*)
15633   version_type=linux
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635   soname_spec='${libname}${release}${shared_ext}$major'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   case $host_vendor in
15638     sni)
15639       shlibpath_overrides_runpath=no
15640       need_lib_prefix=no
15641       export_dynamic_flag_spec='${wl}-Blargedynsym'
15642       runpath_var=LD_RUN_PATH
15643       ;;
15644     siemens)
15645       need_lib_prefix=no
15646       ;;
15647     motorola)
15648       need_lib_prefix=no
15649       need_version=no
15650       shlibpath_overrides_runpath=no
15651       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15652       ;;
15653   esac
15654   ;;
15655
15656 sysv4*MP*)
15657   if test -d /usr/nec ;then
15658     version_type=linux
15659     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15660     soname_spec='$libname${shared_ext}.$major'
15661     shlibpath_var=LD_LIBRARY_PATH
15662   fi
15663   ;;
15664
15665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15666   version_type=freebsd-elf
15667   need_lib_prefix=no
15668   need_version=no
15669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15670   soname_spec='${libname}${release}${shared_ext}$major'
15671   shlibpath_var=LD_LIBRARY_PATH
15672   hardcode_into_libs=yes
15673   if test "$with_gnu_ld" = yes; then
15674     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15675     shlibpath_overrides_runpath=no
15676   else
15677     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15678     shlibpath_overrides_runpath=yes
15679     case $host_os in
15680       sco3.2v5*)
15681         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15682         ;;
15683     esac
15684   fi
15685   sys_lib_dlsearch_path_spec='/usr/lib'
15686   ;;
15687
15688 uts4*)
15689   version_type=linux
15690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691   soname_spec='${libname}${release}${shared_ext}$major'
15692   shlibpath_var=LD_LIBRARY_PATH
15693   ;;
15694
15695 *)
15696   dynamic_linker=no
15697   ;;
15698 esac
15699 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15700 echo "${ECHO_T}$dynamic_linker" >&6; }
15701 test "$dynamic_linker" = no && can_build_shared=no
15702
15703 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15704 if test "$GCC" = yes; then
15705   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15706 fi
15707
15708 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15709 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15710 hardcode_action_F77=
15711 if test -n "$hardcode_libdir_flag_spec_F77" || \
15712    test -n "$runpath_var_F77" || \
15713    test "X$hardcode_automatic_F77" = "Xyes" ; then
15714
15715   # We can hardcode non-existant directories.
15716   if test "$hardcode_direct_F77" != no &&
15717      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15718      # have to relink, otherwise we might link with an installed library
15719      # when we should be linking with a yet-to-be-installed one
15720      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15721      test "$hardcode_minus_L_F77" != no; then
15722     # Linking always hardcodes the temporary library directory.
15723     hardcode_action_F77=relink
15724   else
15725     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15726     hardcode_action_F77=immediate
15727   fi
15728 else
15729   # We cannot hardcode anything, or else we can only hardcode existing
15730   # directories.
15731   hardcode_action_F77=unsupported
15732 fi
15733 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15734 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15735
15736 if test "$hardcode_action_F77" = relink; then
15737   # Fast installation is not supported
15738   enable_fast_install=no
15739 elif test "$shlibpath_overrides_runpath" = yes ||
15740      test "$enable_shared" = no; then
15741   # Fast installation is not necessary
15742   enable_fast_install=needless
15743 fi
15744
15745
15746 # The else clause should only fire when bootstrapping the
15747 # libtool distribution, otherwise you forgot to ship ltmain.sh
15748 # with your package, and you will get complaints that there are
15749 # no rules to generate ltmain.sh.
15750 if test -f "$ltmain"; then
15751   # See if we are running on zsh, and set the options which allow our commands through
15752   # without removal of \ escapes.
15753   if test -n "${ZSH_VERSION+set}" ; then
15754     setopt NO_GLOB_SUBST
15755   fi
15756   # Now quote all the things that may contain metacharacters while being
15757   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15758   # variables and quote the copies for generation of the libtool script.
15759   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15760     SED SHELL STRIP \
15761     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15762     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15763     deplibs_check_method reload_flag reload_cmds need_locks \
15764     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15765     lt_cv_sys_global_symbol_to_c_name_address \
15766     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15767     old_postinstall_cmds old_postuninstall_cmds \
15768     compiler_F77 \
15769     CC_F77 \
15770     LD_F77 \
15771     lt_prog_compiler_wl_F77 \
15772     lt_prog_compiler_pic_F77 \
15773     lt_prog_compiler_static_F77 \
15774     lt_prog_compiler_no_builtin_flag_F77 \
15775     export_dynamic_flag_spec_F77 \
15776     thread_safe_flag_spec_F77 \
15777     whole_archive_flag_spec_F77 \
15778     enable_shared_with_static_runtimes_F77 \
15779     old_archive_cmds_F77 \
15780     old_archive_from_new_cmds_F77 \
15781     predep_objects_F77 \
15782     postdep_objects_F77 \
15783     predeps_F77 \
15784     postdeps_F77 \
15785     compiler_lib_search_path_F77 \
15786     archive_cmds_F77 \
15787     archive_expsym_cmds_F77 \
15788     postinstall_cmds_F77 \
15789     postuninstall_cmds_F77 \
15790     old_archive_from_expsyms_cmds_F77 \
15791     allow_undefined_flag_F77 \
15792     no_undefined_flag_F77 \
15793     export_symbols_cmds_F77 \
15794     hardcode_libdir_flag_spec_F77 \
15795     hardcode_libdir_flag_spec_ld_F77 \
15796     hardcode_libdir_separator_F77 \
15797     hardcode_automatic_F77 \
15798     module_cmds_F77 \
15799     module_expsym_cmds_F77 \
15800     lt_cv_prog_compiler_c_o_F77 \
15801     exclude_expsyms_F77 \
15802     include_expsyms_F77; do
15803
15804     case $var in
15805     old_archive_cmds_F77 | \
15806     old_archive_from_new_cmds_F77 | \
15807     archive_cmds_F77 | \
15808     archive_expsym_cmds_F77 | \
15809     module_cmds_F77 | \
15810     module_expsym_cmds_F77 | \
15811     old_archive_from_expsyms_cmds_F77 | \
15812     export_symbols_cmds_F77 | \
15813     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15814     postinstall_cmds | postuninstall_cmds | \
15815     old_postinstall_cmds | old_postuninstall_cmds | \
15816     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15817       # Double-quote double-evaled strings.
15818       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15819       ;;
15820     *)
15821       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15822       ;;
15823     esac
15824   done
15825
15826   case $lt_echo in
15827   *'\$0 --fallback-echo"')
15828     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15829     ;;
15830   esac
15831
15832 cfgfile="$ofile"
15833
15834   cat <<__EOF__ >> "$cfgfile"
15835 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15836
15837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15838
15839 # Shell to use when invoking shell scripts.
15840 SHELL=$lt_SHELL
15841
15842 # Whether or not to build shared libraries.
15843 build_libtool_libs=$enable_shared
15844
15845 # Whether or not to build static libraries.
15846 build_old_libs=$enable_static
15847
15848 # Whether or not to add -lc for building shared libraries.
15849 build_libtool_need_lc=$archive_cmds_need_lc_F77
15850
15851 # Whether or not to disallow shared libs when runtime libs are static
15852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15853
15854 # Whether or not to optimize for fast installation.
15855 fast_install=$enable_fast_install
15856
15857 # The host system.
15858 host_alias=$host_alias
15859 host=$host
15860 host_os=$host_os
15861
15862 # The build system.
15863 build_alias=$build_alias
15864 build=$build
15865 build_os=$build_os
15866
15867 # An echo program that does not interpret backslashes.
15868 echo=$lt_echo
15869
15870 # The archiver.
15871 AR=$lt_AR
15872 AR_FLAGS=$lt_AR_FLAGS
15873
15874 # A C compiler.
15875 LTCC=$lt_LTCC
15876
15877 # LTCC compiler flags.
15878 LTCFLAGS=$lt_LTCFLAGS
15879
15880 # A language-specific compiler.
15881 CC=$lt_compiler_F77
15882
15883 # Is the compiler the GNU C compiler?
15884 with_gcc=$GCC_F77
15885
15886 # An ERE matcher.
15887 EGREP=$lt_EGREP
15888
15889 # The linker used to build libraries.
15890 LD=$lt_LD_F77
15891
15892 # Whether we need hard or soft links.
15893 LN_S=$lt_LN_S
15894
15895 # A BSD-compatible nm program.
15896 NM=$lt_NM
15897
15898 # A symbol stripping program
15899 STRIP=$lt_STRIP
15900
15901 # Used to examine libraries when file_magic_cmd begins "file"
15902 MAGIC_CMD=$MAGIC_CMD
15903
15904 # Used on cygwin: DLL creation program.
15905 DLLTOOL="$DLLTOOL"
15906
15907 # Used on cygwin: object dumper.
15908 OBJDUMP="$OBJDUMP"
15909
15910 # Used on cygwin: assembler.
15911 AS="$AS"
15912
15913 # The name of the directory that contains temporary libtool files.
15914 objdir=$objdir
15915
15916 # How to create reloadable object files.
15917 reload_flag=$lt_reload_flag
15918 reload_cmds=$lt_reload_cmds
15919
15920 # How to pass a linker flag through the compiler.
15921 wl=$lt_lt_prog_compiler_wl_F77
15922
15923 # Object file suffix (normally "o").
15924 objext="$ac_objext"
15925
15926 # Old archive suffix (normally "a").
15927 libext="$libext"
15928
15929 # Shared library suffix (normally ".so").
15930 shrext_cmds='$shrext_cmds'
15931
15932 # Executable file suffix (normally "").
15933 exeext="$exeext"
15934
15935 # Additional compiler flags for building library objects.
15936 pic_flag=$lt_lt_prog_compiler_pic_F77
15937 pic_mode=$pic_mode
15938
15939 # What is the maximum length of a command?
15940 max_cmd_len=$lt_cv_sys_max_cmd_len
15941
15942 # Does compiler simultaneously support -c and -o options?
15943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15944
15945 # Must we lock files when doing compilation?
15946 need_locks=$lt_need_locks
15947
15948 # Do we need the lib prefix for modules?
15949 need_lib_prefix=$need_lib_prefix
15950
15951 # Do we need a version for libraries?
15952 need_version=$need_version
15953
15954 # Whether dlopen is supported.
15955 dlopen_support=$enable_dlopen
15956
15957 # Whether dlopen of programs is supported.
15958 dlopen_self=$enable_dlopen_self
15959
15960 # Whether dlopen of statically linked programs is supported.
15961 dlopen_self_static=$enable_dlopen_self_static
15962
15963 # Compiler flag to prevent dynamic linking.
15964 link_static_flag=$lt_lt_prog_compiler_static_F77
15965
15966 # Compiler flag to turn off builtin functions.
15967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15968
15969 # Compiler flag to allow reflexive dlopens.
15970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15971
15972 # Compiler flag to generate shared objects directly from archives.
15973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15974
15975 # Compiler flag to generate thread-safe objects.
15976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15977
15978 # Library versioning type.
15979 version_type=$version_type
15980
15981 # Format of library name prefix.
15982 libname_spec=$lt_libname_spec
15983
15984 # List of archive names.  First name is the real one, the rest are links.
15985 # The last name is the one that the linker finds with -lNAME.
15986 library_names_spec=$lt_library_names_spec
15987
15988 # The coded name of the library, if different from the real name.
15989 soname_spec=$lt_soname_spec
15990
15991 # Commands used to build and install an old-style archive.
15992 RANLIB=$lt_RANLIB
15993 old_archive_cmds=$lt_old_archive_cmds_F77
15994 old_postinstall_cmds=$lt_old_postinstall_cmds
15995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15996
15997 # Create an old-style archive from a shared archive.
15998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15999
16000 # Create a temporary old-style archive to link instead of a shared archive.
16001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16002
16003 # Commands used to build and install a shared archive.
16004 archive_cmds=$lt_archive_cmds_F77
16005 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16006 postinstall_cmds=$lt_postinstall_cmds
16007 postuninstall_cmds=$lt_postuninstall_cmds
16008
16009 # Commands used to build a loadable module (assumed same as above if empty)
16010 module_cmds=$lt_module_cmds_F77
16011 module_expsym_cmds=$lt_module_expsym_cmds_F77
16012
16013 # Commands to strip libraries.
16014 old_striplib=$lt_old_striplib
16015 striplib=$lt_striplib
16016
16017 # Dependencies to place before the objects being linked to create a
16018 # shared library.
16019 predep_objects=$lt_predep_objects_F77
16020
16021 # Dependencies to place after the objects being linked to create a
16022 # shared library.
16023 postdep_objects=$lt_postdep_objects_F77
16024
16025 # Dependencies to place before the objects being linked to create a
16026 # shared library.
16027 predeps=$lt_predeps_F77
16028
16029 # Dependencies to place after the objects being linked to create a
16030 # shared library.
16031 postdeps=$lt_postdeps_F77
16032
16033 # The library search path used internally by the compiler when linking
16034 # a shared library.
16035 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16036
16037 # Method to check whether dependent libraries are shared objects.
16038 deplibs_check_method=$lt_deplibs_check_method
16039
16040 # Command to use when deplibs_check_method == file_magic.
16041 file_magic_cmd=$lt_file_magic_cmd
16042
16043 # Flag that allows shared libraries with undefined symbols to be built.
16044 allow_undefined_flag=$lt_allow_undefined_flag_F77
16045
16046 # Flag that forces no undefined symbols.
16047 no_undefined_flag=$lt_no_undefined_flag_F77
16048
16049 # Commands used to finish a libtool library installation in a directory.
16050 finish_cmds=$lt_finish_cmds
16051
16052 # Same as above, but a single script fragment to be evaled but not shown.
16053 finish_eval=$lt_finish_eval
16054
16055 # Take the output of nm and produce a listing of raw symbols and C names.
16056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16057
16058 # Transform the output of nm in a proper C declaration
16059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16060
16061 # Transform the output of nm in a C name address pair
16062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16063
16064 # This is the shared library runtime path variable.
16065 runpath_var=$runpath_var
16066
16067 # This is the shared library path variable.
16068 shlibpath_var=$shlibpath_var
16069
16070 # Is shlibpath searched before the hard-coded library search path?
16071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16072
16073 # How to hardcode a shared library path into an executable.
16074 hardcode_action=$hardcode_action_F77
16075
16076 # Whether we should hardcode library paths into libraries.
16077 hardcode_into_libs=$hardcode_into_libs
16078
16079 # Flag to hardcode \$libdir into a binary during linking.
16080 # This must work even if \$libdir does not exist.
16081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16082
16083 # If ld is used when linking, flag to hardcode \$libdir into
16084 # a binary during linking. This must work even if \$libdir does
16085 # not exist.
16086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16087
16088 # Whether we need a single -rpath flag with a separated argument.
16089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16090
16091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16092 # resulting binary.
16093 hardcode_direct=$hardcode_direct_F77
16094
16095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16096 # resulting binary.
16097 hardcode_minus_L=$hardcode_minus_L_F77
16098
16099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16100 # the resulting binary.
16101 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16102
16103 # Set to yes if building a shared library automatically hardcodes DIR into the library
16104 # and all subsequent libraries and executables linked against it.
16105 hardcode_automatic=$hardcode_automatic_F77
16106
16107 # Variables whose values should be saved in libtool wrapper scripts and
16108 # restored at relink time.
16109 variables_saved_for_relink="$variables_saved_for_relink"
16110
16111 # Whether libtool must link a program against all its dependency libraries.
16112 link_all_deplibs=$link_all_deplibs_F77
16113
16114 # Compile-time system search path for libraries
16115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16116
16117 # Run-time system search path for libraries
16118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16119
16120 # Fix the shell variable \$srcfile for the compiler.
16121 fix_srcfile_path="$fix_srcfile_path_F77"
16122
16123 # Set to yes if exported symbols are required.
16124 always_export_symbols=$always_export_symbols_F77
16125
16126 # The commands to list exported symbols.
16127 export_symbols_cmds=$lt_export_symbols_cmds_F77
16128
16129 # The commands to extract the exported symbol list from a shared archive.
16130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16131
16132 # Symbols that should not be listed in the preloaded symbols.
16133 exclude_expsyms=$lt_exclude_expsyms_F77
16134
16135 # Symbols that must always be exported.
16136 include_expsyms=$lt_include_expsyms_F77
16137
16138 # ### END LIBTOOL TAG CONFIG: $tagname
16139
16140 __EOF__
16141
16142
16143 else
16144   # If there is no Makefile yet, we rely on a make rule to execute
16145   # `config.status --recheck' to rerun these tests and create the
16146   # libtool script then.
16147   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16148   if test -f "$ltmain_in"; then
16149     test -f Makefile && make "$ltmain"
16150   fi
16151 fi
16152
16153
16154 ac_ext=c
16155 ac_cpp='$CPP $CPPFLAGS'
16156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16159
16160 CC="$lt_save_CC"
16161
16162         else
16163           tagname=""
16164         fi
16165         ;;
16166
16167       GCJ)
16168         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16169
16170
16171 # Source file extension for Java test sources.
16172 ac_ext=java
16173
16174 # Object file extension for compiled Java test sources.
16175 objext=o
16176 objext_GCJ=$objext
16177
16178 # Code to be used in simple compile tests
16179 lt_simple_compile_test_code="class foo {}\n"
16180
16181 # Code to be used in simple link tests
16182 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16183
16184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16185
16186 # If no C compiler was specified, use CC.
16187 LTCC=${LTCC-"$CC"}
16188
16189 # If no C compiler flags were specified, use CFLAGS.
16190 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16191
16192 # Allow CC to be a program name with arguments.
16193 compiler=$CC
16194
16195
16196 # save warnings/boilerplate of simple test code
16197 ac_outfile=conftest.$ac_objext
16198 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16199 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16200 _lt_compiler_boilerplate=`cat conftest.err`
16201 $rm conftest*
16202
16203 ac_outfile=conftest.$ac_objext
16204 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16205 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16206 _lt_linker_boilerplate=`cat conftest.err`
16207 $rm conftest*
16208
16209
16210 # Allow CC to be a program name with arguments.
16211 lt_save_CC="$CC"
16212 CC=${GCJ-"gcj"}
16213 compiler=$CC
16214 compiler_GCJ=$CC
16215 for cc_temp in $compiler""; do
16216   case $cc_temp in
16217     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16218     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16219     \-*) ;;
16220     *) break;;
16221   esac
16222 done
16223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16224
16225
16226 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16227 archive_cmds_need_lc_GCJ=no
16228
16229 old_archive_cmds_GCJ=$old_archive_cmds
16230
16231
16232 lt_prog_compiler_no_builtin_flag_GCJ=
16233
16234 if test "$GCC" = yes; then
16235   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16236
16237
16238 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16239 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16240 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16241   echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243   lt_cv_prog_compiler_rtti_exceptions=no
16244   ac_outfile=conftest.$ac_objext
16245    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16246    lt_compiler_flag="-fno-rtti -fno-exceptions"
16247    # Insert the option either (1) after the last *FLAGS variable, or
16248    # (2) before a word containing "conftest.", or (3) at the end.
16249    # Note that $ac_compile itself does not contain backslashes and begins
16250    # with a dollar sign (not a hyphen), so the echo should work correctly.
16251    # The option is referenced via a variable to avoid confusing sed.
16252    lt_compile=`echo "$ac_compile" | $SED \
16253    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16254    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16255    -e 's:$: $lt_compiler_flag:'`
16256    (eval echo "\"\$as_me:16256: $lt_compile\"" >&5)
16257    (eval "$lt_compile" 2>conftest.err)
16258    ac_status=$?
16259    cat conftest.err >&5
16260    echo "$as_me:16260: \$? = $ac_status" >&5
16261    if (exit $ac_status) && test -s "$ac_outfile"; then
16262      # The compiler can only warn and ignore the option if not recognized
16263      # So say no if there are warnings other than the usual output.
16264      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16265      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16266      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16267        lt_cv_prog_compiler_rtti_exceptions=yes
16268      fi
16269    fi
16270    $rm conftest*
16271
16272 fi
16273 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16274 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16275
16276 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16277     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16278 else
16279     :
16280 fi
16281
16282 fi
16283
16284 lt_prog_compiler_wl_GCJ=
16285 lt_prog_compiler_pic_GCJ=
16286 lt_prog_compiler_static_GCJ=
16287
16288 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16289 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16290
16291   if test "$GCC" = yes; then
16292     lt_prog_compiler_wl_GCJ='-Wl,'
16293     lt_prog_compiler_static_GCJ='-static'
16294
16295     case $host_os in
16296       aix*)
16297       # All AIX code is PIC.
16298       if test "$host_cpu" = ia64; then
16299         # AIX 5 now supports IA64 processor
16300         lt_prog_compiler_static_GCJ='-Bstatic'
16301       fi
16302       ;;
16303
16304     amigaos*)
16305       # FIXME: we need at least 68020 code to build shared libraries, but
16306       # adding the `-m68020' flag to GCC prevents building anything better,
16307       # like `-m68040'.
16308       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16309       ;;
16310
16311     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16312       # PIC is the default for these OSes.
16313       ;;
16314
16315     mingw* | pw32* | os2*)
16316       # This hack is so that the source file can tell whether it is being
16317       # built for inclusion in a dll (and should export symbols for example).
16318       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16319       ;;
16320
16321     darwin* | rhapsody*)
16322       # PIC is the default on this platform
16323       # Common symbols not allowed in MH_DYLIB files
16324       lt_prog_compiler_pic_GCJ='-fno-common'
16325       ;;
16326
16327     interix3*)
16328       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16329       # Instead, we relocate shared libraries at runtime.
16330       ;;
16331
16332     msdosdjgpp*)
16333       # Just because we use GCC doesn't mean we suddenly get shared libraries
16334       # on systems that don't support them.
16335       lt_prog_compiler_can_build_shared_GCJ=no
16336       enable_shared=no
16337       ;;
16338
16339     sysv4*MP*)
16340       if test -d /usr/nec; then
16341         lt_prog_compiler_pic_GCJ=-Kconform_pic
16342       fi
16343       ;;
16344
16345     hpux*)
16346       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16347       # not for PA HP-UX.
16348       case $host_cpu in
16349       hppa*64*|ia64*)
16350         # +Z the default
16351         ;;
16352       *)
16353         lt_prog_compiler_pic_GCJ='-fPIC'
16354         ;;
16355       esac
16356       ;;
16357
16358     *)
16359       lt_prog_compiler_pic_GCJ='-fPIC'
16360       ;;
16361     esac
16362   else
16363     # PORTME Check for flag to pass linker flags through the system compiler.
16364     case $host_os in
16365     aix*)
16366       lt_prog_compiler_wl_GCJ='-Wl,'
16367       if test "$host_cpu" = ia64; then
16368         # AIX 5 now supports IA64 processor
16369         lt_prog_compiler_static_GCJ='-Bstatic'
16370       else
16371         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16372       fi
16373       ;;
16374       darwin*)
16375         # PIC is the default on this platform
16376         # Common symbols not allowed in MH_DYLIB files
16377        case $cc_basename in
16378          xlc*)
16379          lt_prog_compiler_pic_GCJ='-qnocommon'
16380          lt_prog_compiler_wl_GCJ='-Wl,'
16381          ;;
16382        esac
16383        ;;
16384
16385     mingw* | pw32* | os2*)
16386       # This hack is so that the source file can tell whether it is being
16387       # built for inclusion in a dll (and should export symbols for example).
16388       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16389       ;;
16390
16391     hpux9* | hpux10* | hpux11*)
16392       lt_prog_compiler_wl_GCJ='-Wl,'
16393       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16394       # not for PA HP-UX.
16395       case $host_cpu in
16396       hppa*64*|ia64*)
16397         # +Z the default
16398         ;;
16399       *)
16400         lt_prog_compiler_pic_GCJ='+Z'
16401         ;;
16402       esac
16403       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16404       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16405       ;;
16406
16407     irix5* | irix6* | nonstopux*)
16408       lt_prog_compiler_wl_GCJ='-Wl,'
16409       # PIC (with -KPIC) is the default.
16410       lt_prog_compiler_static_GCJ='-non_shared'
16411       ;;
16412
16413     newsos6)
16414       lt_prog_compiler_pic_GCJ='-KPIC'
16415       lt_prog_compiler_static_GCJ='-Bstatic'
16416       ;;
16417
16418     linux* | k*bsd*-gnu)
16419       case $cc_basename in
16420       icc* | ecc*)
16421         lt_prog_compiler_wl_GCJ='-Wl,'
16422         lt_prog_compiler_pic_GCJ='-KPIC'
16423         lt_prog_compiler_static_GCJ='-static'
16424         ;;
16425       pgcc* | pgf77* | pgf90* | pgf95*)
16426         # Portland Group compilers (*not* the Pentium gcc compiler,
16427         # which looks to be a dead project)
16428         lt_prog_compiler_wl_GCJ='-Wl,'
16429         lt_prog_compiler_pic_GCJ='-fpic'
16430         lt_prog_compiler_static_GCJ='-Bstatic'
16431         ;;
16432       ccc*)
16433         lt_prog_compiler_wl_GCJ='-Wl,'
16434         # All Alpha code is PIC.
16435         lt_prog_compiler_static_GCJ='-non_shared'
16436         ;;
16437       esac
16438       ;;
16439
16440     osf3* | osf4* | osf5*)
16441       lt_prog_compiler_wl_GCJ='-Wl,'
16442       # All OSF/1 code is PIC.
16443       lt_prog_compiler_static_GCJ='-non_shared'
16444       ;;
16445
16446     solaris*)
16447       lt_prog_compiler_pic_GCJ='-KPIC'
16448       lt_prog_compiler_static_GCJ='-Bstatic'
16449       case $cc_basename in
16450       f77* | f90* | f95*)
16451         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16452       *)
16453         lt_prog_compiler_wl_GCJ='-Wl,';;
16454       esac
16455       ;;
16456
16457     sunos4*)
16458       lt_prog_compiler_wl_GCJ='-Qoption ld '
16459       lt_prog_compiler_pic_GCJ='-PIC'
16460       lt_prog_compiler_static_GCJ='-Bstatic'
16461       ;;
16462
16463     sysv4 | sysv4.2uw2* | sysv4.3*)
16464       lt_prog_compiler_wl_GCJ='-Wl,'
16465       lt_prog_compiler_pic_GCJ='-KPIC'
16466       lt_prog_compiler_static_GCJ='-Bstatic'
16467       ;;
16468
16469     sysv4*MP*)
16470       if test -d /usr/nec ;then
16471         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16472         lt_prog_compiler_static_GCJ='-Bstatic'
16473       fi
16474       ;;
16475
16476     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16477       lt_prog_compiler_wl_GCJ='-Wl,'
16478       lt_prog_compiler_pic_GCJ='-KPIC'
16479       lt_prog_compiler_static_GCJ='-Bstatic'
16480       ;;
16481
16482     unicos*)
16483       lt_prog_compiler_wl_GCJ='-Wl,'
16484       lt_prog_compiler_can_build_shared_GCJ=no
16485       ;;
16486
16487     uts4*)
16488       lt_prog_compiler_pic_GCJ='-pic'
16489       lt_prog_compiler_static_GCJ='-Bstatic'
16490       ;;
16491
16492     *)
16493       lt_prog_compiler_can_build_shared_GCJ=no
16494       ;;
16495     esac
16496   fi
16497
16498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16499 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16500
16501 #
16502 # Check to make sure the PIC flag actually works.
16503 #
16504 if test -n "$lt_prog_compiler_pic_GCJ"; then
16505
16506 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16507 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16508 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511   lt_prog_compiler_pic_works_GCJ=no
16512   ac_outfile=conftest.$ac_objext
16513    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16514    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16515    # Insert the option either (1) after the last *FLAGS variable, or
16516    # (2) before a word containing "conftest.", or (3) at the end.
16517    # Note that $ac_compile itself does not contain backslashes and begins
16518    # with a dollar sign (not a hyphen), so the echo should work correctly.
16519    # The option is referenced via a variable to avoid confusing sed.
16520    lt_compile=`echo "$ac_compile" | $SED \
16521    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16522    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16523    -e 's:$: $lt_compiler_flag:'`
16524    (eval echo "\"\$as_me:16524: $lt_compile\"" >&5)
16525    (eval "$lt_compile" 2>conftest.err)
16526    ac_status=$?
16527    cat conftest.err >&5
16528    echo "$as_me:16528: \$? = $ac_status" >&5
16529    if (exit $ac_status) && test -s "$ac_outfile"; then
16530      # The compiler can only warn and ignore the option if not recognized
16531      # So say no if there are warnings other than the usual output.
16532      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16533      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16534      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16535        lt_prog_compiler_pic_works_GCJ=yes
16536      fi
16537    fi
16538    $rm conftest*
16539
16540 fi
16541 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16542 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16543
16544 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16545     case $lt_prog_compiler_pic_GCJ in
16546      "" | " "*) ;;
16547      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16548      esac
16549 else
16550     lt_prog_compiler_pic_GCJ=
16551      lt_prog_compiler_can_build_shared_GCJ=no
16552 fi
16553
16554 fi
16555 case $host_os in
16556   # For platforms which do not support PIC, -DPIC is meaningless:
16557   *djgpp*)
16558     lt_prog_compiler_pic_GCJ=
16559     ;;
16560   *)
16561     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16562     ;;
16563 esac
16564
16565 #
16566 # Check to make sure the static flag actually works.
16567 #
16568 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16569 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16570 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16571 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16572   echo $ECHO_N "(cached) $ECHO_C" >&6
16573 else
16574   lt_prog_compiler_static_works_GCJ=no
16575    save_LDFLAGS="$LDFLAGS"
16576    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16577    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16578    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16579      # The linker can only warn and ignore the option if not recognized
16580      # So say no if there are warnings
16581      if test -s conftest.err; then
16582        # Append any errors to the config.log.
16583        cat conftest.err 1>&5
16584        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16585        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16586        if diff conftest.exp conftest.er2 >/dev/null; then
16587          lt_prog_compiler_static_works_GCJ=yes
16588        fi
16589      else
16590        lt_prog_compiler_static_works_GCJ=yes
16591      fi
16592    fi
16593    $rm conftest*
16594    LDFLAGS="$save_LDFLAGS"
16595
16596 fi
16597 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16598 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16599
16600 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16601     :
16602 else
16603     lt_prog_compiler_static_GCJ=
16604 fi
16605
16606
16607 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16608 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16609 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16610   echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612   lt_cv_prog_compiler_c_o_GCJ=no
16613    $rm -r conftest 2>/dev/null
16614    mkdir conftest
16615    cd conftest
16616    mkdir out
16617    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16618
16619    lt_compiler_flag="-o out/conftest2.$ac_objext"
16620    # Insert the option either (1) after the last *FLAGS variable, or
16621    # (2) before a word containing "conftest.", or (3) at the end.
16622    # Note that $ac_compile itself does not contain backslashes and begins
16623    # with a dollar sign (not a hyphen), so the echo should work correctly.
16624    lt_compile=`echo "$ac_compile" | $SED \
16625    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16627    -e 's:$: $lt_compiler_flag:'`
16628    (eval echo "\"\$as_me:16628: $lt_compile\"" >&5)
16629    (eval "$lt_compile" 2>out/conftest.err)
16630    ac_status=$?
16631    cat out/conftest.err >&5
16632    echo "$as_me:16632: \$? = $ac_status" >&5
16633    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16634    then
16635      # The compiler can only warn and ignore the option if not recognized
16636      # So say no if there are warnings
16637      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16638      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16639      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16640        lt_cv_prog_compiler_c_o_GCJ=yes
16641      fi
16642    fi
16643    chmod u+w . 2>&5
16644    $rm conftest*
16645    # SGI C++ compiler will create directory out/ii_files/ for
16646    # template instantiation
16647    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16648    $rm out/* && rmdir out
16649    cd ..
16650    rmdir conftest
16651    $rm conftest*
16652
16653 fi
16654 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16655 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16656
16657
16658 hard_links="nottested"
16659 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16660   # do not overwrite the value of need_locks provided by the user
16661   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16662 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16663   hard_links=yes
16664   $rm conftest*
16665   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16666   touch conftest.a
16667   ln conftest.a conftest.b 2>&5 || hard_links=no
16668   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16669   { echo "$as_me:$LINENO: result: $hard_links" >&5
16670 echo "${ECHO_T}$hard_links" >&6; }
16671   if test "$hard_links" = no; then
16672     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16673 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16674     need_locks=warn
16675   fi
16676 else
16677   need_locks=no
16678 fi
16679
16680 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16681 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16682
16683   runpath_var=
16684   allow_undefined_flag_GCJ=
16685   enable_shared_with_static_runtimes_GCJ=no
16686   archive_cmds_GCJ=
16687   archive_expsym_cmds_GCJ=
16688   old_archive_From_new_cmds_GCJ=
16689   old_archive_from_expsyms_cmds_GCJ=
16690   export_dynamic_flag_spec_GCJ=
16691   whole_archive_flag_spec_GCJ=
16692   thread_safe_flag_spec_GCJ=
16693   hardcode_libdir_flag_spec_GCJ=
16694   hardcode_libdir_flag_spec_ld_GCJ=
16695   hardcode_libdir_separator_GCJ=
16696   hardcode_direct_GCJ=no
16697   hardcode_minus_L_GCJ=no
16698   hardcode_shlibpath_var_GCJ=unsupported
16699   link_all_deplibs_GCJ=unknown
16700   hardcode_automatic_GCJ=no
16701   module_cmds_GCJ=
16702   module_expsym_cmds_GCJ=
16703   always_export_symbols_GCJ=no
16704   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16705   # include_expsyms should be a list of space-separated symbols to be *always*
16706   # included in the symbol list
16707   include_expsyms_GCJ=
16708   # exclude_expsyms can be an extended regexp of symbols to exclude
16709   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16710   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16711   # as well as any symbol that contains `d'.
16712   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16713   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16714   # platforms (ab)use it in PIC code, but their linkers get confused if
16715   # the symbol is explicitly referenced.  Since portable code cannot
16716   # rely on this symbol name, it's probably fine to never include it in
16717   # preloaded symbol tables.
16718   extract_expsyms_cmds=
16719   # Just being paranoid about ensuring that cc_basename is set.
16720   for cc_temp in $compiler""; do
16721   case $cc_temp in
16722     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16723     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16724     \-*) ;;
16725     *) break;;
16726   esac
16727 done
16728 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16729
16730   case $host_os in
16731   cygwin* | mingw* | pw32*)
16732     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16733     # When not using gcc, we currently assume that we are using
16734     # Microsoft Visual C++.
16735     if test "$GCC" != yes; then
16736       with_gnu_ld=no
16737     fi
16738     ;;
16739   interix*)
16740     # we just hope/assume this is gcc and not c89 (= MSVC++)
16741     with_gnu_ld=yes
16742     ;;
16743   openbsd*)
16744     with_gnu_ld=no
16745     ;;
16746   esac
16747
16748   ld_shlibs_GCJ=yes
16749   if test "$with_gnu_ld" = yes; then
16750     # If archive_cmds runs LD, not CC, wlarc should be empty
16751     wlarc='${wl}'
16752
16753     # Set some defaults for GNU ld with shared library support. These
16754     # are reset later if shared libraries are not supported. Putting them
16755     # here allows them to be overridden if necessary.
16756     runpath_var=LD_RUN_PATH
16757     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16758     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16759     # ancient GNU ld didn't support --whole-archive et. al.
16760     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16761         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16762       else
16763         whole_archive_flag_spec_GCJ=
16764     fi
16765     supports_anon_versioning=no
16766     case `$LD -v 2>/dev/null` in
16767       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16768       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16769       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16770       *\ 2.11.*) ;; # other 2.11 versions
16771       *) supports_anon_versioning=yes ;;
16772     esac
16773
16774     # See if GNU ld supports shared libraries.
16775     case $host_os in
16776     aix3* | aix4* | aix5*)
16777       # On AIX/PPC, the GNU linker is very broken
16778       if test "$host_cpu" != ia64; then
16779         ld_shlibs_GCJ=no
16780         cat <<EOF 1>&2
16781
16782 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16783 *** to be unable to reliably create shared libraries on AIX.
16784 *** Therefore, libtool is disabling shared libraries support.  If you
16785 *** really care for shared libraries, you may want to modify your PATH
16786 *** so that a non-GNU linker is found, and then restart.
16787
16788 EOF
16789       fi
16790       ;;
16791
16792     amigaos*)
16793       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)'
16794       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795       hardcode_minus_L_GCJ=yes
16796
16797       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16798       # that the semantics of dynamic libraries on AmigaOS, at least up
16799       # to version 4, is to share data among multiple programs linked
16800       # with the same dynamic library.  Since this doesn't match the
16801       # behavior of shared libraries on other platforms, we can't use
16802       # them.
16803       ld_shlibs_GCJ=no
16804       ;;
16805
16806     beos*)
16807       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16808         allow_undefined_flag_GCJ=unsupported
16809         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16810         # support --undefined.  This deserves some investigation.  FIXME
16811         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16812       else
16813         ld_shlibs_GCJ=no
16814       fi
16815       ;;
16816
16817     cygwin* | mingw* | pw32*)
16818       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16819       # as there is no search path for DLLs.
16820       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16821       allow_undefined_flag_GCJ=unsupported
16822       always_export_symbols_GCJ=no
16823       enable_shared_with_static_runtimes_GCJ=yes
16824       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16825
16826       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16827         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16828         # If the export-symbols file already is a .def file (1st line
16829         # is EXPORTS), use it as is; otherwise, prepend...
16830         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16831           cp $export_symbols $output_objdir/$soname.def;
16832         else
16833           echo EXPORTS > $output_objdir/$soname.def;
16834           cat $export_symbols >> $output_objdir/$soname.def;
16835         fi~
16836         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16837       else
16838         ld_shlibs_GCJ=no
16839       fi
16840       ;;
16841
16842     interix3*)
16843       hardcode_direct_GCJ=no
16844       hardcode_shlibpath_var_GCJ=no
16845       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16846       export_dynamic_flag_spec_GCJ='${wl}-E'
16847       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16848       # Instead, shared libraries are loaded at an image base (0x10000000 by
16849       # default) and relocated if they conflict, which is a slow very memory
16850       # consuming and fragmenting process.  To avoid this, we pick a random,
16851       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16852       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16853       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'
16854       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'
16855       ;;
16856
16857     linux* | k*bsd*-gnu)
16858       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16859         tmp_addflag=
16860         case $cc_basename,$host_cpu in
16861         pgcc*)                          # Portland Group C compiler
16862           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'
16863           tmp_addflag=' $pic_flag'
16864           ;;
16865         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16866           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'
16867           tmp_addflag=' $pic_flag -Mnomain' ;;
16868         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16869           tmp_addflag=' -i_dynamic' ;;
16870         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16871           tmp_addflag=' -i_dynamic -nofor_main' ;;
16872         ifc* | ifort*)                  # Intel Fortran compiler
16873           tmp_addflag=' -nofor_main' ;;
16874         esac
16875         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16876
16877         if test $supports_anon_versioning = yes; then
16878           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16879   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16880   $echo "local: *; };" >> $output_objdir/$libname.ver~
16881           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16882         fi
16883         link_all_deplibs_GCJ=no
16884       else
16885         ld_shlibs_GCJ=no
16886       fi
16887       ;;
16888
16889     netbsd* | netbsdelf*-gnu)
16890       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16891         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16892         wlarc=
16893       else
16894         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16895         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16896       fi
16897       ;;
16898
16899     solaris*)
16900       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16901         ld_shlibs_GCJ=no
16902         cat <<EOF 1>&2
16903
16904 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16905 *** create shared libraries on Solaris systems.  Therefore, libtool
16906 *** is disabling shared libraries support.  We urge you to upgrade GNU
16907 *** binutils to release 2.9.1 or newer.  Another option is to modify
16908 *** your PATH or compiler configuration so that the native linker is
16909 *** used, and then restart.
16910
16911 EOF
16912       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16913         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16914         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16915       else
16916         ld_shlibs_GCJ=no
16917       fi
16918       ;;
16919
16920     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16921       case `$LD -v 2>&1` in
16922         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16923         ld_shlibs_GCJ=no
16924         cat <<_LT_EOF 1>&2
16925
16926 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16927 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16928 *** is disabling shared libraries support.  We urge you to upgrade GNU
16929 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16930 *** your PATH or compiler configuration so that the native linker is
16931 *** used, and then restart.
16932
16933 _LT_EOF
16934         ;;
16935         *)
16936           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16937             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16938             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16939             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16940           else
16941             ld_shlibs_GCJ=no
16942           fi
16943         ;;
16944       esac
16945       ;;
16946
16947     sunos4*)
16948       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16949       wlarc=
16950       hardcode_direct_GCJ=yes
16951       hardcode_shlibpath_var_GCJ=no
16952       ;;
16953
16954     *)
16955       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16956         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16957         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16958       else
16959         ld_shlibs_GCJ=no
16960       fi
16961       ;;
16962     esac
16963
16964     if test "$ld_shlibs_GCJ" = no; then
16965       runpath_var=
16966       hardcode_libdir_flag_spec_GCJ=
16967       export_dynamic_flag_spec_GCJ=
16968       whole_archive_flag_spec_GCJ=
16969     fi
16970   else
16971     # PORTME fill in a description of your system's linker (not GNU ld)
16972     case $host_os in
16973     aix3*)
16974       allow_undefined_flag_GCJ=unsupported
16975       always_export_symbols_GCJ=yes
16976       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'
16977       # Note: this linker hardcodes the directories in LIBPATH if there
16978       # are no directories specified by -L.
16979       hardcode_minus_L_GCJ=yes
16980       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16981         # Neither direct hardcoding nor static linking is supported with a
16982         # broken collect2.
16983         hardcode_direct_GCJ=unsupported
16984       fi
16985       ;;
16986
16987     aix4* | aix5*)
16988       if test "$host_cpu" = ia64; then
16989         # On IA64, the linker does run time linking by default, so we don't
16990         # have to do anything special.
16991         aix_use_runtimelinking=no
16992         exp_sym_flag='-Bexport'
16993         no_entry_flag=""
16994       else
16995         # If we're using GNU nm, then we don't want the "-C" option.
16996         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16997         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16998           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'
16999         else
17000           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'
17001         fi
17002         aix_use_runtimelinking=no
17003
17004         # Test if we are trying to use run time linking or normal
17005         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17006         # need to do runtime linking.
17007         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17008           for ld_flag in $LDFLAGS; do
17009           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17010             aix_use_runtimelinking=yes
17011             break
17012           fi
17013           done
17014           ;;
17015         esac
17016
17017         exp_sym_flag='-bexport'
17018         no_entry_flag='-bnoentry'
17019       fi
17020
17021       # When large executables or shared objects are built, AIX ld can
17022       # have problems creating the table of contents.  If linking a library
17023       # or program results in "error TOC overflow" add -mminimal-toc to
17024       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17025       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17026
17027       archive_cmds_GCJ=''
17028       hardcode_direct_GCJ=yes
17029       hardcode_libdir_separator_GCJ=':'
17030       link_all_deplibs_GCJ=yes
17031
17032       if test "$GCC" = yes; then
17033         case $host_os in aix4.[012]|aix4.[012].*)
17034         # We only want to do this on AIX 4.2 and lower, the check
17035         # below for broken collect2 doesn't work under 4.3+
17036           collect2name=`${CC} -print-prog-name=collect2`
17037           if test -f "$collect2name" && \
17038            strings "$collect2name" | grep resolve_lib_name >/dev/null
17039           then
17040           # We have reworked collect2
17041           hardcode_direct_GCJ=yes
17042           else
17043           # We have old collect2
17044           hardcode_direct_GCJ=unsupported
17045           # It fails to find uninstalled libraries when the uninstalled
17046           # path is not listed in the libpath.  Setting hardcode_minus_L
17047           # to unsupported forces relinking
17048           hardcode_minus_L_GCJ=yes
17049           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17050           hardcode_libdir_separator_GCJ=
17051           fi
17052           ;;
17053         esac
17054         shared_flag='-shared'
17055         if test "$aix_use_runtimelinking" = yes; then
17056           shared_flag="$shared_flag "'${wl}-G'
17057         fi
17058       else
17059         # not using gcc
17060         if test "$host_cpu" = ia64; then
17061         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17062         # chokes on -Wl,-G. The following line is correct:
17063           shared_flag='-G'
17064         else
17065           if test "$aix_use_runtimelinking" = yes; then
17066             shared_flag='${wl}-G'
17067           else
17068             shared_flag='${wl}-bM:SRE'
17069           fi
17070         fi
17071       fi
17072
17073       # It seems that -bexpall does not export symbols beginning with
17074       # underscore (_), so it is better to generate a list of symbols to export.
17075       always_export_symbols_GCJ=yes
17076       if test "$aix_use_runtimelinking" = yes; then
17077         # Warning - without using the other runtime loading flags (-brtl),
17078         # -berok will link without error, but may produce a broken library.
17079         allow_undefined_flag_GCJ='-berok'
17080        # Determine the default libpath from the value encoded in an empty executable.
17081        cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h.  */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h.  */
17087
17088 int
17089 main ()
17090 {
17091
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103   (eval "$ac_link") 2>conftest.er1
17104   ac_status=$?
17105   grep -v '^ *+' conftest.er1 >conftest.err
17106   rm -f conftest.er1
17107   cat conftest.err >&5
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } && {
17110          test -z "$ac_c_werror_flag" ||
17111          test ! -s conftest.err
17112        } && test -s conftest$ac_exeext &&
17113        $as_test_x conftest$ac_exeext; then
17114
17115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17116 }'`
17117 # Check for a 64-bit object if we didn't find anything.
17118 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17119 }'`; fi
17120 else
17121   echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17123
17124
17125 fi
17126
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128       conftest$ac_exeext conftest.$ac_ext
17129 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17130
17131        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17132         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"
17133        else
17134         if test "$host_cpu" = ia64; then
17135           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17136           allow_undefined_flag_GCJ="-z nodefs"
17137           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"
17138         else
17139          # Determine the default libpath from the value encoded in an empty executable.
17140          cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h.  */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h.  */
17146
17147 int
17148 main ()
17149 {
17150
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159   *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162   (eval "$ac_link") 2>conftest.er1
17163   ac_status=$?
17164   grep -v '^ *+' conftest.er1 >conftest.err
17165   rm -f conftest.er1
17166   cat conftest.err >&5
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } && {
17169          test -z "$ac_c_werror_flag" ||
17170          test ! -s conftest.err
17171        } && test -s conftest$ac_exeext &&
17172        $as_test_x conftest$ac_exeext; then
17173
17174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17175 }'`
17176 # Check for a 64-bit object if we didn't find anything.
17177 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17178 }'`; fi
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183
17184 fi
17185
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187       conftest$ac_exeext conftest.$ac_ext
17188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17189
17190          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17191           # Warning - without using the other run time loading flags,
17192           # -berok will link without error, but may produce a broken library.
17193           no_undefined_flag_GCJ=' ${wl}-bernotok'
17194           allow_undefined_flag_GCJ=' ${wl}-berok'
17195           # Exported symbols can be pulled into shared objects from archives
17196           whole_archive_flag_spec_GCJ='$convenience'
17197           archive_cmds_need_lc_GCJ=yes
17198           # This is similar to how AIX traditionally builds its shared libraries.
17199           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'
17200         fi
17201       fi
17202       ;;
17203
17204     amigaos*)
17205       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)'
17206       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17207       hardcode_minus_L_GCJ=yes
17208       # see comment about different semantics on the GNU ld section
17209       ld_shlibs_GCJ=no
17210       ;;
17211
17212     bsdi[45]*)
17213       export_dynamic_flag_spec_GCJ=-rdynamic
17214       ;;
17215
17216     cygwin* | mingw* | pw32*)
17217       # When not using gcc, we currently assume that we are using
17218       # Microsoft Visual C++.
17219       # hardcode_libdir_flag_spec is actually meaningless, as there is
17220       # no search path for DLLs.
17221       hardcode_libdir_flag_spec_GCJ=' '
17222       allow_undefined_flag_GCJ=unsupported
17223       # Tell ltmain to make .lib files, not .a files.
17224       libext=lib
17225       # Tell ltmain to make .dll files, not .so files.
17226       shrext_cmds=".dll"
17227       # FIXME: Setting linknames here is a bad hack.
17228       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17229       # The linker will automatically build a .lib file if we build a DLL.
17230       old_archive_From_new_cmds_GCJ='true'
17231       # FIXME: Should let the user specify the lib program.
17232       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17233       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17234       enable_shared_with_static_runtimes_GCJ=yes
17235       ;;
17236
17237     darwin* | rhapsody*)
17238       case $host_os in
17239         rhapsody* | darwin1.[012])
17240          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17241          ;;
17242        *) # Darwin 1.3 on
17243          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17244            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17245          else
17246            case ${MACOSX_DEPLOYMENT_TARGET} in
17247              10.[012])
17248                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17249                ;;
17250              10.*)
17251                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17252                ;;
17253            esac
17254          fi
17255          ;;
17256       esac
17257       archive_cmds_need_lc_GCJ=no
17258       hardcode_direct_GCJ=no
17259       hardcode_automatic_GCJ=yes
17260       hardcode_shlibpath_var_GCJ=unsupported
17261       whole_archive_flag_spec_GCJ=''
17262       link_all_deplibs_GCJ=yes
17263     if test "$GCC" = yes ; then
17264         output_verbose_link_cmd='echo'
17265         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17266       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17267       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17268       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17269       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}'
17270     else
17271       case $cc_basename in
17272         xlc*)
17273          output_verbose_link_cmd='echo'
17274          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17275          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17276           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17277          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17278           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}'
17279           ;;
17280        *)
17281          ld_shlibs_GCJ=no
17282           ;;
17283       esac
17284     fi
17285       ;;
17286
17287     dgux*)
17288       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17289       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290       hardcode_shlibpath_var_GCJ=no
17291       ;;
17292
17293     freebsd1*)
17294       ld_shlibs_GCJ=no
17295       ;;
17296
17297     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17298     # support.  Future versions do this automatically, but an explicit c++rt0.o
17299     # does not break anything, and helps significantly (at the cost of a little
17300     # extra space).
17301     freebsd2.2*)
17302       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17303       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17304       hardcode_direct_GCJ=yes
17305       hardcode_shlibpath_var_GCJ=no
17306       ;;
17307
17308     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17309     freebsd2*)
17310       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17311       hardcode_direct_GCJ=yes
17312       hardcode_minus_L_GCJ=yes
17313       hardcode_shlibpath_var_GCJ=no
17314       ;;
17315
17316     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17317     freebsd* | dragonfly*)
17318       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17319       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17320       hardcode_direct_GCJ=yes
17321       hardcode_shlibpath_var_GCJ=no
17322       ;;
17323
17324     hpux9*)
17325       if test "$GCC" = yes; then
17326         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'
17327       else
17328         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'
17329       fi
17330       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17331       hardcode_libdir_separator_GCJ=:
17332       hardcode_direct_GCJ=yes
17333
17334       # hardcode_minus_L: Not really in the search PATH,
17335       # but as the default location of the library.
17336       hardcode_minus_L_GCJ=yes
17337       export_dynamic_flag_spec_GCJ='${wl}-E'
17338       ;;
17339
17340     hpux10*)
17341       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17342         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17343       else
17344         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17345       fi
17346       if test "$with_gnu_ld" = no; then
17347         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17348         hardcode_libdir_separator_GCJ=:
17349
17350         hardcode_direct_GCJ=yes
17351         export_dynamic_flag_spec_GCJ='${wl}-E'
17352
17353         # hardcode_minus_L: Not really in the search PATH,
17354         # but as the default location of the library.
17355         hardcode_minus_L_GCJ=yes
17356       fi
17357       ;;
17358
17359     hpux11*)
17360       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17361         case $host_cpu in
17362         hppa*64*)
17363           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17364           ;;
17365         ia64*)
17366           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17367           ;;
17368         *)
17369           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17370           ;;
17371         esac
17372       else
17373         case $host_cpu in
17374         hppa*64*)
17375           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17376           ;;
17377         ia64*)
17378           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17379           ;;
17380         *)
17381           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17382           ;;
17383         esac
17384       fi
17385       if test "$with_gnu_ld" = no; then
17386         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17387         hardcode_libdir_separator_GCJ=:
17388
17389         case $host_cpu in
17390         hppa*64*|ia64*)
17391           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17392           hardcode_direct_GCJ=no
17393           hardcode_shlibpath_var_GCJ=no
17394           ;;
17395         *)
17396           hardcode_direct_GCJ=yes
17397           export_dynamic_flag_spec_GCJ='${wl}-E'
17398
17399           # hardcode_minus_L: Not really in the search PATH,
17400           # but as the default location of the library.
17401           hardcode_minus_L_GCJ=yes
17402           ;;
17403         esac
17404       fi
17405       ;;
17406
17407     irix5* | irix6* | nonstopux*)
17408       if test "$GCC" = yes; then
17409         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'
17410       else
17411         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'
17412         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17413       fi
17414       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17415       hardcode_libdir_separator_GCJ=:
17416       link_all_deplibs_GCJ=yes
17417       ;;
17418
17419     netbsd* | netbsdelf*-gnu)
17420       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17421         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17422       else
17423         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17424       fi
17425       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17426       hardcode_direct_GCJ=yes
17427       hardcode_shlibpath_var_GCJ=no
17428       ;;
17429
17430     newsos6)
17431       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432       hardcode_direct_GCJ=yes
17433       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17434       hardcode_libdir_separator_GCJ=:
17435       hardcode_shlibpath_var_GCJ=no
17436       ;;
17437
17438     openbsd*)
17439       hardcode_direct_GCJ=yes
17440       hardcode_shlibpath_var_GCJ=no
17441       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17442         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17443         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17444         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17445         export_dynamic_flag_spec_GCJ='${wl}-E'
17446       else
17447        case $host_os in
17448          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17449            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17450            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17451            ;;
17452          *)
17453            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17454            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17455            ;;
17456        esac
17457       fi
17458       ;;
17459
17460     os2*)
17461       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17462       hardcode_minus_L_GCJ=yes
17463       allow_undefined_flag_GCJ=unsupported
17464       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'
17465       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17466       ;;
17467
17468     osf3*)
17469       if test "$GCC" = yes; then
17470         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17471         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'
17472       else
17473         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17474         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'
17475       fi
17476       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17477       hardcode_libdir_separator_GCJ=:
17478       ;;
17479
17480     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17481       if test "$GCC" = yes; then
17482         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17483         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'
17484         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17485       else
17486         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17487         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'
17488         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~
17489         $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'
17490
17491         # Both c and cxx compiler support -rpath directly
17492         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17493       fi
17494       hardcode_libdir_separator_GCJ=:
17495       ;;
17496
17497     solaris*)
17498       no_undefined_flag_GCJ=' -z text'
17499       if test "$GCC" = yes; then
17500         wlarc='${wl}'
17501         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17502         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17503           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17504       else
17505         wlarc=''
17506         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17507         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17508         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17509       fi
17510       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17511       hardcode_shlibpath_var_GCJ=no
17512       case $host_os in
17513       solaris2.[0-5] | solaris2.[0-5].*) ;;
17514       *)
17515         # The compiler driver will combine linker options so we
17516         # cannot just pass the convience library names through
17517         # without $wl, iff we do not link with $LD.
17518         # Luckily, gcc supports the same syntax we need for Sun Studio.
17519         # Supported since Solaris 2.6 (maybe 2.5.1?)
17520         case $wlarc in
17521         '')
17522           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17523         *)
17524           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17525         esac ;;
17526       esac
17527       link_all_deplibs_GCJ=yes
17528       ;;
17529
17530     sunos4*)
17531       if test "x$host_vendor" = xsequent; then
17532         # Use $CC to link under sequent, because it throws in some extra .o
17533         # files that make .init and .fini sections work.
17534         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17535       else
17536         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17537       fi
17538       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17539       hardcode_direct_GCJ=yes
17540       hardcode_minus_L_GCJ=yes
17541       hardcode_shlibpath_var_GCJ=no
17542       ;;
17543
17544     sysv4)
17545       case $host_vendor in
17546         sni)
17547           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17548           hardcode_direct_GCJ=yes # is this really true???
17549         ;;
17550         siemens)
17551           ## LD is ld it makes a PLAMLIB
17552           ## CC just makes a GrossModule.
17553           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17554           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17555           hardcode_direct_GCJ=no
17556         ;;
17557         motorola)
17558           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17559           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17560         ;;
17561       esac
17562       runpath_var='LD_RUN_PATH'
17563       hardcode_shlibpath_var_GCJ=no
17564       ;;
17565
17566     sysv4.3*)
17567       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17568       hardcode_shlibpath_var_GCJ=no
17569       export_dynamic_flag_spec_GCJ='-Bexport'
17570       ;;
17571
17572     sysv4*MP*)
17573       if test -d /usr/nec; then
17574         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17575         hardcode_shlibpath_var_GCJ=no
17576         runpath_var=LD_RUN_PATH
17577         hardcode_runpath_var=yes
17578         ld_shlibs_GCJ=yes
17579       fi
17580       ;;
17581
17582     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17583       no_undefined_flag_GCJ='${wl}-z,text'
17584       archive_cmds_need_lc_GCJ=no
17585       hardcode_shlibpath_var_GCJ=no
17586       runpath_var='LD_RUN_PATH'
17587
17588       if test "$GCC" = yes; then
17589         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17590         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17591       else
17592         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17593         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17594       fi
17595       ;;
17596
17597     sysv5* | sco3.2v5* | sco5v6*)
17598       # Note: We can NOT use -z defs as we might desire, because we do not
17599       # link with -lc, and that would cause any symbols used from libc to
17600       # always be unresolved, which means just about no library would
17601       # ever link correctly.  If we're not using GNU ld we use -z text
17602       # though, which does catch some bad symbols but isn't as heavy-handed
17603       # as -z defs.
17604       no_undefined_flag_GCJ='${wl}-z,text'
17605       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17606       archive_cmds_need_lc_GCJ=no
17607       hardcode_shlibpath_var_GCJ=no
17608       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17609       hardcode_libdir_separator_GCJ=':'
17610       link_all_deplibs_GCJ=yes
17611       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17612       runpath_var='LD_RUN_PATH'
17613
17614       if test "$GCC" = yes; then
17615         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17616         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17617       else
17618         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17620       fi
17621       ;;
17622
17623     uts4*)
17624       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17625       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17626       hardcode_shlibpath_var_GCJ=no
17627       ;;
17628
17629     *)
17630       ld_shlibs_GCJ=no
17631       ;;
17632     esac
17633   fi
17634
17635 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17636 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17637 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17638
17639 #
17640 # Do we need to explicitly link libc?
17641 #
17642 case "x$archive_cmds_need_lc_GCJ" in
17643 x|xyes)
17644   # Assume -lc should be added
17645   archive_cmds_need_lc_GCJ=yes
17646
17647   if test "$enable_shared" = yes && test "$GCC" = yes; then
17648     case $archive_cmds_GCJ in
17649     *'~'*)
17650       # FIXME: we may have to deal with multi-command sequences.
17651       ;;
17652     '$CC '*)
17653       # Test whether the compiler implicitly links with -lc since on some
17654       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17655       # to ld, don't add -lc before -lgcc.
17656       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17657 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17658       $rm conftest*
17659       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17660
17661       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662   (eval $ac_compile) 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } 2>conftest.err; then
17666         soname=conftest
17667         lib=conftest
17668         libobjs=conftest.$ac_objext
17669         deplibs=
17670         wl=$lt_prog_compiler_wl_GCJ
17671         pic_flag=$lt_prog_compiler_pic_GCJ
17672         compiler_flags=-v
17673         linker_flags=-v
17674         verstring=
17675         output_objdir=.
17676         libname=conftest
17677         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17678         allow_undefined_flag_GCJ=
17679         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17680   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }
17684         then
17685           archive_cmds_need_lc_GCJ=no
17686         else
17687           archive_cmds_need_lc_GCJ=yes
17688         fi
17689         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17690       else
17691         cat conftest.err 1>&5
17692       fi
17693       $rm conftest*
17694       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17695 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17696       ;;
17697     esac
17698   fi
17699   ;;
17700 esac
17701
17702 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17703 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17704 library_names_spec=
17705 libname_spec='lib$name'
17706 soname_spec=
17707 shrext_cmds=".so"
17708 postinstall_cmds=
17709 postuninstall_cmds=
17710 finish_cmds=
17711 finish_eval=
17712 shlibpath_var=
17713 shlibpath_overrides_runpath=unknown
17714 version_type=none
17715 dynamic_linker="$host_os ld.so"
17716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17717 if test "$GCC" = yes; then
17718   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17719   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17720     # if the path contains ";" then we assume it to be the separator
17721     # otherwise default to the standard path separator (i.e. ":") - it is
17722     # assumed that no part of a normal pathname contains ";" but that should
17723     # okay in the real world where ";" in dirpaths is itself problematic.
17724     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17725   else
17726     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17727   fi
17728 else
17729   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17730 fi
17731 need_lib_prefix=unknown
17732 hardcode_into_libs=no
17733
17734 # when you set need_version to no, make sure it does not cause -set_version
17735 # flags to be left without arguments
17736 need_version=unknown
17737
17738 case $host_os in
17739 aix3*)
17740   version_type=linux
17741   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17742   shlibpath_var=LIBPATH
17743
17744   # AIX 3 has no versioning support, so we append a major version to the name.
17745   soname_spec='${libname}${release}${shared_ext}$major'
17746   ;;
17747
17748 aix4* | aix5*)
17749   version_type=linux
17750   need_lib_prefix=no
17751   need_version=no
17752   hardcode_into_libs=yes
17753   if test "$host_cpu" = ia64; then
17754     # AIX 5 supports IA64
17755     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17756     shlibpath_var=LD_LIBRARY_PATH
17757   else
17758     # With GCC up to 2.95.x, collect2 would create an import file
17759     # for dependence libraries.  The import file would start with
17760     # the line `#! .'.  This would cause the generated library to
17761     # depend on `.', always an invalid library.  This was fixed in
17762     # development snapshots of GCC prior to 3.0.
17763     case $host_os in
17764       aix4 | aix4.[01] | aix4.[01].*)
17765       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17766            echo ' yes '
17767            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17768         :
17769       else
17770         can_build_shared=no
17771       fi
17772       ;;
17773     esac
17774     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17775     # soname into executable. Probably we can add versioning support to
17776     # collect2, so additional links can be useful in future.
17777     if test "$aix_use_runtimelinking" = yes; then
17778       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17779       # instead of lib<name>.a to let people know that these are not
17780       # typical AIX shared libraries.
17781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17782     else
17783       # We preserve .a as extension for shared libraries through AIX4.2
17784       # and later when we are not doing run time linking.
17785       library_names_spec='${libname}${release}.a $libname.a'
17786       soname_spec='${libname}${release}${shared_ext}$major'
17787     fi
17788     shlibpath_var=LIBPATH
17789   fi
17790   ;;
17791
17792 amigaos*)
17793   library_names_spec='$libname.ixlibrary $libname.a'
17794   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17795   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'
17796   ;;
17797
17798 beos*)
17799   library_names_spec='${libname}${shared_ext}'
17800   dynamic_linker="$host_os ld.so"
17801   shlibpath_var=LIBRARY_PATH
17802   ;;
17803
17804 bsdi[45]*)
17805   version_type=linux
17806   need_version=no
17807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808   soname_spec='${libname}${release}${shared_ext}$major'
17809   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17810   shlibpath_var=LD_LIBRARY_PATH
17811   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17812   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17813   # the default ld.so.conf also contains /usr/contrib/lib and
17814   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17815   # libtool to hard-code these into programs
17816   ;;
17817
17818 cygwin* | mingw* | pw32*)
17819   version_type=windows
17820   shrext_cmds=".dll"
17821   need_version=no
17822   need_lib_prefix=no
17823
17824   case $GCC,$host_os in
17825   yes,cygwin* | yes,mingw* | yes,pw32*)
17826     library_names_spec='$libname.dll.a'
17827     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17828     postinstall_cmds='base_file=`basename \${file}`~
17829       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17830       dldir=$destdir/`dirname \$dlpath`~
17831       test -d \$dldir || mkdir -p \$dldir~
17832       $install_prog $dir/$dlname \$dldir/$dlname~
17833       chmod a+x \$dldir/$dlname'
17834     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17835       dlpath=$dir/\$dldll~
17836        $rm \$dlpath'
17837     shlibpath_overrides_runpath=yes
17838
17839     case $host_os in
17840     cygwin*)
17841       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17842       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17843       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17844       ;;
17845     mingw*)
17846       # MinGW DLLs use traditional 'lib' prefix
17847       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17848       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17849       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17850         # It is most probably a Windows format PATH printed by
17851         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17852         # path with ; separators, and with drive letters. We can handle the
17853         # drive letters (cygwin fileutils understands them), so leave them,
17854         # especially as we might pass files found there to a mingw objdump,
17855         # which wouldn't understand a cygwinified path. Ahh.
17856         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17857       else
17858         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17859       fi
17860       ;;
17861     pw32*)
17862       # pw32 DLLs use 'pw' prefix rather than 'lib'
17863       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17864       ;;
17865     esac
17866     ;;
17867
17868   *)
17869     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17870     ;;
17871   esac
17872   dynamic_linker='Win32 ld.exe'
17873   # FIXME: first we should search . and the directory the executable is in
17874   shlibpath_var=PATH
17875   ;;
17876
17877 darwin* | rhapsody*)
17878   dynamic_linker="$host_os dyld"
17879   version_type=darwin
17880   need_lib_prefix=no
17881   need_version=no
17882   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17883   soname_spec='${libname}${release}${major}$shared_ext'
17884   shlibpath_overrides_runpath=yes
17885   shlibpath_var=DYLD_LIBRARY_PATH
17886   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17887   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17888   if test "$GCC" = yes; then
17889     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17890   else
17891     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17892   fi
17893   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17894   ;;
17895
17896 dgux*)
17897   version_type=linux
17898   need_lib_prefix=no
17899   need_version=no
17900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17901   soname_spec='${libname}${release}${shared_ext}$major'
17902   shlibpath_var=LD_LIBRARY_PATH
17903   ;;
17904
17905 freebsd1*)
17906   dynamic_linker=no
17907   ;;
17908
17909 freebsd* | dragonfly*)
17910   # DragonFly does not have aout.  When/if they implement a new
17911   # versioning mechanism, adjust this.
17912   if test -x /usr/bin/objformat; then
17913     objformat=`/usr/bin/objformat`
17914   else
17915     case $host_os in
17916     freebsd[123]*) objformat=aout ;;
17917     *) objformat=elf ;;
17918     esac
17919   fi
17920   version_type=freebsd-$objformat
17921   case $version_type in
17922     freebsd-elf*)
17923       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17924       need_version=no
17925       need_lib_prefix=no
17926       ;;
17927     freebsd-*)
17928       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17929       need_version=yes
17930       ;;
17931   esac
17932   shlibpath_var=LD_LIBRARY_PATH
17933   case $host_os in
17934   freebsd2*)
17935     shlibpath_overrides_runpath=yes
17936     ;;
17937   freebsd3.[01]* | freebsdelf3.[01]*)
17938     shlibpath_overrides_runpath=yes
17939     hardcode_into_libs=yes
17940     ;;
17941   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17942   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17943     shlibpath_overrides_runpath=no
17944     hardcode_into_libs=yes
17945     ;;
17946   freebsd*) # from 4.6 on
17947     shlibpath_overrides_runpath=yes
17948     hardcode_into_libs=yes
17949     ;;
17950   esac
17951   ;;
17952
17953 gnu*)
17954   version_type=linux
17955   need_lib_prefix=no
17956   need_version=no
17957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17958   soname_spec='${libname}${release}${shared_ext}$major'
17959   shlibpath_var=LD_LIBRARY_PATH
17960   hardcode_into_libs=yes
17961   ;;
17962
17963 hpux9* | hpux10* | hpux11*)
17964   # Give a soname corresponding to the major version so that dld.sl refuses to
17965   # link against other versions.
17966   version_type=sunos
17967   need_lib_prefix=no
17968   need_version=no
17969   case $host_cpu in
17970   ia64*)
17971     shrext_cmds='.so'
17972     hardcode_into_libs=yes
17973     dynamic_linker="$host_os dld.so"
17974     shlibpath_var=LD_LIBRARY_PATH
17975     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977     soname_spec='${libname}${release}${shared_ext}$major'
17978     if test "X$HPUX_IA64_MODE" = X32; then
17979       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17980     else
17981       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17982     fi
17983     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17984     ;;
17985    hppa*64*)
17986      shrext_cmds='.sl'
17987      hardcode_into_libs=yes
17988      dynamic_linker="$host_os dld.sl"
17989      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17990      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17991      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992      soname_spec='${libname}${release}${shared_ext}$major'
17993      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17994      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17995      ;;
17996    *)
17997     shrext_cmds='.sl'
17998     dynamic_linker="$host_os dld.sl"
17999     shlibpath_var=SHLIB_PATH
18000     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002     soname_spec='${libname}${release}${shared_ext}$major'
18003     ;;
18004   esac
18005   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18006   postinstall_cmds='chmod 555 $lib'
18007   ;;
18008
18009 interix3*)
18010   version_type=linux
18011   need_lib_prefix=no
18012   need_version=no
18013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18014   soname_spec='${libname}${release}${shared_ext}$major'
18015   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18016   shlibpath_var=LD_LIBRARY_PATH
18017   shlibpath_overrides_runpath=no
18018   hardcode_into_libs=yes
18019   ;;
18020
18021 irix5* | irix6* | nonstopux*)
18022   case $host_os in
18023     nonstopux*) version_type=nonstopux ;;
18024     *)
18025         if test "$lt_cv_prog_gnu_ld" = yes; then
18026                 version_type=linux
18027         else
18028                 version_type=irix
18029         fi ;;
18030   esac
18031   need_lib_prefix=no
18032   need_version=no
18033   soname_spec='${libname}${release}${shared_ext}$major'
18034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18035   case $host_os in
18036   irix5* | nonstopux*)
18037     libsuff= shlibsuff=
18038     ;;
18039   *)
18040     case $LD in # libtool.m4 will add one of these switches to LD
18041     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18042       libsuff= shlibsuff= libmagic=32-bit;;
18043     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18044       libsuff=32 shlibsuff=N32 libmagic=N32;;
18045     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18046       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18047     *) libsuff= shlibsuff= libmagic=never-match;;
18048     esac
18049     ;;
18050   esac
18051   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18052   shlibpath_overrides_runpath=no
18053   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18054   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18055   hardcode_into_libs=yes
18056   ;;
18057
18058 # No shared lib support for Linux oldld, aout, or coff.
18059 linux*oldld* | linux*aout* | linux*coff*)
18060   dynamic_linker=no
18061   ;;
18062
18063 # This must be Linux ELF.
18064 linux* | k*bsd*-gnu)
18065   version_type=linux
18066   need_lib_prefix=no
18067   need_version=no
18068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069   soname_spec='${libname}${release}${shared_ext}$major'
18070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18071   shlibpath_var=LD_LIBRARY_PATH
18072   shlibpath_overrides_runpath=no
18073   # This implies no fast_install, which is unacceptable.
18074   # Some rework will be needed to allow for fast_install
18075   # before this can be enabled.
18076   hardcode_into_libs=yes
18077
18078   # Append ld.so.conf contents to the search path
18079   if test -f /etc/ld.so.conf; then
18080     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18081     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18082   fi
18083
18084   # We used to test for /lib/ld.so.1 and disable shared libraries on
18085   # powerpc, because MkLinux only supported shared libraries with the
18086   # GNU dynamic linker.  Since this was broken with cross compilers,
18087   # most powerpc-linux boxes support dynamic linking these days and
18088   # people can always --disable-shared, the test was removed, and we
18089   # assume the GNU/Linux dynamic linker is in use.
18090   dynamic_linker='GNU/Linux ld.so'
18091   ;;
18092
18093 netbsdelf*-gnu)
18094   version_type=linux
18095   need_lib_prefix=no
18096   need_version=no
18097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18098   soname_spec='${libname}${release}${shared_ext}$major'
18099   shlibpath_var=LD_LIBRARY_PATH
18100   shlibpath_overrides_runpath=no
18101   hardcode_into_libs=yes
18102   dynamic_linker='NetBSD ld.elf_so'
18103   ;;
18104
18105 netbsd*)
18106   version_type=sunos
18107   need_lib_prefix=no
18108   need_version=no
18109   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18111     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18112     dynamic_linker='NetBSD (a.out) ld.so'
18113   else
18114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18115     soname_spec='${libname}${release}${shared_ext}$major'
18116     dynamic_linker='NetBSD ld.elf_so'
18117   fi
18118   shlibpath_var=LD_LIBRARY_PATH
18119   shlibpath_overrides_runpath=yes
18120   hardcode_into_libs=yes
18121   ;;
18122
18123 newsos6)
18124   version_type=linux
18125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18126   shlibpath_var=LD_LIBRARY_PATH
18127   shlibpath_overrides_runpath=yes
18128   ;;
18129
18130 nto-qnx*)
18131   version_type=linux
18132   need_lib_prefix=no
18133   need_version=no
18134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135   soname_spec='${libname}${release}${shared_ext}$major'
18136   shlibpath_var=LD_LIBRARY_PATH
18137   shlibpath_overrides_runpath=yes
18138   ;;
18139
18140 openbsd*)
18141   version_type=sunos
18142   sys_lib_dlsearch_path_spec="/usr/lib"
18143   need_lib_prefix=no
18144   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18145   case $host_os in
18146     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18147     *)                         need_version=no  ;;
18148   esac
18149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18151   shlibpath_var=LD_LIBRARY_PATH
18152   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18153     case $host_os in
18154       openbsd2.[89] | openbsd2.[89].*)
18155         shlibpath_overrides_runpath=no
18156         ;;
18157       *)
18158         shlibpath_overrides_runpath=yes
18159         ;;
18160       esac
18161   else
18162     shlibpath_overrides_runpath=yes
18163   fi
18164   ;;
18165
18166 os2*)
18167   libname_spec='$name'
18168   shrext_cmds=".dll"
18169   need_lib_prefix=no
18170   library_names_spec='$libname${shared_ext} $libname.a'
18171   dynamic_linker='OS/2 ld.exe'
18172   shlibpath_var=LIBPATH
18173   ;;
18174
18175 osf3* | osf4* | osf5*)
18176   version_type=osf
18177   need_lib_prefix=no
18178   need_version=no
18179   soname_spec='${libname}${release}${shared_ext}$major'
18180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181   shlibpath_var=LD_LIBRARY_PATH
18182   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18183   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18184   ;;
18185
18186 solaris*)
18187   version_type=linux
18188   need_lib_prefix=no
18189   need_version=no
18190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191   soname_spec='${libname}${release}${shared_ext}$major'
18192   shlibpath_var=LD_LIBRARY_PATH
18193   shlibpath_overrides_runpath=yes
18194   hardcode_into_libs=yes
18195   # ldd complains unless libraries are executable
18196   postinstall_cmds='chmod +x $lib'
18197   ;;
18198
18199 sunos4*)
18200   version_type=sunos
18201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18202   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18203   shlibpath_var=LD_LIBRARY_PATH
18204   shlibpath_overrides_runpath=yes
18205   if test "$with_gnu_ld" = yes; then
18206     need_lib_prefix=no
18207   fi
18208   need_version=yes
18209   ;;
18210
18211 sysv4 | sysv4.3*)
18212   version_type=linux
18213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214   soname_spec='${libname}${release}${shared_ext}$major'
18215   shlibpath_var=LD_LIBRARY_PATH
18216   case $host_vendor in
18217     sni)
18218       shlibpath_overrides_runpath=no
18219       need_lib_prefix=no
18220       export_dynamic_flag_spec='${wl}-Blargedynsym'
18221       runpath_var=LD_RUN_PATH
18222       ;;
18223     siemens)
18224       need_lib_prefix=no
18225       ;;
18226     motorola)
18227       need_lib_prefix=no
18228       need_version=no
18229       shlibpath_overrides_runpath=no
18230       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18231       ;;
18232   esac
18233   ;;
18234
18235 sysv4*MP*)
18236   if test -d /usr/nec ;then
18237     version_type=linux
18238     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18239     soname_spec='$libname${shared_ext}.$major'
18240     shlibpath_var=LD_LIBRARY_PATH
18241   fi
18242   ;;
18243
18244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18245   version_type=freebsd-elf
18246   need_lib_prefix=no
18247   need_version=no
18248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18249   soname_spec='${libname}${release}${shared_ext}$major'
18250   shlibpath_var=LD_LIBRARY_PATH
18251   hardcode_into_libs=yes
18252   if test "$with_gnu_ld" = yes; then
18253     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18254     shlibpath_overrides_runpath=no
18255   else
18256     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18257     shlibpath_overrides_runpath=yes
18258     case $host_os in
18259       sco3.2v5*)
18260         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18261         ;;
18262     esac
18263   fi
18264   sys_lib_dlsearch_path_spec='/usr/lib'
18265   ;;
18266
18267 uts4*)
18268   version_type=linux
18269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270   soname_spec='${libname}${release}${shared_ext}$major'
18271   shlibpath_var=LD_LIBRARY_PATH
18272   ;;
18273
18274 *)
18275   dynamic_linker=no
18276   ;;
18277 esac
18278 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18279 echo "${ECHO_T}$dynamic_linker" >&6; }
18280 test "$dynamic_linker" = no && can_build_shared=no
18281
18282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18283 if test "$GCC" = yes; then
18284   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18285 fi
18286
18287 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18288 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18289 hardcode_action_GCJ=
18290 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18291    test -n "$runpath_var_GCJ" || \
18292    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18293
18294   # We can hardcode non-existant directories.
18295   if test "$hardcode_direct_GCJ" != no &&
18296      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18297      # have to relink, otherwise we might link with an installed library
18298      # when we should be linking with a yet-to-be-installed one
18299      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18300      test "$hardcode_minus_L_GCJ" != no; then
18301     # Linking always hardcodes the temporary library directory.
18302     hardcode_action_GCJ=relink
18303   else
18304     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18305     hardcode_action_GCJ=immediate
18306   fi
18307 else
18308   # We cannot hardcode anything, or else we can only hardcode existing
18309   # directories.
18310   hardcode_action_GCJ=unsupported
18311 fi
18312 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18313 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18314
18315 if test "$hardcode_action_GCJ" = relink; then
18316   # Fast installation is not supported
18317   enable_fast_install=no
18318 elif test "$shlibpath_overrides_runpath" = yes ||
18319      test "$enable_shared" = no; then
18320   # Fast installation is not necessary
18321   enable_fast_install=needless
18322 fi
18323
18324
18325 # The else clause should only fire when bootstrapping the
18326 # libtool distribution, otherwise you forgot to ship ltmain.sh
18327 # with your package, and you will get complaints that there are
18328 # no rules to generate ltmain.sh.
18329 if test -f "$ltmain"; then
18330   # See if we are running on zsh, and set the options which allow our commands through
18331   # without removal of \ escapes.
18332   if test -n "${ZSH_VERSION+set}" ; then
18333     setopt NO_GLOB_SUBST
18334   fi
18335   # Now quote all the things that may contain metacharacters while being
18336   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18337   # variables and quote the copies for generation of the libtool script.
18338   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18339     SED SHELL STRIP \
18340     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18341     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18342     deplibs_check_method reload_flag reload_cmds need_locks \
18343     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18344     lt_cv_sys_global_symbol_to_c_name_address \
18345     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18346     old_postinstall_cmds old_postuninstall_cmds \
18347     compiler_GCJ \
18348     CC_GCJ \
18349     LD_GCJ \
18350     lt_prog_compiler_wl_GCJ \
18351     lt_prog_compiler_pic_GCJ \
18352     lt_prog_compiler_static_GCJ \
18353     lt_prog_compiler_no_builtin_flag_GCJ \
18354     export_dynamic_flag_spec_GCJ \
18355     thread_safe_flag_spec_GCJ \
18356     whole_archive_flag_spec_GCJ \
18357     enable_shared_with_static_runtimes_GCJ \
18358     old_archive_cmds_GCJ \
18359     old_archive_from_new_cmds_GCJ \
18360     predep_objects_GCJ \
18361     postdep_objects_GCJ \
18362     predeps_GCJ \
18363     postdeps_GCJ \
18364     compiler_lib_search_path_GCJ \
18365     archive_cmds_GCJ \
18366     archive_expsym_cmds_GCJ \
18367     postinstall_cmds_GCJ \
18368     postuninstall_cmds_GCJ \
18369     old_archive_from_expsyms_cmds_GCJ \
18370     allow_undefined_flag_GCJ \
18371     no_undefined_flag_GCJ \
18372     export_symbols_cmds_GCJ \
18373     hardcode_libdir_flag_spec_GCJ \
18374     hardcode_libdir_flag_spec_ld_GCJ \
18375     hardcode_libdir_separator_GCJ \
18376     hardcode_automatic_GCJ \
18377     module_cmds_GCJ \
18378     module_expsym_cmds_GCJ \
18379     lt_cv_prog_compiler_c_o_GCJ \
18380     exclude_expsyms_GCJ \
18381     include_expsyms_GCJ; do
18382
18383     case $var in
18384     old_archive_cmds_GCJ | \
18385     old_archive_from_new_cmds_GCJ | \
18386     archive_cmds_GCJ | \
18387     archive_expsym_cmds_GCJ | \
18388     module_cmds_GCJ | \
18389     module_expsym_cmds_GCJ | \
18390     old_archive_from_expsyms_cmds_GCJ | \
18391     export_symbols_cmds_GCJ | \
18392     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18393     postinstall_cmds | postuninstall_cmds | \
18394     old_postinstall_cmds | old_postuninstall_cmds | \
18395     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18396       # Double-quote double-evaled strings.
18397       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18398       ;;
18399     *)
18400       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18401       ;;
18402     esac
18403   done
18404
18405   case $lt_echo in
18406   *'\$0 --fallback-echo"')
18407     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18408     ;;
18409   esac
18410
18411 cfgfile="$ofile"
18412
18413   cat <<__EOF__ >> "$cfgfile"
18414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18415
18416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18417
18418 # Shell to use when invoking shell scripts.
18419 SHELL=$lt_SHELL
18420
18421 # Whether or not to build shared libraries.
18422 build_libtool_libs=$enable_shared
18423
18424 # Whether or not to build static libraries.
18425 build_old_libs=$enable_static
18426
18427 # Whether or not to add -lc for building shared libraries.
18428 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18429
18430 # Whether or not to disallow shared libs when runtime libs are static
18431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18432
18433 # Whether or not to optimize for fast installation.
18434 fast_install=$enable_fast_install
18435
18436 # The host system.
18437 host_alias=$host_alias
18438 host=$host
18439 host_os=$host_os
18440
18441 # The build system.
18442 build_alias=$build_alias
18443 build=$build
18444 build_os=$build_os
18445
18446 # An echo program that does not interpret backslashes.
18447 echo=$lt_echo
18448
18449 # The archiver.
18450 AR=$lt_AR
18451 AR_FLAGS=$lt_AR_FLAGS
18452
18453 # A C compiler.
18454 LTCC=$lt_LTCC
18455
18456 # LTCC compiler flags.
18457 LTCFLAGS=$lt_LTCFLAGS
18458
18459 # A language-specific compiler.
18460 CC=$lt_compiler_GCJ
18461
18462 # Is the compiler the GNU C compiler?
18463 with_gcc=$GCC_GCJ
18464
18465 # An ERE matcher.
18466 EGREP=$lt_EGREP
18467
18468 # The linker used to build libraries.
18469 LD=$lt_LD_GCJ
18470
18471 # Whether we need hard or soft links.
18472 LN_S=$lt_LN_S
18473
18474 # A BSD-compatible nm program.
18475 NM=$lt_NM
18476
18477 # A symbol stripping program
18478 STRIP=$lt_STRIP
18479
18480 # Used to examine libraries when file_magic_cmd begins "file"
18481 MAGIC_CMD=$MAGIC_CMD
18482
18483 # Used on cygwin: DLL creation program.
18484 DLLTOOL="$DLLTOOL"
18485
18486 # Used on cygwin: object dumper.
18487 OBJDUMP="$OBJDUMP"
18488
18489 # Used on cygwin: assembler.
18490 AS="$AS"
18491
18492 # The name of the directory that contains temporary libtool files.
18493 objdir=$objdir
18494
18495 # How to create reloadable object files.
18496 reload_flag=$lt_reload_flag
18497 reload_cmds=$lt_reload_cmds
18498
18499 # How to pass a linker flag through the compiler.
18500 wl=$lt_lt_prog_compiler_wl_GCJ
18501
18502 # Object file suffix (normally "o").
18503 objext="$ac_objext"
18504
18505 # Old archive suffix (normally "a").
18506 libext="$libext"
18507
18508 # Shared library suffix (normally ".so").
18509 shrext_cmds='$shrext_cmds'
18510
18511 # Executable file suffix (normally "").
18512 exeext="$exeext"
18513
18514 # Additional compiler flags for building library objects.
18515 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18516 pic_mode=$pic_mode
18517
18518 # What is the maximum length of a command?
18519 max_cmd_len=$lt_cv_sys_max_cmd_len
18520
18521 # Does compiler simultaneously support -c and -o options?
18522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18523
18524 # Must we lock files when doing compilation?
18525 need_locks=$lt_need_locks
18526
18527 # Do we need the lib prefix for modules?
18528 need_lib_prefix=$need_lib_prefix
18529
18530 # Do we need a version for libraries?
18531 need_version=$need_version
18532
18533 # Whether dlopen is supported.
18534 dlopen_support=$enable_dlopen
18535
18536 # Whether dlopen of programs is supported.
18537 dlopen_self=$enable_dlopen_self
18538
18539 # Whether dlopen of statically linked programs is supported.
18540 dlopen_self_static=$enable_dlopen_self_static
18541
18542 # Compiler flag to prevent dynamic linking.
18543 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18544
18545 # Compiler flag to turn off builtin functions.
18546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18547
18548 # Compiler flag to allow reflexive dlopens.
18549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18550
18551 # Compiler flag to generate shared objects directly from archives.
18552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18553
18554 # Compiler flag to generate thread-safe objects.
18555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18556
18557 # Library versioning type.
18558 version_type=$version_type
18559
18560 # Format of library name prefix.
18561 libname_spec=$lt_libname_spec
18562
18563 # List of archive names.  First name is the real one, the rest are links.
18564 # The last name is the one that the linker finds with -lNAME.
18565 library_names_spec=$lt_library_names_spec
18566
18567 # The coded name of the library, if different from the real name.
18568 soname_spec=$lt_soname_spec
18569
18570 # Commands used to build and install an old-style archive.
18571 RANLIB=$lt_RANLIB
18572 old_archive_cmds=$lt_old_archive_cmds_GCJ
18573 old_postinstall_cmds=$lt_old_postinstall_cmds
18574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18575
18576 # Create an old-style archive from a shared archive.
18577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18578
18579 # Create a temporary old-style archive to link instead of a shared archive.
18580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18581
18582 # Commands used to build and install a shared archive.
18583 archive_cmds=$lt_archive_cmds_GCJ
18584 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18585 postinstall_cmds=$lt_postinstall_cmds
18586 postuninstall_cmds=$lt_postuninstall_cmds
18587
18588 # Commands used to build a loadable module (assumed same as above if empty)
18589 module_cmds=$lt_module_cmds_GCJ
18590 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18591
18592 # Commands to strip libraries.
18593 old_striplib=$lt_old_striplib
18594 striplib=$lt_striplib
18595
18596 # Dependencies to place before the objects being linked to create a
18597 # shared library.
18598 predep_objects=$lt_predep_objects_GCJ
18599
18600 # Dependencies to place after the objects being linked to create a
18601 # shared library.
18602 postdep_objects=$lt_postdep_objects_GCJ
18603
18604 # Dependencies to place before the objects being linked to create a
18605 # shared library.
18606 predeps=$lt_predeps_GCJ
18607
18608 # Dependencies to place after the objects being linked to create a
18609 # shared library.
18610 postdeps=$lt_postdeps_GCJ
18611
18612 # The library search path used internally by the compiler when linking
18613 # a shared library.
18614 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18615
18616 # Method to check whether dependent libraries are shared objects.
18617 deplibs_check_method=$lt_deplibs_check_method
18618
18619 # Command to use when deplibs_check_method == file_magic.
18620 file_magic_cmd=$lt_file_magic_cmd
18621
18622 # Flag that allows shared libraries with undefined symbols to be built.
18623 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18624
18625 # Flag that forces no undefined symbols.
18626 no_undefined_flag=$lt_no_undefined_flag_GCJ
18627
18628 # Commands used to finish a libtool library installation in a directory.
18629 finish_cmds=$lt_finish_cmds
18630
18631 # Same as above, but a single script fragment to be evaled but not shown.
18632 finish_eval=$lt_finish_eval
18633
18634 # Take the output of nm and produce a listing of raw symbols and C names.
18635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18636
18637 # Transform the output of nm in a proper C declaration
18638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18639
18640 # Transform the output of nm in a C name address pair
18641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18642
18643 # This is the shared library runtime path variable.
18644 runpath_var=$runpath_var
18645
18646 # This is the shared library path variable.
18647 shlibpath_var=$shlibpath_var
18648
18649 # Is shlibpath searched before the hard-coded library search path?
18650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18651
18652 # How to hardcode a shared library path into an executable.
18653 hardcode_action=$hardcode_action_GCJ
18654
18655 # Whether we should hardcode library paths into libraries.
18656 hardcode_into_libs=$hardcode_into_libs
18657
18658 # Flag to hardcode \$libdir into a binary during linking.
18659 # This must work even if \$libdir does not exist.
18660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18661
18662 # If ld is used when linking, flag to hardcode \$libdir into
18663 # a binary during linking. This must work even if \$libdir does
18664 # not exist.
18665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18666
18667 # Whether we need a single -rpath flag with a separated argument.
18668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18669
18670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18671 # resulting binary.
18672 hardcode_direct=$hardcode_direct_GCJ
18673
18674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18675 # resulting binary.
18676 hardcode_minus_L=$hardcode_minus_L_GCJ
18677
18678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18679 # the resulting binary.
18680 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18681
18682 # Set to yes if building a shared library automatically hardcodes DIR into the library
18683 # and all subsequent libraries and executables linked against it.
18684 hardcode_automatic=$hardcode_automatic_GCJ
18685
18686 # Variables whose values should be saved in libtool wrapper scripts and
18687 # restored at relink time.
18688 variables_saved_for_relink="$variables_saved_for_relink"
18689
18690 # Whether libtool must link a program against all its dependency libraries.
18691 link_all_deplibs=$link_all_deplibs_GCJ
18692
18693 # Compile-time system search path for libraries
18694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18695
18696 # Run-time system search path for libraries
18697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18698
18699 # Fix the shell variable \$srcfile for the compiler.
18700 fix_srcfile_path="$fix_srcfile_path_GCJ"
18701
18702 # Set to yes if exported symbols are required.
18703 always_export_symbols=$always_export_symbols_GCJ
18704
18705 # The commands to list exported symbols.
18706 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18707
18708 # The commands to extract the exported symbol list from a shared archive.
18709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18710
18711 # Symbols that should not be listed in the preloaded symbols.
18712 exclude_expsyms=$lt_exclude_expsyms_GCJ
18713
18714 # Symbols that must always be exported.
18715 include_expsyms=$lt_include_expsyms_GCJ
18716
18717 # ### END LIBTOOL TAG CONFIG: $tagname
18718
18719 __EOF__
18720
18721
18722 else
18723   # If there is no Makefile yet, we rely on a make rule to execute
18724   # `config.status --recheck' to rerun these tests and create the
18725   # libtool script then.
18726   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18727   if test -f "$ltmain_in"; then
18728     test -f Makefile && make "$ltmain"
18729   fi
18730 fi
18731
18732
18733 ac_ext=c
18734 ac_cpp='$CPP $CPPFLAGS'
18735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18738
18739 CC="$lt_save_CC"
18740
18741         else
18742           tagname=""
18743         fi
18744         ;;
18745
18746       RC)
18747
18748
18749 # Source file extension for RC test sources.
18750 ac_ext=rc
18751
18752 # Object file extension for compiled RC test sources.
18753 objext=o
18754 objext_RC=$objext
18755
18756 # Code to be used in simple compile tests
18757 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18758
18759 # Code to be used in simple link tests
18760 lt_simple_link_test_code="$lt_simple_compile_test_code"
18761
18762 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18763
18764 # If no C compiler was specified, use CC.
18765 LTCC=${LTCC-"$CC"}
18766
18767 # If no C compiler flags were specified, use CFLAGS.
18768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18769
18770 # Allow CC to be a program name with arguments.
18771 compiler=$CC
18772
18773
18774 # save warnings/boilerplate of simple test code
18775 ac_outfile=conftest.$ac_objext
18776 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18778 _lt_compiler_boilerplate=`cat conftest.err`
18779 $rm conftest*
18780
18781 ac_outfile=conftest.$ac_objext
18782 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18784 _lt_linker_boilerplate=`cat conftest.err`
18785 $rm conftest*
18786
18787
18788 # Allow CC to be a program name with arguments.
18789 lt_save_CC="$CC"
18790 CC=${RC-"windres"}
18791 compiler=$CC
18792 compiler_RC=$CC
18793 for cc_temp in $compiler""; do
18794   case $cc_temp in
18795     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18796     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18797     \-*) ;;
18798     *) break;;
18799   esac
18800 done
18801 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18802
18803 lt_cv_prog_compiler_c_o_RC=yes
18804
18805 # The else clause should only fire when bootstrapping the
18806 # libtool distribution, otherwise you forgot to ship ltmain.sh
18807 # with your package, and you will get complaints that there are
18808 # no rules to generate ltmain.sh.
18809 if test -f "$ltmain"; then
18810   # See if we are running on zsh, and set the options which allow our commands through
18811   # without removal of \ escapes.
18812   if test -n "${ZSH_VERSION+set}" ; then
18813     setopt NO_GLOB_SUBST
18814   fi
18815   # Now quote all the things that may contain metacharacters while being
18816   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18817   # variables and quote the copies for generation of the libtool script.
18818   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18819     SED SHELL STRIP \
18820     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18821     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18822     deplibs_check_method reload_flag reload_cmds need_locks \
18823     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18824     lt_cv_sys_global_symbol_to_c_name_address \
18825     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18826     old_postinstall_cmds old_postuninstall_cmds \
18827     compiler_RC \
18828     CC_RC \
18829     LD_RC \
18830     lt_prog_compiler_wl_RC \
18831     lt_prog_compiler_pic_RC \
18832     lt_prog_compiler_static_RC \
18833     lt_prog_compiler_no_builtin_flag_RC \
18834     export_dynamic_flag_spec_RC \
18835     thread_safe_flag_spec_RC \
18836     whole_archive_flag_spec_RC \
18837     enable_shared_with_static_runtimes_RC \
18838     old_archive_cmds_RC \
18839     old_archive_from_new_cmds_RC \
18840     predep_objects_RC \
18841     postdep_objects_RC \
18842     predeps_RC \
18843     postdeps_RC \
18844     compiler_lib_search_path_RC \
18845     archive_cmds_RC \
18846     archive_expsym_cmds_RC \
18847     postinstall_cmds_RC \
18848     postuninstall_cmds_RC \
18849     old_archive_from_expsyms_cmds_RC \
18850     allow_undefined_flag_RC \
18851     no_undefined_flag_RC \
18852     export_symbols_cmds_RC \
18853     hardcode_libdir_flag_spec_RC \
18854     hardcode_libdir_flag_spec_ld_RC \
18855     hardcode_libdir_separator_RC \
18856     hardcode_automatic_RC \
18857     module_cmds_RC \
18858     module_expsym_cmds_RC \
18859     lt_cv_prog_compiler_c_o_RC \
18860     exclude_expsyms_RC \
18861     include_expsyms_RC; do
18862
18863     case $var in
18864     old_archive_cmds_RC | \
18865     old_archive_from_new_cmds_RC | \
18866     archive_cmds_RC | \
18867     archive_expsym_cmds_RC | \
18868     module_cmds_RC | \
18869     module_expsym_cmds_RC | \
18870     old_archive_from_expsyms_cmds_RC | \
18871     export_symbols_cmds_RC | \
18872     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18873     postinstall_cmds | postuninstall_cmds | \
18874     old_postinstall_cmds | old_postuninstall_cmds | \
18875     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18876       # Double-quote double-evaled strings.
18877       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18878       ;;
18879     *)
18880       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18881       ;;
18882     esac
18883   done
18884
18885   case $lt_echo in
18886   *'\$0 --fallback-echo"')
18887     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18888     ;;
18889   esac
18890
18891 cfgfile="$ofile"
18892
18893   cat <<__EOF__ >> "$cfgfile"
18894 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18895
18896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18897
18898 # Shell to use when invoking shell scripts.
18899 SHELL=$lt_SHELL
18900
18901 # Whether or not to build shared libraries.
18902 build_libtool_libs=$enable_shared
18903
18904 # Whether or not to build static libraries.
18905 build_old_libs=$enable_static
18906
18907 # Whether or not to add -lc for building shared libraries.
18908 build_libtool_need_lc=$archive_cmds_need_lc_RC
18909
18910 # Whether or not to disallow shared libs when runtime libs are static
18911 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18912
18913 # Whether or not to optimize for fast installation.
18914 fast_install=$enable_fast_install
18915
18916 # The host system.
18917 host_alias=$host_alias
18918 host=$host
18919 host_os=$host_os
18920
18921 # The build system.
18922 build_alias=$build_alias
18923 build=$build
18924 build_os=$build_os
18925
18926 # An echo program that does not interpret backslashes.
18927 echo=$lt_echo
18928
18929 # The archiver.
18930 AR=$lt_AR
18931 AR_FLAGS=$lt_AR_FLAGS
18932
18933 # A C compiler.
18934 LTCC=$lt_LTCC
18935
18936 # LTCC compiler flags.
18937 LTCFLAGS=$lt_LTCFLAGS
18938
18939 # A language-specific compiler.
18940 CC=$lt_compiler_RC
18941
18942 # Is the compiler the GNU C compiler?
18943 with_gcc=$GCC_RC
18944
18945 # An ERE matcher.
18946 EGREP=$lt_EGREP
18947
18948 # The linker used to build libraries.
18949 LD=$lt_LD_RC
18950
18951 # Whether we need hard or soft links.
18952 LN_S=$lt_LN_S
18953
18954 # A BSD-compatible nm program.
18955 NM=$lt_NM
18956
18957 # A symbol stripping program
18958 STRIP=$lt_STRIP
18959
18960 # Used to examine libraries when file_magic_cmd begins "file"
18961 MAGIC_CMD=$MAGIC_CMD
18962
18963 # Used on cygwin: DLL creation program.
18964 DLLTOOL="$DLLTOOL"
18965
18966 # Used on cygwin: object dumper.
18967 OBJDUMP="$OBJDUMP"
18968
18969 # Used on cygwin: assembler.
18970 AS="$AS"
18971
18972 # The name of the directory that contains temporary libtool files.
18973 objdir=$objdir
18974
18975 # How to create reloadable object files.
18976 reload_flag=$lt_reload_flag
18977 reload_cmds=$lt_reload_cmds
18978
18979 # How to pass a linker flag through the compiler.
18980 wl=$lt_lt_prog_compiler_wl_RC
18981
18982 # Object file suffix (normally "o").
18983 objext="$ac_objext"
18984
18985 # Old archive suffix (normally "a").
18986 libext="$libext"
18987
18988 # Shared library suffix (normally ".so").
18989 shrext_cmds='$shrext_cmds'
18990
18991 # Executable file suffix (normally "").
18992 exeext="$exeext"
18993
18994 # Additional compiler flags for building library objects.
18995 pic_flag=$lt_lt_prog_compiler_pic_RC
18996 pic_mode=$pic_mode
18997
18998 # What is the maximum length of a command?
18999 max_cmd_len=$lt_cv_sys_max_cmd_len
19000
19001 # Does compiler simultaneously support -c and -o options?
19002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19003
19004 # Must we lock files when doing compilation?
19005 need_locks=$lt_need_locks
19006
19007 # Do we need the lib prefix for modules?
19008 need_lib_prefix=$need_lib_prefix
19009
19010 # Do we need a version for libraries?
19011 need_version=$need_version
19012
19013 # Whether dlopen is supported.
19014 dlopen_support=$enable_dlopen
19015
19016 # Whether dlopen of programs is supported.
19017 dlopen_self=$enable_dlopen_self
19018
19019 # Whether dlopen of statically linked programs is supported.
19020 dlopen_self_static=$enable_dlopen_self_static
19021
19022 # Compiler flag to prevent dynamic linking.
19023 link_static_flag=$lt_lt_prog_compiler_static_RC
19024
19025 # Compiler flag to turn off builtin functions.
19026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19027
19028 # Compiler flag to allow reflexive dlopens.
19029 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19030
19031 # Compiler flag to generate shared objects directly from archives.
19032 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19033
19034 # Compiler flag to generate thread-safe objects.
19035 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19036
19037 # Library versioning type.
19038 version_type=$version_type
19039
19040 # Format of library name prefix.
19041 libname_spec=$lt_libname_spec
19042
19043 # List of archive names.  First name is the real one, the rest are links.
19044 # The last name is the one that the linker finds with -lNAME.
19045 library_names_spec=$lt_library_names_spec
19046
19047 # The coded name of the library, if different from the real name.
19048 soname_spec=$lt_soname_spec
19049
19050 # Commands used to build and install an old-style archive.
19051 RANLIB=$lt_RANLIB
19052 old_archive_cmds=$lt_old_archive_cmds_RC
19053 old_postinstall_cmds=$lt_old_postinstall_cmds
19054 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19055
19056 # Create an old-style archive from a shared archive.
19057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19058
19059 # Create a temporary old-style archive to link instead of a shared archive.
19060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19061
19062 # Commands used to build and install a shared archive.
19063 archive_cmds=$lt_archive_cmds_RC
19064 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19065 postinstall_cmds=$lt_postinstall_cmds
19066 postuninstall_cmds=$lt_postuninstall_cmds
19067
19068 # Commands used to build a loadable module (assumed same as above if empty)
19069 module_cmds=$lt_module_cmds_RC
19070 module_expsym_cmds=$lt_module_expsym_cmds_RC
19071
19072 # Commands to strip libraries.
19073 old_striplib=$lt_old_striplib
19074 striplib=$lt_striplib
19075
19076 # Dependencies to place before the objects being linked to create a
19077 # shared library.
19078 predep_objects=$lt_predep_objects_RC
19079
19080 # Dependencies to place after the objects being linked to create a
19081 # shared library.
19082 postdep_objects=$lt_postdep_objects_RC
19083
19084 # Dependencies to place before the objects being linked to create a
19085 # shared library.
19086 predeps=$lt_predeps_RC
19087
19088 # Dependencies to place after the objects being linked to create a
19089 # shared library.
19090 postdeps=$lt_postdeps_RC
19091
19092 # The library search path used internally by the compiler when linking
19093 # a shared library.
19094 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19095
19096 # Method to check whether dependent libraries are shared objects.
19097 deplibs_check_method=$lt_deplibs_check_method
19098
19099 # Command to use when deplibs_check_method == file_magic.
19100 file_magic_cmd=$lt_file_magic_cmd
19101
19102 # Flag that allows shared libraries with undefined symbols to be built.
19103 allow_undefined_flag=$lt_allow_undefined_flag_RC
19104
19105 # Flag that forces no undefined symbols.
19106 no_undefined_flag=$lt_no_undefined_flag_RC
19107
19108 # Commands used to finish a libtool library installation in a directory.
19109 finish_cmds=$lt_finish_cmds
19110
19111 # Same as above, but a single script fragment to be evaled but not shown.
19112 finish_eval=$lt_finish_eval
19113
19114 # Take the output of nm and produce a listing of raw symbols and C names.
19115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19116
19117 # Transform the output of nm in a proper C declaration
19118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19119
19120 # Transform the output of nm in a C name address pair
19121 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19122
19123 # This is the shared library runtime path variable.
19124 runpath_var=$runpath_var
19125
19126 # This is the shared library path variable.
19127 shlibpath_var=$shlibpath_var
19128
19129 # Is shlibpath searched before the hard-coded library search path?
19130 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19131
19132 # How to hardcode a shared library path into an executable.
19133 hardcode_action=$hardcode_action_RC
19134
19135 # Whether we should hardcode library paths into libraries.
19136 hardcode_into_libs=$hardcode_into_libs
19137
19138 # Flag to hardcode \$libdir into a binary during linking.
19139 # This must work even if \$libdir does not exist.
19140 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19141
19142 # If ld is used when linking, flag to hardcode \$libdir into
19143 # a binary during linking. This must work even if \$libdir does
19144 # not exist.
19145 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19146
19147 # Whether we need a single -rpath flag with a separated argument.
19148 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19149
19150 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19151 # resulting binary.
19152 hardcode_direct=$hardcode_direct_RC
19153
19154 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19155 # resulting binary.
19156 hardcode_minus_L=$hardcode_minus_L_RC
19157
19158 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19159 # the resulting binary.
19160 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19161
19162 # Set to yes if building a shared library automatically hardcodes DIR into the library
19163 # and all subsequent libraries and executables linked against it.
19164 hardcode_automatic=$hardcode_automatic_RC
19165
19166 # Variables whose values should be saved in libtool wrapper scripts and
19167 # restored at relink time.
19168 variables_saved_for_relink="$variables_saved_for_relink"
19169
19170 # Whether libtool must link a program against all its dependency libraries.
19171 link_all_deplibs=$link_all_deplibs_RC
19172
19173 # Compile-time system search path for libraries
19174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19175
19176 # Run-time system search path for libraries
19177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19178
19179 # Fix the shell variable \$srcfile for the compiler.
19180 fix_srcfile_path="$fix_srcfile_path_RC"
19181
19182 # Set to yes if exported symbols are required.
19183 always_export_symbols=$always_export_symbols_RC
19184
19185 # The commands to list exported symbols.
19186 export_symbols_cmds=$lt_export_symbols_cmds_RC
19187
19188 # The commands to extract the exported symbol list from a shared archive.
19189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19190
19191 # Symbols that should not be listed in the preloaded symbols.
19192 exclude_expsyms=$lt_exclude_expsyms_RC
19193
19194 # Symbols that must always be exported.
19195 include_expsyms=$lt_include_expsyms_RC
19196
19197 # ### END LIBTOOL TAG CONFIG: $tagname
19198
19199 __EOF__
19200
19201
19202 else
19203   # If there is no Makefile yet, we rely on a make rule to execute
19204   # `config.status --recheck' to rerun these tests and create the
19205   # libtool script then.
19206   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19207   if test -f "$ltmain_in"; then
19208     test -f Makefile && make "$ltmain"
19209   fi
19210 fi
19211
19212
19213 ac_ext=c
19214 ac_cpp='$CPP $CPPFLAGS'
19215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19218
19219 CC="$lt_save_CC"
19220
19221         ;;
19222
19223       *)
19224         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19225 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19226    { (exit 1); exit 1; }; }
19227         ;;
19228       esac
19229
19230       # Append the new tag name to the list of available tags.
19231       if test -n "$tagname" ; then
19232       available_tags="$available_tags $tagname"
19233     fi
19234     fi
19235   done
19236   IFS="$lt_save_ifs"
19237
19238   # Now substitute the updated list of available tags.
19239   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19240     mv "${ofile}T" "$ofile"
19241     chmod +x "$ofile"
19242   else
19243     rm -f "${ofile}T"
19244     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19245 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19246    { (exit 1); exit 1; }; }
19247   fi
19248 fi
19249
19250
19251
19252 # This can be used to rebuild libtool when needed
19253 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19254
19255 # Always use our own libtool.
19256 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19257
19258 # Prevent multiple expansion
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280 # Checks for header files.
19281 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19282 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19283 if test "${ac_cv_header_stdc+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292 #include <stdlib.h>
19293 #include <stdarg.h>
19294 #include <string.h>
19295 #include <float.h>
19296
19297 int
19298 main ()
19299 {
19300
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext
19306 if { (ac_try="$ac_compile"
19307 case "(($ac_try" in
19308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309   *) ac_try_echo=$ac_try;;
19310 esac
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312   (eval "$ac_compile") 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } && {
19319          test -z "$ac_c_werror_flag" ||
19320          test ! -s conftest.err
19321        } && test -s conftest.$ac_objext; then
19322   ac_cv_header_stdc=yes
19323 else
19324   echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19326
19327         ac_cv_header_stdc=no
19328 fi
19329
19330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331
19332 if test $ac_cv_header_stdc = yes; then
19333   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19334   cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h.  */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h.  */
19340 #include <string.h>
19341
19342 _ACEOF
19343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19344   $EGREP "memchr" >/dev/null 2>&1; then
19345   :
19346 else
19347   ac_cv_header_stdc=no
19348 fi
19349 rm -f conftest*
19350
19351 fi
19352
19353 if test $ac_cv_header_stdc = yes; then
19354   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19355   cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h.  */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h.  */
19361 #include <stdlib.h>
19362
19363 _ACEOF
19364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19365   $EGREP "free" >/dev/null 2>&1; then
19366   :
19367 else
19368   ac_cv_header_stdc=no
19369 fi
19370 rm -f conftest*
19371
19372 fi
19373
19374 if test $ac_cv_header_stdc = yes; then
19375   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19376   if test "$cross_compiling" = yes; then
19377   :
19378 else
19379   cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385 #include <ctype.h>
19386 #include <stdlib.h>
19387 #if ((' ' & 0x0FF) == 0x020)
19388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19390 #else
19391 # define ISLOWER(c) \
19392                    (('a' <= (c) && (c) <= 'i') \
19393                      || ('j' <= (c) && (c) <= 'r') \
19394                      || ('s' <= (c) && (c) <= 'z'))
19395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19396 #endif
19397
19398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19399 int
19400 main ()
19401 {
19402   int i;
19403   for (i = 0; i < 256; i++)
19404     if (XOR (islower (i), ISLOWER (i))
19405         || toupper (i) != TOUPPER (i))
19406       return 2;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest$ac_exeext
19411 if { (ac_try="$ac_link"
19412 case "(($ac_try" in
19413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414   *) ac_try_echo=$ac_try;;
19415 esac
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417   (eval "$ac_link") 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19421   { (case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_try") 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; }; then
19430   :
19431 else
19432   echo "$as_me: program exited with status $ac_status" >&5
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 ( exit $ac_status )
19437 ac_cv_header_stdc=no
19438 fi
19439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19440 fi
19441
19442
19443 fi
19444 fi
19445 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19446 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19447 if test $ac_cv_header_stdc = yes; then
19448
19449 cat >>confdefs.h <<\_ACEOF
19450 #define STDC_HEADERS 1
19451 _ACEOF
19452
19453 fi
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467 for ac_header in arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h
19468 do
19469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19471   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19474   echo $ECHO_N "(cached) $ECHO_C" >&6
19475 fi
19476 ac_res=`eval echo '${'$as_ac_Header'}'`
19477                { echo "$as_me:$LINENO: result: $ac_res" >&5
19478 echo "${ECHO_T}$ac_res" >&6; }
19479 else
19480   # Is the header compilable?
19481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489 $ac_includes_default
19490 #include <$ac_header>
19491 _ACEOF
19492 rm -f conftest.$ac_objext
19493 if { (ac_try="$ac_compile"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_compile") 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } && {
19506          test -z "$ac_c_werror_flag" ||
19507          test ! -s conftest.err
19508        } && test -s conftest.$ac_objext; then
19509   ac_header_compiler=yes
19510 else
19511   echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19513
19514         ac_header_compiler=no
19515 fi
19516
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19519 echo "${ECHO_T}$ac_header_compiler" >&6; }
19520
19521 # Is the header present?
19522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19524 cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530 #include <$ac_header>
19531 _ACEOF
19532 if { (ac_try="$ac_cpp conftest.$ac_ext"
19533 case "(($ac_try" in
19534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535   *) ac_try_echo=$ac_try;;
19536 esac
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } >/dev/null && {
19545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19546          test ! -s conftest.err
19547        }; then
19548   ac_header_preproc=yes
19549 else
19550   echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553   ac_header_preproc=no
19554 fi
19555
19556 rm -f conftest.err conftest.$ac_ext
19557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19558 echo "${ECHO_T}$ac_header_preproc" >&6; }
19559
19560 # So?  What about this header?
19561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19562   yes:no: )
19563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19567     ac_header_preproc=yes
19568     ;;
19569   no:yes:* )
19570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19582     ( cat <<\_ASBOX
19583 ## ----------------------------------------------- ##
19584 ## Report this to mzaffzqaf (at) 0pointer (dot) de ##
19585 ## ----------------------------------------------- ##
19586 _ASBOX
19587      ) | sed "s/^/$as_me: WARNING:     /" >&2
19588     ;;
19589 esac
19590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   eval "$as_ac_Header=\$ac_header_preproc"
19596 fi
19597 ac_res=`eval echo '${'$as_ac_Header'}'`
19598                { echo "$as_me:$LINENO: result: $ac_res" >&5
19599 echo "${ECHO_T}$ac_res" >&6; }
19600
19601 fi
19602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19603   cat >>confdefs.h <<_ACEOF
19604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19605 _ACEOF
19606
19607 fi
19608
19609 done
19610
19611
19612 # Checks for typedefs, structures, and compiler characteristics.
19613 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19615 if test "${ac_cv_c_const+set}" = set; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618   cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h.  */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h.  */
19624
19625 int
19626 main ()
19627 {
19628 /* FIXME: Include the comments suggested by Paul. */
19629 #ifndef __cplusplus
19630   /* Ultrix mips cc rejects this.  */
19631   typedef int charset[2];
19632   const charset cs;
19633   /* SunOS 4.1.1 cc rejects this.  */
19634   char const *const *pcpcc;
19635   char **ppc;
19636   /* NEC SVR4.0.2 mips cc rejects this.  */
19637   struct point {int x, y;};
19638   static struct point const zero = {0,0};
19639   /* AIX XL C 1.02.0.0 rejects this.
19640      It does not let you subtract one const X* pointer from another in
19641      an arm of an if-expression whose if-part is not a constant
19642      expression */
19643   const char *g = "string";
19644   pcpcc = &g + (g ? g-g : 0);
19645   /* HPUX 7.0 cc rejects these. */
19646   ++pcpcc;
19647   ppc = (char**) pcpcc;
19648   pcpcc = (char const *const *) ppc;
19649   { /* SCO 3.2v4 cc rejects this.  */
19650     char *t;
19651     char const *s = 0 ? (char *) 0 : (char const *) 0;
19652
19653     *t++ = 0;
19654     if (s) return 0;
19655   }
19656   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19657     int x[] = {25, 17};
19658     const int *foo = &x[0];
19659     ++foo;
19660   }
19661   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19662     typedef const int *iptr;
19663     iptr p = 0;
19664     ++p;
19665   }
19666   { /* AIX XL C 1.02.0.0 rejects this saying
19667        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19668     struct s { int j; const int *ap[3]; };
19669     struct s *b; b->j = 5;
19670   }
19671   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19672     const int foo = 10;
19673     if (!foo) return 0;
19674   }
19675   return !cs[0] && !zero.x;
19676 #endif
19677
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (ac_try="$ac_compile"
19684 case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689   (eval "$ac_compile") 2>conftest.er1
19690   ac_status=$?
19691   grep -v '^ *+' conftest.er1 >conftest.err
19692   rm -f conftest.er1
19693   cat conftest.err >&5
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } && {
19696          test -z "$ac_c_werror_flag" ||
19697          test ! -s conftest.err
19698        } && test -s conftest.$ac_objext; then
19699   ac_cv_c_const=yes
19700 else
19701   echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704         ac_cv_c_const=no
19705 fi
19706
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 fi
19709 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19710 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19711 if test $ac_cv_c_const = no; then
19712
19713 cat >>confdefs.h <<\_ACEOF
19714 #define const
19715 _ACEOF
19716
19717 fi
19718
19719 { echo "$as_me:$LINENO: checking for size_t" >&5
19720 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19721 if test "${ac_cv_type_size_t+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724   cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730 $ac_includes_default
19731 typedef size_t ac__type_new_;
19732 int
19733 main ()
19734 {
19735 if ((ac__type_new_ *) 0)
19736   return 0;
19737 if (sizeof (ac__type_new_))
19738   return 0;
19739   ;
19740   return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (ac_try="$ac_compile"
19745 case "(($ac_try" in
19746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747   *) ac_try_echo=$ac_try;;
19748 esac
19749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750   (eval "$ac_compile") 2>conftest.er1
19751   ac_status=$?
19752   grep -v '^ *+' conftest.er1 >conftest.err
19753   rm -f conftest.er1
19754   cat conftest.err >&5
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); } && {
19757          test -z "$ac_c_werror_flag" ||
19758          test ! -s conftest.err
19759        } && test -s conftest.$ac_objext; then
19760   ac_cv_type_size_t=yes
19761 else
19762   echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765         ac_cv_type_size_t=no
19766 fi
19767
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19769 fi
19770 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19771 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19772 if test $ac_cv_type_size_t = yes; then
19773   :
19774 else
19775
19776 cat >>confdefs.h <<_ACEOF
19777 #define size_t unsigned int
19778 _ACEOF
19779
19780 fi
19781
19782 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19783 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19784 if test "${ac_cv_header_time+set}" = set; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h.  */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h.  */
19793 #include <sys/types.h>
19794 #include <sys/time.h>
19795 #include <time.h>
19796
19797 int
19798 main ()
19799 {
19800 if ((struct tm *) 0)
19801 return 0;
19802   ;
19803   return 0;
19804 }
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (ac_try="$ac_compile"
19808 case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_compile") 2>conftest.er1
19814   ac_status=$?
19815   grep -v '^ *+' conftest.er1 >conftest.err
19816   rm -f conftest.er1
19817   cat conftest.err >&5
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } && {
19820          test -z "$ac_c_werror_flag" ||
19821          test ! -s conftest.err
19822        } && test -s conftest.$ac_objext; then
19823   ac_cv_header_time=yes
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828         ac_cv_header_time=no
19829 fi
19830
19831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19832 fi
19833 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19834 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19835 if test $ac_cv_header_time = yes; then
19836
19837 cat >>confdefs.h <<\_ACEOF
19838 #define TIME_WITH_SYS_TIME 1
19839 _ACEOF
19840
19841 fi
19842
19843
19844 # Checks for library functions.
19845
19846 for ac_header in stdlib.h
19847 do
19848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19850   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 fi
19855 ac_res=`eval echo '${'$as_ac_Header'}'`
19856                { echo "$as_me:$LINENO: result: $ac_res" >&5
19857 echo "${ECHO_T}$ac_res" >&6; }
19858 else
19859   # Is the header compilable?
19860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19862 cat >conftest.$ac_ext <<_ACEOF
19863 /* confdefs.h.  */
19864 _ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h.  */
19868 $ac_includes_default
19869 #include <$ac_header>
19870 _ACEOF
19871 rm -f conftest.$ac_objext
19872 if { (ac_try="$ac_compile"
19873 case "(($ac_try" in
19874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875   *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878   (eval "$ac_compile") 2>conftest.er1
19879   ac_status=$?
19880   grep -v '^ *+' conftest.er1 >conftest.err
19881   rm -f conftest.er1
19882   cat conftest.err >&5
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } && {
19885          test -z "$ac_c_werror_flag" ||
19886          test ! -s conftest.err
19887        } && test -s conftest.$ac_objext; then
19888   ac_header_compiler=yes
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893         ac_header_compiler=no
19894 fi
19895
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19898 echo "${ECHO_T}$ac_header_compiler" >&6; }
19899
19900 # Is the header present?
19901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19903 cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909 #include <$ac_header>
19910 _ACEOF
19911 if { (ac_try="$ac_cpp conftest.$ac_ext"
19912 case "(($ac_try" in
19913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914   *) ac_try_echo=$ac_try;;
19915 esac
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19918   ac_status=$?
19919   grep -v '^ *+' conftest.er1 >conftest.err
19920   rm -f conftest.er1
19921   cat conftest.err >&5
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); } >/dev/null && {
19924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19925          test ! -s conftest.err
19926        }; then
19927   ac_header_preproc=yes
19928 else
19929   echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932   ac_header_preproc=no
19933 fi
19934
19935 rm -f conftest.err conftest.$ac_ext
19936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937 echo "${ECHO_T}$ac_header_preproc" >&6; }
19938
19939 # So?  What about this header?
19940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19941   yes:no: )
19942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19946     ac_header_preproc=yes
19947     ;;
19948   no:yes:* )
19949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19961     ( cat <<\_ASBOX
19962 ## ----------------------------------------------- ##
19963 ## Report this to mzaffzqaf (at) 0pointer (dot) de ##
19964 ## ----------------------------------------------- ##
19965 _ASBOX
19966      ) | sed "s/^/$as_me: WARNING:     /" >&2
19967     ;;
19968 esac
19969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19972   echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974   eval "$as_ac_Header=\$ac_header_preproc"
19975 fi
19976 ac_res=`eval echo '${'$as_ac_Header'}'`
19977                { echo "$as_me:$LINENO: result: $ac_res" >&5
19978 echo "${ECHO_T}$ac_res" >&6; }
19979
19980 fi
19981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19982   cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19984 _ACEOF
19985
19986 fi
19987
19988 done
19989
19990 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19991 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
19992 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   if test "$cross_compiling" = yes; then
19996   ac_cv_func_malloc_0_nonnull=no
19997 else
19998   cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h.  */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h.  */
20004 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20005 # include <stdlib.h>
20006 #else
20007 char *malloc ();
20008 #endif
20009
20010 int
20011 main ()
20012 {
20013 return ! malloc (0);
20014   ;
20015   return 0;
20016 }
20017 _ACEOF
20018 rm -f conftest$ac_exeext
20019 if { (ac_try="$ac_link"
20020 case "(($ac_try" in
20021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022   *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025   (eval "$ac_link") 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20029   { (case "(($ac_try" in
20030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031   *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034   (eval "$ac_try") 2>&5
20035   ac_status=$?
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); }; }; then
20038   ac_cv_func_malloc_0_nonnull=yes
20039 else
20040   echo "$as_me: program exited with status $ac_status" >&5
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044 ( exit $ac_status )
20045 ac_cv_func_malloc_0_nonnull=no
20046 fi
20047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20048 fi
20049
20050
20051 fi
20052 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20053 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
20054 if test $ac_cv_func_malloc_0_nonnull = yes; then
20055
20056 cat >>confdefs.h <<\_ACEOF
20057 #define HAVE_MALLOC 1
20058 _ACEOF
20059
20060 else
20061   cat >>confdefs.h <<\_ACEOF
20062 #define HAVE_MALLOC 0
20063 _ACEOF
20064
20065    case " $LIBOBJS " in
20066   *" malloc.$ac_objext "* ) ;;
20067   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20068  ;;
20069 esac
20070
20071
20072 cat >>confdefs.h <<\_ACEOF
20073 #define malloc rpl_malloc
20074 _ACEOF
20075
20076 fi
20077
20078
20079
20080
20081
20082 for ac_header in sys/select.h sys/socket.h
20083 do
20084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20086   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 fi
20091 ac_res=`eval echo '${'$as_ac_Header'}'`
20092                { echo "$as_me:$LINENO: result: $ac_res" >&5
20093 echo "${ECHO_T}$ac_res" >&6; }
20094 else
20095   # Is the header compilable?
20096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h.  */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h.  */
20104 $ac_includes_default
20105 #include <$ac_header>
20106 _ACEOF
20107 rm -f conftest.$ac_objext
20108 if { (ac_try="$ac_compile"
20109 case "(($ac_try" in
20110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111   *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114   (eval "$ac_compile") 2>conftest.er1
20115   ac_status=$?
20116   grep -v '^ *+' conftest.er1 >conftest.err
20117   rm -f conftest.er1
20118   cat conftest.err >&5
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); } && {
20121          test -z "$ac_c_werror_flag" ||
20122          test ! -s conftest.err
20123        } && test -s conftest.$ac_objext; then
20124   ac_header_compiler=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129         ac_header_compiler=no
20130 fi
20131
20132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20134 echo "${ECHO_T}$ac_header_compiler" >&6; }
20135
20136 # Is the header present?
20137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h.  */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h.  */
20145 #include <$ac_header>
20146 _ACEOF
20147 if { (ac_try="$ac_cpp conftest.$ac_ext"
20148 case "(($ac_try" in
20149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150   *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20154   ac_status=$?
20155   grep -v '^ *+' conftest.er1 >conftest.err
20156   rm -f conftest.er1
20157   cat conftest.err >&5
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); } >/dev/null && {
20160          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20161          test ! -s conftest.err
20162        }; then
20163   ac_header_preproc=yes
20164 else
20165   echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168   ac_header_preproc=no
20169 fi
20170
20171 rm -f conftest.err conftest.$ac_ext
20172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20173 echo "${ECHO_T}$ac_header_preproc" >&6; }
20174
20175 # So?  What about this header?
20176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20177   yes:no: )
20178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20182     ac_header_preproc=yes
20183     ;;
20184   no:yes:* )
20185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20197     ( cat <<\_ASBOX
20198 ## ----------------------------------------------- ##
20199 ## Report this to mzaffzqaf (at) 0pointer (dot) de ##
20200 ## ----------------------------------------------- ##
20201 _ASBOX
20202      ) | sed "s/^/$as_me: WARNING:     /" >&2
20203     ;;
20204 esac
20205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20208   echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210   eval "$as_ac_Header=\$ac_header_preproc"
20211 fi
20212 ac_res=`eval echo '${'$as_ac_Header'}'`
20213                { echo "$as_me:$LINENO: result: $ac_res" >&5
20214 echo "${ECHO_T}$ac_res" >&6; }
20215
20216 fi
20217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20218   cat >>confdefs.h <<_ACEOF
20219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20220 _ACEOF
20221
20222 fi
20223
20224 done
20225
20226 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
20227 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
20228 if test "${ac_cv_func_select_args+set}" = set; then
20229   echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20232  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20233   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20234    cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 $ac_includes_default
20241 #ifdef HAVE_SYS_SELECT_H
20242 # include <sys/select.h>
20243 #endif
20244 #ifdef HAVE_SYS_SOCKET_H
20245 # include <sys/socket.h>
20246 #endif
20247
20248 int
20249 main ()
20250 {
20251 extern int select ($ac_arg1,
20252                                             $ac_arg234, $ac_arg234, $ac_arg234,
20253                                             $ac_arg5);
20254   ;
20255   return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (ac_try="$ac_compile"
20260 case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_compile") 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } && {
20272          test -z "$ac_c_werror_flag" ||
20273          test ! -s conftest.err
20274        } && test -s conftest.$ac_objext; then
20275   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20276 else
20277   echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20279
20280
20281 fi
20282
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284   done
20285  done
20286 done
20287 # Provide a safe default value.
20288 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
20289
20290 fi
20291 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
20292 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
20293 ac_save_IFS=$IFS; IFS=','
20294 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20295 IFS=$ac_save_IFS
20296 shift
20297
20298 cat >>confdefs.h <<_ACEOF
20299 #define SELECT_TYPE_ARG1 $1
20300 _ACEOF
20301
20302
20303 cat >>confdefs.h <<_ACEOF
20304 #define SELECT_TYPE_ARG234 ($2)
20305 _ACEOF
20306
20307
20308 cat >>confdefs.h <<_ACEOF
20309 #define SELECT_TYPE_ARG5 ($3)
20310 _ACEOF
20311
20312 rm -f conftest*
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327 for ac_func in gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn
20328 do
20329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20333   echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335   cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h.  */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h.  */
20341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20343 #define $ac_func innocuous_$ac_func
20344
20345 /* System header to define __stub macros and hopefully few prototypes,
20346     which can conflict with char $ac_func (); below.
20347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20348     <limits.h> exists even on freestanding compilers.  */
20349
20350 #ifdef __STDC__
20351 # include <limits.h>
20352 #else
20353 # include <assert.h>
20354 #endif
20355
20356 #undef $ac_func
20357
20358 /* Override any GCC internal prototype to avoid an error.
20359    Use char because int might match the return type of a GCC
20360    builtin and then its argument prototype would still apply.  */
20361 #ifdef __cplusplus
20362 extern "C"
20363 #endif
20364 char $ac_func ();
20365 /* The GNU C library defines this for functions which it implements
20366     to always fail with ENOSYS.  Some functions are actually named
20367     something starting with __ and the normal name is an alias.  */
20368 #if defined __stub_$ac_func || defined __stub___$ac_func
20369 choke me
20370 #endif
20371
20372 int
20373 main ()
20374 {
20375 return $ac_func ();
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384   *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387   (eval "$ac_link") 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } && {
20394          test -z "$ac_c_werror_flag" ||
20395          test ! -s conftest.err
20396        } && test -s conftest$ac_exeext &&
20397        $as_test_x conftest$ac_exeext; then
20398   eval "$as_ac_var=yes"
20399 else
20400   echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403         eval "$as_ac_var=no"
20404 fi
20405
20406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20407       conftest$ac_exeext conftest.$ac_ext
20408 fi
20409 ac_res=`eval echo '${'$as_ac_var'}'`
20410                { echo "$as_me:$LINENO: result: $ac_res" >&5
20411 echo "${ECHO_T}$ac_res" >&6; }
20412 if test `eval echo '${'$as_ac_var'}'` = yes; then
20413   cat >>confdefs.h <<_ACEOF
20414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20415 _ACEOF
20416
20417 fi
20418 done
20419
20420
20421 # FreeBSD has a slightly different NSS interface
20422 case ${host} in
20423      *-freebsd*) freebsd="yes" ;;
20424 esac
20425
20426
20427
20428 if test "x$freebsd" = "xyes"; then
20429   FREEBSD_NSS_TRUE=
20430   FREEBSD_NSS_FALSE='#'
20431 else
20432   FREEBSD_NSS_TRUE='#'
20433   FREEBSD_NSS_FALSE=
20434 fi
20435
20436
20437 # If using GCC specify some additional parameters
20438 if test "x$GCC" = "xyes" ; then
20439    CFLAGS="$CFLAGS -pipe -W -Wall -pedantic"
20440
20441    cat >conftest.$ac_ext <<_ACEOF
20442 int main() {}
20443 _ACEOF
20444    $CC -c conftest.c -std=c99 -Wno-unused-parameter $CFLAGS > /dev/null 2> /dev/null && CFLAGS="$CFLAGS -std=c99 -Wno-unused-parameter"
20445    rm -f conftest.o
20446 fi
20447
20448 # LYNX documentation generation
20449 # Check whether --enable-lynx was given.
20450 if test "${enable_lynx+set}" = set; then
20451   enableval=$enable_lynx; case "${enableval}" in
20452   yes) lynx=yes ;;
20453   no)  lynx=no ;;
20454   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5
20455 echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;}
20456    { (exit 1); exit 1; }; } ;;
20457 esac
20458 else
20459   lynx=yes
20460 fi
20461
20462
20463 if test x$lynx = xyes ; then
20464    # Extract the first word of "lynx", so it can be a program name with args.
20465 set dummy lynx; ac_word=$2
20466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20468 if test "${ac_cv_prog_have_lynx+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471   if test -n "$have_lynx"; then
20472   ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
20473 else
20474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20475 for as_dir in $PATH
20476 do
20477   IFS=$as_save_IFS
20478   test -z "$as_dir" && as_dir=.
20479   for ac_exec_ext in '' $ac_executable_extensions; do
20480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20481     ac_cv_prog_have_lynx="yes"
20482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20483     break 2
20484   fi
20485 done
20486 done
20487 IFS=$as_save_IFS
20488
20489   test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
20490 fi
20491 fi
20492 have_lynx=$ac_cv_prog_have_lynx
20493 if test -n "$have_lynx"; then
20494   { echo "$as_me:$LINENO: result: $have_lynx" >&5
20495 echo "${ECHO_T}$have_lynx" >&6; }
20496 else
20497   { echo "$as_me:$LINENO: result: no" >&5
20498 echo "${ECHO_T}no" >&6; }
20499 fi
20500
20501
20502
20503    if test x$have_lynx = xno ; then
20504      lynx=no
20505      # Extract the first word of "links", so it can be a program name with args.
20506 set dummy links; ac_word=$2
20507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20509 if test "${ac_cv_prog_have_links+set}" = set; then
20510   echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512   if test -n "$have_links"; then
20513   ac_cv_prog_have_links="$have_links" # Let the user override the test.
20514 else
20515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20516 for as_dir in $PATH
20517 do
20518   IFS=$as_save_IFS
20519   test -z "$as_dir" && as_dir=.
20520   for ac_exec_ext in '' $ac_executable_extensions; do
20521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20522     ac_cv_prog_have_links="yes"
20523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20524     break 2
20525   fi
20526 done
20527 done
20528 IFS=$as_save_IFS
20529
20530   test -z "$ac_cv_prog_have_links" && ac_cv_prog_have_links="no"
20531 fi
20532 fi
20533 have_links=$ac_cv_prog_have_links
20534 if test -n "$have_links"; then
20535   { echo "$as_me:$LINENO: result: $have_links" >&5
20536 echo "${ECHO_T}$have_links" >&6; }
20537 else
20538   { echo "$as_me:$LINENO: result: no" >&5
20539 echo "${ECHO_T}no" >&6; }
20540 fi
20541
20542
20543      if test x$have_links = xno ; then
20544        { echo "$as_me:$LINENO: WARNING: *** neither lynx nor links found, plain text README will not be built ***" >&5
20545 echo "$as_me: WARNING: *** neither lynx nor links found, plain text README will not be built ***" >&2;}
20546      else
20547        links=yes
20548      fi
20549    fi
20550 fi
20551
20552
20553
20554 if test "x$lynx" = xyes; then
20555   USE_LYNX_TRUE=
20556   USE_LYNX_FALSE='#'
20557 else
20558   USE_LYNX_TRUE='#'
20559   USE_LYNX_FALSE=
20560 fi
20561
20562
20563
20564 if test "x$links" = xyes; then
20565   USE_LINKS_TRUE=
20566   USE_LINKS_FALSE='#'
20567 else
20568   USE_LINKS_TRUE='#'
20569   USE_LINKS_FALSE=
20570 fi
20571
20572
20573 ### Enable avahi support?
20574
20575 # Check whether --enable-avahi was given.
20576 if test "${enable_avahi+set}" = set; then
20577   enableval=$enable_avahi; case "${enableval}" in
20578                 yes) ENABLE_AVAHI=yes ;;
20579                 no)  ENABLE_AVAHI=no ;;
20580                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-avahi" >&5
20581 echo "$as_me: error: bad value ${enableval} for --enable-avahi" >&2;}
20582    { (exit 1); exit 1; }; } ;;
20583         esac
20584 else
20585   ENABLE_AVAHI=yes
20586 fi
20587
20588
20589
20590 if test "x$ENABLE_AVAHI" = "xyes"; then
20591   ENABLE_AVAHI_TRUE=
20592   ENABLE_AVAHI_FALSE='#'
20593 else
20594   ENABLE_AVAHI_TRUE='#'
20595   ENABLE_AVAHI_FALSE=
20596 fi
20597
20598
20599 if test "x$ENABLE_AVAHI" = "xyes" ; then
20600
20601 cat >>confdefs.h <<\_ACEOF
20602 #define ENABLE_AVAHI 1
20603 _ACEOF
20604
20605 fi
20606
20607 ### Enable legacy unicast mDNS support?
20608
20609 # Check whether --enable-legacy was given.
20610 if test "${enable_legacy+set}" = set; then
20611   enableval=$enable_legacy; case "${enableval}" in
20612                 yes) ENABLE_LEGACY=yes ;;
20613                 no)  ENABLE_LEGACY=no ;;
20614                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-legacy" >&5
20615 echo "$as_me: error: bad value ${enableval} for --enable-legacy" >&2;}
20616    { (exit 1); exit 1; }; } ;;
20617         esac
20618 else
20619   ENABLE_LEGACY=no
20620 fi
20621
20622 if test "x$ENABLE_AVAHI" = "xno" -a "x$ENABLE_LEGACY" = "xno"; then
20623         { { echo "$as_me:$LINENO: error: Can't disable legacy unicast mDNS lookups if Avahi support is disabled" >&5
20624 echo "$as_me: error: Can't disable legacy unicast mDNS lookups if Avahi support is disabled" >&2;}
20625    { (exit 1); exit 1; }; }
20626 fi
20627
20628 if test "x$ENABLE_LEGACY" = "xyes" ; then
20629
20630 cat >>confdefs.h <<\_ACEOF
20631 #define ENABLE_LEGACY 1
20632 _ACEOF
20633
20634 fi
20635
20636
20637
20638 if test "x$ENABLE_LEGACY" = "xyes"; then
20639   ENABLE_LEGACY_TRUE=
20640   ENABLE_LEGACY_FALSE='#'
20641 else
20642   ENABLE_LEGACY_TRUE='#'
20643   ENABLE_LEGACY_FALSE=
20644 fi
20645
20646
20647 ### Honour search domains from /etc/resolv.conf?
20648
20649 # Check whether --enable-search-domains was given.
20650 if test "${enable_search_domains+set}" = set; then
20651   enableval=$enable_search_domains; case "${enableval}" in
20652                 yes) HONOUR_SEARCH_DOMAINS=yes ;;
20653                 no)  HONOUR_SEARCH_DOMAINS=no ;;
20654                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-search-domains" >&5
20655 echo "$as_me: error: bad value ${enableval} for --enable-search-domains" >&2;}
20656    { (exit 1); exit 1; }; } ;;
20657         esac
20658 else
20659   HONOUR_SEARCH_DOMAINS=no
20660 fi
20661
20662 if test "x$HONOUR_SEARCH_DOMAINS" = "xyes" ; then
20663
20664 cat >>confdefs.h <<\_ACEOF
20665 #define HONOUR_SEARCH_DOMAINS 1
20666 _ACEOF
20667
20668 fi
20669
20670
20671 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/README.html"
20672
20673 cat >confcache <<\_ACEOF
20674 # This file is a shell script that caches the results of configure
20675 # tests run on this system so they can be shared between configure
20676 # scripts and configure runs, see configure's option --config-cache.
20677 # It is not useful on other systems.  If it contains results you don't
20678 # want to keep, you may remove or edit it.
20679 #
20680 # config.status only pays attention to the cache file if you give it
20681 # the --recheck option to rerun configure.
20682 #
20683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20685 # following values.
20686
20687 _ACEOF
20688
20689 # The following way of writing the cache mishandles newlines in values,
20690 # but we know of no workaround that is simple, portable, and efficient.
20691 # So, we kill variables containing newlines.
20692 # Ultrix sh set writes to stderr and can't be redirected directly,
20693 # and sets the high bit in the cache file unless we assign to the vars.
20694 (
20695   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20696     eval ac_val=\$$ac_var
20697     case $ac_val in #(
20698     *${as_nl}*)
20699       case $ac_var in #(
20700       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20702       esac
20703       case $ac_var in #(
20704       _ | IFS | as_nl) ;; #(
20705       *) $as_unset $ac_var ;;
20706       esac ;;
20707     esac
20708   done
20709
20710   (set) 2>&1 |
20711     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20712     *${as_nl}ac_space=\ *)
20713       # `set' does not quote correctly, so add quotes (double-quote
20714       # substitution turns \\\\ into \\, and sed turns \\ into \).
20715       sed -n \
20716         "s/'/'\\\\''/g;
20717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20718       ;; #(
20719     *)
20720       # `set' quotes correctly as required by POSIX, so do not add quotes.
20721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20722       ;;
20723     esac |
20724     sort
20725 ) |
20726   sed '
20727      /^ac_cv_env_/b end
20728      t clear
20729      :clear
20730      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20731      t end
20732      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20733      :end' >>confcache
20734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20735   if test -w "$cache_file"; then
20736     test "x$cache_file" != "x/dev/null" &&
20737       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20738 echo "$as_me: updating cache $cache_file" >&6;}
20739     cat confcache >$cache_file
20740   else
20741     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20742 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20743   fi
20744 fi
20745 rm -f confcache
20746
20747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20748 # Let make expand exec_prefix.
20749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20750
20751 DEFS=-DHAVE_CONFIG_H
20752
20753 ac_libobjs=
20754 ac_ltlibobjs=
20755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20756   # 1. Remove the extension, and $U if already installed.
20757   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20758   ac_i=`echo "$ac_i" | sed "$ac_script"`
20759   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20760   #    will be set to the directory where LIBOBJS objects are built.
20761   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20762   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20763 done
20764 LIBOBJS=$ac_libobjs
20765
20766 LTLIBOBJS=$ac_ltlibobjs
20767
20768
20769 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20770   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20771 Usually this means the macro was only invoked conditionally." >&5
20772 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20773 Usually this means the macro was only invoked conditionally." >&2;}
20774    { (exit 1); exit 1; }; }
20775 fi
20776 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20777   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20778 Usually this means the macro was only invoked conditionally." >&5
20779 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20780 Usually this means the macro was only invoked conditionally." >&2;}
20781    { (exit 1); exit 1; }; }
20782 fi
20783 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20784   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20785 Usually this means the macro was only invoked conditionally." >&5
20786 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20787 Usually this means the macro was only invoked conditionally." >&2;}
20788    { (exit 1); exit 1; }; }
20789 fi
20790 if test -z "${FREEBSD_NSS_TRUE}" && test -z "${FREEBSD_NSS_FALSE}"; then
20791   { { echo "$as_me:$LINENO: error: conditional \"FREEBSD_NSS\" was never defined.
20792 Usually this means the macro was only invoked conditionally." >&5
20793 echo "$as_me: error: conditional \"FREEBSD_NSS\" was never defined.
20794 Usually this means the macro was only invoked conditionally." >&2;}
20795    { (exit 1); exit 1; }; }
20796 fi
20797 if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
20798   { { echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined.
20799 Usually this means the macro was only invoked conditionally." >&5
20800 echo "$as_me: error: conditional \"USE_LYNX\" was never defined.
20801 Usually this means the macro was only invoked conditionally." >&2;}
20802    { (exit 1); exit 1; }; }
20803 fi
20804 if test -z "${USE_LINKS_TRUE}" && test -z "${USE_LINKS_FALSE}"; then
20805   { { echo "$as_me:$LINENO: error: conditional \"USE_LINKS\" was never defined.
20806 Usually this means the macro was only invoked conditionally." >&5
20807 echo "$as_me: error: conditional \"USE_LINKS\" was never defined.
20808 Usually this means the macro was only invoked conditionally." >&2;}
20809    { (exit 1); exit 1; }; }
20810 fi
20811 if test -z "${ENABLE_AVAHI_TRUE}" && test -z "${ENABLE_AVAHI_FALSE}"; then
20812   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_AVAHI\" was never defined.
20813 Usually this means the macro was only invoked conditionally." >&5
20814 echo "$as_me: error: conditional \"ENABLE_AVAHI\" was never defined.
20815 Usually this means the macro was only invoked conditionally." >&2;}
20816    { (exit 1); exit 1; }; }
20817 fi
20818 if test -z "${ENABLE_LEGACY_TRUE}" && test -z "${ENABLE_LEGACY_FALSE}"; then
20819   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LEGACY\" was never defined.
20820 Usually this means the macro was only invoked conditionally." >&5
20821 echo "$as_me: error: conditional \"ENABLE_LEGACY\" was never defined.
20822 Usually this means the macro was only invoked conditionally." >&2;}
20823    { (exit 1); exit 1; }; }
20824 fi
20825
20826 : ${CONFIG_STATUS=./config.status}
20827 ac_clean_files_save=$ac_clean_files
20828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20829 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20830 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20831 cat >$CONFIG_STATUS <<_ACEOF
20832 #! $SHELL
20833 # Generated by $as_me.
20834 # Run this file to recreate the current configuration.
20835 # Compiler output produced by configure, useful for debugging
20836 # configure, is in config.log if it exists.
20837
20838 debug=false
20839 ac_cs_recheck=false
20840 ac_cs_silent=false
20841 SHELL=\${CONFIG_SHELL-$SHELL}
20842 _ACEOF
20843
20844 cat >>$CONFIG_STATUS <<\_ACEOF
20845 ## --------------------- ##
20846 ## M4sh Initialization.  ##
20847 ## --------------------- ##
20848
20849 # Be more Bourne compatible
20850 DUALCASE=1; export DUALCASE # for MKS sh
20851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20852   emulate sh
20853   NULLCMD=:
20854   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20855   # is contrary to our usage.  Disable this feature.
20856   alias -g '${1+"$@"}'='"$@"'
20857   setopt NO_GLOB_SUBST
20858 else
20859   case `(set -o) 2>/dev/null` in
20860   *posix*) set -o posix ;;
20861 esac
20862
20863 fi
20864
20865
20866
20867
20868 # PATH needs CR
20869 # Avoid depending upon Character Ranges.
20870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20873 as_cr_digits='0123456789'
20874 as_cr_alnum=$as_cr_Letters$as_cr_digits
20875
20876 # The user is always right.
20877 if test "${PATH_SEPARATOR+set}" != set; then
20878   echo "#! /bin/sh" >conf$$.sh
20879   echo  "exit 0"   >>conf$$.sh
20880   chmod +x conf$$.sh
20881   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20882     PATH_SEPARATOR=';'
20883   else
20884     PATH_SEPARATOR=:
20885   fi
20886   rm -f conf$$.sh
20887 fi
20888
20889 # Support unset when possible.
20890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20891   as_unset=unset
20892 else
20893   as_unset=false
20894 fi
20895
20896
20897 # IFS
20898 # We need space, tab and new line, in precisely that order.  Quoting is
20899 # there to prevent editors from complaining about space-tab.
20900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20901 # splitting by setting IFS to empty value.)
20902 as_nl='
20903 '
20904 IFS=" ""        $as_nl"
20905
20906 # Find who we are.  Look in the path if we contain no directory separator.
20907 case $0 in
20908   *[\\/]* ) as_myself=$0 ;;
20909   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910 for as_dir in $PATH
20911 do
20912   IFS=$as_save_IFS
20913   test -z "$as_dir" && as_dir=.
20914   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20915 done
20916 IFS=$as_save_IFS
20917
20918      ;;
20919 esac
20920 # We did not find ourselves, most probably we were run as `sh COMMAND'
20921 # in which case we are not to be found in the path.
20922 if test "x$as_myself" = x; then
20923   as_myself=$0
20924 fi
20925 if test ! -f "$as_myself"; then
20926   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20927   { (exit 1); exit 1; }
20928 fi
20929
20930 # Work around bugs in pre-3.0 UWIN ksh.
20931 for as_var in ENV MAIL MAILPATH
20932 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20933 done
20934 PS1='$ '
20935 PS2='> '
20936 PS4='+ '
20937
20938 # NLS nuisances.
20939 for as_var in \
20940   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20941   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20942   LC_TELEPHONE LC_TIME
20943 do
20944   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20945     eval $as_var=C; export $as_var
20946   else
20947     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20948   fi
20949 done
20950
20951 # Required to use basename.
20952 if expr a : '\(a\)' >/dev/null 2>&1 &&
20953    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20954   as_expr=expr
20955 else
20956   as_expr=false
20957 fi
20958
20959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20960   as_basename=basename
20961 else
20962   as_basename=false
20963 fi
20964
20965
20966 # Name of the executable.
20967 as_me=`$as_basename -- "$0" ||
20968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20969          X"$0" : 'X\(//\)$' \| \
20970          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20971 echo X/"$0" |
20972     sed '/^.*\/\([^/][^/]*\)\/*$/{
20973             s//\1/
20974             q
20975           }
20976           /^X\/\(\/\/\)$/{
20977             s//\1/
20978             q
20979           }
20980           /^X\/\(\/\).*/{
20981             s//\1/
20982             q
20983           }
20984           s/.*/./; q'`
20985
20986 # CDPATH.
20987 $as_unset CDPATH
20988
20989
20990
20991   as_lineno_1=$LINENO
20992   as_lineno_2=$LINENO
20993   test "x$as_lineno_1" != "x$as_lineno_2" &&
20994   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20995
20996   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20997   # uniformly replaced by the line number.  The first 'sed' inserts a
20998   # line-number line after each line using $LINENO; the second 'sed'
20999   # does the real work.  The second script uses 'N' to pair each
21000   # line-number line with the line containing $LINENO, and appends
21001   # trailing '-' during substitution so that $LINENO is not a special
21002   # case at line end.
21003   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21004   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21005   # E. McMahon (1931-1989) for sed's syntax.  :-)
21006   sed -n '
21007     p
21008     /[$]LINENO/=
21009   ' <$as_myself |
21010     sed '
21011       s/[$]LINENO.*/&-/
21012       t lineno
21013       b
21014       :lineno
21015       N
21016       :loop
21017       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21018       t loop
21019       s/-\n.*//
21020     ' >$as_me.lineno &&
21021   chmod +x "$as_me.lineno" ||
21022     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21023    { (exit 1); exit 1; }; }
21024
21025   # Don't try to exec as it changes $[0], causing all sort of problems
21026   # (the dirname of $[0] is not the place where we might find the
21027   # original and so on.  Autoconf is especially sensitive to this).
21028   . "./$as_me.lineno"
21029   # Exit status is that of the last command.
21030   exit
21031 }
21032
21033
21034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21035   as_dirname=dirname
21036 else
21037   as_dirname=false
21038 fi
21039
21040 ECHO_C= ECHO_N= ECHO_T=
21041 case `echo -n x` in
21042 -n*)
21043   case `echo 'x\c'` in
21044   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21045   *)   ECHO_C='\c';;
21046   esac;;
21047 *)
21048   ECHO_N='-n';;
21049 esac
21050
21051 if expr a : '\(a\)' >/dev/null 2>&1 &&
21052    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21053   as_expr=expr
21054 else
21055   as_expr=false
21056 fi
21057
21058 rm -f conf$$ conf$$.exe conf$$.file
21059 if test -d conf$$.dir; then
21060   rm -f conf$$.dir/conf$$.file
21061 else
21062   rm -f conf$$.dir
21063   mkdir conf$$.dir
21064 fi
21065 echo >conf$$.file
21066 if ln -s conf$$.file conf$$ 2>/dev/null; then
21067   as_ln_s='ln -s'
21068   # ... but there are two gotchas:
21069   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21070   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21071   # In both cases, we have to default to `cp -p'.
21072   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21073     as_ln_s='cp -p'
21074 elif ln conf$$.file conf$$ 2>/dev/null; then
21075   as_ln_s=ln
21076 else
21077   as_ln_s='cp -p'
21078 fi
21079 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21080 rmdir conf$$.dir 2>/dev/null
21081
21082 if mkdir -p . 2>/dev/null; then
21083   as_mkdir_p=:
21084 else
21085   test -d ./-p && rmdir ./-p
21086   as_mkdir_p=false
21087 fi
21088
21089 if test -x / >/dev/null 2>&1; then
21090   as_test_x='test -x'
21091 else
21092   if ls -dL / >/dev/null 2>&1; then
21093     as_ls_L_option=L
21094   else
21095     as_ls_L_option=
21096   fi
21097   as_test_x='
21098     eval sh -c '\''
21099       if test -d "$1"; then
21100         test -d "$1/.";
21101       else
21102         case $1 in
21103         -*)set "./$1";;
21104         esac;
21105         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21106         ???[sx]*):;;*)false;;esac;fi
21107     '\'' sh
21108   '
21109 fi
21110 as_executable_p=$as_test_x
21111
21112 # Sed expression to map a string onto a valid CPP name.
21113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21114
21115 # Sed expression to map a string onto a valid variable name.
21116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21117
21118
21119 exec 6>&1
21120
21121 # Save the log message, to keep $[0] and so on meaningful, and to
21122 # report actual input values of CONFIG_FILES etc. instead of their
21123 # values after options handling.
21124 ac_log="
21125 This file was extended by nss-mdns $as_me 0.10, which was
21126 generated by GNU Autoconf 2.61.  Invocation command line was
21127
21128   CONFIG_FILES    = $CONFIG_FILES
21129   CONFIG_HEADERS  = $CONFIG_HEADERS
21130   CONFIG_LINKS    = $CONFIG_LINKS
21131   CONFIG_COMMANDS = $CONFIG_COMMANDS
21132   $ $0 $@
21133
21134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21135 "
21136
21137 _ACEOF
21138
21139 cat >>$CONFIG_STATUS <<_ACEOF
21140 # Files that config.status was made for.
21141 config_files="$ac_config_files"
21142 config_headers="$ac_config_headers"
21143 config_commands="$ac_config_commands"
21144
21145 _ACEOF
21146
21147 cat >>$CONFIG_STATUS <<\_ACEOF
21148 ac_cs_usage="\
21149 \`$as_me' instantiates files from templates according to the
21150 current configuration.
21151
21152 Usage: $0 [OPTIONS] [FILE]...
21153
21154   -h, --help       print this help, then exit
21155   -V, --version    print version number and configuration settings, then exit
21156   -q, --quiet      do not print progress messages
21157   -d, --debug      don't remove temporary files
21158       --recheck    update $as_me by reconfiguring in the same conditions
21159   --file=FILE[:TEMPLATE]
21160                    instantiate the configuration file FILE
21161   --header=FILE[:TEMPLATE]
21162                    instantiate the configuration header FILE
21163
21164 Configuration files:
21165 $config_files
21166
21167 Configuration headers:
21168 $config_headers
21169
21170 Configuration commands:
21171 $config_commands
21172
21173 Report bugs to <bug-autoconf@gnu.org>."
21174
21175 _ACEOF
21176 cat >>$CONFIG_STATUS <<_ACEOF
21177 ac_cs_version="\\
21178 nss-mdns config.status 0.10
21179 configured by $0, generated by GNU Autoconf 2.61,
21180   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21181
21182 Copyright (C) 2006 Free Software Foundation, Inc.
21183 This config.status script is free software; the Free Software Foundation
21184 gives unlimited permission to copy, distribute and modify it."
21185
21186 ac_pwd='$ac_pwd'
21187 srcdir='$srcdir'
21188 INSTALL='$INSTALL'
21189 _ACEOF
21190
21191 cat >>$CONFIG_STATUS <<\_ACEOF
21192 # If no file are specified by the user, then we need to provide default
21193 # value.  By we need to know if files were specified by the user.
21194 ac_need_defaults=:
21195 while test $# != 0
21196 do
21197   case $1 in
21198   --*=*)
21199     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21200     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21201     ac_shift=:
21202     ;;
21203   *)
21204     ac_option=$1
21205     ac_optarg=$2
21206     ac_shift=shift
21207     ;;
21208   esac
21209
21210   case $ac_option in
21211   # Handling of the options.
21212   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21213     ac_cs_recheck=: ;;
21214   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21215     echo "$ac_cs_version"; exit ;;
21216   --debug | --debu | --deb | --de | --d | -d )
21217     debug=: ;;
21218   --file | --fil | --fi | --f )
21219     $ac_shift
21220     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21221     ac_need_defaults=false;;
21222   --header | --heade | --head | --hea )
21223     $ac_shift
21224     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21225     ac_need_defaults=false;;
21226   --he | --h)
21227     # Conflict between --help and --header
21228     { echo "$as_me: error: ambiguous option: $1
21229 Try \`$0 --help' for more information." >&2
21230    { (exit 1); exit 1; }; };;
21231   --help | --hel | -h )
21232     echo "$ac_cs_usage"; exit ;;
21233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21234   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21235     ac_cs_silent=: ;;
21236
21237   # This is an error.
21238   -*) { echo "$as_me: error: unrecognized option: $1
21239 Try \`$0 --help' for more information." >&2
21240    { (exit 1); exit 1; }; } ;;
21241
21242   *) ac_config_targets="$ac_config_targets $1"
21243      ac_need_defaults=false ;;
21244
21245   esac
21246   shift
21247 done
21248
21249 ac_configure_extra_args=
21250
21251 if $ac_cs_silent; then
21252   exec 6>/dev/null
21253   ac_configure_extra_args="$ac_configure_extra_args --silent"
21254 fi
21255
21256 _ACEOF
21257 cat >>$CONFIG_STATUS <<_ACEOF
21258 if \$ac_cs_recheck; then
21259   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21260   CONFIG_SHELL=$SHELL
21261   export CONFIG_SHELL
21262   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21263 fi
21264
21265 _ACEOF
21266 cat >>$CONFIG_STATUS <<\_ACEOF
21267 exec 5>>config.log
21268 {
21269   echo
21270   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21271 ## Running $as_me. ##
21272 _ASBOX
21273   echo "$ac_log"
21274 } >&5
21275
21276 _ACEOF
21277 cat >>$CONFIG_STATUS <<_ACEOF
21278 #
21279 # INIT-COMMANDS
21280 #
21281 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21282
21283 _ACEOF
21284
21285 cat >>$CONFIG_STATUS <<\_ACEOF
21286
21287 # Handling of arguments.
21288 for ac_config_target in $ac_config_targets
21289 do
21290   case $ac_config_target in
21291     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21292     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21293     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21294     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21295     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21296     "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
21297
21298   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21299 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21300    { (exit 1); exit 1; }; };;
21301   esac
21302 done
21303
21304
21305 # If the user did not use the arguments to specify the items to instantiate,
21306 # then the envvar interface is used.  Set only those that are not.
21307 # We use the long form for the default assignment because of an extremely
21308 # bizarre bug on SunOS 4.1.3.
21309 if $ac_need_defaults; then
21310   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21311   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21312   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21313 fi
21314
21315 # Have a temporary directory for convenience.  Make it in the build tree
21316 # simply because there is no reason against having it here, and in addition,
21317 # creating and moving files from /tmp can sometimes cause problems.
21318 # Hook for its removal unless debugging.
21319 # Note that there is a small window in which the directory will not be cleaned:
21320 # after its creation but before its name has been assigned to `$tmp'.
21321 $debug ||
21322 {
21323   tmp=
21324   trap 'exit_status=$?
21325   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21326 ' 0
21327   trap '{ (exit 1); exit 1; }' 1 2 13 15
21328 }
21329 # Create a (secure) tmp directory for tmp files.
21330
21331 {
21332   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21333   test -n "$tmp" && test -d "$tmp"
21334 }  ||
21335 {
21336   tmp=./conf$$-$RANDOM
21337   (umask 077 && mkdir "$tmp")
21338 } ||
21339 {
21340    echo "$me: cannot create a temporary directory in ." >&2
21341    { (exit 1); exit 1; }
21342 }
21343
21344 #
21345 # Set up the sed scripts for CONFIG_FILES section.
21346 #
21347
21348 # No need to generate the scripts if there are no CONFIG_FILES.
21349 # This happens for instance when ./config.status config.h
21350 if test -n "$CONFIG_FILES"; then
21351
21352 _ACEOF
21353
21354
21355
21356 ac_delim='%!_!# '
21357 for ac_last_try in false false false false false :; do
21358   cat >conf$$subs.sed <<_ACEOF
21359 SHELL!$SHELL$ac_delim
21360 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21361 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21362 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21363 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21364 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21365 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21366 exec_prefix!$exec_prefix$ac_delim
21367 prefix!$prefix$ac_delim
21368 program_transform_name!$program_transform_name$ac_delim
21369 bindir!$bindir$ac_delim
21370 sbindir!$sbindir$ac_delim
21371 libexecdir!$libexecdir$ac_delim
21372 datarootdir!$datarootdir$ac_delim
21373 datadir!$datadir$ac_delim
21374 sysconfdir!$sysconfdir$ac_delim
21375 sharedstatedir!$sharedstatedir$ac_delim
21376 localstatedir!$localstatedir$ac_delim
21377 includedir!$includedir$ac_delim
21378 oldincludedir!$oldincludedir$ac_delim
21379 docdir!$docdir$ac_delim
21380 infodir!$infodir$ac_delim
21381 htmldir!$htmldir$ac_delim
21382 dvidir!$dvidir$ac_delim
21383 pdfdir!$pdfdir$ac_delim
21384 psdir!$psdir$ac_delim
21385 libdir!$libdir$ac_delim
21386 localedir!$localedir$ac_delim
21387 mandir!$mandir$ac_delim
21388 DEFS!$DEFS$ac_delim
21389 ECHO_C!$ECHO_C$ac_delim
21390 ECHO_N!$ECHO_N$ac_delim
21391 ECHO_T!$ECHO_T$ac_delim
21392 LIBS!$LIBS$ac_delim
21393 build_alias!$build_alias$ac_delim
21394 host_alias!$host_alias$ac_delim
21395 target_alias!$target_alias$ac_delim
21396 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21397 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21398 INSTALL_DATA!$INSTALL_DATA$ac_delim
21399 CYGPATH_W!$CYGPATH_W$ac_delim
21400 PACKAGE!$PACKAGE$ac_delim
21401 VERSION!$VERSION$ac_delim
21402 ACLOCAL!$ACLOCAL$ac_delim
21403 AUTOCONF!$AUTOCONF$ac_delim
21404 AUTOMAKE!$AUTOMAKE$ac_delim
21405 AUTOHEADER!$AUTOHEADER$ac_delim
21406 MAKEINFO!$MAKEINFO$ac_delim
21407 install_sh!$install_sh$ac_delim
21408 STRIP!$STRIP$ac_delim
21409 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21410 mkdir_p!$mkdir_p$ac_delim
21411 AWK!$AWK$ac_delim
21412 SET_MAKE!$SET_MAKE$ac_delim
21413 am__leading_dot!$am__leading_dot$ac_delim
21414 AMTAR!$AMTAR$ac_delim
21415 am__tar!$am__tar$ac_delim
21416 am__untar!$am__untar$ac_delim
21417 PACKAGE_URL!$PACKAGE_URL$ac_delim
21418 CC!$CC$ac_delim
21419 CFLAGS!$CFLAGS$ac_delim
21420 LDFLAGS!$LDFLAGS$ac_delim
21421 CPPFLAGS!$CPPFLAGS$ac_delim
21422 ac_ct_CC!$ac_ct_CC$ac_delim
21423 EXEEXT!$EXEEXT$ac_delim
21424 OBJEXT!$OBJEXT$ac_delim
21425 DEPDIR!$DEPDIR$ac_delim
21426 am__include!$am__include$ac_delim
21427 am__quote!$am__quote$ac_delim
21428 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21429 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21430 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21431 CCDEPMODE!$CCDEPMODE$ac_delim
21432 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21433 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21434 CPP!$CPP$ac_delim
21435 LN_S!$LN_S$ac_delim
21436 build!$build$ac_delim
21437 build_cpu!$build_cpu$ac_delim
21438 build_vendor!$build_vendor$ac_delim
21439 build_os!$build_os$ac_delim
21440 host!$host$ac_delim
21441 host_cpu!$host_cpu$ac_delim
21442 host_vendor!$host_vendor$ac_delim
21443 host_os!$host_os$ac_delim
21444 GREP!$GREP$ac_delim
21445 EGREP!$EGREP$ac_delim
21446 ECHO!$ECHO$ac_delim
21447 AR!$AR$ac_delim
21448 RANLIB!$RANLIB$ac_delim
21449 CXX!$CXX$ac_delim
21450 CXXFLAGS!$CXXFLAGS$ac_delim
21451 ac_ct_CXX!$ac_ct_CXX$ac_delim
21452 CXXDEPMODE!$CXXDEPMODE$ac_delim
21453 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21454 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21455 CXXCPP!$CXXCPP$ac_delim
21456 _ACEOF
21457
21458   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21459     break
21460   elif $ac_last_try; then
21461     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21462 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21463    { (exit 1); exit 1; }; }
21464   else
21465     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21466   fi
21467 done
21468
21469 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21470 if test -n "$ac_eof"; then
21471   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21472   ac_eof=`expr $ac_eof + 1`
21473 fi
21474
21475 cat >>$CONFIG_STATUS <<_ACEOF
21476 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21478 _ACEOF
21479 sed '
21480 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21481 s/^/s,@/; s/!/@,|#_!!_#|/
21482 :n
21483 t n
21484 s/'"$ac_delim"'$/,g/; t
21485 s/$/\\/; p
21486 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21487 ' >>$CONFIG_STATUS <conf$$subs.sed
21488 rm -f conf$$subs.sed
21489 cat >>$CONFIG_STATUS <<_ACEOF
21490 CEOF$ac_eof
21491 _ACEOF
21492
21493
21494 ac_delim='%!_!# '
21495 for ac_last_try in false false false false false :; do
21496   cat >conf$$subs.sed <<_ACEOF
21497 F77!$F77$ac_delim
21498 FFLAGS!$FFLAGS$ac_delim
21499 ac_ct_F77!$ac_ct_F77$ac_delim
21500 LIBTOOL!$LIBTOOL$ac_delim
21501 LIBOBJS!$LIBOBJS$ac_delim
21502 FREEBSD_NSS_TRUE!$FREEBSD_NSS_TRUE$ac_delim
21503 FREEBSD_NSS_FALSE!$FREEBSD_NSS_FALSE$ac_delim
21504 have_lynx!$have_lynx$ac_delim
21505 have_links!$have_links$ac_delim
21506 USE_LYNX_TRUE!$USE_LYNX_TRUE$ac_delim
21507 USE_LYNX_FALSE!$USE_LYNX_FALSE$ac_delim
21508 USE_LINKS_TRUE!$USE_LINKS_TRUE$ac_delim
21509 USE_LINKS_FALSE!$USE_LINKS_FALSE$ac_delim
21510 ENABLE_AVAHI_TRUE!$ENABLE_AVAHI_TRUE$ac_delim
21511 ENABLE_AVAHI_FALSE!$ENABLE_AVAHI_FALSE$ac_delim
21512 ENABLE_LEGACY_TRUE!$ENABLE_LEGACY_TRUE$ac_delim
21513 ENABLE_LEGACY_FALSE!$ENABLE_LEGACY_FALSE$ac_delim
21514 LTLIBOBJS!$LTLIBOBJS$ac_delim
21515 _ACEOF
21516
21517   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
21518     break
21519   elif $ac_last_try; then
21520     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21521 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21522    { (exit 1); exit 1; }; }
21523   else
21524     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21525   fi
21526 done
21527
21528 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21529 if test -n "$ac_eof"; then
21530   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21531   ac_eof=`expr $ac_eof + 1`
21532 fi
21533
21534 cat >>$CONFIG_STATUS <<_ACEOF
21535 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21537 _ACEOF
21538 sed '
21539 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21540 s/^/s,@/; s/!/@,|#_!!_#|/
21541 :n
21542 t n
21543 s/'"$ac_delim"'$/,g/; t
21544 s/$/\\/; p
21545 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21546 ' >>$CONFIG_STATUS <conf$$subs.sed
21547 rm -f conf$$subs.sed
21548 cat >>$CONFIG_STATUS <<_ACEOF
21549 :end
21550 s/|#_!!_#|//g
21551 CEOF$ac_eof
21552 _ACEOF
21553
21554
21555 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21556 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21557 # trailing colons and then remove the whole line if VPATH becomes empty
21558 # (actually we leave an empty line to preserve line numbers).
21559 if test "x$srcdir" = x.; then
21560   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21561 s/:*\$(srcdir):*/:/
21562 s/:*\${srcdir}:*/:/
21563 s/:*@srcdir@:*/:/
21564 s/^\([^=]*=[     ]*\):*/\1/
21565 s/:*$//
21566 s/^[^=]*=[       ]*$//
21567 }'
21568 fi
21569
21570 cat >>$CONFIG_STATUS <<\_ACEOF
21571 fi # test -n "$CONFIG_FILES"
21572
21573
21574 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21575 do
21576   case $ac_tag in
21577   :[FHLC]) ac_mode=$ac_tag; continue;;
21578   esac
21579   case $ac_mode$ac_tag in
21580   :[FHL]*:*);;
21581   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21582 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21583    { (exit 1); exit 1; }; };;
21584   :[FH]-) ac_tag=-:-;;
21585   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21586   esac
21587   ac_save_IFS=$IFS
21588   IFS=:
21589   set x $ac_tag
21590   IFS=$ac_save_IFS
21591   shift
21592   ac_file=$1
21593   shift
21594
21595   case $ac_mode in
21596   :L) ac_source=$1;;
21597   :[FH])
21598     ac_file_inputs=
21599     for ac_f
21600     do
21601       case $ac_f in
21602       -) ac_f="$tmp/stdin";;
21603       *) # Look for the file first in the build tree, then in the source tree
21604          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21605          # because $ac_f cannot contain `:'.
21606          test -f "$ac_f" ||
21607            case $ac_f in
21608            [\\/$]*) false;;
21609            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21610            esac ||
21611            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21612 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21613    { (exit 1); exit 1; }; };;
21614       esac
21615       ac_file_inputs="$ac_file_inputs $ac_f"
21616     done
21617
21618     # Let's still pretend it is `configure' which instantiates (i.e., don't
21619     # use $as_me), people would be surprised to read:
21620     #    /* config.h.  Generated by config.status.  */
21621     configure_input="Generated from "`IFS=:
21622           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21623     if test x"$ac_file" != x-; then
21624       configure_input="$ac_file.  $configure_input"
21625       { echo "$as_me:$LINENO: creating $ac_file" >&5
21626 echo "$as_me: creating $ac_file" >&6;}
21627     fi
21628
21629     case $ac_tag in
21630     *:-:* | *:-) cat >"$tmp/stdin";;
21631     esac
21632     ;;
21633   esac
21634
21635   ac_dir=`$as_dirname -- "$ac_file" ||
21636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21637          X"$ac_file" : 'X\(//\)[^/]' \| \
21638          X"$ac_file" : 'X\(//\)$' \| \
21639          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21640 echo X"$ac_file" |
21641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21642             s//\1/
21643             q
21644           }
21645           /^X\(\/\/\)[^/].*/{
21646             s//\1/
21647             q
21648           }
21649           /^X\(\/\/\)$/{
21650             s//\1/
21651             q
21652           }
21653           /^X\(\/\).*/{
21654             s//\1/
21655             q
21656           }
21657           s/.*/./; q'`
21658   { as_dir="$ac_dir"
21659   case $as_dir in #(
21660   -*) as_dir=./$as_dir;;
21661   esac
21662   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21663     as_dirs=
21664     while :; do
21665       case $as_dir in #(
21666       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21667       *) as_qdir=$as_dir;;
21668       esac
21669       as_dirs="'$as_qdir' $as_dirs"
21670       as_dir=`$as_dirname -- "$as_dir" ||
21671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672          X"$as_dir" : 'X\(//\)[^/]' \| \
21673          X"$as_dir" : 'X\(//\)$' \| \
21674          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21675 echo X"$as_dir" |
21676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21677             s//\1/
21678             q
21679           }
21680           /^X\(\/\/\)[^/].*/{
21681             s//\1/
21682             q
21683           }
21684           /^X\(\/\/\)$/{
21685             s//\1/
21686             q
21687           }
21688           /^X\(\/\).*/{
21689             s//\1/
21690             q
21691           }
21692           s/.*/./; q'`
21693       test -d "$as_dir" && break
21694     done
21695     test -z "$as_dirs" || eval "mkdir $as_dirs"
21696   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21697 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21698    { (exit 1); exit 1; }; }; }
21699   ac_builddir=.
21700
21701 case "$ac_dir" in
21702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21703 *)
21704   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21705   # A ".." for each directory in $ac_dir_suffix.
21706   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21707   case $ac_top_builddir_sub in
21708   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21709   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21710   esac ;;
21711 esac
21712 ac_abs_top_builddir=$ac_pwd
21713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21714 # for backward compatibility:
21715 ac_top_builddir=$ac_top_build_prefix
21716
21717 case $srcdir in
21718   .)  # We are building in place.
21719     ac_srcdir=.
21720     ac_top_srcdir=$ac_top_builddir_sub
21721     ac_abs_top_srcdir=$ac_pwd ;;
21722   [\\/]* | ?:[\\/]* )  # Absolute name.
21723     ac_srcdir=$srcdir$ac_dir_suffix;
21724     ac_top_srcdir=$srcdir
21725     ac_abs_top_srcdir=$srcdir ;;
21726   *) # Relative name.
21727     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21728     ac_top_srcdir=$ac_top_build_prefix$srcdir
21729     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21730 esac
21731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21732
21733
21734   case $ac_mode in
21735   :F)
21736   #
21737   # CONFIG_FILE
21738   #
21739
21740   case $INSTALL in
21741   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21742   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21743   esac
21744 _ACEOF
21745
21746 cat >>$CONFIG_STATUS <<\_ACEOF
21747 # If the template does not know about datarootdir, expand it.
21748 # FIXME: This hack should be removed a few years after 2.60.
21749 ac_datarootdir_hack=; ac_datarootdir_seen=
21750
21751 case `sed -n '/datarootdir/ {
21752   p
21753   q
21754 }
21755 /@datadir@/p
21756 /@docdir@/p
21757 /@infodir@/p
21758 /@localedir@/p
21759 /@mandir@/p
21760 ' $ac_file_inputs` in
21761 *datarootdir*) ac_datarootdir_seen=yes;;
21762 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21763   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21764 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21765 _ACEOF
21766 cat >>$CONFIG_STATUS <<_ACEOF
21767   ac_datarootdir_hack='
21768   s&@datadir@&$datadir&g
21769   s&@docdir@&$docdir&g
21770   s&@infodir@&$infodir&g
21771   s&@localedir@&$localedir&g
21772   s&@mandir@&$mandir&g
21773     s&\\\${datarootdir}&$datarootdir&g' ;;
21774 esac
21775 _ACEOF
21776
21777 # Neutralize VPATH when `$srcdir' = `.'.
21778 # Shell code in configure.ac might set extrasub.
21779 # FIXME: do we really want to maintain this feature?
21780 cat >>$CONFIG_STATUS <<_ACEOF
21781   sed "$ac_vpsub
21782 $extrasub
21783 _ACEOF
21784 cat >>$CONFIG_STATUS <<\_ACEOF
21785 :t
21786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21787 s&@configure_input@&$configure_input&;t t
21788 s&@top_builddir@&$ac_top_builddir_sub&;t t
21789 s&@srcdir@&$ac_srcdir&;t t
21790 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21791 s&@top_srcdir@&$ac_top_srcdir&;t t
21792 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21793 s&@builddir@&$ac_builddir&;t t
21794 s&@abs_builddir@&$ac_abs_builddir&;t t
21795 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21796 s&@INSTALL@&$ac_INSTALL&;t t
21797 $ac_datarootdir_hack
21798 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21799
21800 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21801   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21802   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21803   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21804 which seems to be undefined.  Please make sure it is defined." >&5
21805 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21806 which seems to be undefined.  Please make sure it is defined." >&2;}
21807
21808   rm -f "$tmp/stdin"
21809   case $ac_file in
21810   -) cat "$tmp/out"; rm -f "$tmp/out";;
21811   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21812   esac
21813  ;;
21814   :H)
21815   #
21816   # CONFIG_HEADER
21817   #
21818 _ACEOF
21819
21820 # Transform confdefs.h into a sed script `conftest.defines', that
21821 # substitutes the proper values into config.h.in to produce config.h.
21822 rm -f conftest.defines conftest.tail
21823 # First, append a space to every undef/define line, to ease matching.
21824 echo 's/$/ /' >conftest.defines
21825 # Then, protect against being on the right side of a sed subst, or in
21826 # an unquoted here document, in config.status.  If some macros were
21827 # called several times there might be several #defines for the same
21828 # symbol, which is useless.  But do not sort them, since the last
21829 # AC_DEFINE must be honored.
21830 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21831 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21832 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21833 # PARAMS is the parameter list in the macro definition--in most cases, it's
21834 # just an empty string.
21835 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21836 ac_dB='\\)[      (].*,\\1define\\2'
21837 ac_dC=' '
21838 ac_dD=' ,'
21839
21840 uniq confdefs.h |
21841   sed -n '
21842         t rset
21843         :rset
21844         s/^[     ]*#[    ]*define[       ][      ]*//
21845         t ok
21846         d
21847         :ok
21848         s/[\\&,]/\\&/g
21849         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21850         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21851   ' >>conftest.defines
21852
21853 # Remove the space that was appended to ease matching.
21854 # Then replace #undef with comments.  This is necessary, for
21855 # example, in the case of _POSIX_SOURCE, which is predefined and required
21856 # on some systems where configure will not decide to define it.
21857 # (The regexp can be short, since the line contains either #define or #undef.)
21858 echo 's/ $//
21859 s,^[     #]*u.*,/* & */,' >>conftest.defines
21860
21861 # Break up conftest.defines:
21862 ac_max_sed_lines=50
21863
21864 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21865 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21866 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21867 # et cetera.
21868 ac_in='$ac_file_inputs'
21869 ac_out='"$tmp/out1"'
21870 ac_nxt='"$tmp/out2"'
21871
21872 while :
21873 do
21874   # Write a here document:
21875     cat >>$CONFIG_STATUS <<_ACEOF
21876     # First, check the format of the line:
21877     cat >"\$tmp/defines.sed" <<\\CEOF
21878 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21879 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21880 b
21881 :def
21882 _ACEOF
21883   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21884   echo 'CEOF
21885     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21886   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21887   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21888   grep . conftest.tail >/dev/null || break
21889   rm -f conftest.defines
21890   mv conftest.tail conftest.defines
21891 done
21892 rm -f conftest.defines conftest.tail
21893
21894 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896   if test x"$ac_file" != x-; then
21897     echo "/* $configure_input  */" >"$tmp/config.h"
21898     cat "$ac_result" >>"$tmp/config.h"
21899     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21900       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21901 echo "$as_me: $ac_file is unchanged" >&6;}
21902     else
21903       rm -f $ac_file
21904       mv "$tmp/config.h" $ac_file
21905     fi
21906   else
21907     echo "/* $configure_input  */"
21908     cat "$ac_result"
21909   fi
21910   rm -f "$tmp/out12"
21911 # Compute $ac_file's index in $config_headers.
21912 _am_stamp_count=1
21913 for _am_header in $config_headers :; do
21914   case $_am_header in
21915     $ac_file | $ac_file:* )
21916       break ;;
21917     * )
21918       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21919   esac
21920 done
21921 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21922 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21923          X$ac_file : 'X\(//\)[^/]' \| \
21924          X$ac_file : 'X\(//\)$' \| \
21925          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21926 echo X$ac_file |
21927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21928             s//\1/
21929             q
21930           }
21931           /^X\(\/\/\)[^/].*/{
21932             s//\1/
21933             q
21934           }
21935           /^X\(\/\/\)$/{
21936             s//\1/
21937             q
21938           }
21939           /^X\(\/\).*/{
21940             s//\1/
21941             q
21942           }
21943           s/.*/./; q'`/stamp-h$_am_stamp_count
21944  ;;
21945
21946   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21947 echo "$as_me: executing $ac_file commands" >&6;}
21948  ;;
21949   esac
21950
21951
21952   case $ac_file$ac_mode in
21953     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21954   # Strip MF so we end up with the name of the file.
21955   mf=`echo "$mf" | sed -e 's/:.*$//'`
21956   # Check whether this is an Automake generated Makefile or not.
21957   # We used to match only the files named `Makefile.in', but
21958   # some people rename them; so instead we look at the file content.
21959   # Grep'ing the first line is not enough: some people post-process
21960   # each Makefile.in and add a new line on top of each file to say so.
21961   # So let's grep whole file.
21962   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21963     dirpart=`$as_dirname -- "$mf" ||
21964 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21965          X"$mf" : 'X\(//\)[^/]' \| \
21966          X"$mf" : 'X\(//\)$' \| \
21967          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21968 echo X"$mf" |
21969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21970             s//\1/
21971             q
21972           }
21973           /^X\(\/\/\)[^/].*/{
21974             s//\1/
21975             q
21976           }
21977           /^X\(\/\/\)$/{
21978             s//\1/
21979             q
21980           }
21981           /^X\(\/\).*/{
21982             s//\1/
21983             q
21984           }
21985           s/.*/./; q'`
21986   else
21987     continue
21988   fi
21989   # Extract the definition of DEPDIR, am__include, and am__quote
21990   # from the Makefile without running `make'.
21991   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21992   test -z "$DEPDIR" && continue
21993   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21994   test -z "am__include" && continue
21995   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21996   # When using ansi2knr, U may be empty or an underscore; expand it
21997   U=`sed -n 's/^U = //p' < "$mf"`
21998   # Find all dependency output files, they are included files with
21999   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22000   # simplest approach to changing $(DEPDIR) to its actual value in the
22001   # expansion.
22002   for file in `sed -n "
22003     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22004        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22005     # Make sure the directory exists.
22006     test -f "$dirpart/$file" && continue
22007     fdir=`$as_dirname -- "$file" ||
22008 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22009          X"$file" : 'X\(//\)[^/]' \| \
22010          X"$file" : 'X\(//\)$' \| \
22011          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22012 echo X"$file" |
22013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22014             s//\1/
22015             q
22016           }
22017           /^X\(\/\/\)[^/].*/{
22018             s//\1/
22019             q
22020           }
22021           /^X\(\/\/\)$/{
22022             s//\1/
22023             q
22024           }
22025           /^X\(\/\).*/{
22026             s//\1/
22027             q
22028           }
22029           s/.*/./; q'`
22030     { as_dir=$dirpart/$fdir
22031   case $as_dir in #(
22032   -*) as_dir=./$as_dir;;
22033   esac
22034   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22035     as_dirs=
22036     while :; do
22037       case $as_dir in #(
22038       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22039       *) as_qdir=$as_dir;;
22040       esac
22041       as_dirs="'$as_qdir' $as_dirs"
22042       as_dir=`$as_dirname -- "$as_dir" ||
22043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22044          X"$as_dir" : 'X\(//\)[^/]' \| \
22045          X"$as_dir" : 'X\(//\)$' \| \
22046          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22047 echo X"$as_dir" |
22048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22049             s//\1/
22050             q
22051           }
22052           /^X\(\/\/\)[^/].*/{
22053             s//\1/
22054             q
22055           }
22056           /^X\(\/\/\)$/{
22057             s//\1/
22058             q
22059           }
22060           /^X\(\/\).*/{
22061             s//\1/
22062             q
22063           }
22064           s/.*/./; q'`
22065       test -d "$as_dir" && break
22066     done
22067     test -z "$as_dirs" || eval "mkdir $as_dirs"
22068   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22069 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22070    { (exit 1); exit 1; }; }; }
22071     # echo "creating $dirpart/$file"
22072     echo '# dummy' > "$dirpart/$file"
22073   done
22074 done
22075  ;;
22076
22077   esac
22078 done # for ac_tag
22079
22080
22081 { (exit 0); exit 0; }
22082 _ACEOF
22083 chmod +x $CONFIG_STATUS
22084 ac_clean_files=$ac_clean_files_save
22085
22086
22087 # configure is writing to config.log, and then calls config.status.
22088 # config.status does its own redirection, appending to config.log.
22089 # Unfortunately, on DOS this fails, as config.log is still kept open
22090 # by configure, so config.status won't be able to write to it; its
22091 # output is simply discarded.  So we exec the FD to /dev/null,
22092 # effectively closing config.log, so it can be properly (re)opened and
22093 # appended to by config.status.  When coming back to configure, we
22094 # need to make the FD available again.
22095 if test "$no_create" != yes; then
22096   ac_cs_success=:
22097   ac_config_status_args=
22098   test "$silent" = yes &&
22099     ac_config_status_args="$ac_config_status_args --quiet"
22100   exec 5>/dev/null
22101   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22102   exec 5>>config.log
22103   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22104   # would make configure fail if this is the last instruction.
22105   $ac_cs_success || { (exit 1); exit 1; }
22106 fi
22107