]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/configure
4209b6e2dd573d23844320443b52e4dae0ea7e80
[1ts-debian.git] / zephyr / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597        echo_test_string="`eval $cmd`" &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="server/server.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 lbindir
808 lsbindir
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 CC
822 CFLAGS
823 LDFLAGS
824 CPPFLAGS
825 ac_ct_CC
826 EXEEXT
827 OBJEXT
828 YACC
829 YFLAGS
830 LEX
831 LEX_OUTPUT_ROOT
832 LEXLIB
833 INSTALL_PROGRAM
834 INSTALL_SCRIPT
835 INSTALL_DATA
836 RANLIB
837 GREP
838 EGREP
839 LN_S
840 ECHO
841 AR
842 STRIP
843 CPP
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 CXXCPP
848 F77
849 FFLAGS
850 ac_ct_F77
851 LIBTOOL
852 XMKMF
853 X_CFLAGS
854 X_PRE_LIBS
855 X_LIBS
856 X_EXTRA_LIBS
857 XCLIENTS
858 ZWGC_LIBX11
859 TLIB
860 RLIB
861 SLIB
862 KRB4_LIBS
863 krb5config
864 KRB5_LIBS
865 HESIOD_LIBS
866 REGEX_LIBS
867 ARES_LIBS
868 LIBOBJS
869 LTLIBOBJS'
870 ac_subst_files=''
871       ac_precious_vars='build_alias
872 host_alias
873 target_alias
874 CC
875 CFLAGS
876 LDFLAGS
877 LIBS
878 CPPFLAGS
879 YACC
880 YFLAGS
881 CPP
882 CXX
883 CXXFLAGS
884 CCC
885 CXXCPP
886 F77
887 FFLAGS
888 XMKMF'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941   # If the previous option needs an argument, assign it.
942   if test -n "$ac_prev"; then
943     eval $ac_prev=\$ac_option
944     ac_prev=
945     continue
946   fi
947
948   case $ac_option in
949   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950   *)    ac_optarg=yes ;;
951   esac
952
953   # Accept the important Cygnus configure options, so we can diagnose typos.
954
955   case $ac_dashdash$ac_option in
956   --)
957     ac_dashdash=yes ;;
958
959   -bindir | --bindir | --bindi | --bind | --bin | --bi)
960     ac_prev=bindir ;;
961   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962     bindir=$ac_optarg ;;
963
964   -build | --build | --buil | --bui | --bu)
965     ac_prev=build_alias ;;
966   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967     build_alias=$ac_optarg ;;
968
969   -cache-file | --cache-file | --cache-fil | --cache-fi \
970   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971     ac_prev=cache_file ;;
972   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974     cache_file=$ac_optarg ;;
975
976   --config-cache | -C)
977     cache_file=config.cache ;;
978
979   -datadir | --datadir | --datadi | --datad)
980     ac_prev=datadir ;;
981   -datadir=* | --datadir=* | --datadi=* | --datad=*)
982     datadir=$ac_optarg ;;
983
984   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985   | --dataroo | --dataro | --datar)
986     ac_prev=datarootdir ;;
987   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989     datarootdir=$ac_optarg ;;
990
991   -disable-* | --disable-*)
992     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993     # Reject names that are not valid shell variable names.
994     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996    { (exit 1); exit 1; }; }
997     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998     eval enable_$ac_feature=no ;;
999
1000   -docdir | --docdir | --docdi | --doc | --do)
1001     ac_prev=docdir ;;
1002   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003     docdir=$ac_optarg ;;
1004
1005   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006     ac_prev=dvidir ;;
1007   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008     dvidir=$ac_optarg ;;
1009
1010   -enable-* | --enable-*)
1011     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015    { (exit 1); exit 1; }; }
1016     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017     eval enable_$ac_feature=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163     ac_prev=sbindir ;;
1164   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165   | --sbi=* | --sb=*)
1166     sbindir=$ac_optarg ;;
1167
1168   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170   | --sharedst | --shareds | --shared | --share | --shar \
1171   | --sha | --sh)
1172     ac_prev=sharedstatedir ;;
1173   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176   | --sha=* | --sh=*)
1177     sharedstatedir=$ac_optarg ;;
1178
1179   -site | --site | --sit)
1180     ac_prev=site ;;
1181   -site=* | --site=* | --sit=*)
1182     site=$ac_optarg ;;
1183
1184   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185     ac_prev=srcdir ;;
1186   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187     srcdir=$ac_optarg ;;
1188
1189   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190   | --syscon | --sysco | --sysc | --sys | --sy)
1191     ac_prev=sysconfdir ;;
1192   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194     sysconfdir=$ac_optarg ;;
1195
1196   -target | --target | --targe | --targ | --tar | --ta | --t)
1197     ac_prev=target_alias ;;
1198   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199     target_alias=$ac_optarg ;;
1200
1201   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202     verbose=yes ;;
1203
1204   -version | --version | --versio | --versi | --vers | -V)
1205     ac_init_version=: ;;
1206
1207   -with-* | --with-*)
1208     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209     # Reject names that are not valid shell variable names.
1210     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       { echo "$as_me: error: invalid package name: $ac_package" >&2
1212    { (exit 1); exit 1; }; }
1213     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1214     eval with_$ac_package=\$ac_optarg ;;
1215
1216   -without-* | --without-*)
1217     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220       { echo "$as_me: error: invalid package name: $ac_package" >&2
1221    { (exit 1); exit 1; }; }
1222     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223     eval with_$ac_package=no ;;
1224
1225   --x)
1226     # Obsolete; use --with-x.
1227     with_x=yes ;;
1228
1229   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230   | --x-incl | --x-inc | --x-in | --x-i)
1231     ac_prev=x_includes ;;
1232   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234     x_includes=$ac_optarg ;;
1235
1236   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238     ac_prev=x_libraries ;;
1239   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241     x_libraries=$ac_optarg ;;
1242
1243   -*) { echo "$as_me: error: unrecognized option: $ac_option
1244 Try \`$0 --help' for more information." >&2
1245    { (exit 1); exit 1; }; }
1246     ;;
1247
1248   *=*)
1249     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1252       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1253    { (exit 1); exit 1; }; }
1254     eval $ac_envvar=\$ac_optarg
1255     export $ac_envvar ;;
1256
1257   *)
1258     # FIXME: should be removed in autoconf 3.0.
1259     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1263     ;;
1264
1265   esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270   { echo "$as_me: error: missing argument to $ac_option" >&2
1271    { (exit 1); exit 1; }; }
1272 fi
1273
1274 # Be sure to have absolute directory names.
1275 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276                 datadir sysconfdir sharedstatedir localstatedir includedir \
1277                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278                 libdir localedir mandir
1279 do
1280   eval ac_val=\$$ac_var
1281   case $ac_val in
1282     [\\/$]* | ?:[\\/]* )  continue;;
1283     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284   esac
1285   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286    { (exit 1); exit 1; }; }
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301     If a cross compiler is detected then cross compile mode will be used." >&2
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   { echo "$as_me: error: Working directory cannot be determined" >&2
1317    { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319   { echo "$as_me: error: pwd does not report name of working directory" >&2
1320    { (exit 1); exit 1; }; }
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325   ac_srcdir_defaulted=yes
1326   # Try the directory containing this script, then the parent directory.
1327   ac_confdir=`$as_dirname -- "$0" ||
1328 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329          X"$0" : 'X\(//\)[^/]' \| \
1330          X"$0" : 'X\(//\)$' \| \
1331          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1332 echo X"$0" |
1333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)[^/].*/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\).*/{
1346             s//\1/
1347             q
1348           }
1349           s/.*/./; q'`
1350   srcdir=$ac_confdir
1351   if test ! -r "$srcdir/$ac_unique_file"; then
1352     srcdir=..
1353   fi
1354 else
1355   ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360    { (exit 1); exit 1; }; }
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1365    { (exit 1); exit 1; }; }
1366         pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369   srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_env_${ac_var}_value=\$${ac_var}
1380   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388   # Omit some internal or obsolete options to make the list less imposing.
1389   # This message is too long to be a string in the A/UX 3.1 sh.
1390   cat <<_ACEOF
1391 \`configure' configures this package to adapt to many kinds of systems.
1392
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE.  See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
1401   -h, --help              display this help and exit
1402       --help=short        display options specific to this package
1403       --help=recursive    display the short help of all the included packages
1404   -V, --version           display version information and exit
1405   -q, --quiet, --silent   do not print \`checking...' messages
1406       --cache-file=FILE   cache test results in FILE [disabled]
1407   -C, --config-cache      alias for \`--cache-file=config.cache'
1408   -n, --no-create         do not create output files
1409       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1410
1411 Installation directories:
1412   --prefix=PREFIX         install architecture-independent files in PREFIX
1413                           [$ac_default_prefix]
1414   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1415                           [PREFIX]
1416
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine tuning of the installation directories:
1425   --bindir=DIR           user executables [EPREFIX/bin]
1426   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1427   --libexecdir=DIR       program executables [EPREFIX/libexec]
1428   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1429   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1430   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1431   --libdir=DIR           object code libraries [EPREFIX/lib]
1432   --includedir=DIR       C header files [PREFIX/include]
1433   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1434   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1435   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1436   --infodir=DIR          info documentation [DATAROOTDIR/info]
1437   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1438   --mandir=DIR           man documentation [DATAROOTDIR/man]
1439   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1440   --htmldir=DIR          html documentation [DOCDIR]
1441   --dvidir=DIR           dvi documentation [DOCDIR]
1442   --pdfdir=DIR           pdf documentation [DOCDIR]
1443   --psdir=DIR            ps documentation [DOCDIR]
1444 _ACEOF
1445
1446   cat <<\_ACEOF
1447
1448 X features:
1449   --x-includes=DIR    X include files are in DIR
1450   --x-libraries=DIR   X library files are in DIR
1451
1452 System types:
1453   --build=BUILD     configure for building on BUILD [guessed]
1454   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455   --target=TARGET   configure for building compilers for TARGET [HOST]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460
1461   cat <<\_ACEOF
1462
1463 Optional Features:
1464   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466   --enable-shared[=PKGS]  build shared libraries [default=yes]
1467   --enable-static[=PKGS]  build static libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471   --enable-cmu-zwgcplus   enable CMU zwgcplus extensions
1472   --enable-cmu-zctl-punt  enable CMU zctl punt extensions
1473   --enable-cmu-hm-flush-restrict   enable CMU zctl hm flush restriction
1474   --enable-cmu-opstaff-locate-self enable CMU opstaff locate-self ability
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480   --with-pic              try to use only PIC/non-PIC objects [default=use
1481                           both]
1482   --with-tags[=TAGS]      include additional configurations [automatic]
1483   --with-x                use the X Window System
1484   --with-krb4=PREFIX      Use Kerberos 4
1485   --with-krb5=PREFIX      Use Kerberos 5
1486   --with-hesiod=PREFIX    Use Hesiod
1487   --with-regex=PREFIX     Use installed regex library
1488   --with-com_err=PREFIX   Specify location of com_err
1489   --with-ss=PREFIX        Specify location of ss (requires com_err)
1490
1491 Some influential environment variables:
1492   CC          C compiler command
1493   CFLAGS      C compiler flags
1494   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1495               nonstandard directory <lib dir>
1496   LIBS        libraries to pass to the linker, e.g. -l<library>
1497   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498               you have headers in a nonstandard directory <include dir>
1499   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1500               the first program found out of: `bison -y', `byacc', `yacc'.
1501   YFLAGS      The list of arguments that will be passed by default to $YACC.
1502               This script will default YFLAGS to the empty string to avoid a
1503               default value of `-d' given by some make applications.
1504   CPP         C preprocessor
1505   CXX         C++ compiler command
1506   CXXFLAGS    C++ compiler flags
1507   CXXCPP      C++ preprocessor
1508   F77         Fortran 77 compiler command
1509   FFLAGS      Fortran 77 compiler flags
1510   XMKMF       Path to xmkmf, Makefile generator for X Window System
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520   # If there are subdirs, report their specific --help.
1521   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522     test -d "$ac_dir" || continue
1523     ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529   # A ".." for each directory in $ac_dir_suffix.
1530   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531   case $ac_top_builddir_sub in
1532   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534   esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542   .)  # We are building in place.
1543     ac_srcdir=.
1544     ac_top_srcdir=$ac_top_builddir_sub
1545     ac_abs_top_srcdir=$ac_pwd ;;
1546   [\\/]* | ?:[\\/]* )  # Absolute name.
1547     ac_srcdir=$srcdir$ac_dir_suffix;
1548     ac_top_srcdir=$srcdir
1549     ac_abs_top_srcdir=$srcdir ;;
1550   *) # Relative name.
1551     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552     ac_top_srcdir=$ac_top_build_prefix$srcdir
1553     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557     cd "$ac_dir" || { ac_status=$?; continue; }
1558     # Check for guested configure.
1559     if test -f "$ac_srcdir/configure.gnu"; then
1560       echo &&
1561       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562     elif test -f "$ac_srcdir/configure"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure" --help=recursive
1565     else
1566       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567     fi || ac_status=$?
1568     cd "$ac_pwd" || { ac_status=$?; break; }
1569   done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574   cat <<\_ACEOF
1575 configure
1576 generated by GNU Autoconf 2.61
1577
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583   exit
1584 fi
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1588
1589 It was created by $as_me, which was
1590 generated by GNU Autoconf 2.61.  Invocation command line was
1591
1592   $ $0 $@
1593
1594 _ACEOF
1595 exec 5>>config.log
1596 {
1597 cat <<_ASUNAME
1598 ## --------- ##
1599 ## Platform. ##
1600 ## --------- ##
1601
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1610
1611 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1612 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1615 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1616 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1617 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1618
1619 _ASUNAME
1620
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1623 do
1624   IFS=$as_save_IFS
1625   test -z "$as_dir" && as_dir=.
1626   echo "PATH: $as_dir"
1627 done
1628 IFS=$as_save_IFS
1629
1630 } >&5
1631
1632 cat >&5 <<_ACEOF
1633
1634
1635 ## ----------- ##
1636 ## Core tests. ##
1637 ## ----------- ##
1638
1639 _ACEOF
1640
1641
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_configure_args=
1648 ac_configure_args0=
1649 ac_configure_args1=
1650 ac_must_keep_next=false
1651 for ac_pass in 1 2
1652 do
1653   for ac_arg
1654   do
1655     case $ac_arg in
1656     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658     | -silent | --silent | --silen | --sile | --sil)
1659       continue ;;
1660     *\'*)
1661       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662     esac
1663     case $ac_pass in
1664     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665     2)
1666       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667       if test $ac_must_keep_next = true; then
1668         ac_must_keep_next=false # Got value, back to normal.
1669       else
1670         case $ac_arg in
1671           *=* | --config-cache | -C | -disable-* | --disable-* \
1672           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674           | -with-* | --with-* | -without-* | --without-* | --x)
1675             case "$ac_configure_args0 " in
1676               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677             esac
1678             ;;
1679           -* ) ac_must_keep_next=true ;;
1680         esac
1681       fi
1682       ac_configure_args="$ac_configure_args '$ac_arg'"
1683       ;;
1684     esac
1685   done
1686 done
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log.  We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696   # Save into config.log some information that might help in debugging.
1697   {
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1704 _ASBOX
1705     echo
1706     # The following way of writing the cache mishandles newlines in values,
1707 (
1708   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709     eval ac_val=\$$ac_var
1710     case $ac_val in #(
1711     *${as_nl}*)
1712       case $ac_var in #(
1713       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715       esac
1716       case $ac_var in #(
1717       _ | IFS | as_nl) ;; #(
1718       *) $as_unset $ac_var ;;
1719       esac ;;
1720     esac
1721   done
1722   (set) 2>&1 |
1723     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724     *${as_nl}ac_space=\ *)
1725       sed -n \
1726         "s/'\''/'\''\\\\'\'''\''/g;
1727           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728       ;; #(
1729     *)
1730       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731       ;;
1732     esac |
1733     sort
1734 )
1735     echo
1736
1737     cat <<\_ASBOX
1738 ## ----------------- ##
1739 ## Output variables. ##
1740 ## ----------------- ##
1741 _ASBOX
1742     echo
1743     for ac_var in $ac_subst_vars
1744     do
1745       eval ac_val=\$$ac_var
1746       case $ac_val in
1747       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748       esac
1749       echo "$ac_var='\''$ac_val'\''"
1750     done | sort
1751     echo
1752
1753     if test -n "$ac_subst_files"; then
1754       cat <<\_ASBOX
1755 ## ------------------- ##
1756 ## File substitutions. ##
1757 ## ------------------- ##
1758 _ASBOX
1759       echo
1760       for ac_var in $ac_subst_files
1761       do
1762         eval ac_val=\$$ac_var
1763         case $ac_val in
1764         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765         esac
1766         echo "$ac_var='\''$ac_val'\''"
1767       done | sort
1768       echo
1769     fi
1770
1771     if test -s confdefs.h; then
1772       cat <<\_ASBOX
1773 ## ----------- ##
1774 ## confdefs.h. ##
1775 ## ----------- ##
1776 _ASBOX
1777       echo
1778       cat confdefs.h
1779       echo
1780     fi
1781     test "$ac_signal" != 0 &&
1782       echo "$as_me: caught signal $ac_signal"
1783     echo "$as_me: exit $exit_status"
1784   } >&5
1785   rm -f core *.core core.conftest.* &&
1786     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787     exit $exit_status
1788 ' 0
1789 for ac_signal in 1 2 13 15; do
1790   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791 done
1792 ac_signal=0
1793
1794 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1795 rm -f -r conftest* confdefs.h
1796
1797 # Predefined preprocessor variables.
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_NAME "$PACKAGE_NAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_STRING "$PACKAGE_STRING"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 _ACEOF
1822
1823
1824 # Let the site file select an alternate cache file if it wants to.
1825 # Prefer explicitly selected file to automatically selected ones.
1826 if test -n "$CONFIG_SITE"; then
1827   set x "$CONFIG_SITE"
1828 elif test "x$prefix" != xNONE; then
1829   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830 else
1831   set x "$ac_default_prefix/share/config.site" \
1832         "$ac_default_prefix/etc/config.site"
1833 fi
1834 shift
1835 for ac_site_file
1836 do
1837   if test -r "$ac_site_file"; then
1838     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839 echo "$as_me: loading site script $ac_site_file" >&6;}
1840     sed 's/^/| /' "$ac_site_file" >&5
1841     . "$ac_site_file"
1842   fi
1843 done
1844
1845 if test -r "$cache_file"; then
1846   # Some versions of bash will fail to source /dev/null (special
1847   # files actually), so we avoid doing that.
1848   if test -f "$cache_file"; then
1849     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850 echo "$as_me: loading cache $cache_file" >&6;}
1851     case $cache_file in
1852       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853       *)                      . "./$cache_file";;
1854     esac
1855   fi
1856 else
1857   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858 echo "$as_me: creating cache $cache_file" >&6;}
1859   >$cache_file
1860 fi
1861
1862 # Check that the precious variables saved in the cache have kept the same
1863 # value.
1864 ac_cache_corrupted=false
1865 for ac_var in $ac_precious_vars; do
1866   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867   eval ac_new_set=\$ac_env_${ac_var}_set
1868   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869   eval ac_new_val=\$ac_env_${ac_var}_value
1870   case $ac_old_set,$ac_new_set in
1871     set,)
1872       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874       ac_cache_corrupted=: ;;
1875     ,set)
1876       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878       ac_cache_corrupted=: ;;
1879     ,);;
1880     *)
1881       if test "x$ac_old_val" != "x$ac_new_val"; then
1882         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1885 echo "$as_me:   former value:  $ac_old_val" >&2;}
1886         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1887 echo "$as_me:   current value: $ac_new_val" >&2;}
1888         ac_cache_corrupted=:
1889       fi;;
1890   esac
1891   # Pass precious variables to config.status.
1892   if test "$ac_new_set" = set; then
1893     case $ac_new_val in
1894     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895     *) ac_arg=$ac_var=$ac_new_val ;;
1896     esac
1897     case " $ac_configure_args " in
1898       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1899       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900     esac
1901   fi
1902 done
1903 if $ac_cache_corrupted; then
1904   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908    { (exit 1); exit 1; }; }
1909 fi
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932
1933
1934
1935 test -d h || mkdir h
1936 test -d h/zephyr || mkdir h/zephyr
1937
1938 test -z "$lbindir" && lbindir='${bindir}'
1939 test -z "$lsbindir" && lsbindir='${sbindir}'
1940
1941
1942
1943 ac_aux_dir=
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945   if test -f "$ac_dir/install-sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install-sh -c"
1948     break
1949   elif test -f "$ac_dir/install.sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install.sh -c"
1952     break
1953   elif test -f "$ac_dir/shtool"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/shtool install -c"
1956     break
1957   fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972
1973
1974 # Make sure we can run config.sub.
1975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1976   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1977 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1978    { (exit 1); exit 1; }; }
1979
1980 { echo "$as_me:$LINENO: checking build system type" >&5
1981 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1982 if test "${ac_cv_build+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   ac_build_alias=$build_alias
1986 test "x$ac_build_alias" = x &&
1987   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1988 test "x$ac_build_alias" = x &&
1989   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1990 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1991    { (exit 1); exit 1; }; }
1992 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1993   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1994 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1995    { (exit 1); exit 1; }; }
1996
1997 fi
1998 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1999 echo "${ECHO_T}$ac_cv_build" >&6; }
2000 case $ac_cv_build in
2001 *-*-*) ;;
2002 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2003 echo "$as_me: error: invalid value of canonical build" >&2;}
2004    { (exit 1); exit 1; }; };;
2005 esac
2006 build=$ac_cv_build
2007 ac_save_IFS=$IFS; IFS='-'
2008 set x $ac_cv_build
2009 shift
2010 build_cpu=$1
2011 build_vendor=$2
2012 shift; shift
2013 # Remember, the first character of IFS is used to create $*,
2014 # except with old shells:
2015 build_os=$*
2016 IFS=$ac_save_IFS
2017 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2018
2019
2020 { echo "$as_me:$LINENO: checking host system type" >&5
2021 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2022 if test "${ac_cv_host+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   if test "x$host_alias" = x; then
2026   ac_cv_host=$ac_cv_build
2027 else
2028   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2029     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2030 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034 fi
2035 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2036 echo "${ECHO_T}$ac_cv_host" >&6; }
2037 case $ac_cv_host in
2038 *-*-*) ;;
2039 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2040 echo "$as_me: error: invalid value of canonical host" >&2;}
2041    { (exit 1); exit 1; }; };;
2042 esac
2043 host=$ac_cv_host
2044 ac_save_IFS=$IFS; IFS='-'
2045 set x $ac_cv_host
2046 shift
2047 host_cpu=$1
2048 host_vendor=$2
2049 shift; shift
2050 # Remember, the first character of IFS is used to create $*,
2051 # except with old shells:
2052 host_os=$*
2053 IFS=$ac_save_IFS
2054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2055
2056
2057 { echo "$as_me:$LINENO: checking target system type" >&5
2058 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2059 if test "${ac_cv_target+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   if test "x$target_alias" = x; then
2063   ac_cv_target=$ac_cv_host
2064 else
2065   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2066     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2067 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 fi
2072 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2073 echo "${ECHO_T}$ac_cv_target" >&6; }
2074 case $ac_cv_target in
2075 *-*-*) ;;
2076 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2077 echo "$as_me: error: invalid value of canonical target" >&2;}
2078    { (exit 1); exit 1; }; };;
2079 esac
2080 target=$ac_cv_target
2081 ac_save_IFS=$IFS; IFS='-'
2082 set x $ac_cv_target
2083 shift
2084 target_cpu=$1
2085 target_vendor=$2
2086 shift; shift
2087 # Remember, the first character of IFS is used to create $*,
2088 # except with old shells:
2089 target_os=$*
2090 IFS=$ac_save_IFS
2091 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2092
2093
2094 # The aliases save the names the user supplied, while $host etc.
2095 # will get canonicalized.
2096 test -n "$target_alias" &&
2097   test "$program_prefix$program_suffix$program_transform_name" = \
2098     NONENONEs,x,x, &&
2099   program_prefix=${target_alias}-
2100 cat >>confdefs.h <<_ACEOF
2101 #define MACHINE_TYPE "$host"
2102 _ACEOF
2103
2104
2105 ac_ext=c
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110 if test -n "$ac_tool_prefix"; then
2111   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$CC"; then
2119   ac_cv_prog_CC="$CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 CC=$ac_cv_prog_CC
2139 if test -n "$CC"; then
2140   { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148 fi
2149 if test -z "$ac_cv_prog_CC"; then
2150   ac_ct_CC=$CC
2151   # Extract the first word of "gcc", so it can be a program name with args.
2152 set dummy gcc; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$ac_ct_CC"; then
2159   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_ac_ct_CC="gcc"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187   if test "x$ac_ct_CC" = x; then
2188     CC=""
2189   else
2190     case $cross_compiling:$ac_tool_warned in
2191 yes:)
2192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2193 whose name does not start with the host triplet.  If you think this
2194 configuration is useful to you, please write to autoconf@gnu.org." >&5
2195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet.  If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2198 ac_tool_warned=yes ;;
2199 esac
2200     CC=$ac_ct_CC
2201   fi
2202 else
2203   CC="$ac_cv_prog_CC"
2204 fi
2205
2206 if test -z "$CC"; then
2207           if test -n "$ac_tool_prefix"; then
2208     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2209 set dummy ${ac_tool_prefix}cc; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   if test -n "$CC"; then
2216   ac_cv_prog_CC="$CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221   IFS=$as_save_IFS
2222   test -z "$as_dir" && as_dir=.
2223   for ac_exec_ext in '' $ac_executable_extensions; do
2224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225     ac_cv_prog_CC="${ac_tool_prefix}cc"
2226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227     break 2
2228   fi
2229 done
2230 done
2231 IFS=$as_save_IFS
2232
2233 fi
2234 fi
2235 CC=$ac_cv_prog_CC
2236 if test -n "$CC"; then
2237   { echo "$as_me:$LINENO: result: $CC" >&5
2238 echo "${ECHO_T}$CC" >&6; }
2239 else
2240   { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 fi
2243
2244
2245   fi
2246 fi
2247 if test -z "$CC"; then
2248   # Extract the first word of "cc", so it can be a program name with args.
2249 set dummy cc; ac_word=$2
2250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   if test -n "$CC"; then
2256   ac_cv_prog_CC="$CC" # Let the user override the test.
2257 else
2258   ac_prog_rejected=no
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2267        ac_prog_rejected=yes
2268        continue
2269      fi
2270     ac_cv_prog_CC="cc"
2271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272     break 2
2273   fi
2274 done
2275 done
2276 IFS=$as_save_IFS
2277
2278 if test $ac_prog_rejected = yes; then
2279   # We found a bogon in the path, so make sure we never use it.
2280   set dummy $ac_cv_prog_CC
2281   shift
2282   if test $# != 0; then
2283     # We chose a different compiler from the bogus one.
2284     # However, it has the same basename, so the bogon will be chosen
2285     # first if we set CC to just the basename; use the full file name.
2286     shift
2287     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2288   fi
2289 fi
2290 fi
2291 fi
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294   { echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6; }
2296 else
2297   { echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6; }
2299 fi
2300
2301
2302 fi
2303 if test -z "$CC"; then
2304   if test -n "$ac_tool_prefix"; then
2305   for ac_prog in cl.exe
2306   do
2307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_CC+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   if test -n "$CC"; then
2315   ac_cv_prog_CC="$CC" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326     break 2
2327   fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336   { echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6; }
2338 else
2339   { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343
2344     test -n "$CC" && break
2345   done
2346 fi
2347 if test -z "$CC"; then
2348   ac_ct_CC=$CC
2349   for ac_prog in cl.exe
2350 do
2351   # Extract the first word of "$ac_prog", so it can be a program name with args.
2352 set dummy $ac_prog; ac_word=$2
2353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   if test -n "$ac_ct_CC"; then
2359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2363 do
2364   IFS=$as_save_IFS
2365   test -z "$as_dir" && as_dir=.
2366   for ac_exec_ext in '' $ac_executable_extensions; do
2367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368     ac_cv_prog_ac_ct_CC="$ac_prog"
2369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370     break 2
2371   fi
2372 done
2373 done
2374 IFS=$as_save_IFS
2375
2376 fi
2377 fi
2378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2381 echo "${ECHO_T}$ac_ct_CC" >&6; }
2382 else
2383   { echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6; }
2385 fi
2386
2387
2388   test -n "$ac_ct_CC" && break
2389 done
2390
2391   if test "x$ac_ct_CC" = x; then
2392     CC=""
2393   else
2394     case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet.  If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet.  If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2403 esac
2404     CC=$ac_ct_CC
2405   fi
2406 fi
2407
2408 fi
2409
2410
2411 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415    { (exit 1); exit 1; }; }
2416
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO: checking for C compiler version" >&5
2419 ac_compiler=`set X $ac_compile; echo $2`
2420 { (ac_try="$ac_compiler --version >&5"
2421 case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_compiler --version >&5") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }
2430 { (ac_try="$ac_compiler -v >&5"
2431 case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436   (eval "$ac_compiler -v >&5") 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }
2440 { (ac_try="$ac_compiler -V >&5"
2441 case "(($ac_try" in
2442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443   *) ac_try_echo=$ac_try;;
2444 esac
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446   (eval "$ac_compiler -V >&5") 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }
2450
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h.  */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h.  */
2457
2458 int
2459 main ()
2460 {
2461
2462   ;
2463   return 0;
2464 }
2465 _ACEOF
2466 ac_clean_files_save=$ac_clean_files
2467 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2468 # Try to create an executable without -o first, disregard a.out.
2469 # It will help us diagnose broken compilers, and finding out an intuition
2470 # of exeext.
2471 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2472 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2473 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2474 #
2475 # List of possible output files, starting from the most likely.
2476 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2477 # only as a last resort.  b.out is created by i960 compilers.
2478 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2479 #
2480 # The IRIX 6 linker writes into existing files which may not be
2481 # executable, retaining their permissions.  Remove them first so a
2482 # subsequent execution test works.
2483 ac_rmfiles=
2484 for ac_file in $ac_files
2485 do
2486   case $ac_file in
2487     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2488     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2489   esac
2490 done
2491 rm -f $ac_rmfiles
2492
2493 if { (ac_try="$ac_link_default"
2494 case "(($ac_try" in
2495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496   *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499   (eval "$ac_link_default") 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; then
2503   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2505 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2506 # so that the user can short-circuit this test for compilers unknown to
2507 # Autoconf.
2508 for ac_file in $ac_files ''
2509 do
2510   test -f "$ac_file" || continue
2511   case $ac_file in
2512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2513         ;;
2514     [ab].out )
2515         # We found the default executable, but exeext='' is most
2516         # certainly right.
2517         break;;
2518     *.* )
2519         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2520         then :; else
2521            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522         fi
2523         # We set ac_cv_exeext here because the later test for it is not
2524         # safe: cross compilers may not add the suffix if given an `-o'
2525         # argument, so we may need to know it at that point already.
2526         # Even if this section looks crufty: it has the advantage of
2527         # actually working.
2528         break;;
2529     * )
2530         break;;
2531   esac
2532 done
2533 test "$ac_cv_exeext" = no && ac_cv_exeext=
2534
2535 else
2536   ac_file=''
2537 fi
2538
2539 { echo "$as_me:$LINENO: result: $ac_file" >&5
2540 echo "${ECHO_T}$ac_file" >&6; }
2541 if test -z "$ac_file"; then
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&2;}
2549    { (exit 77); exit 77; }; }
2550 fi
2551
2552 ac_exeext=$ac_cv_exeext
2553
2554 # Check that the compiler produces executables we can run.  If not, either
2555 # the compiler is broken, or we cross compile.
2556 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2557 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2558 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2559 # If not cross compiling, check that we can run a simple program.
2560 if test "$cross_compiling" != yes; then
2561   if { ac_try='./$ac_file'
2562   { (case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_try") 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571     cross_compiling=no
2572   else
2573     if test "$cross_compiling" = maybe; then
2574         cross_compiling=yes
2575     else
2576         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2577 If you meant to cross compile, use \`--host'.
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: cannot run C compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&2;}
2582    { (exit 1); exit 1; }; }
2583     fi
2584   fi
2585 fi
2586 { echo "$as_me:$LINENO: result: yes" >&5
2587 echo "${ECHO_T}yes" >&6; }
2588
2589 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2590 ac_clean_files=$ac_clean_files_save
2591 # Check that the compiler produces executables we can run.  If not, either
2592 # the compiler is broken, or we cross compile.
2593 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2594 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2595 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2596 echo "${ECHO_T}$cross_compiling" >&6; }
2597
2598 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2599 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2600 if { (ac_try="$ac_link"
2601 case "(($ac_try" in
2602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603   *) ac_try_echo=$ac_try;;
2604 esac
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606   (eval "$ac_link") 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; then
2610   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2611 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2612 # work properly (i.e., refer to `conftest.exe'), while it won't with
2613 # `rm'.
2614 for ac_file in conftest.exe conftest conftest.*; do
2615   test -f "$ac_file" || continue
2616   case $ac_file in
2617     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2618     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2619           break;;
2620     * ) break;;
2621   esac
2622 done
2623 else
2624   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2627 See \`config.log' for more details." >&2;}
2628    { (exit 1); exit 1; }; }
2629 fi
2630
2631 rm -f conftest$ac_cv_exeext
2632 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2633 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2634
2635 rm -f conftest.$ac_ext
2636 EXEEXT=$ac_cv_exeext
2637 ac_exeext=$EXEEXT
2638 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2639 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2640 if test "${ac_cv_objext+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649
2650 int
2651 main ()
2652 {
2653
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 rm -f conftest.o conftest.obj
2659 if { (ac_try="$ac_compile"
2660 case "(($ac_try" in
2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662   *) ac_try_echo=$ac_try;;
2663 esac
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665   (eval "$ac_compile") 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; then
2669   for ac_file in conftest.o conftest.obj conftest.*; do
2670   test -f "$ac_file" || continue;
2671   case $ac_file in
2672     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2673     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2674        break;;
2675   esac
2676 done
2677 else
2678   echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2684 See \`config.log' for more details." >&2;}
2685    { (exit 1); exit 1; }; }
2686 fi
2687
2688 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2689 fi
2690 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2691 echo "${ECHO_T}$ac_cv_objext" >&6; }
2692 OBJEXT=$ac_cv_objext
2693 ac_objext=$OBJEXT
2694 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2695 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2696 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709 #ifndef __GNUC__
2710        choke me
2711 #endif
2712
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_compile") 2>conftest.er1
2725   ac_status=$?
2726   grep -v '^ *+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } && {
2731          test -z "$ac_c_werror_flag" ||
2732          test ! -s conftest.err
2733        } && test -s conftest.$ac_objext; then
2734   ac_compiler_gnu=yes
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739         ac_compiler_gnu=no
2740 fi
2741
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2744
2745 fi
2746 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2747 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2748 GCC=`test $ac_compiler_gnu = yes && echo yes`
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2751 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2752 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_cc_g+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   ac_save_c_werror_flag=$ac_c_werror_flag
2757    ac_c_werror_flag=yes
2758    ac_cv_prog_cc_g=no
2759    CFLAGS="-g"
2760    cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 int
2768 main ()
2769 {
2770
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2777 case "(($ac_try" in
2778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779   *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782   (eval "$ac_compile") 2>conftest.er1
2783   ac_status=$?
2784   grep -v '^ *+' conftest.er1 >conftest.err
2785   rm -f conftest.er1
2786   cat conftest.err >&5
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); } && {
2789          test -z "$ac_c_werror_flag" ||
2790          test ! -s conftest.err
2791        } && test -s conftest.$ac_objext; then
2792   ac_cv_prog_cc_g=yes
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797         CFLAGS=""
2798       cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h.  */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h.  */
2804
2805 int
2806 main ()
2807 {
2808
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 rm -f conftest.$ac_objext
2814 if { (ac_try="$ac_compile"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820   (eval "$ac_compile") 2>conftest.er1
2821   ac_status=$?
2822   grep -v '^ *+' conftest.er1 >conftest.err
2823   rm -f conftest.er1
2824   cat conftest.err >&5
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); } && {
2827          test -z "$ac_c_werror_flag" ||
2828          test ! -s conftest.err
2829        } && test -s conftest.$ac_objext; then
2830   :
2831 else
2832   echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2834
2835         ac_c_werror_flag=$ac_save_c_werror_flag
2836          CFLAGS="-g"
2837          cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843
2844 int
2845 main ()
2846 {
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (ac_try="$ac_compile"
2854 case "(($ac_try" in
2855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856   *) ac_try_echo=$ac_try;;
2857 esac
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859   (eval "$ac_compile") 2>conftest.er1
2860   ac_status=$?
2861   grep -v '^ *+' conftest.er1 >conftest.err
2862   rm -f conftest.er1
2863   cat conftest.err >&5
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); } && {
2866          test -z "$ac_c_werror_flag" ||
2867          test ! -s conftest.err
2868        } && test -s conftest.$ac_objext; then
2869   ac_cv_prog_cc_g=yes
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874
2875 fi
2876
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878 fi
2879
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 fi
2882
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884    ac_c_werror_flag=$ac_save_c_werror_flag
2885 fi
2886 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2888 if test "$ac_test_CFLAGS" = set; then
2889   CFLAGS=$ac_save_CFLAGS
2890 elif test $ac_cv_prog_cc_g = yes; then
2891   if test "$GCC" = yes; then
2892     CFLAGS="-g -O2"
2893   else
2894     CFLAGS="-g"
2895   fi
2896 else
2897   if test "$GCC" = yes; then
2898     CFLAGS="-O2"
2899   else
2900     CFLAGS=
2901   fi
2902 fi
2903 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2904 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_cc_c89+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   ac_cv_prog_cc_c89=no
2909 ac_save_CC=$CC
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916 #include <stdarg.h>
2917 #include <stdio.h>
2918 #include <sys/types.h>
2919 #include <sys/stat.h>
2920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2921 struct buf { int x; };
2922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2923 static char *e (p, i)
2924      char **p;
2925      int i;
2926 {
2927   return p[i];
2928 }
2929 static char *f (char * (*g) (char **, int), char **p, ...)
2930 {
2931   char *s;
2932   va_list v;
2933   va_start (v,p);
2934   s = g (p, va_arg (v,int));
2935   va_end (v);
2936   return s;
2937 }
2938
2939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2940    function prototypes and stuff, but not '\xHH' hex character constants.
2941    These don't provoke an error unfortunately, instead are silently treated
2942    as 'x'.  The following induces an error, until -std is added to get
2943    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2944    array size at least.  It's necessary to write '\x00'==0 to get something
2945    that's true only with -std.  */
2946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2947
2948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2949    inside strings and character constants.  */
2950 #define FOO(x) 'x'
2951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2952
2953 int test (int i, double x);
2954 struct s1 {int (*f) (int a);};
2955 struct s2 {int (*f) (double a);};
2956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2957 int argc;
2958 char **argv;
2959 int
2960 main ()
2961 {
2962 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2968         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2969 do
2970   CC="$ac_save_CC $ac_arg"
2971   rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_compile") 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } && {
2985          test -z "$ac_c_werror_flag" ||
2986          test ! -s conftest.err
2987        } && test -s conftest.$ac_objext; then
2988   ac_cv_prog_cc_c89=$ac_arg
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993
2994 fi
2995
2996 rm -f core conftest.err conftest.$ac_objext
2997   test "x$ac_cv_prog_cc_c89" != "xno" && break
2998 done
2999 rm -f conftest.$ac_ext
3000 CC=$ac_save_CC
3001
3002 fi
3003 # AC_CACHE_VAL
3004 case "x$ac_cv_prog_cc_c89" in
3005   x)
3006     { echo "$as_me:$LINENO: result: none needed" >&5
3007 echo "${ECHO_T}none needed" >&6; } ;;
3008   xno)
3009     { echo "$as_me:$LINENO: result: unsupported" >&5
3010 echo "${ECHO_T}unsupported" >&6; } ;;
3011   *)
3012     CC="$CC $ac_cv_prog_cc_c89"
3013     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3014 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3015 esac
3016
3017
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024 for ac_prog in 'bison -y' byacc
3025 do
3026   # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_YACC+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   if test -n "$YACC"; then
3034   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041   for ac_exec_ext in '' $ac_executable_extensions; do
3042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043     ac_cv_prog_YACC="$ac_prog"
3044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048 done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 YACC=$ac_cv_prog_YACC
3054 if test -n "$YACC"; then
3055   { echo "$as_me:$LINENO: result: $YACC" >&5
3056 echo "${ECHO_T}$YACC" >&6; }
3057 else
3058   { echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6; }
3060 fi
3061
3062
3063   test -n "$YACC" && break
3064 done
3065 test -n "$YACC" || YACC="yacc"
3066
3067
3068 for ac_prog in flex lex
3069 do
3070   # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_LEX+set}" = set; then
3075   echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077   if test -n "$LEX"; then
3078   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085   for ac_exec_ext in '' $ac_executable_extensions; do
3086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087     ac_cv_prog_LEX="$ac_prog"
3088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089     break 2
3090   fi
3091 done
3092 done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 LEX=$ac_cv_prog_LEX
3098 if test -n "$LEX"; then
3099   { echo "$as_me:$LINENO: result: $LEX" >&5
3100 echo "${ECHO_T}$LEX" >&6; }
3101 else
3102   { echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6; }
3104 fi
3105
3106
3107   test -n "$LEX" && break
3108 done
3109 test -n "$LEX" || LEX=":"
3110
3111 if test "x$LEX" != "x:"; then
3112   cat >conftest.l <<_ACEOF
3113 %%
3114 a { ECHO; }
3115 b { REJECT; }
3116 c { yymore (); }
3117 d { yyless (1); }
3118 e { yyless (input () != 0); }
3119 f { unput (yytext[0]); }
3120 . { BEGIN INITIAL; }
3121 %%
3122 #ifdef YYTEXT_POINTER
3123 extern char *yytext;
3124 #endif
3125 int
3126 main (void)
3127 {
3128   return ! yylex () + ! yywrap ();
3129 }
3130 _ACEOF
3131 { (ac_try="$LEX conftest.l"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$LEX conftest.l") 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }
3141 { echo "$as_me:$LINENO: checking lex output file root" >&5
3142 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3143 if test "${ac_cv_prog_lex_root+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146
3147 if test -f lex.yy.c; then
3148   ac_cv_prog_lex_root=lex.yy
3149 elif test -f lexyy.c; then
3150   ac_cv_prog_lex_root=lexyy
3151 else
3152   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3153 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3154    { (exit 1); exit 1; }; }
3155 fi
3156 fi
3157 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3158 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3159 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3160
3161 if test -z "${LEXLIB+set}"; then
3162   { echo "$as_me:$LINENO: checking lex library" >&5
3163 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3164 if test "${ac_cv_lib_lex+set}" = set; then
3165   echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167
3168     ac_save_LIBS=$LIBS
3169     ac_cv_lib_lex='none needed'
3170     for ac_lib in '' -lfl -ll; do
3171       LIBS="$ac_lib $ac_save_LIBS"
3172       cat >conftest.$ac_ext <<_ACEOF
3173 `cat $LEX_OUTPUT_ROOT.c`
3174 _ACEOF
3175 rm -f conftest.$ac_objext conftest$ac_exeext
3176 if { (ac_try="$ac_link"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_link") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } && {
3189          test -z "$ac_c_werror_flag" ||
3190          test ! -s conftest.err
3191        } && test -s conftest$ac_exeext &&
3192        $as_test_x conftest$ac_exeext; then
3193   ac_cv_lib_lex=$ac_lib
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3202       conftest$ac_exeext conftest.$ac_ext
3203       test "$ac_cv_lib_lex" != 'none needed' && break
3204     done
3205     LIBS=$ac_save_LIBS
3206
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3209 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3210   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3211 fi
3212
3213
3214 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3215 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3216 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   # POSIX says lex can declare yytext either as a pointer or an array; the
3220 # default is implementation-dependent.  Figure out which it is, since
3221 # not all implementations provide the %pointer and %array declarations.
3222 ac_cv_prog_lex_yytext_pointer=no
3223 ac_save_LIBS=$LIBS
3224 LIBS="$LEXLIB $ac_save_LIBS"
3225 cat >conftest.$ac_ext <<_ACEOF
3226 #define YYTEXT_POINTER 1
3227 `cat $LEX_OUTPUT_ROOT.c`
3228 _ACEOF
3229 rm -f conftest.$ac_objext conftest$ac_exeext
3230 if { (ac_try="$ac_link"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_link") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } && {
3243          test -z "$ac_c_werror_flag" ||
3244          test ! -s conftest.err
3245        } && test -s conftest$ac_exeext &&
3246        $as_test_x conftest$ac_exeext; then
3247   ac_cv_prog_lex_yytext_pointer=yes
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252
3253 fi
3254
3255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3256       conftest$ac_exeext conftest.$ac_ext
3257 LIBS=$ac_save_LIBS
3258
3259 fi
3260 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3261 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3262 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3263
3264 cat >>confdefs.h <<\_ACEOF
3265 #define YYTEXT_POINTER 1
3266 _ACEOF
3267
3268 fi
3269 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3270
3271 fi
3272 # Find a good install program.  We prefer a C program (faster),
3273 # so one script is as good as another.  But avoid the broken or
3274 # incompatible versions:
3275 # SysV /etc/install, /usr/sbin/install
3276 # SunOS /usr/etc/install
3277 # IRIX /sbin/install
3278 # AIX /bin/install
3279 # AmigaOS /C/install, which installs bootblocks on floppy discs
3280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3283 # OS/2's system install, which has a completely different semantic
3284 # ./install, which can be erroneously created by make from ./install.sh.
3285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3287 if test -z "$INSTALL"; then
3288 if test "${ac_cv_path_install+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296   # Account for people who put trailing slashes in PATH elements.
3297 case $as_dir/ in
3298   ./ | .// | /cC/* | \
3299   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3300   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3301   /usr/ucb/* ) ;;
3302   *)
3303     # OSF1 and SCO ODT 3.0 have their own names for install.
3304     # Don't use installbsd from OSF since it installs stuff as root
3305     # by default.
3306     for ac_prog in ginstall scoinst install; do
3307       for ac_exec_ext in '' $ac_executable_extensions; do
3308         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3309           if test $ac_prog = install &&
3310             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3311             # AIX install.  It has an incompatible calling convention.
3312             :
3313           elif test $ac_prog = install &&
3314             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3315             # program-specific install script used by HP pwplus--don't use.
3316             :
3317           else
3318             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3319             break 3
3320           fi
3321         fi
3322       done
3323     done
3324     ;;
3325 esac
3326 done
3327 IFS=$as_save_IFS
3328
3329
3330 fi
3331   if test "${ac_cv_path_install+set}" = set; then
3332     INSTALL=$ac_cv_path_install
3333   else
3334     # As a last resort, use the slow shell script.  Don't cache a
3335     # value for INSTALL within a source directory, because that will
3336     # break other packages using the cache if that directory is
3337     # removed, or if the value is a relative name.
3338     INSTALL=$ac_install_sh
3339   fi
3340 fi
3341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3342 echo "${ECHO_T}$INSTALL" >&6; }
3343
3344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3345 # It thinks the first close brace ends the variable substitution.
3346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3347
3348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3349
3350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3351
3352 if test -n "$ac_tool_prefix"; then
3353   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_RANLIB+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   if test -n "$RANLIB"; then
3361   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368   for ac_exec_ext in '' $ac_executable_extensions; do
3369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 RANLIB=$ac_cv_prog_RANLIB
3381 if test -n "$RANLIB"; then
3382   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3383 echo "${ECHO_T}$RANLIB" >&6; }
3384 else
3385   { echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6; }
3387 fi
3388
3389
3390 fi
3391 if test -z "$ac_cv_prog_RANLIB"; then
3392   ac_ct_RANLIB=$RANLIB
3393   # Extract the first word of "ranlib", so it can be a program name with args.
3394 set dummy ranlib; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   if test -n "$ac_ct_RANLIB"; then
3401   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408   for ac_exec_ext in '' $ac_executable_extensions; do
3409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410     ac_cv_prog_ac_ct_RANLIB="ranlib"
3411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421 if test -n "$ac_ct_RANLIB"; then
3422   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3424 else
3425   { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3427 fi
3428
3429   if test "x$ac_ct_RANLIB" = x; then
3430     RANLIB=":"
3431   else
3432     case $cross_compiling:$ac_tool_warned in
3433 yes:)
3434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3435 whose name does not start with the host triplet.  If you think this
3436 configuration is useful to you, please write to autoconf@gnu.org." >&5
3437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3438 whose name does not start with the host triplet.  If you think this
3439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3440 ac_tool_warned=yes ;;
3441 esac
3442     RANLIB=$ac_ct_RANLIB
3443   fi
3444 else
3445   RANLIB="$ac_cv_prog_RANLIB"
3446 fi
3447
3448 # Check whether --enable-shared was given.
3449 if test "${enable_shared+set}" = set; then
3450   enableval=$enable_shared; p=${PACKAGE-default}
3451     case $enableval in
3452     yes) enable_shared=yes ;;
3453     no) enable_shared=no ;;
3454     *)
3455       enable_shared=no
3456       # Look at the argument we got.  We use all the common list separators.
3457       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458       for pkg in $enableval; do
3459         IFS="$lt_save_ifs"
3460         if test "X$pkg" = "X$p"; then
3461           enable_shared=yes
3462         fi
3463       done
3464       IFS="$lt_save_ifs"
3465       ;;
3466     esac
3467 else
3468   enable_shared=yes
3469 fi
3470
3471
3472 # Check whether --enable-static was given.
3473 if test "${enable_static+set}" = set; then
3474   enableval=$enable_static; p=${PACKAGE-default}
3475     case $enableval in
3476     yes) enable_static=yes ;;
3477     no) enable_static=no ;;
3478     *)
3479      enable_static=no
3480       # Look at the argument we got.  We use all the common list separators.
3481       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3482       for pkg in $enableval; do
3483         IFS="$lt_save_ifs"
3484         if test "X$pkg" = "X$p"; then
3485           enable_static=yes
3486         fi
3487       done
3488       IFS="$lt_save_ifs"
3489       ;;
3490     esac
3491 else
3492   enable_static=yes
3493 fi
3494
3495
3496 # Check whether --enable-fast-install was given.
3497 if test "${enable_fast_install+set}" = set; then
3498   enableval=$enable_fast_install; p=${PACKAGE-default}
3499     case $enableval in
3500     yes) enable_fast_install=yes ;;
3501     no) enable_fast_install=no ;;
3502     *)
3503       enable_fast_install=no
3504       # Look at the argument we got.  We use all the common list separators.
3505       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3506       for pkg in $enableval; do
3507         IFS="$lt_save_ifs"
3508         if test "X$pkg" = "X$p"; then
3509           enable_fast_install=yes
3510         fi
3511       done
3512       IFS="$lt_save_ifs"
3513       ;;
3514     esac
3515 else
3516   enable_fast_install=yes
3517 fi
3518
3519
3520 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3521 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3522 if test "${lt_cv_path_SED+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   # Loop through the user's path and test for sed and gsed.
3526 # Then use that list of sed's as ones to test for truncation.
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530   IFS=$as_save_IFS
3531   test -z "$as_dir" && as_dir=.
3532   for lt_ac_prog in sed gsed; do
3533     for ac_exec_ext in '' $ac_executable_extensions; do
3534       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3535         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3536       fi
3537     done
3538   done
3539 done
3540 lt_ac_max=0
3541 lt_ac_count=0
3542 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3543 # along with /bin/sed that truncates output.
3544 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3545   test ! -f $lt_ac_sed && break
3546   cat /dev/null > conftest.in
3547   lt_ac_count=0
3548   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3549   # Check for GNU sed and select it if it is found.
3550   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3551     lt_cv_path_SED=$lt_ac_sed
3552     break
3553   fi
3554   while true; do
3555     cat conftest.in conftest.in >conftest.tmp
3556     mv conftest.tmp conftest.in
3557     cp conftest.in conftest.nl
3558     echo >>conftest.nl
3559     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3560     cmp -s conftest.out conftest.nl || break
3561     # 10000 chars as input seems more than enough
3562     test $lt_ac_count -gt 10 && break
3563     lt_ac_count=`expr $lt_ac_count + 1`
3564     if test $lt_ac_count -gt $lt_ac_max; then
3565       lt_ac_max=$lt_ac_count
3566       lt_cv_path_SED=$lt_ac_sed
3567     fi
3568   done
3569 done
3570 SED=$lt_cv_path_SED
3571
3572 fi
3573
3574 { echo "$as_me:$LINENO: result: $SED" >&5
3575 echo "${ECHO_T}$SED" >&6; }
3576
3577 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3578 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3579 if test "${ac_cv_path_GREP+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   # Extract the first word of "grep ggrep" to use in msg output
3583 if test -z "$GREP"; then
3584 set dummy grep ggrep; ac_prog_name=$2
3585 if test "${ac_cv_path_GREP+set}" = set; then
3586   echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588   ac_path_GREP_found=false
3589 # Loop through the user's path and test for each of PROGNAME-LIST
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_prog in grep ggrep; do
3596   for ac_exec_ext in '' $ac_executable_extensions; do
3597     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3598     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3599     # Check for GNU ac_path_GREP and select it if it is found.
3600   # Check for GNU $ac_path_GREP
3601 case `"$ac_path_GREP" --version 2>&1` in
3602 *GNU*)
3603   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3604 *)
3605   ac_count=0
3606   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3607   while :
3608   do
3609     cat "conftest.in" "conftest.in" >"conftest.tmp"
3610     mv "conftest.tmp" "conftest.in"
3611     cp "conftest.in" "conftest.nl"
3612     echo 'GREP' >> "conftest.nl"
3613     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3614     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3615     ac_count=`expr $ac_count + 1`
3616     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3617       # Best one so far, save it but keep looking for a better one
3618       ac_cv_path_GREP="$ac_path_GREP"
3619       ac_path_GREP_max=$ac_count
3620     fi
3621     # 10*(2^10) chars as input seems more than enough
3622     test $ac_count -gt 10 && break
3623   done
3624   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3625 esac
3626
3627
3628     $ac_path_GREP_found && break 3
3629   done
3630 done
3631
3632 done
3633 IFS=$as_save_IFS
3634
3635
3636 fi
3637
3638 GREP="$ac_cv_path_GREP"
3639 if test -z "$GREP"; then
3640   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3641 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3642    { (exit 1); exit 1; }; }
3643 fi
3644
3645 else
3646   ac_cv_path_GREP=$GREP
3647 fi
3648
3649
3650 fi
3651 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3652 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3653  GREP="$ac_cv_path_GREP"
3654
3655
3656 { echo "$as_me:$LINENO: checking for egrep" >&5
3657 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3658 if test "${ac_cv_path_EGREP+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3662    then ac_cv_path_EGREP="$GREP -E"
3663    else
3664      # Extract the first word of "egrep" to use in msg output
3665 if test -z "$EGREP"; then
3666 set dummy egrep; ac_prog_name=$2
3667 if test "${ac_cv_path_EGREP+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   ac_path_EGREP_found=false
3671 # Loop through the user's path and test for each of PROGNAME-LIST
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3674 do
3675   IFS=$as_save_IFS
3676   test -z "$as_dir" && as_dir=.
3677   for ac_prog in egrep; do
3678   for ac_exec_ext in '' $ac_executable_extensions; do
3679     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3680     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3681     # Check for GNU ac_path_EGREP and select it if it is found.
3682   # Check for GNU $ac_path_EGREP
3683 case `"$ac_path_EGREP" --version 2>&1` in
3684 *GNU*)
3685   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3686 *)
3687   ac_count=0
3688   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689   while :
3690   do
3691     cat "conftest.in" "conftest.in" >"conftest.tmp"
3692     mv "conftest.tmp" "conftest.in"
3693     cp "conftest.in" "conftest.nl"
3694     echo 'EGREP' >> "conftest.nl"
3695     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3696     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3697     ac_count=`expr $ac_count + 1`
3698     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3699       # Best one so far, save it but keep looking for a better one
3700       ac_cv_path_EGREP="$ac_path_EGREP"
3701       ac_path_EGREP_max=$ac_count
3702     fi
3703     # 10*(2^10) chars as input seems more than enough
3704     test $ac_count -gt 10 && break
3705   done
3706   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707 esac
3708
3709
3710     $ac_path_EGREP_found && break 3
3711   done
3712 done
3713
3714 done
3715 IFS=$as_save_IFS
3716
3717
3718 fi
3719
3720 EGREP="$ac_cv_path_EGREP"
3721 if test -z "$EGREP"; then
3722   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3723 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3724    { (exit 1); exit 1; }; }
3725 fi
3726
3727 else
3728   ac_cv_path_EGREP=$EGREP
3729 fi
3730
3731
3732    fi
3733 fi
3734 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3735 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3736  EGREP="$ac_cv_path_EGREP"
3737
3738
3739
3740 # Check whether --with-gnu-ld was given.
3741 if test "${with_gnu_ld+set}" = set; then
3742   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3743 else
3744   with_gnu_ld=no
3745 fi
3746
3747 ac_prog=ld
3748 if test "$GCC" = yes; then
3749   # Check if gcc -print-prog-name=ld gives a path.
3750   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3751 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3752   case $host in
3753   *-*-mingw*)
3754     # gcc leaves a trailing carriage return which upsets mingw
3755     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3756   *)
3757     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3758   esac
3759   case $ac_prog in
3760     # Accept absolute paths.
3761     [\\/]* | ?:[\\/]*)
3762       re_direlt='/[^/][^/]*/\.\./'
3763       # Canonicalize the pathname of ld
3764       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3765       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3766         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3767       done
3768       test -z "$LD" && LD="$ac_prog"
3769       ;;
3770   "")
3771     # If it fails, then pretend we aren't using GCC.
3772     ac_prog=ld
3773     ;;
3774   *)
3775     # If it is relative, then search for the first ld in PATH.
3776     with_gnu_ld=unknown
3777     ;;
3778   esac
3779 elif test "$with_gnu_ld" = yes; then
3780   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3782 else
3783   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3785 fi
3786 if test "${lt_cv_path_LD+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   if test -z "$LD"; then
3790   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3791   for ac_dir in $PATH; do
3792     IFS="$lt_save_ifs"
3793     test -z "$ac_dir" && ac_dir=.
3794     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3795       lt_cv_path_LD="$ac_dir/$ac_prog"
3796       # Check to see if the program is GNU ld.  I'd rather use --version,
3797       # but apparently some GNU ld's only accept -v.
3798       # Break only if it was the GNU/non-GNU ld that we prefer.
3799       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3800       *GNU* | *'with BFD'*)
3801         test "$with_gnu_ld" != no && break
3802         ;;
3803       *)
3804         test "$with_gnu_ld" != yes && break
3805         ;;
3806       esac
3807     fi
3808   done
3809   IFS="$lt_save_ifs"
3810 else
3811   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3812 fi
3813 fi
3814
3815 LD="$lt_cv_path_LD"
3816 if test -n "$LD"; then
3817   { echo "$as_me:$LINENO: result: $LD" >&5
3818 echo "${ECHO_T}$LD" >&6; }
3819 else
3820   { echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6; }
3822 fi
3823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3825    { (exit 1); exit 1; }; }
3826 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3828 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3832 case `$LD -v 2>&1 </dev/null` in
3833 *GNU* | *'with BFD'*)
3834   lt_cv_prog_gnu_ld=yes
3835   ;;
3836 *)
3837   lt_cv_prog_gnu_ld=no
3838   ;;
3839 esac
3840 fi
3841 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3843 with_gnu_ld=$lt_cv_prog_gnu_ld
3844
3845
3846 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3847 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3848 if test "${lt_cv_ld_reload_flag+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   lt_cv_ld_reload_flag='-r'
3852 fi
3853 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3854 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3855 reload_flag=$lt_cv_ld_reload_flag
3856 case $reload_flag in
3857 "" | " "*) ;;
3858 *) reload_flag=" $reload_flag" ;;
3859 esac
3860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3861
3862 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3863 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3864 if test "${lt_cv_path_NM+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   if test -n "$NM"; then
3868   # Let the user override the test.
3869   lt_cv_path_NM="$NM"
3870 else
3871   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3872   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3873     IFS="$lt_save_ifs"
3874     test -z "$ac_dir" && ac_dir=.
3875     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3876     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3877       # Check to see if the nm accepts a BSD-compat flag.
3878       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3879       #   nm: unknown option "B" ignored
3880       # Tru64's nm complains that /dev/null is an invalid object file
3881       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3882       */dev/null* | *'Invalid file or object type'*)
3883         lt_cv_path_NM="$tmp_nm -B"
3884         break
3885         ;;
3886       *)
3887         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3888         */dev/null*)
3889           lt_cv_path_NM="$tmp_nm -p"
3890           break
3891           ;;
3892         *)
3893           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3894           continue # so that we can try to find one that supports BSD flags
3895           ;;
3896         esac
3897       esac
3898     fi
3899   done
3900   IFS="$lt_save_ifs"
3901   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3902 fi
3903 fi
3904 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3905 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3906 NM="$lt_cv_path_NM"
3907
3908 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3909 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3910 LN_S=$as_ln_s
3911 if test "$LN_S" = "ln -s"; then
3912   { echo "$as_me:$LINENO: result: yes" >&5
3913 echo "${ECHO_T}yes" >&6; }
3914 else
3915   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3916 echo "${ECHO_T}no, using $LN_S" >&6; }
3917 fi
3918
3919 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3920 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3921 if test "${lt_cv_deplibs_check_method+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   lt_cv_file_magic_cmd='$MAGIC_CMD'
3925 lt_cv_file_magic_test_file=
3926 lt_cv_deplibs_check_method='unknown'
3927 # Need to set the preceding variable on all platforms that support
3928 # interlibrary dependencies.
3929 # 'none' -- dependencies not supported.
3930 # `unknown' -- same as none, but documents that we really don't know.
3931 # 'pass_all' -- all dependencies passed with no checks.
3932 # 'test_compile' -- check by making test program.
3933 # 'file_magic [[regex]]' -- check by looking for files in library path
3934 # which responds to the $file_magic_cmd with a given extended regex.
3935 # If you have `file' or equivalent on your system and you're not sure
3936 # whether `pass_all' will *always* work, you probably want this one.
3937
3938 case $host_os in
3939 aix4* | aix5*)
3940   lt_cv_deplibs_check_method=pass_all
3941   ;;
3942
3943 beos*)
3944   lt_cv_deplibs_check_method=pass_all
3945   ;;
3946
3947 bsdi4*)
3948   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3949   lt_cv_file_magic_cmd='/usr/bin/file -L'
3950   lt_cv_file_magic_test_file=/shlib/libc.so
3951   ;;
3952
3953 cygwin*)
3954   # func_win32_libid is a shell function defined in ltmain.sh
3955   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3956   lt_cv_file_magic_cmd='func_win32_libid'
3957   ;;
3958
3959 mingw* | pw32*)
3960   # Base MSYS/MinGW do not provide the 'file' command needed by
3961   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3962   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3963   lt_cv_file_magic_cmd='$OBJDUMP -f'
3964   ;;
3965
3966 darwin* | rhapsody*)
3967   lt_cv_deplibs_check_method=pass_all
3968   ;;
3969
3970 freebsd* | kfreebsd*-gnu)
3971   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3972     case $host_cpu in
3973     i*86 )
3974       # Not sure whether the presence of OpenBSD here was a mistake.
3975       # Let's accept both of them until this is cleared up.
3976       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3977       lt_cv_file_magic_cmd=/usr/bin/file
3978       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3979       ;;
3980     esac
3981   else
3982     lt_cv_deplibs_check_method=pass_all
3983   fi
3984   ;;
3985
3986 gnu*)
3987   lt_cv_deplibs_check_method=pass_all
3988   ;;
3989
3990 hpux10.20* | hpux11*)
3991   lt_cv_file_magic_cmd=/usr/bin/file
3992   case "$host_cpu" in
3993   ia64*)
3994     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3995     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3996     ;;
3997   hppa*64*)
3998     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]'
3999     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4000     ;;
4001   *)
4002     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4003     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4004     ;;
4005   esac
4006   ;;
4007
4008 irix5* | irix6* | nonstopux*)
4009   case $LD in
4010   *-32|*"-32 ") libmagic=32-bit;;
4011   *-n32|*"-n32 ") libmagic=N32;;
4012   *-64|*"-64 ") libmagic=64-bit;;
4013   *) libmagic=never-match;;
4014   esac
4015   lt_cv_deplibs_check_method=pass_all
4016   ;;
4017
4018 # This must be Linux ELF.
4019 linux*)
4020   case $host_cpu in
4021   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4022     lt_cv_deplibs_check_method=pass_all ;;
4023   *)
4024     # glibc up to 2.1.1 does not perform some relocations on ARM
4025     # this will be overridden with pass_all, but let us keep it just in case
4026     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4027   esac
4028   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4029   lt_cv_deplibs_check_method=pass_all
4030   ;;
4031
4032 netbsd*)
4033   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4034     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4035   else
4036     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4037   fi
4038   ;;
4039
4040 newos6*)
4041   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4042   lt_cv_file_magic_cmd=/usr/bin/file
4043   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4044   ;;
4045
4046 nto-qnx*)
4047   lt_cv_deplibs_check_method=unknown
4048   ;;
4049
4050 openbsd*)
4051   lt_cv_file_magic_cmd=/usr/bin/file
4052   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4053   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4054     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4055   else
4056     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4057   fi
4058   ;;
4059
4060 osf3* | osf4* | osf5*)
4061   lt_cv_deplibs_check_method=pass_all
4062   ;;
4063
4064 sco3.2v5*)
4065   lt_cv_deplibs_check_method=pass_all
4066   ;;
4067
4068 solaris*)
4069   lt_cv_deplibs_check_method=pass_all
4070   ;;
4071
4072 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4073   case $host_vendor in
4074   motorola)
4075     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]'
4076     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4077     ;;
4078   ncr)
4079     lt_cv_deplibs_check_method=pass_all
4080     ;;
4081   sequent)
4082     lt_cv_file_magic_cmd='/bin/file'
4083     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4084     ;;
4085   sni)
4086     lt_cv_file_magic_cmd='/bin/file'
4087     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4088     lt_cv_file_magic_test_file=/lib/libc.so
4089     ;;
4090   siemens)
4091     lt_cv_deplibs_check_method=pass_all
4092     ;;
4093   esac
4094   ;;
4095
4096 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4097   lt_cv_deplibs_check_method=pass_all
4098   ;;
4099 esac
4100
4101 fi
4102 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4103 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4104 file_magic_cmd=$lt_cv_file_magic_cmd
4105 deplibs_check_method=$lt_cv_deplibs_check_method
4106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4107
4108
4109
4110
4111 # If no C compiler was specified, use CC.
4112 LTCC=${LTCC-"$CC"}
4113
4114 # Allow CC to be a program name with arguments.
4115 compiler=$CC
4116
4117 # Check whether --enable-libtool-lock was given.
4118 if test "${enable_libtool_lock+set}" = set; then
4119   enableval=$enable_libtool_lock;
4120 fi
4121
4122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4123
4124 # Some flags need to be propagated to the compiler or linker for good
4125 # libtool support.
4126 case $host in
4127 ia64-*-hpux*)
4128   # Find out which ABI we are using.
4129   echo 'int i;' > conftest.$ac_ext
4130   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131   (eval $ac_compile) 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); }; then
4135     case `/usr/bin/file conftest.$ac_objext` in
4136     *ELF-32*)
4137       HPUX_IA64_MODE="32"
4138       ;;
4139     *ELF-64*)
4140       HPUX_IA64_MODE="64"
4141       ;;
4142     esac
4143   fi
4144   rm -rf conftest*
4145   ;;
4146 *-*-irix6*)
4147   # Find out which ABI we are using.
4148   echo '#line 4148 "configure"' > conftest.$ac_ext
4149   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4150   (eval $ac_compile) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; then
4154    if test "$lt_cv_prog_gnu_ld" = yes; then
4155     case `/usr/bin/file conftest.$ac_objext` in
4156     *32-bit*)
4157       LD="${LD-ld} -melf32bsmip"
4158       ;;
4159     *N32*)
4160       LD="${LD-ld} -melf32bmipn32"
4161       ;;
4162     *64-bit*)
4163       LD="${LD-ld} -melf64bmip"
4164       ;;
4165     esac
4166    else
4167     case `/usr/bin/file conftest.$ac_objext` in
4168     *32-bit*)
4169       LD="${LD-ld} -32"
4170       ;;
4171     *N32*)
4172       LD="${LD-ld} -n32"
4173       ;;
4174     *64-bit*)
4175       LD="${LD-ld} -64"
4176       ;;
4177     esac
4178    fi
4179   fi
4180   rm -rf conftest*
4181   ;;
4182
4183 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4184   # Find out which ABI we are using.
4185   echo 'int i;' > conftest.$ac_ext
4186   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187   (eval $ac_compile) 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; then
4191     case "`/usr/bin/file conftest.o`" in
4192     *32-bit*)
4193       case $host in
4194         x86_64-*linux*)
4195           LD="${LD-ld} -m elf_i386"
4196           ;;
4197         ppc64-*linux*|powerpc64-*linux*)
4198           LD="${LD-ld} -m elf32ppclinux"
4199           ;;
4200         s390x-*linux*)
4201           LD="${LD-ld} -m elf_s390"
4202           ;;
4203         sparc64-*linux*)
4204           LD="${LD-ld} -m elf32_sparc"
4205           ;;
4206       esac
4207       ;;
4208     *64-bit*)
4209       case $host in
4210         x86_64-*linux*)
4211           LD="${LD-ld} -m elf_x86_64"
4212           ;;
4213         ppc*-*linux*|powerpc*-*linux*)
4214           LD="${LD-ld} -m elf64ppc"
4215           ;;
4216         s390*-*linux*)
4217           LD="${LD-ld} -m elf64_s390"
4218           ;;
4219         sparc*-*linux*)
4220           LD="${LD-ld} -m elf64_sparc"
4221           ;;
4222       esac
4223       ;;
4224     esac
4225   fi
4226   rm -rf conftest*
4227   ;;
4228
4229 *-*-sco3.2v5*)
4230   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4231   SAVE_CFLAGS="$CFLAGS"
4232   CFLAGS="$CFLAGS -belf"
4233   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4234 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4235 if test "${lt_cv_cc_needs_belf+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244      cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250
4251 int
4252 main ()
4253 {
4254
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (ac_try="$ac_link"
4261 case "(($ac_try" in
4262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263   *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266   (eval "$ac_link") 2>conftest.er1
4267   ac_status=$?
4268   grep -v '^ *+' conftest.er1 >conftest.err
4269   rm -f conftest.er1
4270   cat conftest.err >&5
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); } && {
4273          test -z "$ac_c_werror_flag" ||
4274          test ! -s conftest.err
4275        } && test -s conftest$ac_exeext &&
4276        $as_test_x conftest$ac_exeext; then
4277   lt_cv_cc_needs_belf=yes
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282         lt_cv_cc_needs_belf=no
4283 fi
4284
4285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4286       conftest$ac_exeext conftest.$ac_ext
4287      ac_ext=c
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292
4293 fi
4294 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4295 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4296   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4297     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4298     CFLAGS="$SAVE_CFLAGS"
4299   fi
4300   ;;
4301
4302 esac
4303
4304 need_locks="$enable_libtool_lock"
4305
4306
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4313 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4314 # On Suns, sometimes $CPP names a directory.
4315 if test -n "$CPP" && test -d "$CPP"; then
4316   CPP=
4317 fi
4318 if test -z "$CPP"; then
4319   if test "${ac_cv_prog_CPP+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322       # Double quotes because CPP needs to be expanded
4323     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4324     do
4325       ac_preproc_ok=false
4326 for ac_c_preproc_warn_flag in '' yes
4327 do
4328   # Use a header file that comes with gcc, so configuring glibc
4329   # with a fresh cross-compiler works.
4330   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331   # <limits.h> exists even on freestanding compilers.
4332   # On the NeXT, cc -E runs the code through the compiler's parser,
4333   # not just through cpp. "Syntax error" is here to catch this case.
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 #ifdef __STDC__
4341 # include <limits.h>
4342 #else
4343 # include <assert.h>
4344 #endif
4345                      Syntax error
4346 _ACEOF
4347 if { (ac_try="$ac_cpp conftest.$ac_ext"
4348 case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4354   ac_status=$?
4355   grep -v '^ *+' conftest.er1 >conftest.err
4356   rm -f conftest.er1
4357   cat conftest.err >&5
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } >/dev/null && {
4360          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4361          test ! -s conftest.err
4362        }; then
4363   :
4364 else
4365   echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368   # Broken: fails on valid input.
4369 continue
4370 fi
4371
4372 rm -f conftest.err conftest.$ac_ext
4373
4374   # OK, works on sane cases.  Now check whether nonexistent headers
4375   # can be detected and how.
4376   cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382 #include <ac_nonexistent.h>
4383 _ACEOF
4384 if { (ac_try="$ac_cpp conftest.$ac_ext"
4385 case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } >/dev/null && {
4397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4398          test ! -s conftest.err
4399        }; then
4400   # Broken: success on invalid input.
4401 continue
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406   # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4409 fi
4410
4411 rm -f conftest.err conftest.$ac_ext
4412
4413 done
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.err conftest.$ac_ext
4416 if $ac_preproc_ok; then
4417   break
4418 fi
4419
4420     done
4421     ac_cv_prog_CPP=$CPP
4422
4423 fi
4424   CPP=$ac_cv_prog_CPP
4425 else
4426   ac_cv_prog_CPP=$CPP
4427 fi
4428 { echo "$as_me:$LINENO: result: $CPP" >&5
4429 echo "${ECHO_T}$CPP" >&6; }
4430 ac_preproc_ok=false
4431 for ac_c_preproc_warn_flag in '' yes
4432 do
4433   # Use a header file that comes with gcc, so configuring glibc
4434   # with a fresh cross-compiler works.
4435   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4436   # <limits.h> exists even on freestanding compilers.
4437   # On the NeXT, cc -E runs the code through the compiler's parser,
4438   # not just through cpp. "Syntax error" is here to catch this case.
4439   cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h.  */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h.  */
4445 #ifdef __STDC__
4446 # include <limits.h>
4447 #else
4448 # include <assert.h>
4449 #endif
4450                      Syntax error
4451 _ACEOF
4452 if { (ac_try="$ac_cpp conftest.$ac_ext"
4453 case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4459   ac_status=$?
4460   grep -v '^ *+' conftest.er1 >conftest.err
4461   rm -f conftest.er1
4462   cat conftest.err >&5
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); } >/dev/null && {
4465          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4466          test ! -s conftest.err
4467        }; then
4468   :
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473   # Broken: fails on valid input.
4474 continue
4475 fi
4476
4477 rm -f conftest.err conftest.$ac_ext
4478
4479   # OK, works on sane cases.  Now check whether nonexistent headers
4480   # can be detected and how.
4481   cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487 #include <ac_nonexistent.h>
4488 _ACEOF
4489 if { (ac_try="$ac_cpp conftest.$ac_ext"
4490 case "(($ac_try" in
4491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492   *) ac_try_echo=$ac_try;;
4493 esac
4494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4496   ac_status=$?
4497   grep -v '^ *+' conftest.er1 >conftest.err
4498   rm -f conftest.er1
4499   cat conftest.err >&5
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); } >/dev/null && {
4502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4503          test ! -s conftest.err
4504        }; then
4505   # Broken: success on invalid input.
4506 continue
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511   # Passes both tests.
4512 ac_preproc_ok=:
4513 break
4514 fi
4515
4516 rm -f conftest.err conftest.$ac_ext
4517
4518 done
4519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4520 rm -f conftest.err conftest.$ac_ext
4521 if $ac_preproc_ok; then
4522   :
4523 else
4524   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4525 See \`config.log' for more details." >&5
4526 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4527 See \`config.log' for more details." >&2;}
4528    { (exit 1); exit 1; }; }
4529 fi
4530
4531 ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537
4538 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4539 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4540 if test "${ac_cv_header_stdc+set}" = set; then
4541   echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543   cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h.  */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h.  */
4549 #include <stdlib.h>
4550 #include <stdarg.h>
4551 #include <string.h>
4552 #include <float.h>
4553
4554 int
4555 main ()
4556 {
4557
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 rm -f conftest.$ac_objext
4563 if { (ac_try="$ac_compile"
4564 case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569   (eval "$ac_compile") 2>conftest.er1
4570   ac_status=$?
4571   grep -v '^ *+' conftest.er1 >conftest.err
4572   rm -f conftest.er1
4573   cat conftest.err >&5
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); } && {
4576          test -z "$ac_c_werror_flag" ||
4577          test ! -s conftest.err
4578        } && test -s conftest.$ac_objext; then
4579   ac_cv_header_stdc=yes
4580 else
4581   echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584         ac_cv_header_stdc=no
4585 fi
4586
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588
4589 if test $ac_cv_header_stdc = yes; then
4590   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591   cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597 #include <string.h>
4598
4599 _ACEOF
4600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601   $EGREP "memchr" >/dev/null 2>&1; then
4602   :
4603 else
4604   ac_cv_header_stdc=no
4605 fi
4606 rm -f conftest*
4607
4608 fi
4609
4610 if test $ac_cv_header_stdc = yes; then
4611   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4612   cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h.  */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h.  */
4618 #include <stdlib.h>
4619
4620 _ACEOF
4621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622   $EGREP "free" >/dev/null 2>&1; then
4623   :
4624 else
4625   ac_cv_header_stdc=no
4626 fi
4627 rm -f conftest*
4628
4629 fi
4630
4631 if test $ac_cv_header_stdc = yes; then
4632   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4633   if test "$cross_compiling" = yes; then
4634   :
4635 else
4636   cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642 #include <ctype.h>
4643 #include <stdlib.h>
4644 #if ((' ' & 0x0FF) == 0x020)
4645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4647 #else
4648 # define ISLOWER(c) \
4649                    (('a' <= (c) && (c) <= 'i') \
4650                      || ('j' <= (c) && (c) <= 'r') \
4651                      || ('s' <= (c) && (c) <= 'z'))
4652 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4653 #endif
4654
4655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4656 int
4657 main ()
4658 {
4659   int i;
4660   for (i = 0; i < 256; i++)
4661     if (XOR (islower (i), ISLOWER (i))
4662         || toupper (i) != TOUPPER (i))
4663       return 2;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest$ac_exeext
4668 if { (ac_try="$ac_link"
4669 case "(($ac_try" in
4670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671   *) ac_try_echo=$ac_try;;
4672 esac
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674   (eval "$ac_link") 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4678   { (case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683   (eval "$ac_try") 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   :
4688 else
4689   echo "$as_me: program exited with status $ac_status" >&5
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 ( exit $ac_status )
4694 ac_cv_header_stdc=no
4695 fi
4696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4697 fi
4698
4699
4700 fi
4701 fi
4702 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4703 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4704 if test $ac_cv_header_stdc = yes; then
4705
4706 cat >>confdefs.h <<\_ACEOF
4707 #define STDC_HEADERS 1
4708 _ACEOF
4709
4710 fi
4711
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4723                   inttypes.h stdint.h unistd.h
4724 do
4725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4729   echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 $ac_includes_default
4738
4739 #include <$ac_header>
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4743 case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748   (eval "$ac_compile") 2>conftest.er1
4749   ac_status=$?
4750   grep -v '^ *+' conftest.er1 >conftest.err
4751   rm -f conftest.er1
4752   cat conftest.err >&5
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); } && {
4755          test -z "$ac_c_werror_flag" ||
4756          test ! -s conftest.err
4757        } && test -s conftest.$ac_objext; then
4758   eval "$as_ac_Header=yes"
4759 else
4760   echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763         eval "$as_ac_Header=no"
4764 fi
4765
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 ac_res=`eval echo '${'$as_ac_Header'}'`
4769                { echo "$as_me:$LINENO: result: $ac_res" >&5
4770 echo "${ECHO_T}$ac_res" >&6; }
4771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4772   cat >>confdefs.h <<_ACEOF
4773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4774 _ACEOF
4775
4776 fi
4777
4778 done
4779
4780
4781
4782 for ac_header in dlfcn.h
4783 do
4784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4786   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 fi
4791 ac_res=`eval echo '${'$as_ac_Header'}'`
4792                { echo "$as_me:$LINENO: result: $ac_res" >&5
4793 echo "${ECHO_T}$ac_res" >&6; }
4794 else
4795   # Is the header compilable?
4796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4798 cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 $ac_includes_default
4805 #include <$ac_header>
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (ac_try="$ac_compile"
4809 case "(($ac_try" in
4810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811   *) ac_try_echo=$ac_try;;
4812 esac
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814   (eval "$ac_compile") 2>conftest.er1
4815   ac_status=$?
4816   grep -v '^ *+' conftest.er1 >conftest.err
4817   rm -f conftest.er1
4818   cat conftest.err >&5
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } && {
4821          test -z "$ac_c_werror_flag" ||
4822          test ! -s conftest.err
4823        } && test -s conftest.$ac_objext; then
4824   ac_header_compiler=yes
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829         ac_header_compiler=no
4830 fi
4831
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4834 echo "${ECHO_T}$ac_header_compiler" >&6; }
4835
4836 # Is the header present?
4837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 #include <$ac_header>
4846 _ACEOF
4847 if { (ac_try="$ac_cpp conftest.$ac_ext"
4848 case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4854   ac_status=$?
4855   grep -v '^ *+' conftest.er1 >conftest.err
4856   rm -f conftest.er1
4857   cat conftest.err >&5
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); } >/dev/null && {
4860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861          test ! -s conftest.err
4862        }; then
4863   ac_header_preproc=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868   ac_header_preproc=no
4869 fi
4870
4871 rm -f conftest.err conftest.$ac_ext
4872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873 echo "${ECHO_T}$ac_header_preproc" >&6; }
4874
4875 # So?  What about this header?
4876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4877   yes:no: )
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4882     ac_header_preproc=yes
4883     ;;
4884   no:yes:* )
4885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4897
4898     ;;
4899 esac
4900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   eval "$as_ac_Header=\$ac_header_preproc"
4906 fi
4907 ac_res=`eval echo '${'$as_ac_Header'}'`
4908                { echo "$as_me:$LINENO: result: $ac_res" >&5
4909 echo "${ECHO_T}$ac_res" >&6; }
4910
4911 fi
4912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4913   cat >>confdefs.h <<_ACEOF
4914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4915 _ACEOF
4916
4917 fi
4918
4919 done
4920
4921 ac_ext=cpp
4922 ac_cpp='$CXXCPP $CPPFLAGS'
4923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4926 if test -z "$CXX"; then
4927   if test -n "$CCC"; then
4928     CXX=$CCC
4929   else
4930     if test -n "$ac_tool_prefix"; then
4931   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4932   do
4933     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_CXX+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   if test -n "$CXX"; then
4941   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948   for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 CXX=$ac_cv_prog_CXX
4961 if test -n "$CXX"; then
4962   { echo "$as_me:$LINENO: result: $CXX" >&5
4963 echo "${ECHO_T}$CXX" >&6; }
4964 else
4965   { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4967 fi
4968
4969
4970     test -n "$CXX" && break
4971   done
4972 fi
4973 if test -z "$CXX"; then
4974   ac_ct_CXX=$CXX
4975   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4976 do
4977   # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   if test -n "$ac_ct_CXX"; then
4985   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992   for ac_exec_ext in '' $ac_executable_extensions; do
4993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994     ac_cv_prog_ac_ct_CXX="$ac_prog"
4995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999 done
5000 IFS=$as_save_IFS
5001
5002 fi
5003 fi
5004 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5005 if test -n "$ac_ct_CXX"; then
5006   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5007 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5008 else
5009   { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5011 fi
5012
5013
5014   test -n "$ac_ct_CXX" && break
5015 done
5016
5017   if test "x$ac_ct_CXX" = x; then
5018     CXX="g++"
5019   else
5020     case $cross_compiling:$ac_tool_warned in
5021 yes:)
5022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet.  If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&5
5025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5026 whose name does not start with the host triplet.  If you think this
5027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5028 ac_tool_warned=yes ;;
5029 esac
5030     CXX=$ac_ct_CXX
5031   fi
5032 fi
5033
5034   fi
5035 fi
5036 # Provide some information about the compiler.
5037 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5038 ac_compiler=`set X $ac_compile; echo $2`
5039 { (ac_try="$ac_compiler --version >&5"
5040 case "(($ac_try" in
5041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042   *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045   (eval "$ac_compiler --version >&5") 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }
5049 { (ac_try="$ac_compiler -v >&5"
5050 case "(($ac_try" in
5051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052   *) ac_try_echo=$ac_try;;
5053 esac
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055   (eval "$ac_compiler -v >&5") 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }
5059 { (ac_try="$ac_compiler -V >&5"
5060 case "(($ac_try" in
5061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062   *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065   (eval "$ac_compiler -V >&5") 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }
5069
5070 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5071 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5072 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081
5082 int
5083 main ()
5084 {
5085 #ifndef __GNUC__
5086        choke me
5087 #endif
5088
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (ac_try="$ac_compile"
5095 case "(($ac_try" in
5096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097   *) ac_try_echo=$ac_try;;
5098 esac
5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100   (eval "$ac_compile") 2>conftest.er1
5101   ac_status=$?
5102   grep -v '^ *+' conftest.er1 >conftest.err
5103   rm -f conftest.er1
5104   cat conftest.err >&5
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } && {
5107          test -z "$ac_cxx_werror_flag" ||
5108          test ! -s conftest.err
5109        } && test -s conftest.$ac_objext; then
5110   ac_compiler_gnu=yes
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115         ac_compiler_gnu=no
5116 fi
5117
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5120
5121 fi
5122 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5123 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5124 GXX=`test $ac_compiler_gnu = yes && echo yes`
5125 ac_test_CXXFLAGS=${CXXFLAGS+set}
5126 ac_save_CXXFLAGS=$CXXFLAGS
5127 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5128 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5129 if test "${ac_cv_prog_cxx_g+set}" = set; then
5130   echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5133    ac_cxx_werror_flag=yes
5134    ac_cv_prog_cxx_g=no
5135    CXXFLAGS="-g"
5136    cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142
5143 int
5144 main ()
5145 {
5146
5147   ;
5148   return 0;
5149 }
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (ac_try="$ac_compile"
5153 case "(($ac_try" in
5154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155   *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158   (eval "$ac_compile") 2>conftest.er1
5159   ac_status=$?
5160   grep -v '^ *+' conftest.er1 >conftest.err
5161   rm -f conftest.er1
5162   cat conftest.err >&5
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } && {
5165          test -z "$ac_cxx_werror_flag" ||
5166          test ! -s conftest.err
5167        } && test -s conftest.$ac_objext; then
5168   ac_cv_prog_cxx_g=yes
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173         CXXFLAGS=""
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
5181 int
5182 main ()
5183 {
5184
5185   ;
5186   return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest.$ac_objext
5190 if { (ac_try="$ac_compile"
5191 case "(($ac_try" in
5192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193   *) ac_try_echo=$ac_try;;
5194 esac
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196   (eval "$ac_compile") 2>conftest.er1
5197   ac_status=$?
5198   grep -v '^ *+' conftest.er1 >conftest.err
5199   rm -f conftest.er1
5200   cat conftest.err >&5
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } && {
5203          test -z "$ac_cxx_werror_flag" ||
5204          test ! -s conftest.err
5205        } && test -s conftest.$ac_objext; then
5206   :
5207 else
5208   echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5212          CXXFLAGS="-g"
5213          cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h.  */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h.  */
5219
5220 int
5221 main ()
5222 {
5223
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_compile") 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } && {
5242          test -z "$ac_cxx_werror_flag" ||
5243          test ! -s conftest.err
5244        } && test -s conftest.$ac_objext; then
5245   ac_cv_prog_cxx_g=yes
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250
5251 fi
5252
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 fi
5255
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 fi
5258
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5261 fi
5262 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5263 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5264 if test "$ac_test_CXXFLAGS" = set; then
5265   CXXFLAGS=$ac_save_CXXFLAGS
5266 elif test $ac_cv_prog_cxx_g = yes; then
5267   if test "$GXX" = yes; then
5268     CXXFLAGS="-g -O2"
5269   else
5270     CXXFLAGS="-g"
5271   fi
5272 else
5273   if test "$GXX" = yes; then
5274     CXXFLAGS="-O2"
5275   else
5276     CXXFLAGS=
5277   fi
5278 fi
5279 ac_ext=cpp
5280 ac_cpp='$CXXCPP $CPPFLAGS'
5281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5284
5285 ac_ext=cpp
5286 ac_cpp='$CXXCPP $CPPFLAGS'
5287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5290 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5291 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5292 if test -z "$CXXCPP"; then
5293   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296       # Double quotes because CXXCPP needs to be expanded
5297     for CXXCPP in "$CXX -E" "/lib/cpp"
5298     do
5299       ac_preproc_ok=false
5300 for ac_cxx_preproc_warn_flag in '' yes
5301 do
5302   # Use a header file that comes with gcc, so configuring glibc
5303   # with a fresh cross-compiler works.
5304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5305   # <limits.h> exists even on freestanding compilers.
5306   # On the NeXT, cc -E runs the code through the compiler's parser,
5307   # not just through cpp. "Syntax error" is here to catch this case.
5308   cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h.  */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h.  */
5314 #ifdef __STDC__
5315 # include <limits.h>
5316 #else
5317 # include <assert.h>
5318 #endif
5319                      Syntax error
5320 _ACEOF
5321 if { (ac_try="$ac_cpp conftest.$ac_ext"
5322 case "(($ac_try" in
5323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324   *) ac_try_echo=$ac_try;;
5325 esac
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5328   ac_status=$?
5329   grep -v '^ *+' conftest.er1 >conftest.err
5330   rm -f conftest.er1
5331   cat conftest.err >&5
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } >/dev/null && {
5334          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5335          test ! -s conftest.err
5336        }; then
5337   :
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342   # Broken: fails on valid input.
5343 continue
5344 fi
5345
5346 rm -f conftest.err conftest.$ac_ext
5347
5348   # OK, works on sane cases.  Now check whether nonexistent headers
5349   # can be detected and how.
5350   cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356 #include <ac_nonexistent.h>
5357 _ACEOF
5358 if { (ac_try="$ac_cpp conftest.$ac_ext"
5359 case "(($ac_try" in
5360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361   *) ac_try_echo=$ac_try;;
5362 esac
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5365   ac_status=$?
5366   grep -v '^ *+' conftest.er1 >conftest.err
5367   rm -f conftest.er1
5368   cat conftest.err >&5
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } >/dev/null && {
5371          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5372          test ! -s conftest.err
5373        }; then
5374   # Broken: success on invalid input.
5375 continue
5376 else
5377   echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380   # Passes both tests.
5381 ac_preproc_ok=:
5382 break
5383 fi
5384
5385 rm -f conftest.err conftest.$ac_ext
5386
5387 done
5388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5389 rm -f conftest.err conftest.$ac_ext
5390 if $ac_preproc_ok; then
5391   break
5392 fi
5393
5394     done
5395     ac_cv_prog_CXXCPP=$CXXCPP
5396
5397 fi
5398   CXXCPP=$ac_cv_prog_CXXCPP
5399 else
5400   ac_cv_prog_CXXCPP=$CXXCPP
5401 fi
5402 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5403 echo "${ECHO_T}$CXXCPP" >&6; }
5404 ac_preproc_ok=false
5405 for ac_cxx_preproc_warn_flag in '' yes
5406 do
5407   # Use a header file that comes with gcc, so configuring glibc
5408   # with a fresh cross-compiler works.
5409   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5410   # <limits.h> exists even on freestanding compilers.
5411   # On the NeXT, cc -E runs the code through the compiler's parser,
5412   # not just through cpp. "Syntax error" is here to catch this case.
5413   cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h.  */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h.  */
5419 #ifdef __STDC__
5420 # include <limits.h>
5421 #else
5422 # include <assert.h>
5423 #endif
5424                      Syntax error
5425 _ACEOF
5426 if { (ac_try="$ac_cpp conftest.$ac_ext"
5427 case "(($ac_try" in
5428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429   *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5433   ac_status=$?
5434   grep -v '^ *+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } >/dev/null && {
5439          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5440          test ! -s conftest.err
5441        }; then
5442   :
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447   # Broken: fails on valid input.
5448 continue
5449 fi
5450
5451 rm -f conftest.err conftest.$ac_ext
5452
5453   # OK, works on sane cases.  Now check whether nonexistent headers
5454   # can be detected and how.
5455   cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 #include <ac_nonexistent.h>
5462 _ACEOF
5463 if { (ac_try="$ac_cpp conftest.$ac_ext"
5464 case "(($ac_try" in
5465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466   *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5470   ac_status=$?
5471   grep -v '^ *+' conftest.er1 >conftest.err
5472   rm -f conftest.er1
5473   cat conftest.err >&5
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); } >/dev/null && {
5476          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5477          test ! -s conftest.err
5478        }; then
5479   # Broken: success on invalid input.
5480 continue
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485   # Passes both tests.
5486 ac_preproc_ok=:
5487 break
5488 fi
5489
5490 rm -f conftest.err conftest.$ac_ext
5491
5492 done
5493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5494 rm -f conftest.err conftest.$ac_ext
5495 if $ac_preproc_ok; then
5496   :
5497 else
5498   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5499 See \`config.log' for more details." >&5
5500 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5501 See \`config.log' for more details." >&2;}
5502    { (exit 1); exit 1; }; }
5503 fi
5504
5505 ac_ext=cpp
5506 ac_cpp='$CXXCPP $CPPFLAGS'
5507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5510
5511
5512 ac_ext=f
5513 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5514 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5516 if test -n "$ac_tool_prefix"; then
5517   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
5518   do
5519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_F77+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   if test -n "$F77"; then
5527   ac_cv_prog_F77="$F77" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534   for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 F77=$ac_cv_prog_F77
5547 if test -n "$F77"; then
5548   { echo "$as_me:$LINENO: result: $F77" >&5
5549 echo "${ECHO_T}$F77" >&6; }
5550 else
5551   { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5553 fi
5554
5555
5556     test -n "$F77" && break
5557   done
5558 fi
5559 if test -z "$F77"; then
5560   ac_ct_F77=$F77
5561   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
5562 do
5563   # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   if test -n "$ac_ct_F77"; then
5571   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578   for ac_exec_ext in '' $ac_executable_extensions; do
5579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580     ac_cv_prog_ac_ct_F77="$ac_prog"
5581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585 done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5591 if test -n "$ac_ct_F77"; then
5592   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5593 echo "${ECHO_T}$ac_ct_F77" >&6; }
5594 else
5595   { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5597 fi
5598
5599
5600   test -n "$ac_ct_F77" && break
5601 done
5602
5603   if test "x$ac_ct_F77" = x; then
5604     F77=""
5605   else
5606     case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet.  If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&5
5611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612 whose name does not start with the host triplet.  If you think this
5613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616     F77=$ac_ct_F77
5617   fi
5618 fi
5619
5620
5621 # Provide some information about the compiler.
5622 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5623 ac_compiler=`set X $ac_compile; echo $2`
5624 { (ac_try="$ac_compiler --version >&5"
5625 case "(($ac_try" in
5626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627   *) ac_try_echo=$ac_try;;
5628 esac
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630   (eval "$ac_compiler --version >&5") 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); }
5634 { (ac_try="$ac_compiler -v >&5"
5635 case "(($ac_try" in
5636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637   *) ac_try_echo=$ac_try;;
5638 esac
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640   (eval "$ac_compiler -v >&5") 2>&5
5641   ac_status=$?
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); }
5644 { (ac_try="$ac_compiler -V >&5"
5645 case "(($ac_try" in
5646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647   *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650   (eval "$ac_compiler -V >&5") 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }
5654 rm -f a.out
5655
5656 # If we don't use `.F' as extension, the preprocessor is not run on the
5657 # input file.  (Note that this only needs to work for GNU compilers.)
5658 ac_save_ext=$ac_ext
5659 ac_ext=F
5660 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5661 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5662 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   cat >conftest.$ac_ext <<_ACEOF
5666       program main
5667 #ifndef __GNUC__
5668        choke me
5669 #endif
5670
5671       end
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5675 case "(($ac_try" in
5676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677   *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680   (eval "$ac_compile") 2>conftest.er1
5681   ac_status=$?
5682   grep -v '^ *+' conftest.er1 >conftest.err
5683   rm -f conftest.er1
5684   cat conftest.err >&5
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } && {
5687          test -z "$ac_f77_werror_flag" ||
5688          test ! -s conftest.err
5689        } && test -s conftest.$ac_objext; then
5690   ac_compiler_gnu=yes
5691 else
5692   echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5694
5695         ac_compiler_gnu=no
5696 fi
5697
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5700
5701 fi
5702 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5703 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5704 ac_ext=$ac_save_ext
5705 ac_test_FFLAGS=${FFLAGS+set}
5706 ac_save_FFLAGS=$FFLAGS
5707 FFLAGS=
5708 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5709 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_f77_g+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   FFLAGS=-g
5714 cat >conftest.$ac_ext <<_ACEOF
5715       program main
5716
5717       end
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723   *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726   (eval "$ac_compile") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } && {
5733          test -z "$ac_f77_werror_flag" ||
5734          test ! -s conftest.err
5735        } && test -s conftest.$ac_objext; then
5736   ac_cv_prog_f77_g=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741         ac_cv_prog_f77_g=no
5742 fi
5743
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745
5746 fi
5747 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5748 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5749 if test "$ac_test_FFLAGS" = set; then
5750   FFLAGS=$ac_save_FFLAGS
5751 elif test $ac_cv_prog_f77_g = yes; then
5752   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5753     FFLAGS="-g -O2"
5754   else
5755     FFLAGS="-g"
5756   fi
5757 else
5758   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5759     FFLAGS="-O2"
5760   else
5761     FFLAGS=
5762   fi
5763 fi
5764
5765 G77=`test $ac_compiler_gnu = yes && echo yes`
5766 ac_ext=c
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771
5772
5773
5774 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5775
5776 # find the maximum length of command line arguments
5777 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5778 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5779 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782     i=0
5783   teststring="ABCD"
5784
5785   case $build_os in
5786   msdosdjgpp*)
5787     # On DJGPP, this test can blow up pretty badly due to problems in libc
5788     # (any single argument exceeding 2000 bytes causes a buffer overrun
5789     # during glob expansion).  Even if it were fixed, the result of this
5790     # check would be larger than it should be.
5791     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5792     ;;
5793
5794   gnu*)
5795     # Under GNU Hurd, this test is not required because there is
5796     # no limit to the length of command line arguments.
5797     # Libtool will interpret -1 as no limit whatsoever
5798     lt_cv_sys_max_cmd_len=-1;
5799     ;;
5800
5801   cygwin* | mingw*)
5802     # On Win9x/ME, this test blows up -- it succeeds, but takes
5803     # about 5 minutes as the teststring grows exponentially.
5804     # Worse, since 9x/ME are not pre-emptively multitasking,
5805     # you end up with a "frozen" computer, even though with patience
5806     # the test eventually succeeds (with a max line length of 256k).
5807     # Instead, let's just punt: use the minimum linelength reported by
5808     # all of the supported platforms: 8192 (on NT/2K/XP).
5809     lt_cv_sys_max_cmd_len=8192;
5810     ;;
5811
5812   amigaos*)
5813     # On AmigaOS with pdksh, this test takes hours, literally.
5814     # So we just punt and use a minimum line length of 8192.
5815     lt_cv_sys_max_cmd_len=8192;
5816     ;;
5817
5818  *)
5819     # If test is not a shell built-in, we'll probably end up computing a
5820     # maximum length that is only half of the actual maximum length, but
5821     # we can't tell.
5822     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5823                = "XX$teststring") >/dev/null 2>&1 &&
5824             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5825             lt_cv_sys_max_cmd_len=$new_result &&
5826             test $i != 17 # 1/2 MB should be enough
5827     do
5828       i=`expr $i + 1`
5829       teststring=$teststring$teststring
5830     done
5831     teststring=
5832     # Add a significant safety factor because C++ compilers can tack on massive
5833     # amounts of additional arguments before passing them to the linker.
5834     # It appears as though 1/2 is a usable value.
5835     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5836     ;;
5837   esac
5838
5839 fi
5840
5841 if test -n $lt_cv_sys_max_cmd_len ; then
5842   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5843 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5844 else
5845   { echo "$as_me:$LINENO: result: none" >&5
5846 echo "${ECHO_T}none" >&6; }
5847 fi
5848
5849
5850
5851
5852 # Check for command to grab the raw symbol name followed by C symbol from nm.
5853 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5854 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5855 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858
5859 # These are sane defaults that work on at least a few old systems.
5860 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5861
5862 # Character class describing NM global symbol codes.
5863 symcode='[BCDEGRST]'
5864
5865 # Regexp to match symbols that can be accessed directly from C.
5866 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5867
5868 # Transform the above into a raw symbol and a C symbol.
5869 symxfrm='\1 \2\3 \3'
5870
5871 # Transform an extracted symbol line into a proper C declaration
5872 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5873
5874 # Transform an extracted symbol line into symbol name and symbol address
5875 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'"
5876
5877 # Define system-specific variables.
5878 case $host_os in
5879 aix*)
5880   symcode='[BCDT]'
5881   ;;
5882 cygwin* | mingw* | pw32*)
5883   symcode='[ABCDGISTW]'
5884   ;;
5885 hpux*) # Its linker distinguishes data from code symbols
5886   if test "$host_cpu" = ia64; then
5887     symcode='[ABCDEGRST]'
5888   fi
5889   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5890   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'"
5891   ;;
5892 irix* | nonstopux*)
5893   symcode='[BCDEGRST]'
5894   ;;
5895 osf*)
5896   symcode='[BCDEGQRST]'
5897   ;;
5898 solaris* | sysv5*)
5899   symcode='[BDRT]'
5900   ;;
5901 sysv4)
5902   symcode='[DFNSTU]'
5903   ;;
5904 esac
5905
5906 # Handle CRLF in mingw tool chain
5907 opt_cr=
5908 case $build_os in
5909 mingw*)
5910   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5911   ;;
5912 esac
5913
5914 # If we're using GNU nm, then use its standard symbol codes.
5915 case `$NM -V 2>&1` in
5916 *GNU* | *'with BFD'*)
5917   symcode='[ABCDGIRSTW]' ;;
5918 esac
5919
5920 # Try without a prefix undercore, then with it.
5921 for ac_symprfx in "" "_"; do
5922
5923   # Write the raw and C identifiers.
5924   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5925
5926   # Check to see that the pipe works correctly.
5927   pipe_works=no
5928
5929   rm -f conftest*
5930   cat > conftest.$ac_ext <<EOF
5931 #ifdef __cplusplus
5932 extern "C" {
5933 #endif
5934 char nm_test_var;
5935 void nm_test_func(){}
5936 #ifdef __cplusplus
5937 }
5938 #endif
5939 int main(){nm_test_var='a';nm_test_func();return(0);}
5940 EOF
5941
5942   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943   (eval $ac_compile) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; then
5947     # Now try to grab the symbols.
5948     nlist=conftest.nm
5949     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5950   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5951   ac_status=$?
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } && test -s "$nlist"; then
5954       # Try sorting and uniquifying the output.
5955       if sort "$nlist" | uniq > "$nlist"T; then
5956         mv -f "$nlist"T "$nlist"
5957       else
5958         rm -f "$nlist"T
5959       fi
5960
5961       # Make sure that we snagged all the symbols we need.
5962       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5963         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5964           cat <<EOF > conftest.$ac_ext
5965 #ifdef __cplusplus
5966 extern "C" {
5967 #endif
5968
5969 EOF
5970           # Now generate the symbol file.
5971           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5972
5973           cat <<EOF >> conftest.$ac_ext
5974 #if defined (__STDC__) && __STDC__
5975 # define lt_ptr_t void *
5976 #else
5977 # define lt_ptr_t char *
5978 # define const
5979 #endif
5980
5981 /* The mapping between symbol names and symbols. */
5982 const struct {
5983   const char *name;
5984   lt_ptr_t address;
5985 }
5986 lt_preloaded_symbols[] =
5987 {
5988 EOF
5989           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5990           cat <<\EOF >> conftest.$ac_ext
5991   {0, (lt_ptr_t) 0}
5992 };
5993
5994 #ifdef __cplusplus
5995 }
5996 #endif
5997 EOF
5998           # Now try linking the two files.
5999           mv conftest.$ac_objext conftstm.$ac_objext
6000           lt_save_LIBS="$LIBS"
6001           lt_save_CFLAGS="$CFLAGS"
6002           LIBS="conftstm.$ac_objext"
6003           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6004           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005   (eval $ac_link) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6009             pipe_works=yes
6010           fi
6011           LIBS="$lt_save_LIBS"
6012           CFLAGS="$lt_save_CFLAGS"
6013         else
6014           echo "cannot find nm_test_func in $nlist" >&5
6015         fi
6016       else
6017         echo "cannot find nm_test_var in $nlist" >&5
6018       fi
6019     else
6020       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6021     fi
6022   else
6023     echo "$progname: failed program was:" >&5
6024     cat conftest.$ac_ext >&5
6025   fi
6026   rm -f conftest* conftst*
6027
6028   # Do not use the global_symbol_pipe unless it works.
6029   if test "$pipe_works" = yes; then
6030     break
6031   else
6032     lt_cv_sys_global_symbol_pipe=
6033   fi
6034 done
6035
6036 fi
6037
6038 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6039   lt_cv_sys_global_symbol_to_cdecl=
6040 fi
6041 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6042   { echo "$as_me:$LINENO: result: failed" >&5
6043 echo "${ECHO_T}failed" >&6; }
6044 else
6045   { echo "$as_me:$LINENO: result: ok" >&5
6046 echo "${ECHO_T}ok" >&6; }
6047 fi
6048
6049 { echo "$as_me:$LINENO: checking for objdir" >&5
6050 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6051 if test "${lt_cv_objdir+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   rm -f .libs 2>/dev/null
6055 mkdir .libs 2>/dev/null
6056 if test -d .libs; then
6057   lt_cv_objdir=.libs
6058 else
6059   # MS-DOS does not allow filenames that begin with a dot.
6060   lt_cv_objdir=_libs
6061 fi
6062 rmdir .libs 2>/dev/null
6063 fi
6064 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6065 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6066 objdir=$lt_cv_objdir
6067
6068
6069
6070
6071
6072 case $host_os in
6073 aix3*)
6074   # AIX sometimes has problems with the GCC collect2 program.  For some
6075   # reason, if we set the COLLECT_NAMES environment variable, the problems
6076   # vanish in a puff of smoke.
6077   if test "X${COLLECT_NAMES+set}" != Xset; then
6078     COLLECT_NAMES=
6079     export COLLECT_NAMES
6080   fi
6081   ;;
6082 esac
6083
6084 # Sed substitution that helps us do robust quoting.  It backslashifies
6085 # metacharacters that are still active within double-quoted strings.
6086 Xsed='sed -e s/^X//'
6087 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6088
6089 # Same as above, but do not quote variable references.
6090 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6091
6092 # Sed substitution to delay expansion of an escaped shell variable in a
6093 # double_quote_subst'ed string.
6094 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6095
6096 # Sed substitution to avoid accidental globbing in evaled expressions
6097 no_glob_subst='s/\*/\\\*/g'
6098
6099 # Constants:
6100 rm="rm -f"
6101
6102 # Global variables:
6103 default_ofile=libtool
6104 can_build_shared=yes
6105
6106 # All known linkers require a `.a' archive for static linking (except M$VC,
6107 # which needs '.lib').
6108 libext=a
6109 ltmain="$ac_aux_dir/ltmain.sh"
6110 ofile="$default_ofile"
6111 with_gnu_ld="$lt_cv_prog_gnu_ld"
6112
6113 if test -n "$ac_tool_prefix"; then
6114   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ar; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_AR+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   if test -n "$AR"; then
6122   ac_cv_prog_AR="$AR" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129   for ac_exec_ext in '' $ac_executable_extensions; do
6130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131     ac_cv_prog_AR="${ac_tool_prefix}ar"
6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 AR=$ac_cv_prog_AR
6142 if test -n "$AR"; then
6143   { echo "$as_me:$LINENO: result: $AR" >&5
6144 echo "${ECHO_T}$AR" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6148 fi
6149
6150
6151 fi
6152 if test -z "$ac_cv_prog_AR"; then
6153   ac_ct_AR=$AR
6154   # Extract the first word of "ar", so it can be a program name with args.
6155 set dummy ar; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   if test -n "$ac_ct_AR"; then
6162   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169   for ac_exec_ext in '' $ac_executable_extensions; do
6170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171     ac_cv_prog_ac_ct_AR="ar"
6172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173     break 2
6174   fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6182 if test -n "$ac_ct_AR"; then
6183   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6184 echo "${ECHO_T}$ac_ct_AR" >&6; }
6185 else
6186   { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6188 fi
6189
6190   if test "x$ac_ct_AR" = x; then
6191     AR="false"
6192   else
6193     case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet.  If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet.  If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203     AR=$ac_ct_AR
6204   fi
6205 else
6206   AR="$ac_cv_prog_AR"
6207 fi
6208
6209 if test -n "$ac_tool_prefix"; then
6210   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_RANLIB+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   if test -n "$RANLIB"; then
6218   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225   for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 RANLIB=$ac_cv_prog_RANLIB
6238 if test -n "$RANLIB"; then
6239   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6240 echo "${ECHO_T}$RANLIB" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6244 fi
6245
6246
6247 fi
6248 if test -z "$ac_cv_prog_RANLIB"; then
6249   ac_ct_RANLIB=$RANLIB
6250   # Extract the first word of "ranlib", so it can be a program name with args.
6251 set dummy ranlib; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   if test -n "$ac_ct_RANLIB"; then
6258   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265   for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_prog_ac_ct_RANLIB="ranlib"
6268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6278 if test -n "$ac_ct_RANLIB"; then
6279   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6280 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6281 else
6282   { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6284 fi
6285
6286   if test "x$ac_ct_RANLIB" = x; then
6287     RANLIB=":"
6288   else
6289     case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet.  If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&5
6294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet.  If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6297 ac_tool_warned=yes ;;
6298 esac
6299     RANLIB=$ac_ct_RANLIB
6300   fi
6301 else
6302   RANLIB="$ac_cv_prog_RANLIB"
6303 fi
6304
6305 if test -n "$ac_tool_prefix"; then
6306   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}strip; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_prog_STRIP+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   if test -n "$STRIP"; then
6314   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319   IFS=$as_save_IFS
6320   test -z "$as_dir" && as_dir=.
6321   for ac_exec_ext in '' $ac_executable_extensions; do
6322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325     break 2
6326   fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 STRIP=$ac_cv_prog_STRIP
6334 if test -n "$STRIP"; then
6335   { echo "$as_me:$LINENO: result: $STRIP" >&5
6336 echo "${ECHO_T}$STRIP" >&6; }
6337 else
6338   { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6340 fi
6341
6342
6343 fi
6344 if test -z "$ac_cv_prog_STRIP"; then
6345   ac_ct_STRIP=$STRIP
6346   # Extract the first word of "strip", so it can be a program name with args.
6347 set dummy strip; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   if test -n "$ac_ct_STRIP"; then
6354   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359   IFS=$as_save_IFS
6360   test -z "$as_dir" && as_dir=.
6361   for ac_exec_ext in '' $ac_executable_extensions; do
6362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363     ac_cv_prog_ac_ct_STRIP="strip"
6364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365     break 2
6366   fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6374 if test -n "$ac_ct_STRIP"; then
6375   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6376 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6377 else
6378   { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6380 fi
6381
6382   if test "x$ac_ct_STRIP" = x; then
6383     STRIP=":"
6384   else
6385     case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6388 whose name does not start with the host triplet.  If you think this
6389 configuration is useful to you, please write to autoconf@gnu.org." >&5
6390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6391 whose name does not start with the host triplet.  If you think this
6392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395     STRIP=$ac_ct_STRIP
6396   fi
6397 else
6398   STRIP="$ac_cv_prog_STRIP"
6399 fi
6400
6401
6402 old_CC="$CC"
6403 old_CFLAGS="$CFLAGS"
6404
6405 # Set sane defaults for various variables
6406 test -z "$AR" && AR=ar
6407 test -z "$AR_FLAGS" && AR_FLAGS=cru
6408 test -z "$AS" && AS=as
6409 test -z "$CC" && CC=cc
6410 test -z "$LTCC" && LTCC=$CC
6411 test -z "$DLLTOOL" && DLLTOOL=dlltool
6412 test -z "$LD" && LD=ld
6413 test -z "$LN_S" && LN_S="ln -s"
6414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6415 test -z "$NM" && NM=nm
6416 test -z "$SED" && SED=sed
6417 test -z "$OBJDUMP" && OBJDUMP=objdump
6418 test -z "$RANLIB" && RANLIB=:
6419 test -z "$STRIP" && STRIP=:
6420 test -z "$ac_objext" && ac_objext=o
6421
6422 # Determine commands to create old-style static archives.
6423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6424 old_postinstall_cmds='chmod 644 $oldlib'
6425 old_postuninstall_cmds=
6426
6427 if test -n "$RANLIB"; then
6428   case $host_os in
6429   openbsd*)
6430     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6431     ;;
6432   *)
6433     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6434     ;;
6435   esac
6436   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6437 fi
6438
6439 # Only perform the check for file, if the check method requires it
6440 case $deplibs_check_method in
6441 file_magic*)
6442   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6443     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6444 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   case $MAGIC_CMD in
6449 [\\/*] |  ?:[\\/]*)
6450   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6451   ;;
6452 *)
6453   lt_save_MAGIC_CMD="$MAGIC_CMD"
6454   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6455   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6456   for ac_dir in $ac_dummy; do
6457     IFS="$lt_save_ifs"
6458     test -z "$ac_dir" && ac_dir=.
6459     if test -f $ac_dir/${ac_tool_prefix}file; then
6460       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6461       if test -n "$file_magic_test_file"; then
6462         case $deplibs_check_method in
6463         "file_magic "*)
6464           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6465           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6466           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6467             $EGREP "$file_magic_regex" > /dev/null; then
6468             :
6469           else
6470             cat <<EOF 1>&2
6471
6472 *** Warning: the command libtool uses to detect shared libraries,
6473 *** $file_magic_cmd, produces output that libtool cannot recognize.
6474 *** The result is that libtool may fail to recognize shared libraries
6475 *** as such.  This will affect the creation of libtool libraries that
6476 *** depend on shared libraries, but programs linked with such libtool
6477 *** libraries will work regardless of this problem.  Nevertheless, you
6478 *** may want to report the problem to your system manager and/or to
6479 *** bug-libtool@gnu.org
6480
6481 EOF
6482           fi ;;
6483         esac
6484       fi
6485       break
6486     fi
6487   done
6488   IFS="$lt_save_ifs"
6489   MAGIC_CMD="$lt_save_MAGIC_CMD"
6490   ;;
6491 esac
6492 fi
6493
6494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6495 if test -n "$MAGIC_CMD"; then
6496   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6497 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6498 else
6499   { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6501 fi
6502
6503 if test -z "$lt_cv_path_MAGIC_CMD"; then
6504   if test -n "$ac_tool_prefix"; then
6505     { echo "$as_me:$LINENO: checking for file" >&5
6506 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510   case $MAGIC_CMD in
6511 [\\/*] |  ?:[\\/]*)
6512   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6513   ;;
6514 *)
6515   lt_save_MAGIC_CMD="$MAGIC_CMD"
6516   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6517   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6518   for ac_dir in $ac_dummy; do
6519     IFS="$lt_save_ifs"
6520     test -z "$ac_dir" && ac_dir=.
6521     if test -f $ac_dir/file; then
6522       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6523       if test -n "$file_magic_test_file"; then
6524         case $deplibs_check_method in
6525         "file_magic "*)
6526           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6527           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6528           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6529             $EGREP "$file_magic_regex" > /dev/null; then
6530             :
6531           else
6532             cat <<EOF 1>&2
6533
6534 *** Warning: the command libtool uses to detect shared libraries,
6535 *** $file_magic_cmd, produces output that libtool cannot recognize.
6536 *** The result is that libtool may fail to recognize shared libraries
6537 *** as such.  This will affect the creation of libtool libraries that
6538 *** depend on shared libraries, but programs linked with such libtool
6539 *** libraries will work regardless of this problem.  Nevertheless, you
6540 *** may want to report the problem to your system manager and/or to
6541 *** bug-libtool@gnu.org
6542
6543 EOF
6544           fi ;;
6545         esac
6546       fi
6547       break
6548     fi
6549   done
6550   IFS="$lt_save_ifs"
6551   MAGIC_CMD="$lt_save_MAGIC_CMD"
6552   ;;
6553 esac
6554 fi
6555
6556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6557 if test -n "$MAGIC_CMD"; then
6558   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6559 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6560 else
6561   { echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6; }
6563 fi
6564
6565   else
6566     MAGIC_CMD=:
6567   fi
6568 fi
6569
6570   fi
6571   ;;
6572 esac
6573
6574 enable_dlopen=no
6575 enable_win32_dll=no
6576
6577 # Check whether --enable-libtool-lock was given.
6578 if test "${enable_libtool_lock+set}" = set; then
6579   enableval=$enable_libtool_lock;
6580 fi
6581
6582 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6583
6584
6585 # Check whether --with-pic was given.
6586 if test "${with_pic+set}" = set; then
6587   withval=$with_pic; pic_mode="$withval"
6588 else
6589   pic_mode=default
6590 fi
6591
6592 test -z "$pic_mode" && pic_mode=default
6593
6594 # Use C for the default configuration in the libtool script
6595 tagname=
6596 lt_save_CC="$CC"
6597 ac_ext=c
6598 ac_cpp='$CPP $CPPFLAGS'
6599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602
6603
6604 # Source file extension for C test sources.
6605 ac_ext=c
6606
6607 # Object file extension for compiled C test sources.
6608 objext=o
6609 objext=$objext
6610
6611 # Code to be used in simple compile tests
6612 lt_simple_compile_test_code="int some_variable = 0;\n"
6613
6614 # Code to be used in simple link tests
6615 lt_simple_link_test_code='int main(){return(0);}\n'
6616
6617
6618 # If no C compiler was specified, use CC.
6619 LTCC=${LTCC-"$CC"}
6620
6621 # Allow CC to be a program name with arguments.
6622 compiler=$CC
6623
6624
6625 #
6626 # Check for any special shared library compilation flags.
6627 #
6628 lt_prog_cc_shlib=
6629 if test "$GCC" = no; then
6630   case $host_os in
6631   sco3.2v5*)
6632     lt_prog_cc_shlib='-belf'
6633     ;;
6634   esac
6635 fi
6636 if test -n "$lt_prog_cc_shlib"; then
6637   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6638 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6639   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6640   else
6641     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6642 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6643     lt_cv_prog_cc_can_build_shared=no
6644   fi
6645 fi
6646
6647
6648 #
6649 # Check to make sure the static flag actually works.
6650 #
6651 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6652 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6653 if test "${lt_prog_compiler_static_works+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   lt_prog_compiler_static_works=no
6657    save_LDFLAGS="$LDFLAGS"
6658    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6659    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6660    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6661      # The compiler can only warn and ignore the option if not recognized
6662      # So say no if there are warnings
6663      if test -s conftest.err; then
6664        # Append any errors to the config.log.
6665        cat conftest.err 1>&5
6666      else
6667        lt_prog_compiler_static_works=yes
6668      fi
6669    fi
6670    $rm conftest*
6671    LDFLAGS="$save_LDFLAGS"
6672
6673 fi
6674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6675 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6676
6677 if test x"$lt_prog_compiler_static_works" = xyes; then
6678     :
6679 else
6680     lt_prog_compiler_static=
6681 fi
6682
6683
6684
6685 ## CAVEAT EMPTOR:
6686 ## There is no encapsulation within the following macros, do not change
6687 ## the running order or otherwise move them around unless you know exactly
6688 ## what you are doing...
6689
6690 lt_prog_compiler_no_builtin_flag=
6691
6692 if test "$GCC" = yes; then
6693   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6694
6695
6696 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6697 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6698 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   lt_cv_prog_compiler_rtti_exceptions=no
6702   ac_outfile=conftest.$ac_objext
6703    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6704    lt_compiler_flag="-fno-rtti -fno-exceptions"
6705    # Insert the option either (1) after the last *FLAGS variable, or
6706    # (2) before a word containing "conftest.", or (3) at the end.
6707    # Note that $ac_compile itself does not contain backslashes and begins
6708    # with a dollar sign (not a hyphen), so the echo should work correctly.
6709    # The option is referenced via a variable to avoid confusing sed.
6710    lt_compile=`echo "$ac_compile" | $SED \
6711    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6713    -e 's:$: $lt_compiler_flag:'`
6714    (eval echo "\"\$as_me:6714: $lt_compile\"" >&5)
6715    (eval "$lt_compile" 2>conftest.err)
6716    ac_status=$?
6717    cat conftest.err >&5
6718    echo "$as_me:6718: \$? = $ac_status" >&5
6719    if (exit $ac_status) && test -s "$ac_outfile"; then
6720      # The compiler can only warn and ignore the option if not recognized
6721      # So say no if there are warnings
6722      if test ! -s conftest.err; then
6723        lt_cv_prog_compiler_rtti_exceptions=yes
6724      fi
6725    fi
6726    $rm conftest*
6727
6728 fi
6729 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6731
6732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6733     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6734 else
6735     :
6736 fi
6737
6738 fi
6739
6740 lt_prog_compiler_wl=
6741 lt_prog_compiler_pic=
6742 lt_prog_compiler_static=
6743
6744 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6746
6747   if test "$GCC" = yes; then
6748     lt_prog_compiler_wl='-Wl,'
6749     lt_prog_compiler_static='-static'
6750
6751     case $host_os in
6752       aix*)
6753       # All AIX code is PIC.
6754       if test "$host_cpu" = ia64; then
6755         # AIX 5 now supports IA64 processor
6756         lt_prog_compiler_static='-Bstatic'
6757       fi
6758       ;;
6759
6760     amigaos*)
6761       # FIXME: we need at least 68020 code to build shared libraries, but
6762       # adding the `-m68020' flag to GCC prevents building anything better,
6763       # like `-m68040'.
6764       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6765       ;;
6766
6767     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6768       # PIC is the default for these OSes.
6769       ;;
6770
6771     mingw* | pw32* | os2*)
6772       # This hack is so that the source file can tell whether it is being
6773       # built for inclusion in a dll (and should export symbols for example).
6774       lt_prog_compiler_pic='-DDLL_EXPORT'
6775       ;;
6776
6777     darwin* | rhapsody*)
6778       # PIC is the default on this platform
6779       # Common symbols not allowed in MH_DYLIB files
6780       lt_prog_compiler_pic='-fno-common'
6781       ;;
6782
6783     msdosdjgpp*)
6784       # Just because we use GCC doesn't mean we suddenly get shared libraries
6785       # on systems that don't support them.
6786       lt_prog_compiler_can_build_shared=no
6787       enable_shared=no
6788       ;;
6789
6790     sysv4*MP*)
6791       if test -d /usr/nec; then
6792         lt_prog_compiler_pic=-Kconform_pic
6793       fi
6794       ;;
6795
6796     hpux*)
6797       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6798       # not for PA HP-UX.
6799       case "$host_cpu" in
6800       hppa*64*|ia64*)
6801         # +Z the default
6802         ;;
6803       *)
6804         lt_prog_compiler_pic='-fPIC'
6805         ;;
6806       esac
6807       ;;
6808
6809     *)
6810       lt_prog_compiler_pic='-fPIC'
6811       ;;
6812     esac
6813   else
6814     # PORTME Check for flag to pass linker flags through the system compiler.
6815     case $host_os in
6816     aix*)
6817       lt_prog_compiler_wl='-Wl,'
6818       if test "$host_cpu" = ia64; then
6819         # AIX 5 now supports IA64 processor
6820         lt_prog_compiler_static='-Bstatic'
6821       else
6822         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6823       fi
6824       ;;
6825
6826     mingw* | pw32* | os2*)
6827       # This hack is so that the source file can tell whether it is being
6828       # built for inclusion in a dll (and should export symbols for example).
6829       lt_prog_compiler_pic='-DDLL_EXPORT'
6830       ;;
6831
6832     hpux9* | hpux10* | hpux11*)
6833       lt_prog_compiler_wl='-Wl,'
6834       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6835       # not for PA HP-UX.
6836       case "$host_cpu" in
6837       hppa*64*|ia64*)
6838         # +Z the default
6839         ;;
6840       *)
6841         lt_prog_compiler_pic='+Z'
6842         ;;
6843       esac
6844       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6845       lt_prog_compiler_static='${wl}-a ${wl}archive'
6846       ;;
6847
6848     irix5* | irix6* | nonstopux*)
6849       lt_prog_compiler_wl='-Wl,'
6850       # PIC (with -KPIC) is the default.
6851       lt_prog_compiler_static='-non_shared'
6852       ;;
6853
6854     newsos6)
6855       lt_prog_compiler_pic='-KPIC'
6856       lt_prog_compiler_static='-Bstatic'
6857       ;;
6858
6859     linux*)
6860       case $CC in
6861       icc* | ecc*)
6862         lt_prog_compiler_wl='-Wl,'
6863         lt_prog_compiler_pic='-KPIC'
6864         lt_prog_compiler_static='-static'
6865         ;;
6866       ccc*)
6867         lt_prog_compiler_wl='-Wl,'
6868         # All Alpha code is PIC.
6869         lt_prog_compiler_static='-non_shared'
6870         ;;
6871       esac
6872       ;;
6873
6874     osf3* | osf4* | osf5*)
6875       lt_prog_compiler_wl='-Wl,'
6876       # All OSF/1 code is PIC.
6877       lt_prog_compiler_static='-non_shared'
6878       ;;
6879
6880     sco3.2v5*)
6881       lt_prog_compiler_pic='-Kpic'
6882       lt_prog_compiler_static='-dn'
6883       ;;
6884
6885     solaris*)
6886       lt_prog_compiler_wl='-Wl,'
6887       lt_prog_compiler_pic='-KPIC'
6888       lt_prog_compiler_static='-Bstatic'
6889       ;;
6890
6891     sunos4*)
6892       lt_prog_compiler_wl='-Qoption ld '
6893       lt_prog_compiler_pic='-PIC'
6894       lt_prog_compiler_static='-Bstatic'
6895       ;;
6896
6897     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6898       lt_prog_compiler_wl='-Wl,'
6899       lt_prog_compiler_pic='-KPIC'
6900       lt_prog_compiler_static='-Bstatic'
6901       ;;
6902
6903     sysv4*MP*)
6904       if test -d /usr/nec ;then
6905         lt_prog_compiler_pic='-Kconform_pic'
6906         lt_prog_compiler_static='-Bstatic'
6907       fi
6908       ;;
6909
6910     uts4*)
6911       lt_prog_compiler_pic='-pic'
6912       lt_prog_compiler_static='-Bstatic'
6913       ;;
6914
6915     *)
6916       lt_prog_compiler_can_build_shared=no
6917       ;;
6918     esac
6919   fi
6920
6921 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6922 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6923
6924 #
6925 # Check to make sure the PIC flag actually works.
6926 #
6927 if test -n "$lt_prog_compiler_pic"; then
6928
6929 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6930 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6931 if test "${lt_prog_compiler_pic_works+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   lt_prog_compiler_pic_works=no
6935   ac_outfile=conftest.$ac_objext
6936    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6937    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6938    # Insert the option either (1) after the last *FLAGS variable, or
6939    # (2) before a word containing "conftest.", or (3) at the end.
6940    # Note that $ac_compile itself does not contain backslashes and begins
6941    # with a dollar sign (not a hyphen), so the echo should work correctly.
6942    # The option is referenced via a variable to avoid confusing sed.
6943    lt_compile=`echo "$ac_compile" | $SED \
6944    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6946    -e 's:$: $lt_compiler_flag:'`
6947    (eval echo "\"\$as_me:6947: $lt_compile\"" >&5)
6948    (eval "$lt_compile" 2>conftest.err)
6949    ac_status=$?
6950    cat conftest.err >&5
6951    echo "$as_me:6951: \$? = $ac_status" >&5
6952    if (exit $ac_status) && test -s "$ac_outfile"; then
6953      # The compiler can only warn and ignore the option if not recognized
6954      # So say no if there are warnings
6955      if test ! -s conftest.err; then
6956        lt_prog_compiler_pic_works=yes
6957      fi
6958    fi
6959    $rm conftest*
6960
6961 fi
6962 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6963 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6964
6965 if test x"$lt_prog_compiler_pic_works" = xyes; then
6966     case $lt_prog_compiler_pic in
6967      "" | " "*) ;;
6968      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6969      esac
6970 else
6971     lt_prog_compiler_pic=
6972      lt_prog_compiler_can_build_shared=no
6973 fi
6974
6975 fi
6976 case "$host_os" in
6977   # For platforms which do not support PIC, -DPIC is meaningless:
6978   *djgpp*)
6979     lt_prog_compiler_pic=
6980     ;;
6981   *)
6982     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6983     ;;
6984 esac
6985
6986 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6987 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   lt_cv_prog_compiler_c_o=no
6992    $rm -r conftest 2>/dev/null
6993    mkdir conftest
6994    cd conftest
6995    mkdir out
6996    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6997
6998    lt_compiler_flag="-o out/conftest2.$ac_objext"
6999    # Insert the option either (1) after the last *FLAGS variable, or
7000    # (2) before a word containing "conftest.", or (3) at the end.
7001    # Note that $ac_compile itself does not contain backslashes and begins
7002    # with a dollar sign (not a hyphen), so the echo should work correctly.
7003    lt_compile=`echo "$ac_compile" | $SED \
7004    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7005    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7006    -e 's:$: $lt_compiler_flag:'`
7007    (eval echo "\"\$as_me:7007: $lt_compile\"" >&5)
7008    (eval "$lt_compile" 2>out/conftest.err)
7009    ac_status=$?
7010    cat out/conftest.err >&5
7011    echo "$as_me:7011: \$? = $ac_status" >&5
7012    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7013    then
7014      # The compiler can only warn and ignore the option if not recognized
7015      # So say no if there are warnings
7016      if test ! -s out/conftest.err; then
7017        lt_cv_prog_compiler_c_o=yes
7018      fi
7019    fi
7020    chmod u+w .
7021    $rm conftest*
7022    # SGI C++ compiler will create directory out/ii_files/ for
7023    # template instantiation
7024    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7025    $rm out/* && rmdir out
7026    cd ..
7027    rmdir conftest
7028    $rm conftest*
7029
7030 fi
7031 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7032 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7033
7034
7035 hard_links="nottested"
7036 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7037   # do not overwrite the value of need_locks provided by the user
7038   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7039 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7040   hard_links=yes
7041   $rm conftest*
7042   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7043   touch conftest.a
7044   ln conftest.a conftest.b 2>&5 || hard_links=no
7045   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7046   { echo "$as_me:$LINENO: result: $hard_links" >&5
7047 echo "${ECHO_T}$hard_links" >&6; }
7048   if test "$hard_links" = no; then
7049     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7050 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7051     need_locks=warn
7052   fi
7053 else
7054   need_locks=no
7055 fi
7056
7057 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7058 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7059
7060   runpath_var=
7061   allow_undefined_flag=
7062   enable_shared_with_static_runtimes=no
7063   archive_cmds=
7064   archive_expsym_cmds=
7065   old_archive_From_new_cmds=
7066   old_archive_from_expsyms_cmds=
7067   export_dynamic_flag_spec=
7068   whole_archive_flag_spec=
7069   thread_safe_flag_spec=
7070   hardcode_libdir_flag_spec=
7071   hardcode_libdir_flag_spec_ld=
7072   hardcode_libdir_separator=
7073   hardcode_direct=no
7074   hardcode_minus_L=no
7075   hardcode_shlibpath_var=unsupported
7076   link_all_deplibs=unknown
7077   hardcode_automatic=no
7078   module_cmds=
7079   module_expsym_cmds=
7080   always_export_symbols=no
7081   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7082   # include_expsyms should be a list of space-separated symbols to be *always*
7083   # included in the symbol list
7084   include_expsyms=
7085   # exclude_expsyms can be an extended regexp of symbols to exclude
7086   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7087   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7088   # as well as any symbol that contains `d'.
7089   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7090   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7091   # platforms (ab)use it in PIC code, but their linkers get confused if
7092   # the symbol is explicitly referenced.  Since portable code cannot
7093   # rely on this symbol name, it's probably fine to never include it in
7094   # preloaded symbol tables.
7095   extract_expsyms_cmds=
7096
7097   case $host_os in
7098   cygwin* | mingw* | pw32*)
7099     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7100     # When not using gcc, we currently assume that we are using
7101     # Microsoft Visual C++.
7102     if test "$GCC" != yes; then
7103       with_gnu_ld=no
7104     fi
7105     ;;
7106   openbsd*)
7107     with_gnu_ld=no
7108     ;;
7109   esac
7110
7111   ld_shlibs=yes
7112   if test "$with_gnu_ld" = yes; then
7113     # If archive_cmds runs LD, not CC, wlarc should be empty
7114     wlarc='${wl}'
7115
7116     # See if GNU ld supports shared libraries.
7117     case $host_os in
7118     aix3* | aix4* | aix5*)
7119       # On AIX/PPC, the GNU linker is very broken
7120       if test "$host_cpu" != ia64; then
7121         ld_shlibs=no
7122         cat <<EOF 1>&2
7123
7124 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7125 *** to be unable to reliably create shared libraries on AIX.
7126 *** Therefore, libtool is disabling shared libraries support.  If you
7127 *** really care for shared libraries, you may want to modify your PATH
7128 *** so that a non-GNU linker is found, and then restart.
7129
7130 EOF
7131       fi
7132       ;;
7133
7134     amigaos*)
7135       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)'
7136       hardcode_libdir_flag_spec='-L$libdir'
7137       hardcode_minus_L=yes
7138
7139       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7140       # that the semantics of dynamic libraries on AmigaOS, at least up
7141       # to version 4, is to share data among multiple programs linked
7142       # with the same dynamic library.  Since this doesn't match the
7143       # behavior of shared libraries on other platforms, we can't use
7144       # them.
7145       ld_shlibs=no
7146       ;;
7147
7148     beos*)
7149       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7150         allow_undefined_flag=unsupported
7151         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7152         # support --undefined.  This deserves some investigation.  FIXME
7153         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7154       else
7155         ld_shlibs=no
7156       fi
7157       ;;
7158
7159     cygwin* | mingw* | pw32*)
7160       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7161       # as there is no search path for DLLs.
7162       hardcode_libdir_flag_spec='-L$libdir'
7163       allow_undefined_flag=unsupported
7164       always_export_symbols=no
7165       enable_shared_with_static_runtimes=yes
7166       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7167
7168       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7169         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7170         # If the export-symbols file already is a .def file (1st line
7171         # is EXPORTS), use it as is; otherwise, prepend...
7172         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7173           cp $export_symbols $output_objdir/$soname.def;
7174         else
7175           echo EXPORTS > $output_objdir/$soname.def;
7176           cat $export_symbols >> $output_objdir/$soname.def;
7177         fi~
7178         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7179       else
7180         ld_shlibs=no
7181       fi
7182       ;;
7183
7184     netbsd*)
7185       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7186         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7187         wlarc=
7188       else
7189         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7190         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7191       fi
7192       ;;
7193
7194     solaris* | sysv5*)
7195       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7196         ld_shlibs=no
7197         cat <<EOF 1>&2
7198
7199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7200 *** create shared libraries on Solaris systems.  Therefore, libtool
7201 *** is disabling shared libraries support.  We urge you to upgrade GNU
7202 *** binutils to release 2.9.1 or newer.  Another option is to modify
7203 *** your PATH or compiler configuration so that the native linker is
7204 *** used, and then restart.
7205
7206 EOF
7207       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7208         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7209         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7210       else
7211         ld_shlibs=no
7212       fi
7213       ;;
7214
7215     sunos4*)
7216       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7217       wlarc=
7218       hardcode_direct=yes
7219       hardcode_shlibpath_var=no
7220       ;;
7221
7222   linux*)
7223     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7224         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7225         archive_cmds="$tmp_archive_cmds"
7226       supports_anon_versioning=no
7227       case `$LD -v 2>/dev/null` in
7228         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7229         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7230         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7231         *\ 2.11.*) ;; # other 2.11 versions
7232         *) supports_anon_versioning=yes ;;
7233       esac
7234       if test $supports_anon_versioning = yes; then
7235         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7237 $echo "local: *; };" >> $output_objdir/$libname.ver~
7238         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7239       else
7240         archive_expsym_cmds="$tmp_archive_cmds"
7241       fi
7242     else
7243       ld_shlibs=no
7244     fi
7245     ;;
7246
7247     *)
7248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7250         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7251       else
7252         ld_shlibs=no
7253       fi
7254       ;;
7255     esac
7256
7257     if test "$ld_shlibs" = yes; then
7258       runpath_var=LD_RUN_PATH
7259       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7260       export_dynamic_flag_spec='${wl}--export-dynamic'
7261       # ancient GNU ld didn't support --whole-archive et. al.
7262       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7263         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7264       else
7265         whole_archive_flag_spec=
7266       fi
7267     fi
7268   else
7269     # PORTME fill in a description of your system's linker (not GNU ld)
7270     case $host_os in
7271     aix3*)
7272       allow_undefined_flag=unsupported
7273       always_export_symbols=yes
7274       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'
7275       # Note: this linker hardcodes the directories in LIBPATH if there
7276       # are no directories specified by -L.
7277       hardcode_minus_L=yes
7278       if test "$GCC" = yes && test -z "$link_static_flag"; then
7279         # Neither direct hardcoding nor static linking is supported with a
7280         # broken collect2.
7281         hardcode_direct=unsupported
7282       fi
7283       ;;
7284
7285     aix4* | aix5*)
7286       if test "$host_cpu" = ia64; then
7287         # On IA64, the linker does run time linking by default, so we don't
7288         # have to do anything special.
7289         aix_use_runtimelinking=no
7290         exp_sym_flag='-Bexport'
7291         no_entry_flag=""
7292       else
7293         # If we're using GNU nm, then we don't want the "-C" option.
7294         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7295         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7296           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'
7297         else
7298           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'
7299         fi
7300         aix_use_runtimelinking=no
7301
7302         # Test if we are trying to use run time linking or normal
7303         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7304         # need to do runtime linking.
7305         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7306           for ld_flag in $LDFLAGS; do
7307           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7308             aix_use_runtimelinking=yes
7309             break
7310           fi
7311           done
7312         esac
7313
7314         exp_sym_flag='-bexport'
7315         no_entry_flag='-bnoentry'
7316       fi
7317
7318       # When large executables or shared objects are built, AIX ld can
7319       # have problems creating the table of contents.  If linking a library
7320       # or program results in "error TOC overflow" add -mminimal-toc to
7321       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7322       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7323
7324       archive_cmds=''
7325       hardcode_direct=yes
7326       hardcode_libdir_separator=':'
7327       link_all_deplibs=yes
7328
7329       if test "$GCC" = yes; then
7330         case $host_os in aix4.012|aix4.012.*)
7331         # We only want to do this on AIX 4.2 and lower, the check
7332         # below for broken collect2 doesn't work under 4.3+
7333           collect2name=`${CC} -print-prog-name=collect2`
7334           if test -f "$collect2name" && \
7335            strings "$collect2name" | grep resolve_lib_name >/dev/null
7336           then
7337           # We have reworked collect2
7338           hardcode_direct=yes
7339           else
7340           # We have old collect2
7341           hardcode_direct=unsupported
7342           # It fails to find uninstalled libraries when the uninstalled
7343           # path is not listed in the libpath.  Setting hardcode_minus_L
7344           # to unsupported forces relinking
7345           hardcode_minus_L=yes
7346           hardcode_libdir_flag_spec='-L$libdir'
7347           hardcode_libdir_separator=
7348           fi
7349         esac
7350         shared_flag='-shared'
7351       else
7352         # not using gcc
7353         if test "$host_cpu" = ia64; then
7354         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7355         # chokes on -Wl,-G. The following line is correct:
7356           shared_flag='-G'
7357         else
7358         if test "$aix_use_runtimelinking" = yes; then
7359             shared_flag='${wl}-G'
7360           else
7361             shared_flag='${wl}-bM:SRE'
7362         fi
7363         fi
7364       fi
7365
7366       # It seems that -bexpall does not export symbols beginning with
7367       # underscore (_), so it is better to generate a list of symbols to export.
7368       always_export_symbols=yes
7369       if test "$aix_use_runtimelinking" = yes; then
7370         # Warning - without using the other runtime loading flags (-brtl),
7371         # -berok will link without error, but may produce a broken library.
7372         allow_undefined_flag='-berok'
7373        # Determine the default libpath from the value encoded in an empty executable.
7374        cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380
7381 int
7382 main ()
7383 {
7384
7385   ;
7386   return 0;
7387 }
7388 _ACEOF
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (ac_try="$ac_link"
7391 case "(($ac_try" in
7392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393   *) ac_try_echo=$ac_try;;
7394 esac
7395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396   (eval "$ac_link") 2>conftest.er1
7397   ac_status=$?
7398   grep -v '^ *+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } && {
7403          test -z "$ac_c_werror_flag" ||
7404          test ! -s conftest.err
7405        } && test -s conftest$ac_exeext &&
7406        $as_test_x conftest$ac_exeext; then
7407
7408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7409 }'`
7410 # Check for a 64-bit object if we didn't find anything.
7411 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; }
7412 }'`; fi
7413 else
7414   echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421       conftest$ac_exeext conftest.$ac_ext
7422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7423
7424        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7425         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7426        else
7427         if test "$host_cpu" = ia64; then
7428           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7429           allow_undefined_flag="-z nodefs"
7430           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7431         else
7432          # Determine the default libpath from the value encoded in an empty executable.
7433          cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439
7440 int
7441 main ()
7442 {
7443
7444   ;
7445   return 0;
7446 }
7447 _ACEOF
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (ac_try="$ac_link"
7450 case "(($ac_try" in
7451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452   *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455   (eval "$ac_link") 2>conftest.er1
7456   ac_status=$?
7457   grep -v '^ *+' conftest.er1 >conftest.err
7458   rm -f conftest.er1
7459   cat conftest.err >&5
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); } && {
7462          test -z "$ac_c_werror_flag" ||
7463          test ! -s conftest.err
7464        } && test -s conftest$ac_exeext &&
7465        $as_test_x conftest$ac_exeext; then
7466
7467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7468 }'`
7469 # Check for a 64-bit object if we didn't find anything.
7470 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; }
7471 }'`; fi
7472 else
7473   echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476
7477 fi
7478
7479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7480       conftest$ac_exeext conftest.$ac_ext
7481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7482
7483          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7484           # Warning - without using the other run time loading flags,
7485           # -berok will link without error, but may produce a broken library.
7486           no_undefined_flag=' ${wl}-bernotok'
7487           allow_undefined_flag=' ${wl}-berok'
7488           # -bexpall does not export symbols beginning with underscore (_)
7489           always_export_symbols=yes
7490           # Exported symbols can be pulled into shared objects from archives
7491           whole_archive_flag_spec=' '
7492           archive_cmds_need_lc=yes
7493           # This is similar to how AIX traditionally builds it's shared libraries.
7494           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7495         fi
7496       fi
7497       ;;
7498
7499     amigaos*)
7500       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)'
7501       hardcode_libdir_flag_spec='-L$libdir'
7502       hardcode_minus_L=yes
7503       # see comment about different semantics on the GNU ld section
7504       ld_shlibs=no
7505       ;;
7506
7507     bsdi4*)
7508       export_dynamic_flag_spec=-rdynamic
7509       ;;
7510
7511     cygwin* | mingw* | pw32*)
7512       # When not using gcc, we currently assume that we are using
7513       # Microsoft Visual C++.
7514       # hardcode_libdir_flag_spec is actually meaningless, as there is
7515       # no search path for DLLs.
7516       hardcode_libdir_flag_spec=' '
7517       allow_undefined_flag=unsupported
7518       # Tell ltmain to make .lib files, not .a files.
7519       libext=lib
7520       # Tell ltmain to make .dll files, not .so files.
7521       shrext_cmds=".dll"
7522       # FIXME: Setting linknames here is a bad hack.
7523       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7524       # The linker will automatically build a .lib file if we build a DLL.
7525       old_archive_From_new_cmds='true'
7526       # FIXME: Should let the user specify the lib program.
7527       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7528       fix_srcfile_path='`cygpath -w "$srcfile"`'
7529       enable_shared_with_static_runtimes=yes
7530       ;;
7531
7532     darwin* | rhapsody*)
7533     if test "$GXX" = yes ; then
7534       archive_cmds_need_lc=no
7535       case "$host_os" in
7536       rhapsody* | darwin1.[012])
7537         allow_undefined_flag='-undefined suppress'
7538         ;;
7539       *) # Darwin 1.3 on
7540       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7541         allow_undefined_flag='-flat_namespace -undefined suppress'
7542       else
7543         case ${MACOSX_DEPLOYMENT_TARGET} in
7544           10.[012])
7545             allow_undefined_flag='-flat_namespace -undefined suppress'
7546             ;;
7547           10.*)
7548             allow_undefined_flag='-undefined dynamic_lookup'
7549             ;;
7550         esac
7551       fi
7552         ;;
7553       esac
7554         lt_int_apple_cc_single_mod=no
7555         output_verbose_link_cmd='echo'
7556         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7557           lt_int_apple_cc_single_mod=yes
7558         fi
7559         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7560           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7561         else
7562         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7563       fi
7564       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7565       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7566         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7567           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7568         else
7569           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7570         fi
7571           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}'
7572       hardcode_direct=no
7573       hardcode_automatic=yes
7574       hardcode_shlibpath_var=unsupported
7575       whole_archive_flag_spec='-all_load $convenience'
7576       link_all_deplibs=yes
7577     else
7578       ld_shlibs=no
7579     fi
7580       ;;
7581
7582     dgux*)
7583       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584       hardcode_libdir_flag_spec='-L$libdir'
7585       hardcode_shlibpath_var=no
7586       ;;
7587
7588     freebsd1*)
7589       ld_shlibs=no
7590       ;;
7591
7592     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7593     # support.  Future versions do this automatically, but an explicit c++rt0.o
7594     # does not break anything, and helps significantly (at the cost of a little
7595     # extra space).
7596     freebsd2.2*)
7597       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7598       hardcode_libdir_flag_spec='-R$libdir'
7599       hardcode_direct=yes
7600       hardcode_shlibpath_var=no
7601       ;;
7602
7603     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7604     freebsd2*)
7605       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7606       hardcode_direct=yes
7607       hardcode_minus_L=yes
7608       hardcode_shlibpath_var=no
7609       ;;
7610
7611     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7612     freebsd* | kfreebsd*-gnu)
7613       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7614       hardcode_libdir_flag_spec='-R$libdir'
7615       hardcode_direct=yes
7616       hardcode_shlibpath_var=no
7617       ;;
7618
7619     hpux9*)
7620       if test "$GCC" = yes; then
7621         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'
7622       else
7623         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'
7624       fi
7625       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7626       hardcode_libdir_separator=:
7627       hardcode_direct=yes
7628
7629       # hardcode_minus_L: Not really in the search PATH,
7630       # but as the default location of the library.
7631       hardcode_minus_L=yes
7632       export_dynamic_flag_spec='${wl}-E'
7633       ;;
7634
7635     hpux10* | hpux11*)
7636       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7637         case "$host_cpu" in
7638         hppa*64*|ia64*)
7639           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7640           ;;
7641         *)
7642           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7643           ;;
7644         esac
7645       else
7646         case "$host_cpu" in
7647         hppa*64*|ia64*)
7648           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7649           ;;
7650         *)
7651           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7652           ;;
7653         esac
7654       fi
7655       if test "$with_gnu_ld" = no; then
7656         case "$host_cpu" in
7657         hppa*64*)
7658           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7659           hardcode_libdir_flag_spec_ld='+b $libdir'
7660           hardcode_libdir_separator=:
7661           hardcode_direct=no
7662           hardcode_shlibpath_var=no
7663           ;;
7664         ia64*)
7665           hardcode_libdir_flag_spec='-L$libdir'
7666           hardcode_direct=no
7667           hardcode_shlibpath_var=no
7668
7669           # hardcode_minus_L: Not really in the search PATH,
7670           # but as the default location of the library.
7671           hardcode_minus_L=yes
7672           ;;
7673         *)
7674           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7675           hardcode_libdir_separator=:
7676           hardcode_direct=yes
7677           export_dynamic_flag_spec='${wl}-E'
7678
7679           # hardcode_minus_L: Not really in the search PATH,
7680           # but as the default location of the library.
7681           hardcode_minus_L=yes
7682           ;;
7683         esac
7684       fi
7685       ;;
7686
7687     irix5* | irix6* | nonstopux*)
7688       if test "$GCC" = yes; then
7689         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'
7690       else
7691         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'
7692         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7693       fi
7694       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7695       hardcode_libdir_separator=:
7696       link_all_deplibs=yes
7697       ;;
7698
7699     netbsd*)
7700       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7701         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7702       else
7703         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7704       fi
7705       hardcode_libdir_flag_spec='-R$libdir'
7706       hardcode_direct=yes
7707       hardcode_shlibpath_var=no
7708       ;;
7709
7710     newsos6)
7711       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7712       hardcode_direct=yes
7713       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7714       hardcode_libdir_separator=:
7715       hardcode_shlibpath_var=no
7716       ;;
7717
7718     openbsd*)
7719       hardcode_direct=yes
7720       hardcode_shlibpath_var=no
7721       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7722         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7723         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7724         export_dynamic_flag_spec='${wl}-E'
7725       else
7726        case $host_os in
7727          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7728            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7729            hardcode_libdir_flag_spec='-R$libdir'
7730            ;;
7731          *)
7732            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7733            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7734            ;;
7735        esac
7736       fi
7737       ;;
7738
7739     os2*)
7740       hardcode_libdir_flag_spec='-L$libdir'
7741       hardcode_minus_L=yes
7742       allow_undefined_flag=unsupported
7743       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'
7744       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7745       ;;
7746
7747     osf3*)
7748       if test "$GCC" = yes; then
7749         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7750         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'
7751       else
7752         allow_undefined_flag=' -expect_unresolved \*'
7753         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'
7754       fi
7755       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7756       hardcode_libdir_separator=:
7757       ;;
7758
7759     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7760       if test "$GCC" = yes; then
7761         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7762         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'
7763         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7764       else
7765         allow_undefined_flag=' -expect_unresolved \*'
7766         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'
7767         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7768         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7769
7770         # Both c and cxx compiler support -rpath directly
7771         hardcode_libdir_flag_spec='-rpath $libdir'
7772       fi
7773       hardcode_libdir_separator=:
7774       ;;
7775
7776     sco3.2v5*)
7777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7778       hardcode_shlibpath_var=no
7779       export_dynamic_flag_spec='${wl}-Bexport'
7780       runpath_var=LD_RUN_PATH
7781       hardcode_runpath_var=yes
7782       ;;
7783
7784     solaris*)
7785       no_undefined_flag=' -z text'
7786       if test "$GCC" = yes; then
7787         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7788         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7789           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7790       else
7791         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7792         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7793         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7794       fi
7795       hardcode_libdir_flag_spec='-R$libdir'
7796       hardcode_shlibpath_var=no
7797       case $host_os in
7798       solaris2.[0-5] | solaris2.[0-5].*) ;;
7799       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7800         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7801       esac
7802       link_all_deplibs=yes
7803       ;;
7804
7805     sunos4*)
7806       if test "x$host_vendor" = xsequent; then
7807         # Use $CC to link under sequent, because it throws in some extra .o
7808         # files that make .init and .fini sections work.
7809         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7810       else
7811         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7812       fi
7813       hardcode_libdir_flag_spec='-L$libdir'
7814       hardcode_direct=yes
7815       hardcode_minus_L=yes
7816       hardcode_shlibpath_var=no
7817       ;;
7818
7819     sysv4)
7820       case $host_vendor in
7821         sni)
7822           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7823           hardcode_direct=yes # is this really true???
7824         ;;
7825         siemens)
7826           ## LD is ld it makes a PLAMLIB
7827           ## CC just makes a GrossModule.
7828           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7829           reload_cmds='$CC -r -o $output$reload_objs'
7830           hardcode_direct=no
7831         ;;
7832         motorola)
7833           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7834           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7835         ;;
7836       esac
7837       runpath_var='LD_RUN_PATH'
7838       hardcode_shlibpath_var=no
7839       ;;
7840
7841     sysv4.3*)
7842       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843       hardcode_shlibpath_var=no
7844       export_dynamic_flag_spec='-Bexport'
7845       ;;
7846
7847     sysv4*MP*)
7848       if test -d /usr/nec; then
7849         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7850         hardcode_shlibpath_var=no
7851         runpath_var=LD_RUN_PATH
7852         hardcode_runpath_var=yes
7853         ld_shlibs=yes
7854       fi
7855       ;;
7856
7857     sysv4.2uw2*)
7858       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7859       hardcode_direct=yes
7860       hardcode_minus_L=no
7861       hardcode_shlibpath_var=no
7862       hardcode_runpath_var=yes
7863       runpath_var=LD_RUN_PATH
7864       ;;
7865
7866    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7867       no_undefined_flag='${wl}-z ${wl}text'
7868       if test "$GCC" = yes; then
7869         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7870       else
7871         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7872       fi
7873       runpath_var='LD_RUN_PATH'
7874       hardcode_shlibpath_var=no
7875       ;;
7876
7877     sysv5*)
7878       no_undefined_flag=' -z text'
7879       # $CC -shared without GNU ld will not create a library from C++
7880       # object files and a static libstdc++, better avoid it by now
7881       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7883                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7884       hardcode_libdir_flag_spec=
7885       hardcode_shlibpath_var=no
7886       runpath_var='LD_RUN_PATH'
7887       ;;
7888
7889     uts4*)
7890       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891       hardcode_libdir_flag_spec='-L$libdir'
7892       hardcode_shlibpath_var=no
7893       ;;
7894
7895     *)
7896       ld_shlibs=no
7897       ;;
7898     esac
7899   fi
7900
7901 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7902 echo "${ECHO_T}$ld_shlibs" >&6; }
7903 test "$ld_shlibs" = no && can_build_shared=no
7904
7905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7906 if test "$GCC" = yes; then
7907   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7908 fi
7909
7910 #
7911 # Do we need to explicitly link libc?
7912 #
7913 case "x$archive_cmds_need_lc" in
7914 x|xyes)
7915   # Assume -lc should be added
7916   archive_cmds_need_lc=yes
7917
7918   if test "$enable_shared" = yes && test "$GCC" = yes; then
7919     case $archive_cmds in
7920     *'~'*)
7921       # FIXME: we may have to deal with multi-command sequences.
7922       ;;
7923     '$CC '*)
7924       # Test whether the compiler implicitly links with -lc since on some
7925       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7926       # to ld, don't add -lc before -lgcc.
7927       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7928 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7929       $rm conftest*
7930       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7931
7932       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933   (eval $ac_compile) 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); } 2>conftest.err; then
7937         soname=conftest
7938         lib=conftest
7939         libobjs=conftest.$ac_objext
7940         deplibs=
7941         wl=$lt_prog_compiler_wl
7942         compiler_flags=-v
7943         linker_flags=-v
7944         verstring=
7945         output_objdir=.
7946         libname=conftest
7947         lt_save_allow_undefined_flag=$allow_undefined_flag
7948         allow_undefined_flag=
7949         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7950   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }
7954         then
7955           archive_cmds_need_lc=no
7956         else
7957           archive_cmds_need_lc=yes
7958         fi
7959         allow_undefined_flag=$lt_save_allow_undefined_flag
7960       else
7961         cat conftest.err 1>&5
7962       fi
7963       $rm conftest*
7964       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7966       ;;
7967     esac
7968   fi
7969   ;;
7970 esac
7971
7972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7974 library_names_spec=
7975 libname_spec='lib$name'
7976 soname_spec=
7977 shrext_cmds=".so"
7978 postinstall_cmds=
7979 postuninstall_cmds=
7980 finish_cmds=
7981 finish_eval=
7982 shlibpath_var=
7983 shlibpath_overrides_runpath=unknown
7984 version_type=none
7985 dynamic_linker="$host_os ld.so"
7986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7987 if test "$GCC" = yes; then
7988   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7989   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7990     # if the path contains ";" then we assume it to be the separator
7991     # otherwise default to the standard path separator (i.e. ":") - it is
7992     # assumed that no part of a normal pathname contains ";" but that should
7993     # okay in the real world where ";" in dirpaths is itself problematic.
7994     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7995   else
7996     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7997   fi
7998 else
7999   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8000 fi
8001 need_lib_prefix=unknown
8002 hardcode_into_libs=no
8003
8004 # when you set need_version to no, make sure it does not cause -set_version
8005 # flags to be left without arguments
8006 need_version=unknown
8007
8008 case $host_os in
8009 aix3*)
8010   version_type=linux
8011   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8012   shlibpath_var=LIBPATH
8013
8014   # AIX 3 has no versioning support, so we append a major version to the name.
8015   soname_spec='${libname}${release}${shared_ext}$major'
8016   ;;
8017
8018 aix4* | aix5*)
8019   version_type=linux
8020   need_lib_prefix=no
8021   need_version=no
8022   hardcode_into_libs=yes
8023   if test "$host_cpu" = ia64; then
8024     # AIX 5 supports IA64
8025     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8026     shlibpath_var=LD_LIBRARY_PATH
8027   else
8028     # With GCC up to 2.95.x, collect2 would create an import file
8029     # for dependence libraries.  The import file would start with
8030     # the line `#! .'.  This would cause the generated library to
8031     # depend on `.', always an invalid library.  This was fixed in
8032     # development snapshots of GCC prior to 3.0.
8033     case $host_os in
8034       aix4 | aix4.[01] | aix4.[01].*)
8035       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8036            echo ' yes '
8037            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8038         :
8039       else
8040         can_build_shared=no
8041       fi
8042       ;;
8043     esac
8044     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8045     # soname into executable. Probably we can add versioning support to
8046     # collect2, so additional links can be useful in future.
8047     if test "$aix_use_runtimelinking" = yes; then
8048       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8049       # instead of lib<name>.a to let people know that these are not
8050       # typical AIX shared libraries.
8051       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8052     else
8053       # We preserve .a as extension for shared libraries through AIX4.2
8054       # and later when we are not doing run time linking.
8055       library_names_spec='${libname}${release}.a $libname.a'
8056       soname_spec='${libname}${release}${shared_ext}$major'
8057     fi
8058     shlibpath_var=LIBPATH
8059   fi
8060   ;;
8061
8062 amigaos*)
8063   library_names_spec='$libname.ixlibrary $libname.a'
8064   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8065   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'
8066   ;;
8067
8068 beos*)
8069   library_names_spec='${libname}${shared_ext}'
8070   dynamic_linker="$host_os ld.so"
8071   shlibpath_var=LIBRARY_PATH
8072   ;;
8073
8074 bsdi4*)
8075   version_type=linux
8076   need_version=no
8077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078   soname_spec='${libname}${release}${shared_ext}$major'
8079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8080   shlibpath_var=LD_LIBRARY_PATH
8081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8083   # the default ld.so.conf also contains /usr/contrib/lib and
8084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8085   # libtool to hard-code these into programs
8086   ;;
8087
8088 cygwin* | mingw* | pw32*)
8089   version_type=windows
8090   shrext_cmds=".dll"
8091   need_version=no
8092   need_lib_prefix=no
8093
8094   case $GCC,$host_os in
8095   yes,cygwin* | yes,mingw* | yes,pw32*)
8096     library_names_spec='$libname.dll.a'
8097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8098     postinstall_cmds='base_file=`basename \${file}`~
8099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8100       dldir=$destdir/`dirname \$dlpath`~
8101       test -d \$dldir || mkdir -p \$dldir~
8102       $install_prog $dir/$dlname \$dldir/$dlname'
8103     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8104       dlpath=$dir/\$dldll~
8105        $rm \$dlpath'
8106     shlibpath_overrides_runpath=yes
8107
8108     case $host_os in
8109     cygwin*)
8110       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8111       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8112       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8113       ;;
8114     mingw*)
8115       # MinGW DLLs use traditional 'lib' prefix
8116       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8117       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8118       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8119         # It is most probably a Windows format PATH printed by
8120         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8121         # path with ; separators, and with drive letters. We can handle the
8122         # drive letters (cygwin fileutils understands them), so leave them,
8123         # especially as we might pass files found there to a mingw objdump,
8124         # which wouldn't understand a cygwinified path. Ahh.
8125         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8126       else
8127         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8128       fi
8129       ;;
8130     pw32*)
8131       # pw32 DLLs use 'pw' prefix rather than 'lib'
8132       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8133       ;;
8134     esac
8135     ;;
8136
8137   *)
8138     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8139     ;;
8140   esac
8141   dynamic_linker='Win32 ld.exe'
8142   # FIXME: first we should search . and the directory the executable is in
8143   shlibpath_var=PATH
8144   ;;
8145
8146 darwin* | rhapsody*)
8147   dynamic_linker="$host_os dyld"
8148   version_type=darwin
8149   need_lib_prefix=no
8150   need_version=no
8151   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8152   soname_spec='${libname}${release}${major}$shared_ext'
8153   shlibpath_overrides_runpath=yes
8154   shlibpath_var=DYLD_LIBRARY_PATH
8155   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8156   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8157   if test "$GCC" = yes; then
8158     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"`
8159   else
8160     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8161   fi
8162   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8163   ;;
8164
8165 dgux*)
8166   version_type=linux
8167   need_lib_prefix=no
8168   need_version=no
8169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8170   soname_spec='${libname}${release}${shared_ext}$major'
8171   shlibpath_var=LD_LIBRARY_PATH
8172   ;;
8173
8174 freebsd1*)
8175   dynamic_linker=no
8176   ;;
8177
8178 kfreebsd*-gnu)
8179   version_type=linux
8180   need_lib_prefix=no
8181   need_version=no
8182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8183   soname_spec='${libname}${release}${shared_ext}$major'
8184   shlibpath_var=LD_LIBRARY_PATH
8185   shlibpath_overrides_runpath=no
8186   hardcode_into_libs=yes
8187   dynamic_linker='GNU ld.so'
8188   ;;
8189
8190 freebsd*)
8191   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8192   version_type=freebsd-$objformat
8193   case $version_type in
8194     freebsd-elf*)
8195       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8196       need_version=no
8197       need_lib_prefix=no
8198       ;;
8199     freebsd-*)
8200       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8201       need_version=yes
8202       ;;
8203   esac
8204   shlibpath_var=LD_LIBRARY_PATH
8205   case $host_os in
8206   freebsd2*)
8207     shlibpath_overrides_runpath=yes
8208     ;;
8209   freebsd3.01* | freebsdelf3.01*)
8210     shlibpath_overrides_runpath=yes
8211     hardcode_into_libs=yes
8212     ;;
8213   *) # from 3.2 on
8214     shlibpath_overrides_runpath=no
8215     hardcode_into_libs=yes
8216     ;;
8217   esac
8218   ;;
8219
8220 gnu*)
8221   version_type=linux
8222   need_lib_prefix=no
8223   need_version=no
8224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8225   soname_spec='${libname}${release}${shared_ext}$major'
8226   shlibpath_var=LD_LIBRARY_PATH
8227   hardcode_into_libs=yes
8228   ;;
8229
8230 hpux9* | hpux10* | hpux11*)
8231   # Give a soname corresponding to the major version so that dld.sl refuses to
8232   # link against other versions.
8233   version_type=sunos
8234   need_lib_prefix=no
8235   need_version=no
8236   case "$host_cpu" in
8237   ia64*)
8238     shrext_cmds='.so'
8239     hardcode_into_libs=yes
8240     dynamic_linker="$host_os dld.so"
8241     shlibpath_var=LD_LIBRARY_PATH
8242     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244     soname_spec='${libname}${release}${shared_ext}$major'
8245     if test "X$HPUX_IA64_MODE" = X32; then
8246       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8247     else
8248       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8249     fi
8250     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8251     ;;
8252    hppa*64*)
8253      shrext_cmds='.sl'
8254      hardcode_into_libs=yes
8255      dynamic_linker="$host_os dld.sl"
8256      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8257      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8258      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259      soname_spec='${libname}${release}${shared_ext}$major'
8260      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8261      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8262      ;;
8263    *)
8264     shrext_cmds='.sl'
8265     dynamic_linker="$host_os dld.sl"
8266     shlibpath_var=SHLIB_PATH
8267     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8269     soname_spec='${libname}${release}${shared_ext}$major'
8270     ;;
8271   esac
8272   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8273   postinstall_cmds='chmod 555 $lib'
8274   ;;
8275
8276 irix5* | irix6* | nonstopux*)
8277   case $host_os in
8278     nonstopux*) version_type=nonstopux ;;
8279     *)
8280         if test "$lt_cv_prog_gnu_ld" = yes; then
8281                 version_type=linux
8282         else
8283                 version_type=irix
8284         fi ;;
8285   esac
8286   need_lib_prefix=no
8287   need_version=no
8288   soname_spec='${libname}${release}${shared_ext}$major'
8289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8290   case $host_os in
8291   irix5* | nonstopux*)
8292     libsuff= shlibsuff=
8293     ;;
8294   *)
8295     case $LD in # libtool.m4 will add one of these switches to LD
8296     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8297       libsuff= shlibsuff= libmagic=32-bit;;
8298     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8299       libsuff=32 shlibsuff=N32 libmagic=N32;;
8300     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8301       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8302     *) libsuff= shlibsuff= libmagic=never-match;;
8303     esac
8304     ;;
8305   esac
8306   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8307   shlibpath_overrides_runpath=no
8308   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8309   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8310   hardcode_into_libs=yes
8311   ;;
8312
8313 # No shared lib support for Linux oldld, aout, or coff.
8314 linux*oldld* | linux*aout* | linux*coff*)
8315   dynamic_linker=no
8316   ;;
8317
8318 # This must be Linux ELF.
8319 linux*)
8320   version_type=linux
8321   need_lib_prefix=no
8322   need_version=no
8323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324   soname_spec='${libname}${release}${shared_ext}$major'
8325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8326   shlibpath_var=LD_LIBRARY_PATH
8327   shlibpath_overrides_runpath=no
8328   # This implies no fast_install, which is unacceptable.
8329   # Some rework will be needed to allow for fast_install
8330   # before this can be enabled.
8331   hardcode_into_libs=yes
8332
8333   # find out which ABI we are using
8334   libsuff=
8335   case "$host_cpu" in
8336   x86_64*|s390x*|powerpc64*)
8337     echo '#line 8337 "configure"' > conftest.$ac_ext
8338     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8339   (eval $ac_compile) 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; then
8343       case `/usr/bin/file conftest.$ac_objext` in
8344       *64-bit*)
8345         libsuff=64
8346         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8347         ;;
8348       esac
8349     fi
8350     rm -rf conftest*
8351     ;;
8352   esac
8353
8354   # Append ld.so.conf contents to the search path
8355   if test -f /etc/ld.so.conf; then
8356     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8357     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8358   fi
8359
8360   # We used to test for /lib/ld.so.1 and disable shared libraries on
8361   # powerpc, because MkLinux only supported shared libraries with the
8362   # GNU dynamic linker.  Since this was broken with cross compilers,
8363   # most powerpc-linux boxes support dynamic linking these days and
8364   # people can always --disable-shared, the test was removed, and we
8365   # assume the GNU/Linux dynamic linker is in use.
8366   dynamic_linker='GNU/Linux ld.so'
8367   ;;
8368
8369 knetbsd*-gnu)
8370   version_type=linux
8371   need_lib_prefix=no
8372   need_version=no
8373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374   soname_spec='${libname}${release}${shared_ext}$major'
8375   shlibpath_var=LD_LIBRARY_PATH
8376   shlibpath_overrides_runpath=no
8377   hardcode_into_libs=yes
8378   dynamic_linker='GNU ld.so'
8379   ;;
8380
8381 netbsd*)
8382   version_type=sunos
8383   need_lib_prefix=no
8384   need_version=no
8385   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8387     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8388     dynamic_linker='NetBSD (a.out) ld.so'
8389   else
8390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8391     soname_spec='${libname}${release}${shared_ext}$major'
8392     dynamic_linker='NetBSD ld.elf_so'
8393   fi
8394   shlibpath_var=LD_LIBRARY_PATH
8395   shlibpath_overrides_runpath=yes
8396   hardcode_into_libs=yes
8397   ;;
8398
8399 newsos6)
8400   version_type=linux
8401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402   shlibpath_var=LD_LIBRARY_PATH
8403   shlibpath_overrides_runpath=yes
8404   ;;
8405
8406 nto-qnx*)
8407   version_type=linux
8408   need_lib_prefix=no
8409   need_version=no
8410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8411   soname_spec='${libname}${release}${shared_ext}$major'
8412   shlibpath_var=LD_LIBRARY_PATH
8413   shlibpath_overrides_runpath=yes
8414   ;;
8415
8416 openbsd*)
8417   version_type=sunos
8418   need_lib_prefix=no
8419   need_version=yes
8420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8421   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8422   shlibpath_var=LD_LIBRARY_PATH
8423   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8424     case $host_os in
8425       openbsd2.[89] | openbsd2.[89].*)
8426         shlibpath_overrides_runpath=no
8427         ;;
8428       *)
8429         shlibpath_overrides_runpath=yes
8430         ;;
8431       esac
8432   else
8433     shlibpath_overrides_runpath=yes
8434   fi
8435   ;;
8436
8437 os2*)
8438   libname_spec='$name'
8439   shrext_cmds=".dll"
8440   need_lib_prefix=no
8441   library_names_spec='$libname${shared_ext} $libname.a'
8442   dynamic_linker='OS/2 ld.exe'
8443   shlibpath_var=LIBPATH
8444   ;;
8445
8446 osf3* | osf4* | osf5*)
8447   version_type=osf
8448   need_lib_prefix=no
8449   need_version=no
8450   soname_spec='${libname}${release}${shared_ext}$major'
8451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8452   shlibpath_var=LD_LIBRARY_PATH
8453   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8454   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8455   ;;
8456
8457 sco3.2v5*)
8458   version_type=osf
8459   soname_spec='${libname}${release}${shared_ext}$major'
8460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8461   shlibpath_var=LD_LIBRARY_PATH
8462   ;;
8463
8464 solaris*)
8465   version_type=linux
8466   need_lib_prefix=no
8467   need_version=no
8468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469   soname_spec='${libname}${release}${shared_ext}$major'
8470   shlibpath_var=LD_LIBRARY_PATH
8471   shlibpath_overrides_runpath=yes
8472   hardcode_into_libs=yes
8473   # ldd complains unless libraries are executable
8474   postinstall_cmds='chmod +x $lib'
8475   ;;
8476
8477 sunos4*)
8478   version_type=sunos
8479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8480   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8481   shlibpath_var=LD_LIBRARY_PATH
8482   shlibpath_overrides_runpath=yes
8483   if test "$with_gnu_ld" = yes; then
8484     need_lib_prefix=no
8485   fi
8486   need_version=yes
8487   ;;
8488
8489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8490   version_type=linux
8491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8492   soname_spec='${libname}${release}${shared_ext}$major'
8493   shlibpath_var=LD_LIBRARY_PATH
8494   case $host_vendor in
8495     sni)
8496       shlibpath_overrides_runpath=no
8497       need_lib_prefix=no
8498       export_dynamic_flag_spec='${wl}-Blargedynsym'
8499       runpath_var=LD_RUN_PATH
8500       ;;
8501     siemens)
8502       need_lib_prefix=no
8503       ;;
8504     motorola)
8505       need_lib_prefix=no
8506       need_version=no
8507       shlibpath_overrides_runpath=no
8508       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8509       ;;
8510   esac
8511   ;;
8512
8513 sysv4*MP*)
8514   if test -d /usr/nec ;then
8515     version_type=linux
8516     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8517     soname_spec='$libname${shared_ext}.$major'
8518     shlibpath_var=LD_LIBRARY_PATH
8519   fi
8520   ;;
8521
8522 uts4*)
8523   version_type=linux
8524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525   soname_spec='${libname}${release}${shared_ext}$major'
8526   shlibpath_var=LD_LIBRARY_PATH
8527   ;;
8528
8529 *)
8530   dynamic_linker=no
8531   ;;
8532 esac
8533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8534 echo "${ECHO_T}$dynamic_linker" >&6; }
8535 test "$dynamic_linker" = no && can_build_shared=no
8536
8537 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8538 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8539 hardcode_action=
8540 if test -n "$hardcode_libdir_flag_spec" || \
8541    test -n "$runpath_var " || \
8542    test "X$hardcode_automatic"="Xyes" ; then
8543
8544   # We can hardcode non-existant directories.
8545   if test "$hardcode_direct" != no &&
8546      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8547      # have to relink, otherwise we might link with an installed library
8548      # when we should be linking with a yet-to-be-installed one
8549      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8550      test "$hardcode_minus_L" != no; then
8551     # Linking always hardcodes the temporary library directory.
8552     hardcode_action=relink
8553   else
8554     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8555     hardcode_action=immediate
8556   fi
8557 else
8558   # We cannot hardcode anything, or else we can only hardcode existing
8559   # directories.
8560   hardcode_action=unsupported
8561 fi
8562 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8563 echo "${ECHO_T}$hardcode_action" >&6; }
8564
8565 if test "$hardcode_action" = relink; then
8566   # Fast installation is not supported
8567   enable_fast_install=no
8568 elif test "$shlibpath_overrides_runpath" = yes ||
8569      test "$enable_shared" = no; then
8570   # Fast installation is not necessary
8571   enable_fast_install=needless
8572 fi
8573
8574 striplib=
8575 old_striplib=
8576 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8577 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8578 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8579   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8580   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8581   { echo "$as_me:$LINENO: result: yes" >&5
8582 echo "${ECHO_T}yes" >&6; }
8583 else
8584 # FIXME - insert some real tests, host_os isn't really good enough
8585   case $host_os in
8586    darwin*)
8587        if test -n "$STRIP" ; then
8588          striplib="$STRIP -x"
8589          { echo "$as_me:$LINENO: result: yes" >&5
8590 echo "${ECHO_T}yes" >&6; }
8591        else
8592   { echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6; }
8594 fi
8595        ;;
8596    *)
8597   { echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6; }
8599     ;;
8600   esac
8601 fi
8602
8603 if test "x$enable_dlopen" != xyes; then
8604   enable_dlopen=unknown
8605   enable_dlopen_self=unknown
8606   enable_dlopen_self_static=unknown
8607 else
8608   lt_cv_dlopen=no
8609   lt_cv_dlopen_libs=
8610
8611   case $host_os in
8612   beos*)
8613     lt_cv_dlopen="load_add_on"
8614     lt_cv_dlopen_libs=
8615     lt_cv_dlopen_self=yes
8616     ;;
8617
8618   mingw* | pw32*)
8619     lt_cv_dlopen="LoadLibrary"
8620     lt_cv_dlopen_libs=
8621    ;;
8622
8623   cygwin*)
8624     lt_cv_dlopen="dlopen"
8625     lt_cv_dlopen_libs=
8626    ;;
8627
8628   darwin*)
8629   # if libdl is installed we need to link against it
8630     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   ac_check_lib_save_LIBS=$LIBS
8636 LIBS="-ldl  $LIBS"
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643
8644 /* Override any GCC internal prototype to avoid an error.
8645    Use char because int might match the return type of a GCC
8646    builtin and then its argument prototype would still apply.  */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char dlopen ();
8651 int
8652 main ()
8653 {
8654 return dlopen ();
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext conftest$ac_exeext
8660 if { (ac_try="$ac_link"
8661 case "(($ac_try" in
8662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663   *) ac_try_echo=$ac_try;;
8664 esac
8665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666   (eval "$ac_link") 2>conftest.er1
8667   ac_status=$?
8668   grep -v '^ *+' conftest.er1 >conftest.err
8669   rm -f conftest.er1
8670   cat conftest.err >&5
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } && {
8673          test -z "$ac_c_werror_flag" ||
8674          test ! -s conftest.err
8675        } && test -s conftest$ac_exeext &&
8676        $as_test_x conftest$ac_exeext; then
8677   ac_cv_lib_dl_dlopen=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682         ac_cv_lib_dl_dlopen=no
8683 fi
8684
8685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8686       conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8688 fi
8689 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8690 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8691 if test $ac_cv_lib_dl_dlopen = yes; then
8692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8693 else
8694
8695     lt_cv_dlopen="dyld"
8696     lt_cv_dlopen_libs=
8697     lt_cv_dlopen_self=yes
8698
8699 fi
8700
8701    ;;
8702
8703   *)
8704     { echo "$as_me:$LINENO: checking for shl_load" >&5
8705 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8706 if test "${ac_cv_func_shl_load+set}" = set; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8717 #define shl_load innocuous_shl_load
8718
8719 /* System header to define __stub macros and hopefully few prototypes,
8720     which can conflict with char shl_load (); below.
8721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8722     <limits.h> exists even on freestanding compilers.  */
8723
8724 #ifdef __STDC__
8725 # include <limits.h>
8726 #else
8727 # include <assert.h>
8728 #endif
8729
8730 #undef shl_load
8731
8732 /* Override any GCC internal prototype to avoid an error.
8733    Use char because int might match the return type of a GCC
8734    builtin and then its argument prototype would still apply.  */
8735 #ifdef __cplusplus
8736 extern "C"
8737 #endif
8738 char shl_load ();
8739 /* The GNU C library defines this for functions which it implements
8740     to always fail with ENOSYS.  Some functions are actually named
8741     something starting with __ and the normal name is an alias.  */
8742 #if defined __stub_shl_load || defined __stub___shl_load
8743 choke me
8744 #endif
8745
8746 int
8747 main ()
8748 {
8749 return shl_load ();
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (ac_try="$ac_link"
8756 case "(($ac_try" in
8757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758   *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761   (eval "$ac_link") 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } && {
8768          test -z "$ac_c_werror_flag" ||
8769          test ! -s conftest.err
8770        } && test -s conftest$ac_exeext &&
8771        $as_test_x conftest$ac_exeext; then
8772   ac_cv_func_shl_load=yes
8773 else
8774   echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777         ac_cv_func_shl_load=no
8778 fi
8779
8780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8781       conftest$ac_exeext conftest.$ac_ext
8782 fi
8783 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8784 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8785 if test $ac_cv_func_shl_load = yes; then
8786   lt_cv_dlopen="shl_load"
8787 else
8788   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8789 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8790 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-ldld  $LIBS"
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801
8802 /* Override any GCC internal prototype to avoid an error.
8803    Use char because int might match the return type of a GCC
8804    builtin and then its argument prototype would still apply.  */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 char shl_load ();
8809 int
8810 main ()
8811 {
8812 return shl_load ();
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8819 case "(($ac_try" in
8820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821   *) ac_try_echo=$ac_try;;
8822 esac
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824   (eval "$ac_link") 2>conftest.er1
8825   ac_status=$?
8826   grep -v '^ *+' conftest.er1 >conftest.err
8827   rm -f conftest.er1
8828   cat conftest.err >&5
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } && {
8831          test -z "$ac_c_werror_flag" ||
8832          test ! -s conftest.err
8833        } && test -s conftest$ac_exeext &&
8834        $as_test_x conftest$ac_exeext; then
8835   ac_cv_lib_dld_shl_load=yes
8836 else
8837   echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8839
8840         ac_cv_lib_dld_shl_load=no
8841 fi
8842
8843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8844       conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8846 fi
8847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8848 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8849 if test $ac_cv_lib_dld_shl_load = yes; then
8850   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8851 else
8852   { echo "$as_me:$LINENO: checking for dlopen" >&5
8853 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8854 if test "${ac_cv_func_dlopen+set}" = set; then
8855   echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857   cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h.  */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h.  */
8863 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8865 #define dlopen innocuous_dlopen
8866
8867 /* System header to define __stub macros and hopefully few prototypes,
8868     which can conflict with char dlopen (); below.
8869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8870     <limits.h> exists even on freestanding compilers.  */
8871
8872 #ifdef __STDC__
8873 # include <limits.h>
8874 #else
8875 # include <assert.h>
8876 #endif
8877
8878 #undef dlopen
8879
8880 /* Override any GCC internal prototype to avoid an error.
8881    Use char because int might match the return type of a GCC
8882    builtin and then its argument prototype would still apply.  */
8883 #ifdef __cplusplus
8884 extern "C"
8885 #endif
8886 char dlopen ();
8887 /* The GNU C library defines this for functions which it implements
8888     to always fail with ENOSYS.  Some functions are actually named
8889     something starting with __ and the normal name is an alias.  */
8890 #if defined __stub_dlopen || defined __stub___dlopen
8891 choke me
8892 #endif
8893
8894 int
8895 main ()
8896 {
8897 return dlopen ();
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8904 case "(($ac_try" in
8905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906   *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909   (eval "$ac_link") 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
8913   cat conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } && {
8916          test -z "$ac_c_werror_flag" ||
8917          test ! -s conftest.err
8918        } && test -s conftest$ac_exeext &&
8919        $as_test_x conftest$ac_exeext; then
8920   ac_cv_func_dlopen=yes
8921 else
8922   echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8924
8925         ac_cv_func_dlopen=no
8926 fi
8927
8928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8929       conftest$ac_exeext conftest.$ac_ext
8930 fi
8931 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8932 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8933 if test $ac_cv_func_dlopen = yes; then
8934   lt_cv_dlopen="dlopen"
8935 else
8936   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8937 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-ldl  $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949
8950 /* Override any GCC internal prototype to avoid an error.
8951    Use char because int might match the return type of a GCC
8952    builtin and then its argument prototype would still apply.  */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 char dlopen ();
8957 int
8958 main ()
8959 {
8960 return dlopen ();
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (ac_try="$ac_link"
8967 case "(($ac_try" in
8968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969   *) ac_try_echo=$ac_try;;
8970 esac
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972   (eval "$ac_link") 2>conftest.er1
8973   ac_status=$?
8974   grep -v '^ *+' conftest.er1 >conftest.err
8975   rm -f conftest.er1
8976   cat conftest.err >&5
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } && {
8979          test -z "$ac_c_werror_flag" ||
8980          test ! -s conftest.err
8981        } && test -s conftest$ac_exeext &&
8982        $as_test_x conftest$ac_exeext; then
8983   ac_cv_lib_dl_dlopen=yes
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988         ac_cv_lib_dl_dlopen=no
8989 fi
8990
8991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8992       conftest$ac_exeext conftest.$ac_ext
8993 LIBS=$ac_check_lib_save_LIBS
8994 fi
8995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8997 if test $ac_cv_lib_dl_dlopen = yes; then
8998   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8999 else
9000   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9001 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9002 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   ac_check_lib_save_LIBS=$LIBS
9006 LIBS="-lsvld  $LIBS"
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013
9014 /* Override any GCC internal prototype to avoid an error.
9015    Use char because int might match the return type of a GCC
9016    builtin and then its argument prototype would still apply.  */
9017 #ifdef __cplusplus
9018 extern "C"
9019 #endif
9020 char dlopen ();
9021 int
9022 main ()
9023 {
9024 return dlopen ();
9025   ;
9026   return 0;
9027 }
9028 _ACEOF
9029 rm -f conftest.$ac_objext conftest$ac_exeext
9030 if { (ac_try="$ac_link"
9031 case "(($ac_try" in
9032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033   *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036   (eval "$ac_link") 2>conftest.er1
9037   ac_status=$?
9038   grep -v '^ *+' conftest.er1 >conftest.err
9039   rm -f conftest.er1
9040   cat conftest.err >&5
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } && {
9043          test -z "$ac_c_werror_flag" ||
9044          test ! -s conftest.err
9045        } && test -s conftest$ac_exeext &&
9046        $as_test_x conftest$ac_exeext; then
9047   ac_cv_lib_svld_dlopen=yes
9048 else
9049   echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9051
9052         ac_cv_lib_svld_dlopen=no
9053 fi
9054
9055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9056       conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_lib_save_LIBS
9058 fi
9059 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9060 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9061 if test $ac_cv_lib_svld_dlopen = yes; then
9062   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9063 else
9064   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9065 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9066 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9067   echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069   ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-ldld  $LIBS"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h.  */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h.  */
9077
9078 /* Override any GCC internal prototype to avoid an error.
9079    Use char because int might match the return type of a GCC
9080    builtin and then its argument prototype would still apply.  */
9081 #ifdef __cplusplus
9082 extern "C"
9083 #endif
9084 char dld_link ();
9085 int
9086 main ()
9087 {
9088 return dld_link ();
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9095 case "(($ac_try" in
9096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097   *) ac_try_echo=$ac_try;;
9098 esac
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100   (eval "$ac_link") 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } && {
9107          test -z "$ac_c_werror_flag" ||
9108          test ! -s conftest.err
9109        } && test -s conftest$ac_exeext &&
9110        $as_test_x conftest$ac_exeext; then
9111   ac_cv_lib_dld_dld_link=yes
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9115
9116         ac_cv_lib_dld_dld_link=no
9117 fi
9118
9119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9120       conftest$ac_exeext conftest.$ac_ext
9121 LIBS=$ac_check_lib_save_LIBS
9122 fi
9123 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9124 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9125 if test $ac_cv_lib_dld_dld_link = yes; then
9126   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9127 fi
9128
9129
9130 fi
9131
9132
9133 fi
9134
9135
9136 fi
9137
9138
9139 fi
9140
9141
9142 fi
9143
9144     ;;
9145   esac
9146
9147   if test "x$lt_cv_dlopen" != xno; then
9148     enable_dlopen=yes
9149   else
9150     enable_dlopen=no
9151   fi
9152
9153   case $lt_cv_dlopen in
9154   dlopen)
9155     save_CPPFLAGS="$CPPFLAGS"
9156     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9157
9158     save_LDFLAGS="$LDFLAGS"
9159     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9160
9161     save_LIBS="$LIBS"
9162     LIBS="$lt_cv_dlopen_libs $LIBS"
9163
9164     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9165 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9166 if test "${lt_cv_dlopen_self+set}" = set; then
9167   echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169           if test "$cross_compiling" = yes; then :
9170   lt_cv_dlopen_self=cross
9171 else
9172   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9173   lt_status=$lt_dlunknown
9174   cat > conftest.$ac_ext <<EOF
9175 #line 9175 "configure"
9176 #include "confdefs.h"
9177
9178 #if HAVE_DLFCN_H
9179 #include <dlfcn.h>
9180 #endif
9181
9182 #include <stdio.h>
9183
9184 #ifdef RTLD_GLOBAL
9185 #  define LT_DLGLOBAL           RTLD_GLOBAL
9186 #else
9187 #  ifdef DL_GLOBAL
9188 #    define LT_DLGLOBAL         DL_GLOBAL
9189 #  else
9190 #    define LT_DLGLOBAL         0
9191 #  endif
9192 #endif
9193
9194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9195    find out it does not work in some platform. */
9196 #ifndef LT_DLLAZY_OR_NOW
9197 #  ifdef RTLD_LAZY
9198 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9199 #  else
9200 #    ifdef DL_LAZY
9201 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9202 #    else
9203 #      ifdef RTLD_NOW
9204 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9205 #      else
9206 #        ifdef DL_NOW
9207 #          define LT_DLLAZY_OR_NOW      DL_NOW
9208 #        else
9209 #          define LT_DLLAZY_OR_NOW      0
9210 #        endif
9211 #      endif
9212 #    endif
9213 #  endif
9214 #endif
9215
9216 #ifdef __cplusplus
9217 extern "C" void exit (int);
9218 #endif
9219
9220 void fnord() { int i=42;}
9221 int main ()
9222 {
9223   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9224   int status = $lt_dlunknown;
9225
9226   if (self)
9227     {
9228       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9229       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9230       /* dlclose (self); */
9231     }
9232
9233     exit (status);
9234 }
9235 EOF
9236   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237   (eval $ac_link) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9241     (./conftest; exit; ) 2>/dev/null
9242     lt_status=$?
9243     case x$lt_status in
9244       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9245       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9246       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9247     esac
9248   else :
9249     # compilation failed
9250     lt_cv_dlopen_self=no
9251   fi
9252 fi
9253 rm -fr conftest*
9254
9255
9256 fi
9257 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9258 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9259
9260     if test "x$lt_cv_dlopen_self" = xyes; then
9261       LDFLAGS="$LDFLAGS $link_static_flag"
9262       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9263 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9264 if test "${lt_cv_dlopen_self_static+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267           if test "$cross_compiling" = yes; then :
9268   lt_cv_dlopen_self_static=cross
9269 else
9270   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9271   lt_status=$lt_dlunknown
9272   cat > conftest.$ac_ext <<EOF
9273 #line 9273 "configure"
9274 #include "confdefs.h"
9275
9276 #if HAVE_DLFCN_H
9277 #include <dlfcn.h>
9278 #endif
9279
9280 #include <stdio.h>
9281
9282 #ifdef RTLD_GLOBAL
9283 #  define LT_DLGLOBAL           RTLD_GLOBAL
9284 #else
9285 #  ifdef DL_GLOBAL
9286 #    define LT_DLGLOBAL         DL_GLOBAL
9287 #  else
9288 #    define LT_DLGLOBAL         0
9289 #  endif
9290 #endif
9291
9292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9293    find out it does not work in some platform. */
9294 #ifndef LT_DLLAZY_OR_NOW
9295 #  ifdef RTLD_LAZY
9296 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9297 #  else
9298 #    ifdef DL_LAZY
9299 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9300 #    else
9301 #      ifdef RTLD_NOW
9302 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9303 #      else
9304 #        ifdef DL_NOW
9305 #          define LT_DLLAZY_OR_NOW      DL_NOW
9306 #        else
9307 #          define LT_DLLAZY_OR_NOW      0
9308 #        endif
9309 #      endif
9310 #    endif
9311 #  endif
9312 #endif
9313
9314 #ifdef __cplusplus
9315 extern "C" void exit (int);
9316 #endif
9317
9318 void fnord() { int i=42;}
9319 int main ()
9320 {
9321   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9322   int status = $lt_dlunknown;
9323
9324   if (self)
9325     {
9326       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9327       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9328       /* dlclose (self); */
9329     }
9330
9331     exit (status);
9332 }
9333 EOF
9334   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9335   (eval $ac_link) 2>&5
9336   ac_status=$?
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9339     (./conftest; exit; ) 2>/dev/null
9340     lt_status=$?
9341     case x$lt_status in
9342       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9343       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9344       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9345     esac
9346   else :
9347     # compilation failed
9348     lt_cv_dlopen_self_static=no
9349   fi
9350 fi
9351 rm -fr conftest*
9352
9353
9354 fi
9355 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9356 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9357     fi
9358
9359     CPPFLAGS="$save_CPPFLAGS"
9360     LDFLAGS="$save_LDFLAGS"
9361     LIBS="$save_LIBS"
9362     ;;
9363   esac
9364
9365   case $lt_cv_dlopen_self in
9366   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9367   *) enable_dlopen_self=unknown ;;
9368   esac
9369
9370   case $lt_cv_dlopen_self_static in
9371   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9372   *) enable_dlopen_self_static=unknown ;;
9373   esac
9374 fi
9375
9376
9377 # Report which librarie types wil actually be built
9378 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9379 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9380 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9381 echo "${ECHO_T}$can_build_shared" >&6; }
9382
9383 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9384 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9385 test "$can_build_shared" = "no" && enable_shared=no
9386
9387 # On AIX, shared libraries and static libraries use the same namespace, and
9388 # are all built from PIC.
9389 case "$host_os" in
9390 aix3*)
9391   test "$enable_shared" = yes && enable_static=no
9392   if test -n "$RANLIB"; then
9393     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9394     postinstall_cmds='$RANLIB $lib'
9395   fi
9396   ;;
9397
9398 aix4* | aix5*)
9399   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9400     test "$enable_shared" = yes && enable_static=no
9401   fi
9402   ;;
9403   darwin* | rhapsody*)
9404   if test "$GCC" = yes; then
9405     archive_cmds_need_lc=no
9406     case "$host_os" in
9407     rhapsody* | darwin1.[012])
9408       allow_undefined_flag='-undefined suppress'
9409       ;;
9410     *) # Darwin 1.3 on
9411       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9412         allow_undefined_flag='-flat_namespace -undefined suppress'
9413       else
9414         case ${MACOSX_DEPLOYMENT_TARGET} in
9415           10.[012])
9416             allow_undefined_flag='-flat_namespace -undefined suppress'
9417             ;;
9418           10.*)
9419             allow_undefined_flag='-undefined dynamic_lookup'
9420             ;;
9421         esac
9422       fi
9423       ;;
9424     esac
9425     output_verbose_link_cmd='echo'
9426     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9427     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9428     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9429     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}'
9430     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}'
9431     hardcode_direct=no
9432     hardcode_automatic=yes
9433     hardcode_shlibpath_var=unsupported
9434     whole_archive_flag_spec='-all_load $convenience'
9435     link_all_deplibs=yes
9436   else
9437     ld_shlibs=no
9438   fi
9439     ;;
9440 esac
9441 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9442 echo "${ECHO_T}$enable_shared" >&6; }
9443
9444 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9445 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9446 # Make sure either enable_shared or enable_static is yes.
9447 test "$enable_shared" = yes || enable_static=yes
9448 { echo "$as_me:$LINENO: result: $enable_static" >&5
9449 echo "${ECHO_T}$enable_static" >&6; }
9450
9451 # The else clause should only fire when bootstrapping the
9452 # libtool distribution, otherwise you forgot to ship ltmain.sh
9453 # with your package, and you will get complaints that there are
9454 # no rules to generate ltmain.sh.
9455 if test -f "$ltmain"; then
9456   # See if we are running on zsh, and set the options which allow our commands through
9457   # without removal of \ escapes.
9458   if test -n "${ZSH_VERSION+set}" ; then
9459     setopt NO_GLOB_SUBST
9460   fi
9461   # Now quote all the things that may contain metacharacters while being
9462   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9463   # variables and quote the copies for generation of the libtool script.
9464   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9465     SED SHELL STRIP \
9466     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9467     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9468     deplibs_check_method reload_flag reload_cmds need_locks \
9469     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9470     lt_cv_sys_global_symbol_to_c_name_address \
9471     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9472     old_postinstall_cmds old_postuninstall_cmds \
9473     compiler \
9474     CC \
9475     LD \
9476     lt_prog_compiler_wl \
9477     lt_prog_compiler_pic \
9478     lt_prog_compiler_static \
9479     lt_prog_compiler_no_builtin_flag \
9480     export_dynamic_flag_spec \
9481     thread_safe_flag_spec \
9482     whole_archive_flag_spec \
9483     enable_shared_with_static_runtimes \
9484     old_archive_cmds \
9485     old_archive_from_new_cmds \
9486     predep_objects \
9487     postdep_objects \
9488     predeps \
9489     postdeps \
9490     compiler_lib_search_path \
9491     archive_cmds \
9492     archive_expsym_cmds \
9493     postinstall_cmds \
9494     postuninstall_cmds \
9495     old_archive_from_expsyms_cmds \
9496     allow_undefined_flag \
9497     no_undefined_flag \
9498     export_symbols_cmds \
9499     hardcode_libdir_flag_spec \
9500     hardcode_libdir_flag_spec_ld \
9501     hardcode_libdir_separator \
9502     hardcode_automatic \
9503     module_cmds \
9504     module_expsym_cmds \
9505     lt_cv_prog_compiler_c_o \
9506     exclude_expsyms \
9507     include_expsyms; do
9508
9509     case $var in
9510     old_archive_cmds | \
9511     old_archive_from_new_cmds | \
9512     archive_cmds | \
9513     archive_expsym_cmds | \
9514     module_cmds | \
9515     module_expsym_cmds | \
9516     old_archive_from_expsyms_cmds | \
9517     export_symbols_cmds | \
9518     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9519     postinstall_cmds | postuninstall_cmds | \
9520     old_postinstall_cmds | old_postuninstall_cmds | \
9521     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9522       # Double-quote double-evaled strings.
9523       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9524       ;;
9525     *)
9526       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9527       ;;
9528     esac
9529   done
9530
9531   case $lt_echo in
9532   *'\$0 --fallback-echo"')
9533     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9534     ;;
9535   esac
9536
9537 cfgfile="${ofile}T"
9538   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9539   $rm -f "$cfgfile"
9540   { echo "$as_me:$LINENO: creating $ofile" >&5
9541 echo "$as_me: creating $ofile" >&6;}
9542
9543   cat <<__EOF__ >> "$cfgfile"
9544 #! $SHELL
9545
9546 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9547 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9548 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9549 #
9550 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9551 # Free Software Foundation, Inc.
9552 #
9553 # This file is part of GNU Libtool:
9554 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9555 #
9556 # This program is free software; you can redistribute it and/or modify
9557 # it under the terms of the GNU General Public License as published by
9558 # the Free Software Foundation; either version 2 of the License, or
9559 # (at your option) any later version.
9560 #
9561 # This program is distributed in the hope that it will be useful, but
9562 # WITHOUT ANY WARRANTY; without even the implied warranty of
9563 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9564 # General Public License for more details.
9565 #
9566 # You should have received a copy of the GNU General Public License
9567 # along with this program; if not, write to the Free Software
9568 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9569 #
9570 # As a special exception to the GNU General Public License, if you
9571 # distribute this file as part of a program that contains a
9572 # configuration script generated by Autoconf, you may include it under
9573 # the same distribution terms that you use for the rest of that program.
9574
9575 # A sed program that does not truncate output.
9576 SED=$lt_SED
9577
9578 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9579 Xsed="$SED -e s/^X//"
9580
9581 # The HP-UX ksh and POSIX shell print the target directory to stdout
9582 # if CDPATH is set.
9583 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9584
9585 # The names of the tagged configurations supported by this script.
9586 available_tags=
9587
9588 # ### BEGIN LIBTOOL CONFIG
9589
9590 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9591
9592 # Shell to use when invoking shell scripts.
9593 SHELL=$lt_SHELL
9594
9595 # Whether or not to build shared libraries.
9596 build_libtool_libs=$enable_shared
9597
9598 # Whether or not to build static libraries.
9599 build_old_libs=$enable_static
9600
9601 # Whether or not to add -lc for building shared libraries.
9602 build_libtool_need_lc=$archive_cmds_need_lc
9603
9604 # Whether or not to disallow shared libs when runtime libs are static
9605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9606
9607 # Whether or not to optimize for fast installation.
9608 fast_install=$enable_fast_install
9609
9610 # The host system.
9611 host_alias=$host_alias
9612 host=$host
9613
9614 # An echo program that does not interpret backslashes.
9615 echo=$lt_echo
9616
9617 # The archiver.
9618 AR=$lt_AR
9619 AR_FLAGS=$lt_AR_FLAGS
9620
9621 # A C compiler.
9622 LTCC=$lt_LTCC
9623
9624 # A language-specific compiler.
9625 CC=$lt_compiler
9626
9627 # Is the compiler the GNU C compiler?
9628 with_gcc=$GCC
9629
9630 # An ERE matcher.
9631 EGREP=$lt_EGREP
9632
9633 # The linker used to build libraries.
9634 LD=$lt_LD
9635
9636 # Whether we need hard or soft links.
9637 LN_S=$lt_LN_S
9638
9639 # A BSD-compatible nm program.
9640 NM=$lt_NM
9641
9642 # A symbol stripping program
9643 STRIP=$lt_STRIP
9644
9645 # Used to examine libraries when file_magic_cmd begins "file"
9646 MAGIC_CMD=$MAGIC_CMD
9647
9648 # Used on cygwin: DLL creation program.
9649 DLLTOOL="$DLLTOOL"
9650
9651 # Used on cygwin: object dumper.
9652 OBJDUMP="$OBJDUMP"
9653
9654 # Used on cygwin: assembler.
9655 AS="$AS"
9656
9657 # The name of the directory that contains temporary libtool files.
9658 objdir=$objdir
9659
9660 # How to create reloadable object files.
9661 reload_flag=$lt_reload_flag
9662 reload_cmds=$lt_reload_cmds
9663
9664 # How to pass a linker flag through the compiler.
9665 wl=$lt_lt_prog_compiler_wl
9666
9667 # Object file suffix (normally "o").
9668 objext="$ac_objext"
9669
9670 # Old archive suffix (normally "a").
9671 libext="$libext"
9672
9673 # Shared library suffix (normally ".so").
9674 shrext_cmds='$shrext_cmds'
9675
9676 # Executable file suffix (normally "").
9677 exeext="$exeext"
9678
9679 # Additional compiler flags for building library objects.
9680 pic_flag=$lt_lt_prog_compiler_pic
9681 pic_mode=$pic_mode
9682
9683 # What is the maximum length of a command?
9684 max_cmd_len=$lt_cv_sys_max_cmd_len
9685
9686 # Does compiler simultaneously support -c and -o options?
9687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9688
9689 # Must we lock files when doing compilation ?
9690 need_locks=$lt_need_locks
9691
9692 # Do we need the lib prefix for modules?
9693 need_lib_prefix=$need_lib_prefix
9694
9695 # Do we need a version for libraries?
9696 need_version=$need_version
9697
9698 # Whether dlopen is supported.
9699 dlopen_support=$enable_dlopen
9700
9701 # Whether dlopen of programs is supported.
9702 dlopen_self=$enable_dlopen_self
9703
9704 # Whether dlopen of statically linked programs is supported.
9705 dlopen_self_static=$enable_dlopen_self_static
9706
9707 # Compiler flag to prevent dynamic linking.
9708 link_static_flag=$lt_lt_prog_compiler_static
9709
9710 # Compiler flag to turn off builtin functions.
9711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9712
9713 # Compiler flag to allow reflexive dlopens.
9714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9715
9716 # Compiler flag to generate shared objects directly from archives.
9717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9718
9719 # Compiler flag to generate thread-safe objects.
9720 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9721
9722 # Library versioning type.
9723 version_type=$version_type
9724
9725 # Format of library name prefix.
9726 libname_spec=$lt_libname_spec
9727
9728 # List of archive names.  First name is the real one, the rest are links.
9729 # The last name is the one that the linker finds with -lNAME.
9730 library_names_spec=$lt_library_names_spec
9731
9732 # The coded name of the library, if different from the real name.
9733 soname_spec=$lt_soname_spec
9734
9735 # Commands used to build and install an old-style archive.
9736 RANLIB=$lt_RANLIB
9737 old_archive_cmds=$lt_old_archive_cmds
9738 old_postinstall_cmds=$lt_old_postinstall_cmds
9739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9740
9741 # Create an old-style archive from a shared archive.
9742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9743
9744 # Create a temporary old-style archive to link instead of a shared archive.
9745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9746
9747 # Commands used to build and install a shared archive.
9748 archive_cmds=$lt_archive_cmds
9749 archive_expsym_cmds=$lt_archive_expsym_cmds
9750 postinstall_cmds=$lt_postinstall_cmds
9751 postuninstall_cmds=$lt_postuninstall_cmds
9752
9753 # Commands used to build a loadable module (assumed same as above if empty)
9754 module_cmds=$lt_module_cmds
9755 module_expsym_cmds=$lt_module_expsym_cmds
9756
9757 # Commands to strip libraries.
9758 old_striplib=$lt_old_striplib
9759 striplib=$lt_striplib
9760
9761 # Dependencies to place before the objects being linked to create a
9762 # shared library.
9763 predep_objects=$lt_predep_objects
9764
9765 # Dependencies to place after the objects being linked to create a
9766 # shared library.
9767 postdep_objects=$lt_postdep_objects
9768
9769 # Dependencies to place before the objects being linked to create a
9770 # shared library.
9771 predeps=$lt_predeps
9772
9773 # Dependencies to place after the objects being linked to create a
9774 # shared library.
9775 postdeps=$lt_postdeps
9776
9777 # The library search path used internally by the compiler when linking
9778 # a shared library.
9779 compiler_lib_search_path=$lt_compiler_lib_search_path
9780
9781 # Method to check whether dependent libraries are shared objects.
9782 deplibs_check_method=$lt_deplibs_check_method
9783
9784 # Command to use when deplibs_check_method == file_magic.
9785 file_magic_cmd=$lt_file_magic_cmd
9786
9787 # Flag that allows shared libraries with undefined symbols to be built.
9788 allow_undefined_flag=$lt_allow_undefined_flag
9789
9790 # Flag that forces no undefined symbols.
9791 no_undefined_flag=$lt_no_undefined_flag
9792
9793 # Commands used to finish a libtool library installation in a directory.
9794 finish_cmds=$lt_finish_cmds
9795
9796 # Same as above, but a single script fragment to be evaled but not shown.
9797 finish_eval=$lt_finish_eval
9798
9799 # Take the output of nm and produce a listing of raw symbols and C names.
9800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9801
9802 # Transform the output of nm in a proper C declaration
9803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9804
9805 # Transform the output of nm in a C name address pair
9806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9807
9808 # This is the shared library runtime path variable.
9809 runpath_var=$runpath_var
9810
9811 # This is the shared library path variable.
9812 shlibpath_var=$shlibpath_var
9813
9814 # Is shlibpath searched before the hard-coded library search path?
9815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9816
9817 # How to hardcode a shared library path into an executable.
9818 hardcode_action=$hardcode_action
9819
9820 # Whether we should hardcode library paths into libraries.
9821 hardcode_into_libs=$hardcode_into_libs
9822
9823 # Flag to hardcode \$libdir into a binary during linking.
9824 # This must work even if \$libdir does not exist.
9825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9826
9827 # If ld is used when linking, flag to hardcode \$libdir into
9828 # a binary during linking. This must work even if \$libdir does
9829 # not exist.
9830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9831
9832 # Whether we need a single -rpath flag with a separated argument.
9833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9834
9835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9836 # resulting binary.
9837 hardcode_direct=$hardcode_direct
9838
9839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9840 # resulting binary.
9841 hardcode_minus_L=$hardcode_minus_L
9842
9843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9844 # the resulting binary.
9845 hardcode_shlibpath_var=$hardcode_shlibpath_var
9846
9847 # Set to yes if building a shared library automatically hardcodes DIR into the library
9848 # and all subsequent libraries and executables linked against it.
9849 hardcode_automatic=$hardcode_automatic
9850
9851 # Variables whose values should be saved in libtool wrapper scripts and
9852 # restored at relink time.
9853 variables_saved_for_relink="$variables_saved_for_relink"
9854
9855 # Whether libtool must link a program against all its dependency libraries.
9856 link_all_deplibs=$link_all_deplibs
9857
9858 # Compile-time system search path for libraries
9859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9860
9861 # Run-time system search path for libraries
9862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9863
9864 # Fix the shell variable \$srcfile for the compiler.
9865 fix_srcfile_path="$fix_srcfile_path"
9866
9867 # Set to yes if exported symbols are required.
9868 always_export_symbols=$always_export_symbols
9869
9870 # The commands to list exported symbols.
9871 export_symbols_cmds=$lt_export_symbols_cmds
9872
9873 # The commands to extract the exported symbol list from a shared archive.
9874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9875
9876 # Symbols that should not be listed in the preloaded symbols.
9877 exclude_expsyms=$lt_exclude_expsyms
9878
9879 # Symbols that must always be exported.
9880 include_expsyms=$lt_include_expsyms
9881
9882 # ### END LIBTOOL CONFIG
9883
9884 __EOF__
9885
9886
9887   case $host_os in
9888   aix3*)
9889     cat <<\EOF >> "$cfgfile"
9890
9891 # AIX sometimes has problems with the GCC collect2 program.  For some
9892 # reason, if we set the COLLECT_NAMES environment variable, the problems
9893 # vanish in a puff of smoke.
9894 if test "X${COLLECT_NAMES+set}" != Xset; then
9895   COLLECT_NAMES=
9896   export COLLECT_NAMES
9897 fi
9898 EOF
9899     ;;
9900   esac
9901
9902   # We use sed instead of cat because bash on DJGPP gets confused if
9903   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9904   # text mode, it properly converts lines to CR/LF.  This bash problem
9905   # is reportedly fixed, but why not run on old versions too?
9906   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9907
9908   mv -f "$cfgfile" "$ofile" || \
9909     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9910   chmod +x "$ofile"
9911
9912 else
9913   # If there is no Makefile yet, we rely on a make rule to execute
9914   # `config.status --recheck' to rerun these tests and create the
9915   # libtool script then.
9916   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9917   if test -f "$ltmain_in"; then
9918     test -f Makefile && make "$ltmain"
9919   fi
9920 fi
9921
9922
9923 ac_ext=c
9924 ac_cpp='$CPP $CPPFLAGS'
9925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9928
9929 CC="$lt_save_CC"
9930
9931
9932 # Check whether --with-tags was given.
9933 if test "${with_tags+set}" = set; then
9934   withval=$with_tags; tagnames="$withval"
9935 fi
9936
9937
9938 if test -f "$ltmain" && test -n "$tagnames"; then
9939   if test ! -f "${ofile}"; then
9940     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9941 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9942   fi
9943
9944   if test -z "$LTCC"; then
9945     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9946     if test -z "$LTCC"; then
9947       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9948 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9949     else
9950       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9951 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9952     fi
9953   fi
9954
9955   # Extract list of available tagged configurations in $ofile.
9956   # Note that this assumes the entire list is on one line.
9957   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9958
9959   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9960   for tagname in $tagnames; do
9961     IFS="$lt_save_ifs"
9962     # Check whether tagname contains only valid characters
9963     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9964     "") ;;
9965     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9966 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9967    { (exit 1); exit 1; }; }
9968         ;;
9969     esac
9970
9971     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9972     then
9973       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9974 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9975    { (exit 1); exit 1; }; }
9976     fi
9977
9978     # Update the list of available tags.
9979     if test -n "$tagname"; then
9980       echo appending configuration tag \"$tagname\" to $ofile
9981
9982       case $tagname in
9983       CXX)
9984         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9985           ac_ext=cpp
9986 ac_cpp='$CXXCPP $CPPFLAGS'
9987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9990
9991
9992
9993
9994 archive_cmds_need_lc_CXX=no
9995 allow_undefined_flag_CXX=
9996 always_export_symbols_CXX=no
9997 archive_expsym_cmds_CXX=
9998 export_dynamic_flag_spec_CXX=
9999 hardcode_direct_CXX=no
10000 hardcode_libdir_flag_spec_CXX=
10001 hardcode_libdir_flag_spec_ld_CXX=
10002 hardcode_libdir_separator_CXX=
10003 hardcode_minus_L_CXX=no
10004 hardcode_automatic_CXX=no
10005 module_cmds_CXX=
10006 module_expsym_cmds_CXX=
10007 link_all_deplibs_CXX=unknown
10008 old_archive_cmds_CXX=$old_archive_cmds
10009 no_undefined_flag_CXX=
10010 whole_archive_flag_spec_CXX=
10011 enable_shared_with_static_runtimes_CXX=no
10012
10013 # Dependencies to place before and after the object being linked:
10014 predep_objects_CXX=
10015 postdep_objects_CXX=
10016 predeps_CXX=
10017 postdeps_CXX=
10018 compiler_lib_search_path_CXX=
10019
10020 # Source file extension for C++ test sources.
10021 ac_ext=cc
10022
10023 # Object file extension for compiled C++ test sources.
10024 objext=o
10025 objext_CXX=$objext
10026
10027 # Code to be used in simple compile tests
10028 lt_simple_compile_test_code="int some_variable = 0;\n"
10029
10030 # Code to be used in simple link tests
10031 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10032
10033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10034
10035 # If no C compiler was specified, use CC.
10036 LTCC=${LTCC-"$CC"}
10037
10038 # Allow CC to be a program name with arguments.
10039 compiler=$CC
10040
10041
10042 # Allow CC to be a program name with arguments.
10043 lt_save_CC=$CC
10044 lt_save_LD=$LD
10045 lt_save_GCC=$GCC
10046 GCC=$GXX
10047 lt_save_with_gnu_ld=$with_gnu_ld
10048 lt_save_path_LD=$lt_cv_path_LD
10049 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10050   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10051 else
10052   unset lt_cv_prog_gnu_ld
10053 fi
10054 if test -n "${lt_cv_path_LDCXX+set}"; then
10055   lt_cv_path_LD=$lt_cv_path_LDCXX
10056 else
10057   unset lt_cv_path_LD
10058 fi
10059 test -z "${LDCXX+set}" || LD=$LDCXX
10060 CC=${CXX-"c++"}
10061 compiler=$CC
10062 compiler_CXX=$CC
10063 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10064
10065 # We don't want -fno-exception wen compiling C++ code, so set the
10066 # no_builtin_flag separately
10067 if test "$GXX" = yes; then
10068   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10069 else
10070   lt_prog_compiler_no_builtin_flag_CXX=
10071 fi
10072
10073 if test "$GXX" = yes; then
10074   # Set up default GNU C++ configuration
10075
10076
10077 # Check whether --with-gnu-ld was given.
10078 if test "${with_gnu_ld+set}" = set; then
10079   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10080 else
10081   with_gnu_ld=no
10082 fi
10083
10084 ac_prog=ld
10085 if test "$GCC" = yes; then
10086   # Check if gcc -print-prog-name=ld gives a path.
10087   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10088 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10089   case $host in
10090   *-*-mingw*)
10091     # gcc leaves a trailing carriage return which upsets mingw
10092     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10093   *)
10094     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10095   esac
10096   case $ac_prog in
10097     # Accept absolute paths.
10098     [\\/]* | ?:[\\/]*)
10099       re_direlt='/[^/][^/]*/\.\./'
10100       # Canonicalize the pathname of ld
10101       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10102       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10103         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10104       done
10105       test -z "$LD" && LD="$ac_prog"
10106       ;;
10107   "")
10108     # If it fails, then pretend we aren't using GCC.
10109     ac_prog=ld
10110     ;;
10111   *)
10112     # If it is relative, then search for the first ld in PATH.
10113     with_gnu_ld=unknown
10114     ;;
10115   esac
10116 elif test "$with_gnu_ld" = yes; then
10117   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10119 else
10120   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10122 fi
10123 if test "${lt_cv_path_LD+set}" = set; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126   if test -z "$LD"; then
10127   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10128   for ac_dir in $PATH; do
10129     IFS="$lt_save_ifs"
10130     test -z "$ac_dir" && ac_dir=.
10131     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10132       lt_cv_path_LD="$ac_dir/$ac_prog"
10133       # Check to see if the program is GNU ld.  I'd rather use --version,
10134       # but apparently some GNU ld's only accept -v.
10135       # Break only if it was the GNU/non-GNU ld that we prefer.
10136       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10137       *GNU* | *'with BFD'*)
10138         test "$with_gnu_ld" != no && break
10139         ;;
10140       *)
10141         test "$with_gnu_ld" != yes && break
10142         ;;
10143       esac
10144     fi
10145   done
10146   IFS="$lt_save_ifs"
10147 else
10148   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10149 fi
10150 fi
10151
10152 LD="$lt_cv_path_LD"
10153 if test -n "$LD"; then
10154   { echo "$as_me:$LINENO: result: $LD" >&5
10155 echo "${ECHO_T}$LD" >&6; }
10156 else
10157   { echo "$as_me:$LINENO: result: no" >&5
10158 echo "${ECHO_T}no" >&6; }
10159 fi
10160 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10161 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10162    { (exit 1); exit 1; }; }
10163 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10164 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10165 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10166   echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10169 case `$LD -v 2>&1 </dev/null` in
10170 *GNU* | *'with BFD'*)
10171   lt_cv_prog_gnu_ld=yes
10172   ;;
10173 *)
10174   lt_cv_prog_gnu_ld=no
10175   ;;
10176 esac
10177 fi
10178 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10179 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10180 with_gnu_ld=$lt_cv_prog_gnu_ld
10181
10182
10183
10184   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10185   # archiving commands below assume that GNU ld is being used.
10186   if test "$with_gnu_ld" = yes; then
10187     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10188     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'
10189
10190     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10191     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10192
10193     # If archive_cmds runs LD, not CC, wlarc should be empty
10194     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10195     #     investigate it a little bit more. (MM)
10196     wlarc='${wl}'
10197
10198     # ancient GNU ld didn't support --whole-archive et. al.
10199     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10200         grep 'no-whole-archive' > /dev/null; then
10201       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10202     else
10203       whole_archive_flag_spec_CXX=
10204     fi
10205   else
10206     with_gnu_ld=no
10207     wlarc=
10208
10209     # A generic and very simple default shared library creation
10210     # command for GNU C++ for the case where it uses the native
10211     # linker, instead of GNU ld.  If possible, this setting should
10212     # overridden to take advantage of the native linker features on
10213     # the platform it is being used on.
10214     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10215   fi
10216
10217   # Commands to make compiler produce verbose output that lists
10218   # what "hidden" libraries, object files and flags are used when
10219   # linking a shared library.
10220   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10221
10222 else
10223   GXX=no
10224   with_gnu_ld=no
10225   wlarc=
10226 fi
10227
10228 # PORTME: fill in a description of your system's C++ link characteristics
10229 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10231 ld_shlibs_CXX=yes
10232 case $host_os in
10233   aix3*)
10234     # FIXME: insert proper C++ library support
10235     ld_shlibs_CXX=no
10236     ;;
10237   aix4* | aix5*)
10238     if test "$host_cpu" = ia64; then
10239       # On IA64, the linker does run time linking by default, so we don't
10240       # have to do anything special.
10241       aix_use_runtimelinking=no
10242       exp_sym_flag='-Bexport'
10243       no_entry_flag=""
10244     else
10245       aix_use_runtimelinking=no
10246
10247       # Test if we are trying to use run time linking or normal
10248       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10249       # need to do runtime linking.
10250       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10251         for ld_flag in $LDFLAGS; do
10252           case $ld_flag in
10253           *-brtl*)
10254             aix_use_runtimelinking=yes
10255             break
10256             ;;
10257           esac
10258         done
10259       esac
10260
10261       exp_sym_flag='-bexport'
10262       no_entry_flag='-bnoentry'
10263     fi
10264
10265     # When large executables or shared objects are built, AIX ld can
10266     # have problems creating the table of contents.  If linking a library
10267     # or program results in "error TOC overflow" add -mminimal-toc to
10268     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10269     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10270
10271     archive_cmds_CXX=''
10272     hardcode_direct_CXX=yes
10273     hardcode_libdir_separator_CXX=':'
10274     link_all_deplibs_CXX=yes
10275
10276     if test "$GXX" = yes; then
10277       case $host_os in aix4.012|aix4.012.*)
10278       # We only want to do this on AIX 4.2 and lower, the check
10279       # below for broken collect2 doesn't work under 4.3+
10280         collect2name=`${CC} -print-prog-name=collect2`
10281         if test -f "$collect2name" && \
10282            strings "$collect2name" | grep resolve_lib_name >/dev/null
10283         then
10284           # We have reworked collect2
10285           hardcode_direct_CXX=yes
10286         else
10287           # We have old collect2
10288           hardcode_direct_CXX=unsupported
10289           # It fails to find uninstalled libraries when the uninstalled
10290           # path is not listed in the libpath.  Setting hardcode_minus_L
10291           # to unsupported forces relinking
10292           hardcode_minus_L_CXX=yes
10293           hardcode_libdir_flag_spec_CXX='-L$libdir'
10294           hardcode_libdir_separator_CXX=
10295         fi
10296       esac
10297       shared_flag='-shared'
10298     else
10299       # not using gcc
10300       if test "$host_cpu" = ia64; then
10301         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10302         # chokes on -Wl,-G. The following line is correct:
10303         shared_flag='-G'
10304       else
10305         if test "$aix_use_runtimelinking" = yes; then
10306           shared_flag='${wl}-G'
10307         else
10308           shared_flag='${wl}-bM:SRE'
10309         fi
10310       fi
10311     fi
10312
10313     # It seems that -bexpall does not export symbols beginning with
10314     # underscore (_), so it is better to generate a list of symbols to export.
10315     always_export_symbols_CXX=yes
10316     if test "$aix_use_runtimelinking" = yes; then
10317       # Warning - without using the other runtime loading flags (-brtl),
10318       # -berok will link without error, but may produce a broken library.
10319       allow_undefined_flag_CXX='-berok'
10320       # Determine the default libpath from the value encoded in an empty executable.
10321       cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327
10328 int
10329 main ()
10330 {
10331
10332   ;
10333   return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340   *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343   (eval "$ac_link") 2>conftest.er1
10344   ac_status=$?
10345   grep -v '^ *+' conftest.er1 >conftest.err
10346   rm -f conftest.er1
10347   cat conftest.err >&5
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } && {
10350          test -z "$ac_cxx_werror_flag" ||
10351          test ! -s conftest.err
10352        } && test -s conftest$ac_exeext &&
10353        $as_test_x conftest$ac_exeext; then
10354
10355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10356 }'`
10357 # Check for a 64-bit object if we didn't find anything.
10358 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; }
10359 }'`; fi
10360 else
10361   echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10363
10364
10365 fi
10366
10367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10368       conftest$ac_exeext conftest.$ac_ext
10369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10370
10371       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10372
10373       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10374      else
10375       if test "$host_cpu" = ia64; then
10376         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10377         allow_undefined_flag_CXX="-z nodefs"
10378         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10379       else
10380         # Determine the default libpath from the value encoded in an empty executable.
10381         cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h.  */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h.  */
10387
10388 int
10389 main ()
10390 {
10391
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403   (eval "$ac_link") 2>conftest.er1
10404   ac_status=$?
10405   grep -v '^ *+' conftest.er1 >conftest.err
10406   rm -f conftest.er1
10407   cat conftest.err >&5
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); } && {
10410          test -z "$ac_cxx_werror_flag" ||
10411          test ! -s conftest.err
10412        } && test -s conftest$ac_exeext &&
10413        $as_test_x conftest$ac_exeext; then
10414
10415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10416 }'`
10417 # Check for a 64-bit object if we didn't find anything.
10418 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; }
10419 }'`; fi
10420 else
10421   echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424
10425 fi
10426
10427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10428       conftest$ac_exeext conftest.$ac_ext
10429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10430
10431         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10432         # Warning - without using the other run time loading flags,
10433         # -berok will link without error, but may produce a broken library.
10434         no_undefined_flag_CXX=' ${wl}-bernotok'
10435         allow_undefined_flag_CXX=' ${wl}-berok'
10436         # -bexpall does not export symbols beginning with underscore (_)
10437         always_export_symbols_CXX=yes
10438         # Exported symbols can be pulled into shared objects from archives
10439         whole_archive_flag_spec_CXX=' '
10440         archive_cmds_need_lc_CXX=yes
10441         # This is similar to how AIX traditionally builds it's shared libraries.
10442         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10443       fi
10444     fi
10445     ;;
10446   chorus*)
10447     case $cc_basename in
10448       *)
10449         # FIXME: insert proper C++ library support
10450         ld_shlibs_CXX=no
10451         ;;
10452     esac
10453     ;;
10454
10455   cygwin* | mingw* | pw32*)
10456     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10457     # as there is no search path for DLLs.
10458     hardcode_libdir_flag_spec_CXX='-L$libdir'
10459     allow_undefined_flag_CXX=unsupported
10460     always_export_symbols_CXX=no
10461     enable_shared_with_static_runtimes_CXX=yes
10462
10463     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10464       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10465       # If the export-symbols file already is a .def file (1st line
10466       # is EXPORTS), use it as is; otherwise, prepend...
10467       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10468         cp $export_symbols $output_objdir/$soname.def;
10469       else
10470         echo EXPORTS > $output_objdir/$soname.def;
10471         cat $export_symbols >> $output_objdir/$soname.def;
10472       fi~
10473       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10474     else
10475       ld_shlibs_CXX=no
10476     fi
10477   ;;
10478
10479   darwin* | rhapsody*)
10480   if test "$GXX" = yes; then
10481     archive_cmds_need_lc_CXX=no
10482     case "$host_os" in
10483     rhapsody* | darwin1.[012])
10484       allow_undefined_flag_CXX='-undefined suppress'
10485       ;;
10486     *) # Darwin 1.3 on
10487       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10488         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10489       else
10490         case ${MACOSX_DEPLOYMENT_TARGET} in
10491           10.[012])
10492             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10493             ;;
10494           10.*)
10495             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10496             ;;
10497         esac
10498       fi
10499       ;;
10500     esac
10501     lt_int_apple_cc_single_mod=no
10502     output_verbose_link_cmd='echo'
10503     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10504       lt_int_apple_cc_single_mod=yes
10505     fi
10506     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10507       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10508     else
10509       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10510     fi
10511     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10512
10513     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10514     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10515       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}'
10516     else
10517       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10518     fi
10519     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}'
10520     hardcode_direct_CXX=no
10521     hardcode_automatic_CXX=yes
10522     hardcode_shlibpath_var_CXX=unsupported
10523     whole_archive_flag_spec_CXX='-all_load $convenience'
10524     link_all_deplibs_CXX=yes
10525   else
10526     ld_shlibs_CXX=no
10527   fi
10528     ;;
10529
10530   dgux*)
10531     case $cc_basename in
10532       ec++)
10533         # FIXME: insert proper C++ library support
10534         ld_shlibs_CXX=no
10535         ;;
10536       ghcx)
10537         # Green Hills C++ Compiler
10538         # FIXME: insert proper C++ library support
10539         ld_shlibs_CXX=no
10540         ;;
10541       *)
10542         # FIXME: insert proper C++ library support
10543         ld_shlibs_CXX=no
10544         ;;
10545     esac
10546     ;;
10547   freebsd12*)
10548     # C++ shared libraries reported to be fairly broken before switch to ELF
10549     ld_shlibs_CXX=no
10550     ;;
10551   freebsd-elf*)
10552     archive_cmds_need_lc_CXX=no
10553     ;;
10554   freebsd* | kfreebsd*-gnu)
10555     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10556     # conventions
10557     ld_shlibs_CXX=yes
10558     ;;
10559   gnu*)
10560     ;;
10561   hpux9*)
10562     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10563     hardcode_libdir_separator_CXX=:
10564     export_dynamic_flag_spec_CXX='${wl}-E'
10565     hardcode_direct_CXX=yes
10566     hardcode_minus_L_CXX=yes # Not in the search PATH,
10567                                 # but as the default
10568                                 # location of the library.
10569
10570     case $cc_basename in
10571     CC)
10572       # FIXME: insert proper C++ library support
10573       ld_shlibs_CXX=no
10574       ;;
10575     aCC)
10576       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'
10577       # Commands to make compiler produce verbose output that lists
10578       # what "hidden" libraries, object files and flags are used when
10579       # linking a shared library.
10580       #
10581       # There doesn't appear to be a way to prevent this compiler from
10582       # explicitly linking system object files so we need to strip them
10583       # from the output so that they don't get included in the library
10584       # dependencies.
10585       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'
10586       ;;
10587     *)
10588       if test "$GXX" = yes; then
10589         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'
10590       else
10591         # FIXME: insert proper C++ library support
10592         ld_shlibs_CXX=no
10593       fi
10594       ;;
10595     esac
10596     ;;
10597   hpux10*|hpux11*)
10598     if test $with_gnu_ld = no; then
10599       case "$host_cpu" in
10600       hppa*64*)
10601         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10602         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10603         hardcode_libdir_separator_CXX=:
10604         ;;
10605       ia64*)
10606         hardcode_libdir_flag_spec_CXX='-L$libdir'
10607         ;;
10608       *)
10609         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10610         hardcode_libdir_separator_CXX=:
10611         export_dynamic_flag_spec_CXX='${wl}-E'
10612         ;;
10613       esac
10614     fi
10615     case "$host_cpu" in
10616     hppa*64*)
10617       hardcode_direct_CXX=no
10618       hardcode_shlibpath_var_CXX=no
10619       ;;
10620     ia64*)
10621       hardcode_direct_CXX=no
10622       hardcode_shlibpath_var_CXX=no
10623       hardcode_minus_L_CXX=yes # Not in the search PATH,
10624                                               # but as the default
10625                                               # location of the library.
10626       ;;
10627     *)
10628       hardcode_direct_CXX=yes
10629       hardcode_minus_L_CXX=yes # Not in the search PATH,
10630                                               # but as the default
10631                                               # location of the library.
10632       ;;
10633     esac
10634
10635     case $cc_basename in
10636       CC)
10637         # FIXME: insert proper C++ library support
10638         ld_shlibs_CXX=no
10639         ;;
10640       aCC)
10641         case "$host_cpu" in
10642         hppa*64*|ia64*)
10643           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10644           ;;
10645         *)
10646           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10647           ;;
10648         esac
10649         # Commands to make compiler produce verbose output that lists
10650         # what "hidden" libraries, object files and flags are used when
10651         # linking a shared library.
10652         #
10653         # There doesn't appear to be a way to prevent this compiler from
10654         # explicitly linking system object files so we need to strip them
10655         # from the output so that they don't get included in the library
10656         # dependencies.
10657         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'
10658         ;;
10659       *)
10660         if test "$GXX" = yes; then
10661           if test $with_gnu_ld = no; then
10662             case "$host_cpu" in
10663             ia64*|hppa*64*)
10664               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10665               ;;
10666             *)
10667               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'
10668               ;;
10669             esac
10670           fi
10671         else
10672           # FIXME: insert proper C++ library support
10673           ld_shlibs_CXX=no
10674         fi
10675         ;;
10676     esac
10677     ;;
10678   irix5* | irix6*)
10679     case $cc_basename in
10680       CC)
10681         # SGI C++
10682         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10683
10684         # Archives containing C++ object files must be created using
10685         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10686         # necessary to make sure instantiated templates are included
10687         # in the archive.
10688         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10689         ;;
10690       *)
10691         if test "$GXX" = yes; then
10692           if test "$with_gnu_ld" = no; then
10693             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10694           else
10695             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'
10696           fi
10697         fi
10698         link_all_deplibs_CXX=yes
10699         ;;
10700     esac
10701     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10702     hardcode_libdir_separator_CXX=:
10703     ;;
10704   linux*)
10705     case $cc_basename in
10706       KCC)
10707         # Kuck and Associates, Inc. (KAI) C++ Compiler
10708
10709         # KCC will only create a shared library if the output file
10710         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10711         # to its proper name (with version) after linking.
10712         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'
10713         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'
10714         # Commands to make compiler produce verbose output that lists
10715         # what "hidden" libraries, object files and flags are used when
10716         # linking a shared library.
10717         #
10718         # There doesn't appear to be a way to prevent this compiler from
10719         # explicitly linking system object files so we need to strip them
10720         # from the output so that they don't get included in the library
10721         # dependencies.
10722         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'
10723
10724         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10725         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10726
10727         # Archives containing C++ object files must be created using
10728         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10729         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10730         ;;
10731       icpc)
10732         # Intel C++
10733         with_gnu_ld=yes
10734         archive_cmds_need_lc_CXX=no
10735         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10736         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'
10737         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10738         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10739         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10740         ;;
10741       cxx)
10742         # Compaq C++
10743         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10744         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'
10745
10746         runpath_var=LD_RUN_PATH
10747         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10748         hardcode_libdir_separator_CXX=:
10749
10750         # Commands to make compiler produce verbose output that lists
10751         # what "hidden" libraries, object files and flags are used when
10752         # linking a shared library.
10753         #
10754         # There doesn't appear to be a way to prevent this compiler from
10755         # explicitly linking system object files so we need to strip them
10756         # from the output so that they don't get included in the library
10757         # dependencies.
10758         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'
10759         ;;
10760     esac
10761     ;;
10762   lynxos*)
10763     # FIXME: insert proper C++ library support
10764     ld_shlibs_CXX=no
10765     ;;
10766   m88k*)
10767     # FIXME: insert proper C++ library support
10768     ld_shlibs_CXX=no
10769     ;;
10770   mvs*)
10771     case $cc_basename in
10772       cxx)
10773         # FIXME: insert proper C++ library support
10774         ld_shlibs_CXX=no
10775         ;;
10776       *)
10777         # FIXME: insert proper C++ library support
10778         ld_shlibs_CXX=no
10779         ;;
10780     esac
10781     ;;
10782   netbsd*)
10783     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10784       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10785       wlarc=
10786       hardcode_libdir_flag_spec_CXX='-R$libdir'
10787       hardcode_direct_CXX=yes
10788       hardcode_shlibpath_var_CXX=no
10789     fi
10790     # Workaround some broken pre-1.5 toolchains
10791     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10792     ;;
10793   osf3*)
10794     case $cc_basename in
10795       KCC)
10796         # Kuck and Associates, Inc. (KAI) C++ Compiler
10797
10798         # KCC will only create a shared library if the output file
10799         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10800         # to its proper name (with version) after linking.
10801         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'
10802
10803         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10804         hardcode_libdir_separator_CXX=:
10805
10806         # Archives containing C++ object files must be created using
10807         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10808         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10809
10810         ;;
10811       RCC)
10812         # Rational C++ 2.4.1
10813         # FIXME: insert proper C++ library support
10814         ld_shlibs_CXX=no
10815         ;;
10816       cxx)
10817         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10818         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10819
10820         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10821         hardcode_libdir_separator_CXX=:
10822
10823         # Commands to make compiler produce verbose output that lists
10824         # what "hidden" libraries, object files and flags are used when
10825         # linking a shared library.
10826         #
10827         # There doesn't appear to be a way to prevent this compiler from
10828         # explicitly linking system object files so we need to strip them
10829         # from the output so that they don't get included in the library
10830         # dependencies.
10831         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'
10832         ;;
10833       *)
10834         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10835           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10836           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10837
10838           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10839           hardcode_libdir_separator_CXX=:
10840
10841           # Commands to make compiler produce verbose output that lists
10842           # what "hidden" libraries, object files and flags are used when
10843           # linking a shared library.
10844           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10845
10846         else
10847           # FIXME: insert proper C++ library support
10848           ld_shlibs_CXX=no
10849         fi
10850         ;;
10851     esac
10852     ;;
10853   osf4* | osf5*)
10854     case $cc_basename in
10855       KCC)
10856         # Kuck and Associates, Inc. (KAI) C++ Compiler
10857
10858         # KCC will only create a shared library if the output file
10859         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10860         # to its proper name (with version) after linking.
10861         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'
10862
10863         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10864         hardcode_libdir_separator_CXX=:
10865
10866         # Archives containing C++ object files must be created using
10867         # the KAI C++ compiler.
10868         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10869         ;;
10870       RCC)
10871         # Rational C++ 2.4.1
10872         # FIXME: insert proper C++ library support
10873         ld_shlibs_CXX=no
10874         ;;
10875       cxx)
10876         allow_undefined_flag_CXX=' -expect_unresolved \*'
10877         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10878         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10879           echo "-hidden">> $lib.exp~
10880           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10881           $rm $lib.exp'
10882
10883         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10884         hardcode_libdir_separator_CXX=:
10885
10886         # Commands to make compiler produce verbose output that lists
10887         # what "hidden" libraries, object files and flags are used when
10888         # linking a shared library.
10889         #
10890         # There doesn't appear to be a way to prevent this compiler from
10891         # explicitly linking system object files so we need to strip them
10892         # from the output so that they don't get included in the library
10893         # dependencies.
10894         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'
10895         ;;
10896       *)
10897         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10898           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10899          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10900
10901           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10902           hardcode_libdir_separator_CXX=:
10903
10904           # Commands to make compiler produce verbose output that lists
10905           # what "hidden" libraries, object files and flags are used when
10906           # linking a shared library.
10907           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10908
10909         else
10910           # FIXME: insert proper C++ library support
10911           ld_shlibs_CXX=no
10912         fi
10913         ;;
10914     esac
10915     ;;
10916   psos*)
10917     # FIXME: insert proper C++ library support
10918     ld_shlibs_CXX=no
10919     ;;
10920   sco*)
10921     archive_cmds_need_lc_CXX=no
10922     case $cc_basename in
10923       CC)
10924         # FIXME: insert proper C++ library support
10925         ld_shlibs_CXX=no
10926         ;;
10927       *)
10928         # FIXME: insert proper C++ library support
10929         ld_shlibs_CXX=no
10930         ;;
10931     esac
10932     ;;
10933   sunos4*)
10934     case $cc_basename in
10935       CC)
10936         # Sun C++ 4.x
10937         # FIXME: insert proper C++ library support
10938         ld_shlibs_CXX=no
10939         ;;
10940       lcc)
10941         # Lucid
10942         # FIXME: insert proper C++ library support
10943         ld_shlibs_CXX=no
10944         ;;
10945       *)
10946         # FIXME: insert proper C++ library support
10947         ld_shlibs_CXX=no
10948         ;;
10949     esac
10950     ;;
10951   solaris*)
10952     case $cc_basename in
10953       CC)
10954         # Sun C++ 4.2, 5.x and Centerline C++
10955         no_undefined_flag_CXX=' -zdefs'
10956         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10957         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10958         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10959
10960         hardcode_libdir_flag_spec_CXX='-R$libdir'
10961         hardcode_shlibpath_var_CXX=no
10962         case $host_os in
10963           solaris2.0-5 | solaris2.0-5.*) ;;
10964           *)
10965             # The C++ compiler is used as linker so we must use $wl
10966             # flag to pass the commands to the underlying system
10967             # linker.
10968             # Supported since Solaris 2.6 (maybe 2.5.1?)
10969             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10970             ;;
10971         esac
10972         link_all_deplibs_CXX=yes
10973
10974         # Commands to make compiler produce verbose output that lists
10975         # what "hidden" libraries, object files and flags are used when
10976         # linking a shared library.
10977         #
10978         # There doesn't appear to be a way to prevent this compiler from
10979         # explicitly linking system object files so we need to strip them
10980         # from the output so that they don't get included in the library
10981         # dependencies.
10982         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10983
10984         # Archives containing C++ object files must be created using
10985         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10986         # necessary to make sure instantiated templates are included
10987         # in the archive.
10988         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10989         ;;
10990       gcx)
10991         # Green Hills C++ Compiler
10992         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10993
10994         # The C++ compiler must be used to create the archive.
10995         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10996         ;;
10997       *)
10998         # GNU C++ compiler with Solaris linker
10999         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11000           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11001           if $CC --version | grep -v '^2\.7' > /dev/null; then
11002             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11003             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11004                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11005
11006             # Commands to make compiler produce verbose output that lists
11007             # what "hidden" libraries, object files and flags are used when
11008             # linking a shared library.
11009             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11010           else
11011             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11012             # platform.
11013             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11014             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11015                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11016
11017             # Commands to make compiler produce verbose output that lists
11018             # what "hidden" libraries, object files and flags are used when
11019             # linking a shared library.
11020             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11021           fi
11022
11023           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11024         fi
11025         ;;
11026     esac
11027     ;;
11028   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11029     archive_cmds_need_lc_CXX=no
11030     ;;
11031   tandem*)
11032     case $cc_basename in
11033       NCC)
11034         # NonStop-UX NCC 3.20
11035         # FIXME: insert proper C++ library support
11036         ld_shlibs_CXX=no
11037         ;;
11038       *)
11039         # FIXME: insert proper C++ library support
11040         ld_shlibs_CXX=no
11041         ;;
11042     esac
11043     ;;
11044   vxworks*)
11045     # FIXME: insert proper C++ library support
11046     ld_shlibs_CXX=no
11047     ;;
11048   *)
11049     # FIXME: insert proper C++ library support
11050     ld_shlibs_CXX=no
11051     ;;
11052 esac
11053 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11054 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11055 test "$ld_shlibs_CXX" = no && can_build_shared=no
11056
11057 GCC_CXX="$GXX"
11058 LD_CXX="$LD"
11059
11060 ## CAVEAT EMPTOR:
11061 ## There is no encapsulation within the following macros, do not change
11062 ## the running order or otherwise move them around unless you know exactly
11063 ## what you are doing...
11064
11065 cat > conftest.$ac_ext <<EOF
11066 class Foo
11067 {
11068 public:
11069   Foo (void) { a = 0; }
11070 private:
11071   int a;
11072 };
11073 EOF
11074
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076   (eval $ac_compile) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; then
11080   # Parse the compiler output and extract the necessary
11081   # objects, libraries and library flags.
11082
11083   # Sentinel used to keep track of whether or not we are before
11084   # the conftest object file.
11085   pre_test_object_deps_done=no
11086
11087   # The `*' in the case matches for architectures that use `case' in
11088   # $output_verbose_cmd can trigger glob expansion during the loop
11089   # eval without this substitution.
11090   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11091
11092   for p in `eval $output_verbose_link_cmd`; do
11093     case $p in
11094
11095     -L* | -R* | -l*)
11096        # Some compilers place space between "-{L,R}" and the path.
11097        # Remove the space.
11098        if test $p = "-L" \
11099           || test $p = "-R"; then
11100          prev=$p
11101          continue
11102        else
11103          prev=
11104        fi
11105
11106        if test "$pre_test_object_deps_done" = no; then
11107          case $p in
11108          -L* | -R*)
11109            # Internal compiler library paths should come after those
11110            # provided the user.  The postdeps already come after the
11111            # user supplied libs so there is no need to process them.
11112            if test -z "$compiler_lib_search_path_CXX"; then
11113              compiler_lib_search_path_CXX="${prev}${p}"
11114            else
11115              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11116            fi
11117            ;;
11118          # The "-l" case would never come before the object being
11119          # linked, so don't bother handling this case.
11120          esac
11121        else
11122          if test -z "$postdeps_CXX"; then
11123            postdeps_CXX="${prev}${p}"
11124          else
11125            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11126          fi
11127        fi
11128        ;;
11129
11130     *.$objext)
11131        # This assumes that the test object file only shows up
11132        # once in the compiler output.
11133        if test "$p" = "conftest.$objext"; then
11134          pre_test_object_deps_done=yes
11135          continue
11136        fi
11137
11138        if test "$pre_test_object_deps_done" = no; then
11139          if test -z "$predep_objects_CXX"; then
11140            predep_objects_CXX="$p"
11141          else
11142            predep_objects_CXX="$predep_objects_CXX $p"
11143          fi
11144        else
11145          if test -z "$postdep_objects_CXX"; then
11146            postdep_objects_CXX="$p"
11147          else
11148            postdep_objects_CXX="$postdep_objects_CXX $p"
11149          fi
11150        fi
11151        ;;
11152
11153     *) ;; # Ignore the rest.
11154
11155     esac
11156   done
11157
11158   # Clean up.
11159   rm -f a.out a.exe
11160 else
11161   echo "libtool.m4: error: problem compiling CXX test program"
11162 fi
11163
11164 $rm -f confest.$objext
11165
11166 case " $postdeps_CXX " in
11167 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11168 esac
11169
11170 lt_prog_compiler_wl_CXX=
11171 lt_prog_compiler_pic_CXX=
11172 lt_prog_compiler_static_CXX=
11173
11174 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11176
11177   # C++ specific cases for pic, static, wl, etc.
11178   if test "$GXX" = yes; then
11179     lt_prog_compiler_wl_CXX='-Wl,'
11180     lt_prog_compiler_static_CXX='-static'
11181
11182     case $host_os in
11183     aix*)
11184       # All AIX code is PIC.
11185       if test "$host_cpu" = ia64; then
11186         # AIX 5 now supports IA64 processor
11187         lt_prog_compiler_static_CXX='-Bstatic'
11188       fi
11189       ;;
11190     amigaos*)
11191       # FIXME: we need at least 68020 code to build shared libraries, but
11192       # adding the `-m68020' flag to GCC prevents building anything better,
11193       # like `-m68040'.
11194       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11195       ;;
11196     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11197       # PIC is the default for these OSes.
11198       ;;
11199     mingw* | os2* | pw32*)
11200       # This hack is so that the source file can tell whether it is being
11201       # built for inclusion in a dll (and should export symbols for example).
11202       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11203       ;;
11204     darwin* | rhapsody*)
11205       # PIC is the default on this platform
11206       # Common symbols not allowed in MH_DYLIB files
11207       lt_prog_compiler_pic_CXX='-fno-common'
11208       ;;
11209     *djgpp*)
11210       # DJGPP does not support shared libraries at all
11211       lt_prog_compiler_pic_CXX=
11212       ;;
11213     sysv4*MP*)
11214       if test -d /usr/nec; then
11215         lt_prog_compiler_pic_CXX=-Kconform_pic
11216       fi
11217       ;;
11218     hpux*)
11219       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11220       # not for PA HP-UX.
11221       case "$host_cpu" in
11222       hppa*64*|ia64*)
11223         ;;
11224       *)
11225         lt_prog_compiler_pic_CXX='-fPIC'
11226         ;;
11227       esac
11228       ;;
11229     *)
11230       lt_prog_compiler_pic_CXX='-fPIC'
11231       ;;
11232     esac
11233   else
11234     case $host_os in
11235       aix4* | aix5*)
11236         # All AIX code is PIC.
11237         if test "$host_cpu" = ia64; then
11238           # AIX 5 now supports IA64 processor
11239           lt_prog_compiler_static_CXX='-Bstatic'
11240         else
11241           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11242         fi
11243         ;;
11244       chorus*)
11245         case $cc_basename in
11246         cxch68)
11247           # Green Hills C++ Compiler
11248           # _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"
11249           ;;
11250         esac
11251         ;;
11252       dgux*)
11253         case $cc_basename in
11254           ec++)
11255             lt_prog_compiler_pic_CXX='-KPIC'
11256             ;;
11257           ghcx)
11258             # Green Hills C++ Compiler
11259             lt_prog_compiler_pic_CXX='-pic'
11260             ;;
11261           *)
11262             ;;
11263         esac
11264         ;;
11265       freebsd* | kfreebsd*-gnu)
11266         # FreeBSD uses GNU C++
11267         ;;
11268       hpux9* | hpux10* | hpux11*)
11269         case $cc_basename in
11270           CC)
11271             lt_prog_compiler_wl_CXX='-Wl,'
11272             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11273             if test "$host_cpu" != ia64; then
11274               lt_prog_compiler_pic_CXX='+Z'
11275             fi
11276             ;;
11277           aCC)
11278             lt_prog_compiler_wl_CXX='-Wl,'
11279             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11280             case "$host_cpu" in
11281             hppa*64*|ia64*)
11282               # +Z the default
11283               ;;
11284             *)
11285               lt_prog_compiler_pic_CXX='+Z'
11286               ;;
11287             esac
11288             ;;
11289           *)
11290             ;;
11291         esac
11292         ;;
11293       irix5* | irix6* | nonstopux*)
11294         case $cc_basename in
11295           CC)
11296             lt_prog_compiler_wl_CXX='-Wl,'
11297             lt_prog_compiler_static_CXX='-non_shared'
11298             # CC pic flag -KPIC is the default.
11299             ;;
11300           *)
11301             ;;
11302         esac
11303         ;;
11304       linux*)
11305         case $cc_basename in
11306           KCC)
11307             # KAI C++ Compiler
11308             lt_prog_compiler_wl_CXX='--backend -Wl,'
11309             lt_prog_compiler_pic_CXX='-fPIC'
11310             ;;
11311           icpc)
11312             # Intel C++
11313             lt_prog_compiler_wl_CXX='-Wl,'
11314             lt_prog_compiler_pic_CXX='-KPIC'
11315             lt_prog_compiler_static_CXX='-static'
11316             ;;
11317           cxx)
11318             # Compaq C++
11319             # Make sure the PIC flag is empty.  It appears that all Alpha
11320             # Linux and Compaq Tru64 Unix objects are PIC.
11321             lt_prog_compiler_pic_CXX=
11322             lt_prog_compiler_static_CXX='-non_shared'
11323             ;;
11324           *)
11325             ;;
11326         esac
11327         ;;
11328       lynxos*)
11329         ;;
11330       m88k*)
11331         ;;
11332       mvs*)
11333         case $cc_basename in
11334           cxx)
11335             lt_prog_compiler_pic_CXX='-W c,exportall'
11336             ;;
11337           *)
11338             ;;
11339         esac
11340         ;;
11341       netbsd*)
11342         ;;
11343       osf3* | osf4* | osf5*)
11344         case $cc_basename in
11345           KCC)
11346             lt_prog_compiler_wl_CXX='--backend -Wl,'
11347             ;;
11348           RCC)
11349             # Rational C++ 2.4.1
11350             lt_prog_compiler_pic_CXX='-pic'
11351             ;;
11352           cxx)
11353             # Digital/Compaq C++
11354             lt_prog_compiler_wl_CXX='-Wl,'
11355             # Make sure the PIC flag is empty.  It appears that all Alpha
11356             # Linux and Compaq Tru64 Unix objects are PIC.
11357             lt_prog_compiler_pic_CXX=
11358             lt_prog_compiler_static_CXX='-non_shared'
11359             ;;
11360           *)
11361             ;;
11362         esac
11363         ;;
11364       psos*)
11365         ;;
11366       sco*)
11367         case $cc_basename in
11368           CC)
11369             lt_prog_compiler_pic_CXX='-fPIC'
11370             ;;
11371           *)
11372             ;;
11373         esac
11374         ;;
11375       solaris*)
11376         case $cc_basename in
11377           CC)
11378             # Sun C++ 4.2, 5.x and Centerline C++
11379             lt_prog_compiler_pic_CXX='-KPIC'
11380             lt_prog_compiler_static_CXX='-Bstatic'
11381             lt_prog_compiler_wl_CXX='-Qoption ld '
11382             ;;
11383           gcx)
11384             # Green Hills C++ Compiler
11385             lt_prog_compiler_pic_CXX='-PIC'
11386             ;;
11387           *)
11388             ;;
11389         esac
11390         ;;
11391       sunos4*)
11392         case $cc_basename in
11393           CC)
11394             # Sun C++ 4.x
11395             lt_prog_compiler_pic_CXX='-pic'
11396             lt_prog_compiler_static_CXX='-Bstatic'
11397             ;;
11398           lcc)
11399             # Lucid
11400             lt_prog_compiler_pic_CXX='-pic'
11401             ;;
11402           *)
11403             ;;
11404         esac
11405         ;;
11406       tandem*)
11407         case $cc_basename in
11408           NCC)
11409             # NonStop-UX NCC 3.20
11410             lt_prog_compiler_pic_CXX='-KPIC'
11411             ;;
11412           *)
11413             ;;
11414         esac
11415         ;;
11416       unixware*)
11417         ;;
11418       vxworks*)
11419         ;;
11420       *)
11421         lt_prog_compiler_can_build_shared_CXX=no
11422         ;;
11423     esac
11424   fi
11425
11426 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11427 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11428
11429 #
11430 # Check to make sure the PIC flag actually works.
11431 #
11432 if test -n "$lt_prog_compiler_pic_CXX"; then
11433
11434 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11435 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11436 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11437   echo $ECHO_N "(cached) $ECHO_C" >&6
11438 else
11439   lt_prog_compiler_pic_works_CXX=no
11440   ac_outfile=conftest.$ac_objext
11441    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11442    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11443    # Insert the option either (1) after the last *FLAGS variable, or
11444    # (2) before a word containing "conftest.", or (3) at the end.
11445    # Note that $ac_compile itself does not contain backslashes and begins
11446    # with a dollar sign (not a hyphen), so the echo should work correctly.
11447    # The option is referenced via a variable to avoid confusing sed.
11448    lt_compile=`echo "$ac_compile" | $SED \
11449    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11450    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11451    -e 's:$: $lt_compiler_flag:'`
11452    (eval echo "\"\$as_me:11452: $lt_compile\"" >&5)
11453    (eval "$lt_compile" 2>conftest.err)
11454    ac_status=$?
11455    cat conftest.err >&5
11456    echo "$as_me:11456: \$? = $ac_status" >&5
11457    if (exit $ac_status) && test -s "$ac_outfile"; then
11458      # The compiler can only warn and ignore the option if not recognized
11459      # So say no if there are warnings
11460      if test ! -s conftest.err; then
11461        lt_prog_compiler_pic_works_CXX=yes
11462      fi
11463    fi
11464    $rm conftest*
11465
11466 fi
11467 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11468 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11469
11470 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11471     case $lt_prog_compiler_pic_CXX in
11472      "" | " "*) ;;
11473      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11474      esac
11475 else
11476     lt_prog_compiler_pic_CXX=
11477      lt_prog_compiler_can_build_shared_CXX=no
11478 fi
11479
11480 fi
11481 case "$host_os" in
11482   # For platforms which do not support PIC, -DPIC is meaningless:
11483   *djgpp*)
11484     lt_prog_compiler_pic_CXX=
11485     ;;
11486   *)
11487     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11488     ;;
11489 esac
11490
11491 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11493 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496   lt_cv_prog_compiler_c_o_CXX=no
11497    $rm -r conftest 2>/dev/null
11498    mkdir conftest
11499    cd conftest
11500    mkdir out
11501    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11502
11503    lt_compiler_flag="-o out/conftest2.$ac_objext"
11504    # Insert the option either (1) after the last *FLAGS variable, or
11505    # (2) before a word containing "conftest.", or (3) at the end.
11506    # Note that $ac_compile itself does not contain backslashes and begins
11507    # with a dollar sign (not a hyphen), so the echo should work correctly.
11508    lt_compile=`echo "$ac_compile" | $SED \
11509    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11511    -e 's:$: $lt_compiler_flag:'`
11512    (eval echo "\"\$as_me:11512: $lt_compile\"" >&5)
11513    (eval "$lt_compile" 2>out/conftest.err)
11514    ac_status=$?
11515    cat out/conftest.err >&5
11516    echo "$as_me:11516: \$? = $ac_status" >&5
11517    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11518    then
11519      # The compiler can only warn and ignore the option if not recognized
11520      # So say no if there are warnings
11521      if test ! -s out/conftest.err; then
11522        lt_cv_prog_compiler_c_o_CXX=yes
11523      fi
11524    fi
11525    chmod u+w .
11526    $rm conftest*
11527    # SGI C++ compiler will create directory out/ii_files/ for
11528    # template instantiation
11529    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11530    $rm out/* && rmdir out
11531    cd ..
11532    rmdir conftest
11533    $rm conftest*
11534
11535 fi
11536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11538
11539
11540 hard_links="nottested"
11541 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11542   # do not overwrite the value of need_locks provided by the user
11543   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11545   hard_links=yes
11546   $rm conftest*
11547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11548   touch conftest.a
11549   ln conftest.a conftest.b 2>&5 || hard_links=no
11550   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11551   { echo "$as_me:$LINENO: result: $hard_links" >&5
11552 echo "${ECHO_T}$hard_links" >&6; }
11553   if test "$hard_links" = no; then
11554     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11556     need_locks=warn
11557   fi
11558 else
11559   need_locks=no
11560 fi
11561
11562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11564
11565   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11566   case $host_os in
11567   aix4* | aix5*)
11568     # If we're using GNU nm, then we don't want the "-C" option.
11569     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11570     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11571       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'
11572     else
11573       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'
11574     fi
11575     ;;
11576   pw32*)
11577     export_symbols_cmds_CXX="$ltdll_cmds"
11578   ;;
11579   cygwin* | mingw*)
11580     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11581   ;;
11582   *)
11583     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11584   ;;
11585   esac
11586
11587 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11588 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11589 test "$ld_shlibs_CXX" = no && can_build_shared=no
11590
11591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11592 if test "$GCC" = yes; then
11593   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11594 fi
11595
11596 #
11597 # Do we need to explicitly link libc?
11598 #
11599 case "x$archive_cmds_need_lc_CXX" in
11600 x|xyes)
11601   # Assume -lc should be added
11602   archive_cmds_need_lc_CXX=yes
11603
11604   if test "$enable_shared" = yes && test "$GCC" = yes; then
11605     case $archive_cmds_CXX in
11606     *'~'*)
11607       # FIXME: we may have to deal with multi-command sequences.
11608       ;;
11609     '$CC '*)
11610       # Test whether the compiler implicitly links with -lc since on some
11611       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11612       # to ld, don't add -lc before -lgcc.
11613       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11614 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11615       $rm conftest*
11616       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11617
11618       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11619   (eval $ac_compile) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); } 2>conftest.err; then
11623         soname=conftest
11624         lib=conftest
11625         libobjs=conftest.$ac_objext
11626         deplibs=
11627         wl=$lt_prog_compiler_wl_CXX
11628         compiler_flags=-v
11629         linker_flags=-v
11630         verstring=
11631         output_objdir=.
11632         libname=conftest
11633         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11634         allow_undefined_flag_CXX=
11635         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11636   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11637   ac_status=$?
11638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639   (exit $ac_status); }
11640         then
11641           archive_cmds_need_lc_CXX=no
11642         else
11643           archive_cmds_need_lc_CXX=yes
11644         fi
11645         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11646       else
11647         cat conftest.err 1>&5
11648       fi
11649       $rm conftest*
11650       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11651 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11652       ;;
11653     esac
11654   fi
11655   ;;
11656 esac
11657
11658 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11659 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11660 library_names_spec=
11661 libname_spec='lib$name'
11662 soname_spec=
11663 shrext_cmds=".so"
11664 postinstall_cmds=
11665 postuninstall_cmds=
11666 finish_cmds=
11667 finish_eval=
11668 shlibpath_var=
11669 shlibpath_overrides_runpath=unknown
11670 version_type=none
11671 dynamic_linker="$host_os ld.so"
11672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11673 if test "$GCC" = yes; then
11674   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11675   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11676     # if the path contains ";" then we assume it to be the separator
11677     # otherwise default to the standard path separator (i.e. ":") - it is
11678     # assumed that no part of a normal pathname contains ";" but that should
11679     # okay in the real world where ";" in dirpaths is itself problematic.
11680     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11681   else
11682     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11683   fi
11684 else
11685   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11686 fi
11687 need_lib_prefix=unknown
11688 hardcode_into_libs=no
11689
11690 # when you set need_version to no, make sure it does not cause -set_version
11691 # flags to be left without arguments
11692 need_version=unknown
11693
11694 case $host_os in
11695 aix3*)
11696   version_type=linux
11697   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11698   shlibpath_var=LIBPATH
11699
11700   # AIX 3 has no versioning support, so we append a major version to the name.
11701   soname_spec='${libname}${release}${shared_ext}$major'
11702   ;;
11703
11704 aix4* | aix5*)
11705   version_type=linux
11706   need_lib_prefix=no
11707   need_version=no
11708   hardcode_into_libs=yes
11709   if test "$host_cpu" = ia64; then
11710     # AIX 5 supports IA64
11711     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11712     shlibpath_var=LD_LIBRARY_PATH
11713   else
11714     # With GCC up to 2.95.x, collect2 would create an import file
11715     # for dependence libraries.  The import file would start with
11716     # the line `#! .'.  This would cause the generated library to
11717     # depend on `.', always an invalid library.  This was fixed in
11718     # development snapshots of GCC prior to 3.0.
11719     case $host_os in
11720       aix4 | aix4.[01] | aix4.[01].*)
11721       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11722            echo ' yes '
11723            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11724         :
11725       else
11726         can_build_shared=no
11727       fi
11728       ;;
11729     esac
11730     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11731     # soname into executable. Probably we can add versioning support to
11732     # collect2, so additional links can be useful in future.
11733     if test "$aix_use_runtimelinking" = yes; then
11734       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11735       # instead of lib<name>.a to let people know that these are not
11736       # typical AIX shared libraries.
11737       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738     else
11739       # We preserve .a as extension for shared libraries through AIX4.2
11740       # and later when we are not doing run time linking.
11741       library_names_spec='${libname}${release}.a $libname.a'
11742       soname_spec='${libname}${release}${shared_ext}$major'
11743     fi
11744     shlibpath_var=LIBPATH
11745   fi
11746   ;;
11747
11748 amigaos*)
11749   library_names_spec='$libname.ixlibrary $libname.a'
11750   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11751   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'
11752   ;;
11753
11754 beos*)
11755   library_names_spec='${libname}${shared_ext}'
11756   dynamic_linker="$host_os ld.so"
11757   shlibpath_var=LIBRARY_PATH
11758   ;;
11759
11760 bsdi4*)
11761   version_type=linux
11762   need_version=no
11763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764   soname_spec='${libname}${release}${shared_ext}$major'
11765   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11766   shlibpath_var=LD_LIBRARY_PATH
11767   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11768   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11769   # the default ld.so.conf also contains /usr/contrib/lib and
11770   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11771   # libtool to hard-code these into programs
11772   ;;
11773
11774 cygwin* | mingw* | pw32*)
11775   version_type=windows
11776   shrext_cmds=".dll"
11777   need_version=no
11778   need_lib_prefix=no
11779
11780   case $GCC,$host_os in
11781   yes,cygwin* | yes,mingw* | yes,pw32*)
11782     library_names_spec='$libname.dll.a'
11783     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11784     postinstall_cmds='base_file=`basename \${file}`~
11785       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11786       dldir=$destdir/`dirname \$dlpath`~
11787       test -d \$dldir || mkdir -p \$dldir~
11788       $install_prog $dir/$dlname \$dldir/$dlname'
11789     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11790       dlpath=$dir/\$dldll~
11791        $rm \$dlpath'
11792     shlibpath_overrides_runpath=yes
11793
11794     case $host_os in
11795     cygwin*)
11796       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11797       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11798       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11799       ;;
11800     mingw*)
11801       # MinGW DLLs use traditional 'lib' prefix
11802       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11803       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11804       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11805         # It is most probably a Windows format PATH printed by
11806         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11807         # path with ; separators, and with drive letters. We can handle the
11808         # drive letters (cygwin fileutils understands them), so leave them,
11809         # especially as we might pass files found there to a mingw objdump,
11810         # which wouldn't understand a cygwinified path. Ahh.
11811         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11812       else
11813         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11814       fi
11815       ;;
11816     pw32*)
11817       # pw32 DLLs use 'pw' prefix rather than 'lib'
11818       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11819       ;;
11820     esac
11821     ;;
11822
11823   *)
11824     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11825     ;;
11826   esac
11827   dynamic_linker='Win32 ld.exe'
11828   # FIXME: first we should search . and the directory the executable is in
11829   shlibpath_var=PATH
11830   ;;
11831
11832 darwin* | rhapsody*)
11833   dynamic_linker="$host_os dyld"
11834   version_type=darwin
11835   need_lib_prefix=no
11836   need_version=no
11837   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11838   soname_spec='${libname}${release}${major}$shared_ext'
11839   shlibpath_overrides_runpath=yes
11840   shlibpath_var=DYLD_LIBRARY_PATH
11841   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11842   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11843   if test "$GCC" = yes; then
11844     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"`
11845   else
11846     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11847   fi
11848   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11849   ;;
11850
11851 dgux*)
11852   version_type=linux
11853   need_lib_prefix=no
11854   need_version=no
11855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11856   soname_spec='${libname}${release}${shared_ext}$major'
11857   shlibpath_var=LD_LIBRARY_PATH
11858   ;;
11859
11860 freebsd1*)
11861   dynamic_linker=no
11862   ;;
11863
11864 kfreebsd*-gnu)
11865   version_type=linux
11866   need_lib_prefix=no
11867   need_version=no
11868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11869   soname_spec='${libname}${release}${shared_ext}$major'
11870   shlibpath_var=LD_LIBRARY_PATH
11871   shlibpath_overrides_runpath=no
11872   hardcode_into_libs=yes
11873   dynamic_linker='GNU ld.so'
11874   ;;
11875
11876 freebsd*)
11877   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11878   version_type=freebsd-$objformat
11879   case $version_type in
11880     freebsd-elf*)
11881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11882       need_version=no
11883       need_lib_prefix=no
11884       ;;
11885     freebsd-*)
11886       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11887       need_version=yes
11888       ;;
11889   esac
11890   shlibpath_var=LD_LIBRARY_PATH
11891   case $host_os in
11892   freebsd2*)
11893     shlibpath_overrides_runpath=yes
11894     ;;
11895   freebsd3.01* | freebsdelf3.01*)
11896     shlibpath_overrides_runpath=yes
11897     hardcode_into_libs=yes
11898     ;;
11899   *) # from 3.2 on
11900     shlibpath_overrides_runpath=no
11901     hardcode_into_libs=yes
11902     ;;
11903   esac
11904   ;;
11905
11906 gnu*)
11907   version_type=linux
11908   need_lib_prefix=no
11909   need_version=no
11910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11911   soname_spec='${libname}${release}${shared_ext}$major'
11912   shlibpath_var=LD_LIBRARY_PATH
11913   hardcode_into_libs=yes
11914   ;;
11915
11916 hpux9* | hpux10* | hpux11*)
11917   # Give a soname corresponding to the major version so that dld.sl refuses to
11918   # link against other versions.
11919   version_type=sunos
11920   need_lib_prefix=no
11921   need_version=no
11922   case "$host_cpu" in
11923   ia64*)
11924     shrext_cmds='.so'
11925     hardcode_into_libs=yes
11926     dynamic_linker="$host_os dld.so"
11927     shlibpath_var=LD_LIBRARY_PATH
11928     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930     soname_spec='${libname}${release}${shared_ext}$major'
11931     if test "X$HPUX_IA64_MODE" = X32; then
11932       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11933     else
11934       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11935     fi
11936     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11937     ;;
11938    hppa*64*)
11939      shrext_cmds='.sl'
11940      hardcode_into_libs=yes
11941      dynamic_linker="$host_os dld.sl"
11942      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11943      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11944      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945      soname_spec='${libname}${release}${shared_ext}$major'
11946      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11947      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11948      ;;
11949    *)
11950     shrext_cmds='.sl'
11951     dynamic_linker="$host_os dld.sl"
11952     shlibpath_var=SHLIB_PATH
11953     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955     soname_spec='${libname}${release}${shared_ext}$major'
11956     ;;
11957   esac
11958   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11959   postinstall_cmds='chmod 555 $lib'
11960   ;;
11961
11962 irix5* | irix6* | nonstopux*)
11963   case $host_os in
11964     nonstopux*) version_type=nonstopux ;;
11965     *)
11966         if test "$lt_cv_prog_gnu_ld" = yes; then
11967                 version_type=linux
11968         else
11969                 version_type=irix
11970         fi ;;
11971   esac
11972   need_lib_prefix=no
11973   need_version=no
11974   soname_spec='${libname}${release}${shared_ext}$major'
11975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11976   case $host_os in
11977   irix5* | nonstopux*)
11978     libsuff= shlibsuff=
11979     ;;
11980   *)
11981     case $LD in # libtool.m4 will add one of these switches to LD
11982     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11983       libsuff= shlibsuff= libmagic=32-bit;;
11984     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11985       libsuff=32 shlibsuff=N32 libmagic=N32;;
11986     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11987       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11988     *) libsuff= shlibsuff= libmagic=never-match;;
11989     esac
11990     ;;
11991   esac
11992   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11993   shlibpath_overrides_runpath=no
11994   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11995   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11996   hardcode_into_libs=yes
11997   ;;
11998
11999 # No shared lib support for Linux oldld, aout, or coff.
12000 linux*oldld* | linux*aout* | linux*coff*)
12001   dynamic_linker=no
12002   ;;
12003
12004 # This must be Linux ELF.
12005 linux*)
12006   version_type=linux
12007   need_lib_prefix=no
12008   need_version=no
12009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12010   soname_spec='${libname}${release}${shared_ext}$major'
12011   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12012   shlibpath_var=LD_LIBRARY_PATH
12013   shlibpath_overrides_runpath=no
12014   # This implies no fast_install, which is unacceptable.
12015   # Some rework will be needed to allow for fast_install
12016   # before this can be enabled.
12017   hardcode_into_libs=yes
12018
12019   # find out which ABI we are using
12020   libsuff=
12021   case "$host_cpu" in
12022   x86_64*|s390x*|powerpc64*)
12023     echo '#line 12023 "configure"' > conftest.$ac_ext
12024     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025   (eval $ac_compile) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; then
12029       case `/usr/bin/file conftest.$ac_objext` in
12030       *64-bit*)
12031         libsuff=64
12032         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12033         ;;
12034       esac
12035     fi
12036     rm -rf conftest*
12037     ;;
12038   esac
12039
12040   # Append ld.so.conf contents to the search path
12041   if test -f /etc/ld.so.conf; then
12042     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12043     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12044   fi
12045
12046   # We used to test for /lib/ld.so.1 and disable shared libraries on
12047   # powerpc, because MkLinux only supported shared libraries with the
12048   # GNU dynamic linker.  Since this was broken with cross compilers,
12049   # most powerpc-linux boxes support dynamic linking these days and
12050   # people can always --disable-shared, the test was removed, and we
12051   # assume the GNU/Linux dynamic linker is in use.
12052   dynamic_linker='GNU/Linux ld.so'
12053   ;;
12054
12055 knetbsd*-gnu)
12056   version_type=linux
12057   need_lib_prefix=no
12058   need_version=no
12059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12060   soname_spec='${libname}${release}${shared_ext}$major'
12061   shlibpath_var=LD_LIBRARY_PATH
12062   shlibpath_overrides_runpath=no
12063   hardcode_into_libs=yes
12064   dynamic_linker='GNU ld.so'
12065   ;;
12066
12067 netbsd*)
12068   version_type=sunos
12069   need_lib_prefix=no
12070   need_version=no
12071   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12073     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12074     dynamic_linker='NetBSD (a.out) ld.so'
12075   else
12076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12077     soname_spec='${libname}${release}${shared_ext}$major'
12078     dynamic_linker='NetBSD ld.elf_so'
12079   fi
12080   shlibpath_var=LD_LIBRARY_PATH
12081   shlibpath_overrides_runpath=yes
12082   hardcode_into_libs=yes
12083   ;;
12084
12085 newsos6)
12086   version_type=linux
12087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088   shlibpath_var=LD_LIBRARY_PATH
12089   shlibpath_overrides_runpath=yes
12090   ;;
12091
12092 nto-qnx*)
12093   version_type=linux
12094   need_lib_prefix=no
12095   need_version=no
12096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097   soname_spec='${libname}${release}${shared_ext}$major'
12098   shlibpath_var=LD_LIBRARY_PATH
12099   shlibpath_overrides_runpath=yes
12100   ;;
12101
12102 openbsd*)
12103   version_type=sunos
12104   need_lib_prefix=no
12105   need_version=yes
12106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12107   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12108   shlibpath_var=LD_LIBRARY_PATH
12109   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12110     case $host_os in
12111       openbsd2.[89] | openbsd2.[89].*)
12112         shlibpath_overrides_runpath=no
12113         ;;
12114       *)
12115         shlibpath_overrides_runpath=yes
12116         ;;
12117       esac
12118   else
12119     shlibpath_overrides_runpath=yes
12120   fi
12121   ;;
12122
12123 os2*)
12124   libname_spec='$name'
12125   shrext_cmds=".dll"
12126   need_lib_prefix=no
12127   library_names_spec='$libname${shared_ext} $libname.a'
12128   dynamic_linker='OS/2 ld.exe'
12129   shlibpath_var=LIBPATH
12130   ;;
12131
12132 osf3* | osf4* | osf5*)
12133   version_type=osf
12134   need_lib_prefix=no
12135   need_version=no
12136   soname_spec='${libname}${release}${shared_ext}$major'
12137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12138   shlibpath_var=LD_LIBRARY_PATH
12139   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12140   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12141   ;;
12142
12143 sco3.2v5*)
12144   version_type=osf
12145   soname_spec='${libname}${release}${shared_ext}$major'
12146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147   shlibpath_var=LD_LIBRARY_PATH
12148   ;;
12149
12150 solaris*)
12151   version_type=linux
12152   need_lib_prefix=no
12153   need_version=no
12154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12155   soname_spec='${libname}${release}${shared_ext}$major'
12156   shlibpath_var=LD_LIBRARY_PATH
12157   shlibpath_overrides_runpath=yes
12158   hardcode_into_libs=yes
12159   # ldd complains unless libraries are executable
12160   postinstall_cmds='chmod +x $lib'
12161   ;;
12162
12163 sunos4*)
12164   version_type=sunos
12165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12166   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12167   shlibpath_var=LD_LIBRARY_PATH
12168   shlibpath_overrides_runpath=yes
12169   if test "$with_gnu_ld" = yes; then
12170     need_lib_prefix=no
12171   fi
12172   need_version=yes
12173   ;;
12174
12175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12176   version_type=linux
12177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12178   soname_spec='${libname}${release}${shared_ext}$major'
12179   shlibpath_var=LD_LIBRARY_PATH
12180   case $host_vendor in
12181     sni)
12182       shlibpath_overrides_runpath=no
12183       need_lib_prefix=no
12184       export_dynamic_flag_spec='${wl}-Blargedynsym'
12185       runpath_var=LD_RUN_PATH
12186       ;;
12187     siemens)
12188       need_lib_prefix=no
12189       ;;
12190     motorola)
12191       need_lib_prefix=no
12192       need_version=no
12193       shlibpath_overrides_runpath=no
12194       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12195       ;;
12196   esac
12197   ;;
12198
12199 sysv4*MP*)
12200   if test -d /usr/nec ;then
12201     version_type=linux
12202     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12203     soname_spec='$libname${shared_ext}.$major'
12204     shlibpath_var=LD_LIBRARY_PATH
12205   fi
12206   ;;
12207
12208 uts4*)
12209   version_type=linux
12210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12211   soname_spec='${libname}${release}${shared_ext}$major'
12212   shlibpath_var=LD_LIBRARY_PATH
12213   ;;
12214
12215 *)
12216   dynamic_linker=no
12217   ;;
12218 esac
12219 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12220 echo "${ECHO_T}$dynamic_linker" >&6; }
12221 test "$dynamic_linker" = no && can_build_shared=no
12222
12223 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12224 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12225 hardcode_action_CXX=
12226 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12227    test -n "$runpath_var CXX" || \
12228    test "X$hardcode_automatic_CXX"="Xyes" ; then
12229
12230   # We can hardcode non-existant directories.
12231   if test "$hardcode_direct_CXX" != no &&
12232      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12233      # have to relink, otherwise we might link with an installed library
12234      # when we should be linking with a yet-to-be-installed one
12235      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12236      test "$hardcode_minus_L_CXX" != no; then
12237     # Linking always hardcodes the temporary library directory.
12238     hardcode_action_CXX=relink
12239   else
12240     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12241     hardcode_action_CXX=immediate
12242   fi
12243 else
12244   # We cannot hardcode anything, or else we can only hardcode existing
12245   # directories.
12246   hardcode_action_CXX=unsupported
12247 fi
12248 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12249 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12250
12251 if test "$hardcode_action_CXX" = relink; then
12252   # Fast installation is not supported
12253   enable_fast_install=no
12254 elif test "$shlibpath_overrides_runpath" = yes ||
12255      test "$enable_shared" = no; then
12256   # Fast installation is not necessary
12257   enable_fast_install=needless
12258 fi
12259
12260 striplib=
12261 old_striplib=
12262 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12263 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12264 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12265   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12266   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12267   { echo "$as_me:$LINENO: result: yes" >&5
12268 echo "${ECHO_T}yes" >&6; }
12269 else
12270 # FIXME - insert some real tests, host_os isn't really good enough
12271   case $host_os in
12272    darwin*)
12273        if test -n "$STRIP" ; then
12274          striplib="$STRIP -x"
12275          { echo "$as_me:$LINENO: result: yes" >&5
12276 echo "${ECHO_T}yes" >&6; }
12277        else
12278   { echo "$as_me:$LINENO: result: no" >&5
12279 echo "${ECHO_T}no" >&6; }
12280 fi
12281        ;;
12282    *)
12283   { echo "$as_me:$LINENO: result: no" >&5
12284 echo "${ECHO_T}no" >&6; }
12285     ;;
12286   esac
12287 fi
12288
12289 if test "x$enable_dlopen" != xyes; then
12290   enable_dlopen=unknown
12291   enable_dlopen_self=unknown
12292   enable_dlopen_self_static=unknown
12293 else
12294   lt_cv_dlopen=no
12295   lt_cv_dlopen_libs=
12296
12297   case $host_os in
12298   beos*)
12299     lt_cv_dlopen="load_add_on"
12300     lt_cv_dlopen_libs=
12301     lt_cv_dlopen_self=yes
12302     ;;
12303
12304   mingw* | pw32*)
12305     lt_cv_dlopen="LoadLibrary"
12306     lt_cv_dlopen_libs=
12307    ;;
12308
12309   cygwin*)
12310     lt_cv_dlopen="dlopen"
12311     lt_cv_dlopen_libs=
12312    ;;
12313
12314   darwin*)
12315   # if libdl is installed we need to link against it
12316     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12317 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12318 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12319   echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321   ac_check_lib_save_LIBS=$LIBS
12322 LIBS="-ldl  $LIBS"
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h.  */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h.  */
12329
12330 /* Override any GCC internal prototype to avoid an error.
12331    Use char because int might match the return type of a GCC
12332    builtin and then its argument prototype would still apply.  */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 char dlopen ();
12337 int
12338 main ()
12339 {
12340 return dlopen ();
12341   ;
12342   return 0;
12343 }
12344 _ACEOF
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346 if { (ac_try="$ac_link"
12347 case "(($ac_try" in
12348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349   *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352   (eval "$ac_link") 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } && {
12359          test -z "$ac_cxx_werror_flag" ||
12360          test ! -s conftest.err
12361        } && test -s conftest$ac_exeext &&
12362        $as_test_x conftest$ac_exeext; then
12363   ac_cv_lib_dl_dlopen=yes
12364 else
12365   echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368         ac_cv_lib_dl_dlopen=no
12369 fi
12370
12371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12372       conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12374 fi
12375 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12376 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12377 if test $ac_cv_lib_dl_dlopen = yes; then
12378   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12379 else
12380
12381     lt_cv_dlopen="dyld"
12382     lt_cv_dlopen_libs=
12383     lt_cv_dlopen_self=yes
12384
12385 fi
12386
12387    ;;
12388
12389   *)
12390     { echo "$as_me:$LINENO: checking for shl_load" >&5
12391 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12392 if test "${ac_cv_func_shl_load+set}" = set; then
12393   echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395   cat >conftest.$ac_ext <<_ACEOF
12396 /* confdefs.h.  */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h.  */
12401 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12403 #define shl_load innocuous_shl_load
12404
12405 /* System header to define __stub macros and hopefully few prototypes,
12406     which can conflict with char shl_load (); below.
12407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12408     <limits.h> exists even on freestanding compilers.  */
12409
12410 #ifdef __STDC__
12411 # include <limits.h>
12412 #else
12413 # include <assert.h>
12414 #endif
12415
12416 #undef shl_load
12417
12418 /* Override any GCC internal prototype to avoid an error.
12419    Use char because int might match the return type of a GCC
12420    builtin and then its argument prototype would still apply.  */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char shl_load ();
12425 /* The GNU C library defines this for functions which it implements
12426     to always fail with ENOSYS.  Some functions are actually named
12427     something starting with __ and the normal name is an alias.  */
12428 #if defined __stub_shl_load || defined __stub___shl_load
12429 choke me
12430 #endif
12431
12432 int
12433 main ()
12434 {
12435 return shl_load ();
12436   ;
12437   return 0;
12438 }
12439 _ACEOF
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (ac_try="$ac_link"
12442 case "(($ac_try" in
12443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444   *) ac_try_echo=$ac_try;;
12445 esac
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447   (eval "$ac_link") 2>conftest.er1
12448   ac_status=$?
12449   grep -v '^ *+' conftest.er1 >conftest.err
12450   rm -f conftest.er1
12451   cat conftest.err >&5
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } && {
12454          test -z "$ac_cxx_werror_flag" ||
12455          test ! -s conftest.err
12456        } && test -s conftest$ac_exeext &&
12457        $as_test_x conftest$ac_exeext; then
12458   ac_cv_func_shl_load=yes
12459 else
12460   echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12462
12463         ac_cv_func_shl_load=no
12464 fi
12465
12466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12467       conftest$ac_exeext conftest.$ac_ext
12468 fi
12469 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12470 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12471 if test $ac_cv_func_shl_load = yes; then
12472   lt_cv_dlopen="shl_load"
12473 else
12474   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12475 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12476 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12477   echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479   ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-ldld  $LIBS"
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487
12488 /* Override any GCC internal prototype to avoid an error.
12489    Use char because int might match the return type of a GCC
12490    builtin and then its argument prototype would still apply.  */
12491 #ifdef __cplusplus
12492 extern "C"
12493 #endif
12494 char shl_load ();
12495 int
12496 main ()
12497 {
12498 return shl_load ();
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507   *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510   (eval "$ac_link") 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } && {
12517          test -z "$ac_cxx_werror_flag" ||
12518          test ! -s conftest.err
12519        } && test -s conftest$ac_exeext &&
12520        $as_test_x conftest$ac_exeext; then
12521   ac_cv_lib_dld_shl_load=yes
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526         ac_cv_lib_dld_shl_load=no
12527 fi
12528
12529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12530       conftest$ac_exeext conftest.$ac_ext
12531 LIBS=$ac_check_lib_save_LIBS
12532 fi
12533 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12534 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12535 if test $ac_cv_lib_dld_shl_load = yes; then
12536   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12537 else
12538   { echo "$as_me:$LINENO: checking for dlopen" >&5
12539 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12540 if test "${ac_cv_func_dlopen+set}" = set; then
12541   echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543   cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12551 #define dlopen innocuous_dlopen
12552
12553 /* System header to define __stub macros and hopefully few prototypes,
12554     which can conflict with char dlopen (); below.
12555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556     <limits.h> exists even on freestanding compilers.  */
12557
12558 #ifdef __STDC__
12559 # include <limits.h>
12560 #else
12561 # include <assert.h>
12562 #endif
12563
12564 #undef dlopen
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567    Use char because int might match the return type of a GCC
12568    builtin and then its argument prototype would still apply.  */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char dlopen ();
12573 /* The GNU C library defines this for functions which it implements
12574     to always fail with ENOSYS.  Some functions are actually named
12575     something starting with __ and the normal name is an alias.  */
12576 #if defined __stub_dlopen || defined __stub___dlopen
12577 choke me
12578 #endif
12579
12580 int
12581 main ()
12582 {
12583 return dlopen ();
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592   *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595   (eval "$ac_link") 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } && {
12602          test -z "$ac_cxx_werror_flag" ||
12603          test ! -s conftest.err
12604        } && test -s conftest$ac_exeext &&
12605        $as_test_x conftest$ac_exeext; then
12606   ac_cv_func_dlopen=yes
12607 else
12608   echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611         ac_cv_func_dlopen=no
12612 fi
12613
12614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12615       conftest$ac_exeext conftest.$ac_ext
12616 fi
12617 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12618 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12619 if test $ac_cv_func_dlopen = yes; then
12620   lt_cv_dlopen="dlopen"
12621 else
12622   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12623 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12624 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12625   echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627   ac_check_lib_save_LIBS=$LIBS
12628 LIBS="-ldl  $LIBS"
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char dlopen ();
12643 int
12644 main ()
12645 {
12646 return dlopen ();
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (ac_try="$ac_link"
12653 case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_link") 2>conftest.er1
12659   ac_status=$?
12660   grep -v '^ *+' conftest.er1 >conftest.err
12661   rm -f conftest.er1
12662   cat conftest.err >&5
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); } && {
12665          test -z "$ac_cxx_werror_flag" ||
12666          test ! -s conftest.err
12667        } && test -s conftest$ac_exeext &&
12668        $as_test_x conftest$ac_exeext; then
12669   ac_cv_lib_dl_dlopen=yes
12670 else
12671   echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674         ac_cv_lib_dl_dlopen=no
12675 fi
12676
12677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12678       conftest$ac_exeext conftest.$ac_ext
12679 LIBS=$ac_check_lib_save_LIBS
12680 fi
12681 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12683 if test $ac_cv_lib_dl_dlopen = yes; then
12684   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12685 else
12686   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12687 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12688 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lsvld  $LIBS"
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699
12700 /* Override any GCC internal prototype to avoid an error.
12701    Use char because int might match the return type of a GCC
12702    builtin and then its argument prototype would still apply.  */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char dlopen ();
12707 int
12708 main ()
12709 {
12710 return dlopen ();
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719   *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722   (eval "$ac_link") 2>conftest.er1
12723   ac_status=$?
12724   grep -v '^ *+' conftest.er1 >conftest.err
12725   rm -f conftest.er1
12726   cat conftest.err >&5
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } && {
12729          test -z "$ac_cxx_werror_flag" ||
12730          test ! -s conftest.err
12731        } && test -s conftest$ac_exeext &&
12732        $as_test_x conftest$ac_exeext; then
12733   ac_cv_lib_svld_dlopen=yes
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738         ac_cv_lib_svld_dlopen=no
12739 fi
12740
12741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12742       conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12744 fi
12745 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12746 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12747 if test $ac_cv_lib_svld_dlopen = yes; then
12748   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12749 else
12750   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12751 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12752 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-ldld  $LIBS"
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763
12764 /* Override any GCC internal prototype to avoid an error.
12765    Use char because int might match the return type of a GCC
12766    builtin and then its argument prototype would still apply.  */
12767 #ifdef __cplusplus
12768 extern "C"
12769 #endif
12770 char dld_link ();
12771 int
12772 main ()
12773 {
12774 return dld_link ();
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783   *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786   (eval "$ac_link") 2>conftest.er1
12787   ac_status=$?
12788   grep -v '^ *+' conftest.er1 >conftest.err
12789   rm -f conftest.er1
12790   cat conftest.err >&5
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } && {
12793          test -z "$ac_cxx_werror_flag" ||
12794          test ! -s conftest.err
12795        } && test -s conftest$ac_exeext &&
12796        $as_test_x conftest$ac_exeext; then
12797   ac_cv_lib_dld_dld_link=yes
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802         ac_cv_lib_dld_dld_link=no
12803 fi
12804
12805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12806       conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12808 fi
12809 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12810 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12811 if test $ac_cv_lib_dld_dld_link = yes; then
12812   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12813 fi
12814
12815
12816 fi
12817
12818
12819 fi
12820
12821
12822 fi
12823
12824
12825 fi
12826
12827
12828 fi
12829
12830     ;;
12831   esac
12832
12833   if test "x$lt_cv_dlopen" != xno; then
12834     enable_dlopen=yes
12835   else
12836     enable_dlopen=no
12837   fi
12838
12839   case $lt_cv_dlopen in
12840   dlopen)
12841     save_CPPFLAGS="$CPPFLAGS"
12842     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12843
12844     save_LDFLAGS="$LDFLAGS"
12845     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12846
12847     save_LIBS="$LIBS"
12848     LIBS="$lt_cv_dlopen_libs $LIBS"
12849
12850     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12851 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12852 if test "${lt_cv_dlopen_self+set}" = set; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855           if test "$cross_compiling" = yes; then :
12856   lt_cv_dlopen_self=cross
12857 else
12858   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12859   lt_status=$lt_dlunknown
12860   cat > conftest.$ac_ext <<EOF
12861 #line 12861 "configure"
12862 #include "confdefs.h"
12863
12864 #if HAVE_DLFCN_H
12865 #include <dlfcn.h>
12866 #endif
12867
12868 #include <stdio.h>
12869
12870 #ifdef RTLD_GLOBAL
12871 #  define LT_DLGLOBAL           RTLD_GLOBAL
12872 #else
12873 #  ifdef DL_GLOBAL
12874 #    define LT_DLGLOBAL         DL_GLOBAL
12875 #  else
12876 #    define LT_DLGLOBAL         0
12877 #  endif
12878 #endif
12879
12880 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12881    find out it does not work in some platform. */
12882 #ifndef LT_DLLAZY_OR_NOW
12883 #  ifdef RTLD_LAZY
12884 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12885 #  else
12886 #    ifdef DL_LAZY
12887 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12888 #    else
12889 #      ifdef RTLD_NOW
12890 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12891 #      else
12892 #        ifdef DL_NOW
12893 #          define LT_DLLAZY_OR_NOW      DL_NOW
12894 #        else
12895 #          define LT_DLLAZY_OR_NOW      0
12896 #        endif
12897 #      endif
12898 #    endif
12899 #  endif
12900 #endif
12901
12902 #ifdef __cplusplus
12903 extern "C" void exit (int);
12904 #endif
12905
12906 void fnord() { int i=42;}
12907 int main ()
12908 {
12909   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12910   int status = $lt_dlunknown;
12911
12912   if (self)
12913     {
12914       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12915       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12916       /* dlclose (self); */
12917     }
12918
12919     exit (status);
12920 }
12921 EOF
12922   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12923   (eval $ac_link) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12927     (./conftest; exit; ) 2>/dev/null
12928     lt_status=$?
12929     case x$lt_status in
12930       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12931       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12932       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12933     esac
12934   else :
12935     # compilation failed
12936     lt_cv_dlopen_self=no
12937   fi
12938 fi
12939 rm -fr conftest*
12940
12941
12942 fi
12943 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12944 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12945
12946     if test "x$lt_cv_dlopen_self" = xyes; then
12947       LDFLAGS="$LDFLAGS $link_static_flag"
12948       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12949 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12950 if test "${lt_cv_dlopen_self_static+set}" = set; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953           if test "$cross_compiling" = yes; then :
12954   lt_cv_dlopen_self_static=cross
12955 else
12956   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12957   lt_status=$lt_dlunknown
12958   cat > conftest.$ac_ext <<EOF
12959 #line 12959 "configure"
12960 #include "confdefs.h"
12961
12962 #if HAVE_DLFCN_H
12963 #include <dlfcn.h>
12964 #endif
12965
12966 #include <stdio.h>
12967
12968 #ifdef RTLD_GLOBAL
12969 #  define LT_DLGLOBAL           RTLD_GLOBAL
12970 #else
12971 #  ifdef DL_GLOBAL
12972 #    define LT_DLGLOBAL         DL_GLOBAL
12973 #  else
12974 #    define LT_DLGLOBAL         0
12975 #  endif
12976 #endif
12977
12978 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12979    find out it does not work in some platform. */
12980 #ifndef LT_DLLAZY_OR_NOW
12981 #  ifdef RTLD_LAZY
12982 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12983 #  else
12984 #    ifdef DL_LAZY
12985 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12986 #    else
12987 #      ifdef RTLD_NOW
12988 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12989 #      else
12990 #        ifdef DL_NOW
12991 #          define LT_DLLAZY_OR_NOW      DL_NOW
12992 #        else
12993 #          define LT_DLLAZY_OR_NOW      0
12994 #        endif
12995 #      endif
12996 #    endif
12997 #  endif
12998 #endif
12999
13000 #ifdef __cplusplus
13001 extern "C" void exit (int);
13002 #endif
13003
13004 void fnord() { int i=42;}
13005 int main ()
13006 {
13007   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13008   int status = $lt_dlunknown;
13009
13010   if (self)
13011     {
13012       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13013       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13014       /* dlclose (self); */
13015     }
13016
13017     exit (status);
13018 }
13019 EOF
13020   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021   (eval $ac_link) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13025     (./conftest; exit; ) 2>/dev/null
13026     lt_status=$?
13027     case x$lt_status in
13028       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13029       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13030       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13031     esac
13032   else :
13033     # compilation failed
13034     lt_cv_dlopen_self_static=no
13035   fi
13036 fi
13037 rm -fr conftest*
13038
13039
13040 fi
13041 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13042 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13043     fi
13044
13045     CPPFLAGS="$save_CPPFLAGS"
13046     LDFLAGS="$save_LDFLAGS"
13047     LIBS="$save_LIBS"
13048     ;;
13049   esac
13050
13051   case $lt_cv_dlopen_self in
13052   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13053   *) enable_dlopen_self=unknown ;;
13054   esac
13055
13056   case $lt_cv_dlopen_self_static in
13057   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13058   *) enable_dlopen_self_static=unknown ;;
13059   esac
13060 fi
13061
13062
13063 # The else clause should only fire when bootstrapping the
13064 # libtool distribution, otherwise you forgot to ship ltmain.sh
13065 # with your package, and you will get complaints that there are
13066 # no rules to generate ltmain.sh.
13067 if test -f "$ltmain"; then
13068   # See if we are running on zsh, and set the options which allow our commands through
13069   # without removal of \ escapes.
13070   if test -n "${ZSH_VERSION+set}" ; then
13071     setopt NO_GLOB_SUBST
13072   fi
13073   # Now quote all the things that may contain metacharacters while being
13074   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13075   # variables and quote the copies for generation of the libtool script.
13076   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13077     SED SHELL STRIP \
13078     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13079     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13080     deplibs_check_method reload_flag reload_cmds need_locks \
13081     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13082     lt_cv_sys_global_symbol_to_c_name_address \
13083     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13084     old_postinstall_cmds old_postuninstall_cmds \
13085     compiler_CXX \
13086     CC_CXX \
13087     LD_CXX \
13088     lt_prog_compiler_wl_CXX \
13089     lt_prog_compiler_pic_CXX \
13090     lt_prog_compiler_static_CXX \
13091     lt_prog_compiler_no_builtin_flag_CXX \
13092     export_dynamic_flag_spec_CXX \
13093     thread_safe_flag_spec_CXX \
13094     whole_archive_flag_spec_CXX \
13095     enable_shared_with_static_runtimes_CXX \
13096     old_archive_cmds_CXX \
13097     old_archive_from_new_cmds_CXX \
13098     predep_objects_CXX \
13099     postdep_objects_CXX \
13100     predeps_CXX \
13101     postdeps_CXX \
13102     compiler_lib_search_path_CXX \
13103     archive_cmds_CXX \
13104     archive_expsym_cmds_CXX \
13105     postinstall_cmds_CXX \
13106     postuninstall_cmds_CXX \
13107     old_archive_from_expsyms_cmds_CXX \
13108     allow_undefined_flag_CXX \
13109     no_undefined_flag_CXX \
13110     export_symbols_cmds_CXX \
13111     hardcode_libdir_flag_spec_CXX \
13112     hardcode_libdir_flag_spec_ld_CXX \
13113     hardcode_libdir_separator_CXX \
13114     hardcode_automatic_CXX \
13115     module_cmds_CXX \
13116     module_expsym_cmds_CXX \
13117     lt_cv_prog_compiler_c_o_CXX \
13118     exclude_expsyms_CXX \
13119     include_expsyms_CXX; do
13120
13121     case $var in
13122     old_archive_cmds_CXX | \
13123     old_archive_from_new_cmds_CXX | \
13124     archive_cmds_CXX | \
13125     archive_expsym_cmds_CXX | \
13126     module_cmds_CXX | \
13127     module_expsym_cmds_CXX | \
13128     old_archive_from_expsyms_cmds_CXX | \
13129     export_symbols_cmds_CXX | \
13130     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13131     postinstall_cmds | postuninstall_cmds | \
13132     old_postinstall_cmds | old_postuninstall_cmds | \
13133     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13134       # Double-quote double-evaled strings.
13135       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13136       ;;
13137     *)
13138       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13139       ;;
13140     esac
13141   done
13142
13143   case $lt_echo in
13144   *'\$0 --fallback-echo"')
13145     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13146     ;;
13147   esac
13148
13149 cfgfile="$ofile"
13150
13151   cat <<__EOF__ >> "$cfgfile"
13152 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13153
13154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13155
13156 # Shell to use when invoking shell scripts.
13157 SHELL=$lt_SHELL
13158
13159 # Whether or not to build shared libraries.
13160 build_libtool_libs=$enable_shared
13161
13162 # Whether or not to build static libraries.
13163 build_old_libs=$enable_static
13164
13165 # Whether or not to add -lc for building shared libraries.
13166 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13167
13168 # Whether or not to disallow shared libs when runtime libs are static
13169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13170
13171 # Whether or not to optimize for fast installation.
13172 fast_install=$enable_fast_install
13173
13174 # The host system.
13175 host_alias=$host_alias
13176 host=$host
13177
13178 # An echo program that does not interpret backslashes.
13179 echo=$lt_echo
13180
13181 # The archiver.
13182 AR=$lt_AR
13183 AR_FLAGS=$lt_AR_FLAGS
13184
13185 # A C compiler.
13186 LTCC=$lt_LTCC
13187
13188 # A language-specific compiler.
13189 CC=$lt_compiler_CXX
13190
13191 # Is the compiler the GNU C compiler?
13192 with_gcc=$GCC_CXX
13193
13194 # An ERE matcher.
13195 EGREP=$lt_EGREP
13196
13197 # The linker used to build libraries.
13198 LD=$lt_LD_CXX
13199
13200 # Whether we need hard or soft links.
13201 LN_S=$lt_LN_S
13202
13203 # A BSD-compatible nm program.
13204 NM=$lt_NM
13205
13206 # A symbol stripping program
13207 STRIP=$lt_STRIP
13208
13209 # Used to examine libraries when file_magic_cmd begins "file"
13210 MAGIC_CMD=$MAGIC_CMD
13211
13212 # Used on cygwin: DLL creation program.
13213 DLLTOOL="$DLLTOOL"
13214
13215 # Used on cygwin: object dumper.
13216 OBJDUMP="$OBJDUMP"
13217
13218 # Used on cygwin: assembler.
13219 AS="$AS"
13220
13221 # The name of the directory that contains temporary libtool files.
13222 objdir=$objdir
13223
13224 # How to create reloadable object files.
13225 reload_flag=$lt_reload_flag
13226 reload_cmds=$lt_reload_cmds
13227
13228 # How to pass a linker flag through the compiler.
13229 wl=$lt_lt_prog_compiler_wl_CXX
13230
13231 # Object file suffix (normally "o").
13232 objext="$ac_objext"
13233
13234 # Old archive suffix (normally "a").
13235 libext="$libext"
13236
13237 # Shared library suffix (normally ".so").
13238 shrext_cmds='$shrext_cmds'
13239
13240 # Executable file suffix (normally "").
13241 exeext="$exeext"
13242
13243 # Additional compiler flags for building library objects.
13244 pic_flag=$lt_lt_prog_compiler_pic_CXX
13245 pic_mode=$pic_mode
13246
13247 # What is the maximum length of a command?
13248 max_cmd_len=$lt_cv_sys_max_cmd_len
13249
13250 # Does compiler simultaneously support -c and -o options?
13251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13252
13253 # Must we lock files when doing compilation ?
13254 need_locks=$lt_need_locks
13255
13256 # Do we need the lib prefix for modules?
13257 need_lib_prefix=$need_lib_prefix
13258
13259 # Do we need a version for libraries?
13260 need_version=$need_version
13261
13262 # Whether dlopen is supported.
13263 dlopen_support=$enable_dlopen
13264
13265 # Whether dlopen of programs is supported.
13266 dlopen_self=$enable_dlopen_self
13267
13268 # Whether dlopen of statically linked programs is supported.
13269 dlopen_self_static=$enable_dlopen_self_static
13270
13271 # Compiler flag to prevent dynamic linking.
13272 link_static_flag=$lt_lt_prog_compiler_static_CXX
13273
13274 # Compiler flag to turn off builtin functions.
13275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13276
13277 # Compiler flag to allow reflexive dlopens.
13278 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13279
13280 # Compiler flag to generate shared objects directly from archives.
13281 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13282
13283 # Compiler flag to generate thread-safe objects.
13284 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13285
13286 # Library versioning type.
13287 version_type=$version_type
13288
13289 # Format of library name prefix.
13290 libname_spec=$lt_libname_spec
13291
13292 # List of archive names.  First name is the real one, the rest are links.
13293 # The last name is the one that the linker finds with -lNAME.
13294 library_names_spec=$lt_library_names_spec
13295
13296 # The coded name of the library, if different from the real name.
13297 soname_spec=$lt_soname_spec
13298
13299 # Commands used to build and install an old-style archive.
13300 RANLIB=$lt_RANLIB
13301 old_archive_cmds=$lt_old_archive_cmds_CXX
13302 old_postinstall_cmds=$lt_old_postinstall_cmds
13303 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13304
13305 # Create an old-style archive from a shared archive.
13306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13307
13308 # Create a temporary old-style archive to link instead of a shared archive.
13309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13310
13311 # Commands used to build and install a shared archive.
13312 archive_cmds=$lt_archive_cmds_CXX
13313 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13314 postinstall_cmds=$lt_postinstall_cmds
13315 postuninstall_cmds=$lt_postuninstall_cmds
13316
13317 # Commands used to build a loadable module (assumed same as above if empty)
13318 module_cmds=$lt_module_cmds_CXX
13319 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13320
13321 # Commands to strip libraries.
13322 old_striplib=$lt_old_striplib
13323 striplib=$lt_striplib
13324
13325 # Dependencies to place before the objects being linked to create a
13326 # shared library.
13327 predep_objects=$lt_predep_objects_CXX
13328
13329 # Dependencies to place after the objects being linked to create a
13330 # shared library.
13331 postdep_objects=$lt_postdep_objects_CXX
13332
13333 # Dependencies to place before the objects being linked to create a
13334 # shared library.
13335 predeps=$lt_predeps_CXX
13336
13337 # Dependencies to place after the objects being linked to create a
13338 # shared library.
13339 postdeps=$lt_postdeps_CXX
13340
13341 # The library search path used internally by the compiler when linking
13342 # a shared library.
13343 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13344
13345 # Method to check whether dependent libraries are shared objects.
13346 deplibs_check_method=$lt_deplibs_check_method
13347
13348 # Command to use when deplibs_check_method == file_magic.
13349 file_magic_cmd=$lt_file_magic_cmd
13350
13351 # Flag that allows shared libraries with undefined symbols to be built.
13352 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13353
13354 # Flag that forces no undefined symbols.
13355 no_undefined_flag=$lt_no_undefined_flag_CXX
13356
13357 # Commands used to finish a libtool library installation in a directory.
13358 finish_cmds=$lt_finish_cmds
13359
13360 # Same as above, but a single script fragment to be evaled but not shown.
13361 finish_eval=$lt_finish_eval
13362
13363 # Take the output of nm and produce a listing of raw symbols and C names.
13364 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13365
13366 # Transform the output of nm in a proper C declaration
13367 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13368
13369 # Transform the output of nm in a C name address pair
13370 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13371
13372 # This is the shared library runtime path variable.
13373 runpath_var=$runpath_var
13374
13375 # This is the shared library path variable.
13376 shlibpath_var=$shlibpath_var
13377
13378 # Is shlibpath searched before the hard-coded library search path?
13379 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13380
13381 # How to hardcode a shared library path into an executable.
13382 hardcode_action=$hardcode_action_CXX
13383
13384 # Whether we should hardcode library paths into libraries.
13385 hardcode_into_libs=$hardcode_into_libs
13386
13387 # Flag to hardcode \$libdir into a binary during linking.
13388 # This must work even if \$libdir does not exist.
13389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13390
13391 # If ld is used when linking, flag to hardcode \$libdir into
13392 # a binary during linking. This must work even if \$libdir does
13393 # not exist.
13394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13395
13396 # Whether we need a single -rpath flag with a separated argument.
13397 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13398
13399 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13400 # resulting binary.
13401 hardcode_direct=$hardcode_direct_CXX
13402
13403 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13404 # resulting binary.
13405 hardcode_minus_L=$hardcode_minus_L_CXX
13406
13407 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13408 # the resulting binary.
13409 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13410
13411 # Set to yes if building a shared library automatically hardcodes DIR into the library
13412 # and all subsequent libraries and executables linked against it.
13413 hardcode_automatic=$hardcode_automatic_CXX
13414
13415 # Variables whose values should be saved in libtool wrapper scripts and
13416 # restored at relink time.
13417 variables_saved_for_relink="$variables_saved_for_relink"
13418
13419 # Whether libtool must link a program against all its dependency libraries.
13420 link_all_deplibs=$link_all_deplibs_CXX
13421
13422 # Compile-time system search path for libraries
13423 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13424
13425 # Run-time system search path for libraries
13426 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13427
13428 # Fix the shell variable \$srcfile for the compiler.
13429 fix_srcfile_path="$fix_srcfile_path_CXX"
13430
13431 # Set to yes if exported symbols are required.
13432 always_export_symbols=$always_export_symbols_CXX
13433
13434 # The commands to list exported symbols.
13435 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13436
13437 # The commands to extract the exported symbol list from a shared archive.
13438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13439
13440 # Symbols that should not be listed in the preloaded symbols.
13441 exclude_expsyms=$lt_exclude_expsyms_CXX
13442
13443 # Symbols that must always be exported.
13444 include_expsyms=$lt_include_expsyms_CXX
13445
13446 # ### END LIBTOOL TAG CONFIG: $tagname
13447
13448 __EOF__
13449
13450
13451 else
13452   # If there is no Makefile yet, we rely on a make rule to execute
13453   # `config.status --recheck' to rerun these tests and create the
13454   # libtool script then.
13455   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13456   if test -f "$ltmain_in"; then
13457     test -f Makefile && make "$ltmain"
13458   fi
13459 fi
13460
13461
13462 ac_ext=c
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467
13468 CC=$lt_save_CC
13469 LDCXX=$LD
13470 LD=$lt_save_LD
13471 GCC=$lt_save_GCC
13472 with_gnu_ldcxx=$with_gnu_ld
13473 with_gnu_ld=$lt_save_with_gnu_ld
13474 lt_cv_path_LDCXX=$lt_cv_path_LD
13475 lt_cv_path_LD=$lt_save_path_LD
13476 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13477 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13478
13479         else
13480           tagname=""
13481         fi
13482         ;;
13483
13484       F77)
13485         if test -n "$F77" && test "X$F77" != "Xno"; then
13486
13487 ac_ext=f
13488 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13489 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13490 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13491
13492
13493 archive_cmds_need_lc_F77=no
13494 allow_undefined_flag_F77=
13495 always_export_symbols_F77=no
13496 archive_expsym_cmds_F77=
13497 export_dynamic_flag_spec_F77=
13498 hardcode_direct_F77=no
13499 hardcode_libdir_flag_spec_F77=
13500 hardcode_libdir_flag_spec_ld_F77=
13501 hardcode_libdir_separator_F77=
13502 hardcode_minus_L_F77=no
13503 hardcode_automatic_F77=no
13504 module_cmds_F77=
13505 module_expsym_cmds_F77=
13506 link_all_deplibs_F77=unknown
13507 old_archive_cmds_F77=$old_archive_cmds
13508 no_undefined_flag_F77=
13509 whole_archive_flag_spec_F77=
13510 enable_shared_with_static_runtimes_F77=no
13511
13512 # Source file extension for f77 test sources.
13513 ac_ext=f
13514
13515 # Object file extension for compiled f77 test sources.
13516 objext=o
13517 objext_F77=$objext
13518
13519 # Code to be used in simple compile tests
13520 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13521
13522 # Code to be used in simple link tests
13523 lt_simple_link_test_code="      program t\n      end\n"
13524
13525 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13526
13527 # If no C compiler was specified, use CC.
13528 LTCC=${LTCC-"$CC"}
13529
13530 # Allow CC to be a program name with arguments.
13531 compiler=$CC
13532
13533
13534 # Allow CC to be a program name with arguments.
13535 lt_save_CC="$CC"
13536 CC=${F77-"f77"}
13537 compiler=$CC
13538 compiler_F77=$CC
13539 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13540
13541 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13542 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13543 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13544 echo "${ECHO_T}$can_build_shared" >&6; }
13545
13546 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13547 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13548 test "$can_build_shared" = "no" && enable_shared=no
13549
13550 # On AIX, shared libraries and static libraries use the same namespace, and
13551 # are all built from PIC.
13552 case "$host_os" in
13553 aix3*)
13554   test "$enable_shared" = yes && enable_static=no
13555   if test -n "$RANLIB"; then
13556     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13557     postinstall_cmds='$RANLIB $lib'
13558   fi
13559   ;;
13560 aix4* | aix5*)
13561   test "$enable_shared" = yes && enable_static=no
13562   ;;
13563 esac
13564 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13565 echo "${ECHO_T}$enable_shared" >&6; }
13566
13567 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13568 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13569 # Make sure either enable_shared or enable_static is yes.
13570 test "$enable_shared" = yes || enable_static=yes
13571 { echo "$as_me:$LINENO: result: $enable_static" >&5
13572 echo "${ECHO_T}$enable_static" >&6; }
13573
13574 test "$ld_shlibs_F77" = no && can_build_shared=no
13575
13576 GCC_F77="$G77"
13577 LD_F77="$LD"
13578
13579 lt_prog_compiler_wl_F77=
13580 lt_prog_compiler_pic_F77=
13581 lt_prog_compiler_static_F77=
13582
13583 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13584 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13585
13586   if test "$GCC" = yes; then
13587     lt_prog_compiler_wl_F77='-Wl,'
13588     lt_prog_compiler_static_F77='-static'
13589
13590     case $host_os in
13591       aix*)
13592       # All AIX code is PIC.
13593       if test "$host_cpu" = ia64; then
13594         # AIX 5 now supports IA64 processor
13595         lt_prog_compiler_static_F77='-Bstatic'
13596       fi
13597       ;;
13598
13599     amigaos*)
13600       # FIXME: we need at least 68020 code to build shared libraries, but
13601       # adding the `-m68020' flag to GCC prevents building anything better,
13602       # like `-m68040'.
13603       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13604       ;;
13605
13606     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13607       # PIC is the default for these OSes.
13608       ;;
13609
13610     mingw* | pw32* | os2*)
13611       # This hack is so that the source file can tell whether it is being
13612       # built for inclusion in a dll (and should export symbols for example).
13613       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13614       ;;
13615
13616     darwin* | rhapsody*)
13617       # PIC is the default on this platform
13618       # Common symbols not allowed in MH_DYLIB files
13619       lt_prog_compiler_pic_F77='-fno-common'
13620       ;;
13621
13622     msdosdjgpp*)
13623       # Just because we use GCC doesn't mean we suddenly get shared libraries
13624       # on systems that don't support them.
13625       lt_prog_compiler_can_build_shared_F77=no
13626       enable_shared=no
13627       ;;
13628
13629     sysv4*MP*)
13630       if test -d /usr/nec; then
13631         lt_prog_compiler_pic_F77=-Kconform_pic
13632       fi
13633       ;;
13634
13635     hpux*)
13636       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13637       # not for PA HP-UX.
13638       case "$host_cpu" in
13639       hppa*64*|ia64*)
13640         # +Z the default
13641         ;;
13642       *)
13643         lt_prog_compiler_pic_F77='-fPIC'
13644         ;;
13645       esac
13646       ;;
13647
13648     *)
13649       lt_prog_compiler_pic_F77='-fPIC'
13650       ;;
13651     esac
13652   else
13653     # PORTME Check for flag to pass linker flags through the system compiler.
13654     case $host_os in
13655     aix*)
13656       lt_prog_compiler_wl_F77='-Wl,'
13657       if test "$host_cpu" = ia64; then
13658         # AIX 5 now supports IA64 processor
13659         lt_prog_compiler_static_F77='-Bstatic'
13660       else
13661         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13662       fi
13663       ;;
13664
13665     mingw* | pw32* | os2*)
13666       # This hack is so that the source file can tell whether it is being
13667       # built for inclusion in a dll (and should export symbols for example).
13668       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13669       ;;
13670
13671     hpux9* | hpux10* | hpux11*)
13672       lt_prog_compiler_wl_F77='-Wl,'
13673       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13674       # not for PA HP-UX.
13675       case "$host_cpu" in
13676       hppa*64*|ia64*)
13677         # +Z the default
13678         ;;
13679       *)
13680         lt_prog_compiler_pic_F77='+Z'
13681         ;;
13682       esac
13683       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13684       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13685       ;;
13686
13687     irix5* | irix6* | nonstopux*)
13688       lt_prog_compiler_wl_F77='-Wl,'
13689       # PIC (with -KPIC) is the default.
13690       lt_prog_compiler_static_F77='-non_shared'
13691       ;;
13692
13693     newsos6)
13694       lt_prog_compiler_pic_F77='-KPIC'
13695       lt_prog_compiler_static_F77='-Bstatic'
13696       ;;
13697
13698     linux*)
13699       case $CC in
13700       icc* | ecc*)
13701         lt_prog_compiler_wl_F77='-Wl,'
13702         lt_prog_compiler_pic_F77='-KPIC'
13703         lt_prog_compiler_static_F77='-static'
13704         ;;
13705       ccc*)
13706         lt_prog_compiler_wl_F77='-Wl,'
13707         # All Alpha code is PIC.
13708         lt_prog_compiler_static_F77='-non_shared'
13709         ;;
13710       esac
13711       ;;
13712
13713     osf3* | osf4* | osf5*)
13714       lt_prog_compiler_wl_F77='-Wl,'
13715       # All OSF/1 code is PIC.
13716       lt_prog_compiler_static_F77='-non_shared'
13717       ;;
13718
13719     sco3.2v5*)
13720       lt_prog_compiler_pic_F77='-Kpic'
13721       lt_prog_compiler_static_F77='-dn'
13722       ;;
13723
13724     solaris*)
13725       lt_prog_compiler_wl_F77='-Wl,'
13726       lt_prog_compiler_pic_F77='-KPIC'
13727       lt_prog_compiler_static_F77='-Bstatic'
13728       ;;
13729
13730     sunos4*)
13731       lt_prog_compiler_wl_F77='-Qoption ld '
13732       lt_prog_compiler_pic_F77='-PIC'
13733       lt_prog_compiler_static_F77='-Bstatic'
13734       ;;
13735
13736     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13737       lt_prog_compiler_wl_F77='-Wl,'
13738       lt_prog_compiler_pic_F77='-KPIC'
13739       lt_prog_compiler_static_F77='-Bstatic'
13740       ;;
13741
13742     sysv4*MP*)
13743       if test -d /usr/nec ;then
13744         lt_prog_compiler_pic_F77='-Kconform_pic'
13745         lt_prog_compiler_static_F77='-Bstatic'
13746       fi
13747       ;;
13748
13749     uts4*)
13750       lt_prog_compiler_pic_F77='-pic'
13751       lt_prog_compiler_static_F77='-Bstatic'
13752       ;;
13753
13754     *)
13755       lt_prog_compiler_can_build_shared_F77=no
13756       ;;
13757     esac
13758   fi
13759
13760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13761 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13762
13763 #
13764 # Check to make sure the PIC flag actually works.
13765 #
13766 if test -n "$lt_prog_compiler_pic_F77"; then
13767
13768 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13769 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13770 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13771   echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773   lt_prog_compiler_pic_works_F77=no
13774   ac_outfile=conftest.$ac_objext
13775    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13776    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13777    # Insert the option either (1) after the last *FLAGS variable, or
13778    # (2) before a word containing "conftest.", or (3) at the end.
13779    # Note that $ac_compile itself does not contain backslashes and begins
13780    # with a dollar sign (not a hyphen), so the echo should work correctly.
13781    # The option is referenced via a variable to avoid confusing sed.
13782    lt_compile=`echo "$ac_compile" | $SED \
13783    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13784    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13785    -e 's:$: $lt_compiler_flag:'`
13786    (eval echo "\"\$as_me:13786: $lt_compile\"" >&5)
13787    (eval "$lt_compile" 2>conftest.err)
13788    ac_status=$?
13789    cat conftest.err >&5
13790    echo "$as_me:13790: \$? = $ac_status" >&5
13791    if (exit $ac_status) && test -s "$ac_outfile"; then
13792      # The compiler can only warn and ignore the option if not recognized
13793      # So say no if there are warnings
13794      if test ! -s conftest.err; then
13795        lt_prog_compiler_pic_works_F77=yes
13796      fi
13797    fi
13798    $rm conftest*
13799
13800 fi
13801 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13802 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13803
13804 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13805     case $lt_prog_compiler_pic_F77 in
13806      "" | " "*) ;;
13807      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13808      esac
13809 else
13810     lt_prog_compiler_pic_F77=
13811      lt_prog_compiler_can_build_shared_F77=no
13812 fi
13813
13814 fi
13815 case "$host_os" in
13816   # For platforms which do not support PIC, -DPIC is meaningless:
13817   *djgpp*)
13818     lt_prog_compiler_pic_F77=
13819     ;;
13820   *)
13821     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13822     ;;
13823 esac
13824
13825 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13826 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13827 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   lt_cv_prog_compiler_c_o_F77=no
13831    $rm -r conftest 2>/dev/null
13832    mkdir conftest
13833    cd conftest
13834    mkdir out
13835    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13836
13837    lt_compiler_flag="-o out/conftest2.$ac_objext"
13838    # Insert the option either (1) after the last *FLAGS variable, or
13839    # (2) before a word containing "conftest.", or (3) at the end.
13840    # Note that $ac_compile itself does not contain backslashes and begins
13841    # with a dollar sign (not a hyphen), so the echo should work correctly.
13842    lt_compile=`echo "$ac_compile" | $SED \
13843    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13844    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13845    -e 's:$: $lt_compiler_flag:'`
13846    (eval echo "\"\$as_me:13846: $lt_compile\"" >&5)
13847    (eval "$lt_compile" 2>out/conftest.err)
13848    ac_status=$?
13849    cat out/conftest.err >&5
13850    echo "$as_me:13850: \$? = $ac_status" >&5
13851    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13852    then
13853      # The compiler can only warn and ignore the option if not recognized
13854      # So say no if there are warnings
13855      if test ! -s out/conftest.err; then
13856        lt_cv_prog_compiler_c_o_F77=yes
13857      fi
13858    fi
13859    chmod u+w .
13860    $rm conftest*
13861    # SGI C++ compiler will create directory out/ii_files/ for
13862    # template instantiation
13863    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13864    $rm out/* && rmdir out
13865    cd ..
13866    rmdir conftest
13867    $rm conftest*
13868
13869 fi
13870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13871 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13872
13873
13874 hard_links="nottested"
13875 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13876   # do not overwrite the value of need_locks provided by the user
13877   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13878 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13879   hard_links=yes
13880   $rm conftest*
13881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13882   touch conftest.a
13883   ln conftest.a conftest.b 2>&5 || hard_links=no
13884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13885   { echo "$as_me:$LINENO: result: $hard_links" >&5
13886 echo "${ECHO_T}$hard_links" >&6; }
13887   if test "$hard_links" = no; then
13888     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13889 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13890     need_locks=warn
13891   fi
13892 else
13893   need_locks=no
13894 fi
13895
13896 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13898
13899   runpath_var=
13900   allow_undefined_flag_F77=
13901   enable_shared_with_static_runtimes_F77=no
13902   archive_cmds_F77=
13903   archive_expsym_cmds_F77=
13904   old_archive_From_new_cmds_F77=
13905   old_archive_from_expsyms_cmds_F77=
13906   export_dynamic_flag_spec_F77=
13907   whole_archive_flag_spec_F77=
13908   thread_safe_flag_spec_F77=
13909   hardcode_libdir_flag_spec_F77=
13910   hardcode_libdir_flag_spec_ld_F77=
13911   hardcode_libdir_separator_F77=
13912   hardcode_direct_F77=no
13913   hardcode_minus_L_F77=no
13914   hardcode_shlibpath_var_F77=unsupported
13915   link_all_deplibs_F77=unknown
13916   hardcode_automatic_F77=no
13917   module_cmds_F77=
13918   module_expsym_cmds_F77=
13919   always_export_symbols_F77=no
13920   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13921   # include_expsyms should be a list of space-separated symbols to be *always*
13922   # included in the symbol list
13923   include_expsyms_F77=
13924   # exclude_expsyms can be an extended regexp of symbols to exclude
13925   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13926   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13927   # as well as any symbol that contains `d'.
13928   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13929   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13930   # platforms (ab)use it in PIC code, but their linkers get confused if
13931   # the symbol is explicitly referenced.  Since portable code cannot
13932   # rely on this symbol name, it's probably fine to never include it in
13933   # preloaded symbol tables.
13934   extract_expsyms_cmds=
13935
13936   case $host_os in
13937   cygwin* | mingw* | pw32*)
13938     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13939     # When not using gcc, we currently assume that we are using
13940     # Microsoft Visual C++.
13941     if test "$GCC" != yes; then
13942       with_gnu_ld=no
13943     fi
13944     ;;
13945   openbsd*)
13946     with_gnu_ld=no
13947     ;;
13948   esac
13949
13950   ld_shlibs_F77=yes
13951   if test "$with_gnu_ld" = yes; then
13952     # If archive_cmds runs LD, not CC, wlarc should be empty
13953     wlarc='${wl}'
13954
13955     # See if GNU ld supports shared libraries.
13956     case $host_os in
13957     aix3* | aix4* | aix5*)
13958       # On AIX/PPC, the GNU linker is very broken
13959       if test "$host_cpu" != ia64; then
13960         ld_shlibs_F77=no
13961         cat <<EOF 1>&2
13962
13963 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13964 *** to be unable to reliably create shared libraries on AIX.
13965 *** Therefore, libtool is disabling shared libraries support.  If you
13966 *** really care for shared libraries, you may want to modify your PATH
13967 *** so that a non-GNU linker is found, and then restart.
13968
13969 EOF
13970       fi
13971       ;;
13972
13973     amigaos*)
13974       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)'
13975       hardcode_libdir_flag_spec_F77='-L$libdir'
13976       hardcode_minus_L_F77=yes
13977
13978       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13979       # that the semantics of dynamic libraries on AmigaOS, at least up
13980       # to version 4, is to share data among multiple programs linked
13981       # with the same dynamic library.  Since this doesn't match the
13982       # behavior of shared libraries on other platforms, we can't use
13983       # them.
13984       ld_shlibs_F77=no
13985       ;;
13986
13987     beos*)
13988       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13989         allow_undefined_flag_F77=unsupported
13990         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13991         # support --undefined.  This deserves some investigation.  FIXME
13992         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13993       else
13994         ld_shlibs_F77=no
13995       fi
13996       ;;
13997
13998     cygwin* | mingw* | pw32*)
13999       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14000       # as there is no search path for DLLs.
14001       hardcode_libdir_flag_spec_F77='-L$libdir'
14002       allow_undefined_flag_F77=unsupported
14003       always_export_symbols_F77=no
14004       enable_shared_with_static_runtimes_F77=yes
14005       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14006
14007       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14008         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14009         # If the export-symbols file already is a .def file (1st line
14010         # is EXPORTS), use it as is; otherwise, prepend...
14011         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14012           cp $export_symbols $output_objdir/$soname.def;
14013         else
14014           echo EXPORTS > $output_objdir/$soname.def;
14015           cat $export_symbols >> $output_objdir/$soname.def;
14016         fi~
14017         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14018       else
14019         ld_shlibs=no
14020       fi
14021       ;;
14022
14023     netbsd*)
14024       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14025         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14026         wlarc=
14027       else
14028         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14029         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14030       fi
14031       ;;
14032
14033     solaris* | sysv5*)
14034       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14035         ld_shlibs_F77=no
14036         cat <<EOF 1>&2
14037
14038 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14039 *** create shared libraries on Solaris systems.  Therefore, libtool
14040 *** is disabling shared libraries support.  We urge you to upgrade GNU
14041 *** binutils to release 2.9.1 or newer.  Another option is to modify
14042 *** your PATH or compiler configuration so that the native linker is
14043 *** used, and then restart.
14044
14045 EOF
14046       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14047         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049       else
14050         ld_shlibs_F77=no
14051       fi
14052       ;;
14053
14054     sunos4*)
14055       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14056       wlarc=
14057       hardcode_direct_F77=yes
14058       hardcode_shlibpath_var_F77=no
14059       ;;
14060
14061   linux*)
14062     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14063         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14064         archive_cmds_F77="$tmp_archive_cmds"
14065       supports_anon_versioning=no
14066       case `$LD -v 2>/dev/null` in
14067         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14068         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14069         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14070         *\ 2.11.*) ;; # other 2.11 versions
14071         *) supports_anon_versioning=yes ;;
14072       esac
14073       if test $supports_anon_versioning = yes; then
14074         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14076 $echo "local: *; };" >> $output_objdir/$libname.ver~
14077         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14078       else
14079         archive_expsym_cmds_F77="$tmp_archive_cmds"
14080       fi
14081     else
14082       ld_shlibs_F77=no
14083     fi
14084     ;;
14085
14086     *)
14087       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14088         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14089         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14090       else
14091         ld_shlibs_F77=no
14092       fi
14093       ;;
14094     esac
14095
14096     if test "$ld_shlibs_F77" = yes; then
14097       runpath_var=LD_RUN_PATH
14098       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14099       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14100       # ancient GNU ld didn't support --whole-archive et. al.
14101       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14102         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14103       else
14104         whole_archive_flag_spec_F77=
14105       fi
14106     fi
14107   else
14108     # PORTME fill in a description of your system's linker (not GNU ld)
14109     case $host_os in
14110     aix3*)
14111       allow_undefined_flag_F77=unsupported
14112       always_export_symbols_F77=yes
14113       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'
14114       # Note: this linker hardcodes the directories in LIBPATH if there
14115       # are no directories specified by -L.
14116       hardcode_minus_L_F77=yes
14117       if test "$GCC" = yes && test -z "$link_static_flag"; then
14118         # Neither direct hardcoding nor static linking is supported with a
14119         # broken collect2.
14120         hardcode_direct_F77=unsupported
14121       fi
14122       ;;
14123
14124     aix4* | aix5*)
14125       if test "$host_cpu" = ia64; then
14126         # On IA64, the linker does run time linking by default, so we don't
14127         # have to do anything special.
14128         aix_use_runtimelinking=no
14129         exp_sym_flag='-Bexport'
14130         no_entry_flag=""
14131       else
14132         # If we're using GNU nm, then we don't want the "-C" option.
14133         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14134         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14135           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'
14136         else
14137           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'
14138         fi
14139         aix_use_runtimelinking=no
14140
14141         # Test if we are trying to use run time linking or normal
14142         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14143         # need to do runtime linking.
14144         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14145           for ld_flag in $LDFLAGS; do
14146           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14147             aix_use_runtimelinking=yes
14148             break
14149           fi
14150           done
14151         esac
14152
14153         exp_sym_flag='-bexport'
14154         no_entry_flag='-bnoentry'
14155       fi
14156
14157       # When large executables or shared objects are built, AIX ld can
14158       # have problems creating the table of contents.  If linking a library
14159       # or program results in "error TOC overflow" add -mminimal-toc to
14160       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14161       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14162
14163       archive_cmds_F77=''
14164       hardcode_direct_F77=yes
14165       hardcode_libdir_separator_F77=':'
14166       link_all_deplibs_F77=yes
14167
14168       if test "$GCC" = yes; then
14169         case $host_os in aix4.012|aix4.012.*)
14170         # We only want to do this on AIX 4.2 and lower, the check
14171         # below for broken collect2 doesn't work under 4.3+
14172           collect2name=`${CC} -print-prog-name=collect2`
14173           if test -f "$collect2name" && \
14174            strings "$collect2name" | grep resolve_lib_name >/dev/null
14175           then
14176           # We have reworked collect2
14177           hardcode_direct_F77=yes
14178           else
14179           # We have old collect2
14180           hardcode_direct_F77=unsupported
14181           # It fails to find uninstalled libraries when the uninstalled
14182           # path is not listed in the libpath.  Setting hardcode_minus_L
14183           # to unsupported forces relinking
14184           hardcode_minus_L_F77=yes
14185           hardcode_libdir_flag_spec_F77='-L$libdir'
14186           hardcode_libdir_separator_F77=
14187           fi
14188         esac
14189         shared_flag='-shared'
14190       else
14191         # not using gcc
14192         if test "$host_cpu" = ia64; then
14193         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14194         # chokes on -Wl,-G. The following line is correct:
14195           shared_flag='-G'
14196         else
14197         if test "$aix_use_runtimelinking" = yes; then
14198             shared_flag='${wl}-G'
14199           else
14200             shared_flag='${wl}-bM:SRE'
14201         fi
14202         fi
14203       fi
14204
14205       # It seems that -bexpall does not export symbols beginning with
14206       # underscore (_), so it is better to generate a list of symbols to export.
14207       always_export_symbols_F77=yes
14208       if test "$aix_use_runtimelinking" = yes; then
14209         # Warning - without using the other runtime loading flags (-brtl),
14210         # -berok will link without error, but may produce a broken library.
14211         allow_undefined_flag_F77='-berok'
14212        # Determine the default libpath from the value encoded in an empty executable.
14213        cat >conftest.$ac_ext <<_ACEOF
14214       program main
14215
14216       end
14217 _ACEOF
14218 rm -f conftest.$ac_objext conftest$ac_exeext
14219 if { (ac_try="$ac_link"
14220 case "(($ac_try" in
14221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222   *) ac_try_echo=$ac_try;;
14223 esac
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225   (eval "$ac_link") 2>conftest.er1
14226   ac_status=$?
14227   grep -v '^ *+' conftest.er1 >conftest.err
14228   rm -f conftest.er1
14229   cat conftest.err >&5
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } && {
14232          test -z "$ac_f77_werror_flag" ||
14233          test ! -s conftest.err
14234        } && test -s conftest$ac_exeext &&
14235        $as_test_x conftest$ac_exeext; then
14236
14237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14238 }'`
14239 # Check for a 64-bit object if we didn't find anything.
14240 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; }
14241 }'`; fi
14242 else
14243   echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246
14247 fi
14248
14249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14250       conftest$ac_exeext conftest.$ac_ext
14251 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14252
14253        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14254         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14255        else
14256         if test "$host_cpu" = ia64; then
14257           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14258           allow_undefined_flag_F77="-z nodefs"
14259           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14260         else
14261          # Determine the default libpath from the value encoded in an empty executable.
14262          cat >conftest.$ac_ext <<_ACEOF
14263       program main
14264
14265       end
14266 _ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271   *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274   (eval "$ac_link") 2>conftest.er1
14275   ac_status=$?
14276   grep -v '^ *+' conftest.er1 >conftest.err
14277   rm -f conftest.er1
14278   cat conftest.err >&5
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); } && {
14281          test -z "$ac_f77_werror_flag" ||
14282          test ! -s conftest.err
14283        } && test -s conftest$ac_exeext &&
14284        $as_test_x conftest$ac_exeext; then
14285
14286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14287 }'`
14288 # Check for a 64-bit object if we didn't find anything.
14289 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; }
14290 }'`; fi
14291 else
14292   echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295
14296 fi
14297
14298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14299       conftest$ac_exeext conftest.$ac_ext
14300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14301
14302          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14303           # Warning - without using the other run time loading flags,
14304           # -berok will link without error, but may produce a broken library.
14305           no_undefined_flag_F77=' ${wl}-bernotok'
14306           allow_undefined_flag_F77=' ${wl}-berok'
14307           # -bexpall does not export symbols beginning with underscore (_)
14308           always_export_symbols_F77=yes
14309           # Exported symbols can be pulled into shared objects from archives
14310           whole_archive_flag_spec_F77=' '
14311           archive_cmds_need_lc_F77=yes
14312           # This is similar to how AIX traditionally builds it's shared libraries.
14313           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14314         fi
14315       fi
14316       ;;
14317
14318     amigaos*)
14319       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)'
14320       hardcode_libdir_flag_spec_F77='-L$libdir'
14321       hardcode_minus_L_F77=yes
14322       # see comment about different semantics on the GNU ld section
14323       ld_shlibs_F77=no
14324       ;;
14325
14326     bsdi4*)
14327       export_dynamic_flag_spec_F77=-rdynamic
14328       ;;
14329
14330     cygwin* | mingw* | pw32*)
14331       # When not using gcc, we currently assume that we are using
14332       # Microsoft Visual C++.
14333       # hardcode_libdir_flag_spec is actually meaningless, as there is
14334       # no search path for DLLs.
14335       hardcode_libdir_flag_spec_F77=' '
14336       allow_undefined_flag_F77=unsupported
14337       # Tell ltmain to make .lib files, not .a files.
14338       libext=lib
14339       # Tell ltmain to make .dll files, not .so files.
14340       shrext_cmds=".dll"
14341       # FIXME: Setting linknames here is a bad hack.
14342       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14343       # The linker will automatically build a .lib file if we build a DLL.
14344       old_archive_From_new_cmds_F77='true'
14345       # FIXME: Should let the user specify the lib program.
14346       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14347       fix_srcfile_path='`cygpath -w "$srcfile"`'
14348       enable_shared_with_static_runtimes_F77=yes
14349       ;;
14350
14351     darwin* | rhapsody*)
14352     if test "$GXX" = yes ; then
14353       archive_cmds_need_lc_F77=no
14354       case "$host_os" in
14355       rhapsody* | darwin1.[012])
14356         allow_undefined_flag_F77='-undefined suppress'
14357         ;;
14358       *) # Darwin 1.3 on
14359       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14360         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14361       else
14362         case ${MACOSX_DEPLOYMENT_TARGET} in
14363           10.[012])
14364             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14365             ;;
14366           10.*)
14367             allow_undefined_flag_F77='-undefined dynamic_lookup'
14368             ;;
14369         esac
14370       fi
14371         ;;
14372       esac
14373         lt_int_apple_cc_single_mod=no
14374         output_verbose_link_cmd='echo'
14375         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14376           lt_int_apple_cc_single_mod=yes
14377         fi
14378         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14379           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14380         else
14381         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14382       fi
14383       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14384       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14385         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14386           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14387         else
14388           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14389         fi
14390           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}'
14391       hardcode_direct_F77=no
14392       hardcode_automatic_F77=yes
14393       hardcode_shlibpath_var_F77=unsupported
14394       whole_archive_flag_spec_F77='-all_load $convenience'
14395       link_all_deplibs_F77=yes
14396     else
14397       ld_shlibs_F77=no
14398     fi
14399       ;;
14400
14401     dgux*)
14402       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14403       hardcode_libdir_flag_spec_F77='-L$libdir'
14404       hardcode_shlibpath_var_F77=no
14405       ;;
14406
14407     freebsd1*)
14408       ld_shlibs_F77=no
14409       ;;
14410
14411     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14412     # support.  Future versions do this automatically, but an explicit c++rt0.o
14413     # does not break anything, and helps significantly (at the cost of a little
14414     # extra space).
14415     freebsd2.2*)
14416       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14417       hardcode_libdir_flag_spec_F77='-R$libdir'
14418       hardcode_direct_F77=yes
14419       hardcode_shlibpath_var_F77=no
14420       ;;
14421
14422     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14423     freebsd2*)
14424       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14425       hardcode_direct_F77=yes
14426       hardcode_minus_L_F77=yes
14427       hardcode_shlibpath_var_F77=no
14428       ;;
14429
14430     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14431     freebsd* | kfreebsd*-gnu)
14432       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14433       hardcode_libdir_flag_spec_F77='-R$libdir'
14434       hardcode_direct_F77=yes
14435       hardcode_shlibpath_var_F77=no
14436       ;;
14437
14438     hpux9*)
14439       if test "$GCC" = yes; then
14440         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'
14441       else
14442         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'
14443       fi
14444       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14445       hardcode_libdir_separator_F77=:
14446       hardcode_direct_F77=yes
14447
14448       # hardcode_minus_L: Not really in the search PATH,
14449       # but as the default location of the library.
14450       hardcode_minus_L_F77=yes
14451       export_dynamic_flag_spec_F77='${wl}-E'
14452       ;;
14453
14454     hpux10* | hpux11*)
14455       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14456         case "$host_cpu" in
14457         hppa*64*|ia64*)
14458           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14459           ;;
14460         *)
14461           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14462           ;;
14463         esac
14464       else
14465         case "$host_cpu" in
14466         hppa*64*|ia64*)
14467           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14468           ;;
14469         *)
14470           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14471           ;;
14472         esac
14473       fi
14474       if test "$with_gnu_ld" = no; then
14475         case "$host_cpu" in
14476         hppa*64*)
14477           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14478           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14479           hardcode_libdir_separator_F77=:
14480           hardcode_direct_F77=no
14481           hardcode_shlibpath_var_F77=no
14482           ;;
14483         ia64*)
14484           hardcode_libdir_flag_spec_F77='-L$libdir'
14485           hardcode_direct_F77=no
14486           hardcode_shlibpath_var_F77=no
14487
14488           # hardcode_minus_L: Not really in the search PATH,
14489           # but as the default location of the library.
14490           hardcode_minus_L_F77=yes
14491           ;;
14492         *)
14493           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14494           hardcode_libdir_separator_F77=:
14495           hardcode_direct_F77=yes
14496           export_dynamic_flag_spec_F77='${wl}-E'
14497
14498           # hardcode_minus_L: Not really in the search PATH,
14499           # but as the default location of the library.
14500           hardcode_minus_L_F77=yes
14501           ;;
14502         esac
14503       fi
14504       ;;
14505
14506     irix5* | irix6* | nonstopux*)
14507       if test "$GCC" = yes; then
14508         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'
14509       else
14510         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'
14511         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14512       fi
14513       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14514       hardcode_libdir_separator_F77=:
14515       link_all_deplibs_F77=yes
14516       ;;
14517
14518     netbsd*)
14519       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14520         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14521       else
14522         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14523       fi
14524       hardcode_libdir_flag_spec_F77='-R$libdir'
14525       hardcode_direct_F77=yes
14526       hardcode_shlibpath_var_F77=no
14527       ;;
14528
14529     newsos6)
14530       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14531       hardcode_direct_F77=yes
14532       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14533       hardcode_libdir_separator_F77=:
14534       hardcode_shlibpath_var_F77=no
14535       ;;
14536
14537     openbsd*)
14538       hardcode_direct_F77=yes
14539       hardcode_shlibpath_var_F77=no
14540       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14541         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14542         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14543         export_dynamic_flag_spec_F77='${wl}-E'
14544       else
14545        case $host_os in
14546          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14547            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14548            hardcode_libdir_flag_spec_F77='-R$libdir'
14549            ;;
14550          *)
14551            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14552            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14553            ;;
14554        esac
14555       fi
14556       ;;
14557
14558     os2*)
14559       hardcode_libdir_flag_spec_F77='-L$libdir'
14560       hardcode_minus_L_F77=yes
14561       allow_undefined_flag_F77=unsupported
14562       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'
14563       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14564       ;;
14565
14566     osf3*)
14567       if test "$GCC" = yes; then
14568         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14569         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'
14570       else
14571         allow_undefined_flag_F77=' -expect_unresolved \*'
14572         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'
14573       fi
14574       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14575       hardcode_libdir_separator_F77=:
14576       ;;
14577
14578     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14579       if test "$GCC" = yes; then
14580         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14581         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'
14582         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14583       else
14584         allow_undefined_flag_F77=' -expect_unresolved \*'
14585         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'
14586         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~
14587         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14588
14589         # Both c and cxx compiler support -rpath directly
14590         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14591       fi
14592       hardcode_libdir_separator_F77=:
14593       ;;
14594
14595     sco3.2v5*)
14596       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14597       hardcode_shlibpath_var_F77=no
14598       export_dynamic_flag_spec_F77='${wl}-Bexport'
14599       runpath_var=LD_RUN_PATH
14600       hardcode_runpath_var=yes
14601       ;;
14602
14603     solaris*)
14604       no_undefined_flag_F77=' -z text'
14605       if test "$GCC" = yes; then
14606         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14608           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14609       else
14610         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14611         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14612         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14613       fi
14614       hardcode_libdir_flag_spec_F77='-R$libdir'
14615       hardcode_shlibpath_var_F77=no
14616       case $host_os in
14617       solaris2.[0-5] | solaris2.[0-5].*) ;;
14618       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14619         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14620       esac
14621       link_all_deplibs_F77=yes
14622       ;;
14623
14624     sunos4*)
14625       if test "x$host_vendor" = xsequent; then
14626         # Use $CC to link under sequent, because it throws in some extra .o
14627         # files that make .init and .fini sections work.
14628         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14629       else
14630         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14631       fi
14632       hardcode_libdir_flag_spec_F77='-L$libdir'
14633       hardcode_direct_F77=yes
14634       hardcode_minus_L_F77=yes
14635       hardcode_shlibpath_var_F77=no
14636       ;;
14637
14638     sysv4)
14639       case $host_vendor in
14640         sni)
14641           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14642           hardcode_direct_F77=yes # is this really true???
14643         ;;
14644         siemens)
14645           ## LD is ld it makes a PLAMLIB
14646           ## CC just makes a GrossModule.
14647           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14648           reload_cmds_F77='$CC -r -o $output$reload_objs'
14649           hardcode_direct_F77=no
14650         ;;
14651         motorola)
14652           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14653           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14654         ;;
14655       esac
14656       runpath_var='LD_RUN_PATH'
14657       hardcode_shlibpath_var_F77=no
14658       ;;
14659
14660     sysv4.3*)
14661       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14662       hardcode_shlibpath_var_F77=no
14663       export_dynamic_flag_spec_F77='-Bexport'
14664       ;;
14665
14666     sysv4*MP*)
14667       if test -d /usr/nec; then
14668         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669         hardcode_shlibpath_var_F77=no
14670         runpath_var=LD_RUN_PATH
14671         hardcode_runpath_var=yes
14672         ld_shlibs_F77=yes
14673       fi
14674       ;;
14675
14676     sysv4.2uw2*)
14677       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14678       hardcode_direct_F77=yes
14679       hardcode_minus_L_F77=no
14680       hardcode_shlibpath_var_F77=no
14681       hardcode_runpath_var=yes
14682       runpath_var=LD_RUN_PATH
14683       ;;
14684
14685    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14686       no_undefined_flag_F77='${wl}-z ${wl}text'
14687       if test "$GCC" = yes; then
14688         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14689       else
14690         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14691       fi
14692       runpath_var='LD_RUN_PATH'
14693       hardcode_shlibpath_var_F77=no
14694       ;;
14695
14696     sysv5*)
14697       no_undefined_flag_F77=' -z text'
14698       # $CC -shared without GNU ld will not create a library from C++
14699       # object files and a static libstdc++, better avoid it by now
14700       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14702                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14703       hardcode_libdir_flag_spec_F77=
14704       hardcode_shlibpath_var_F77=no
14705       runpath_var='LD_RUN_PATH'
14706       ;;
14707
14708     uts4*)
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     *)
14715       ld_shlibs_F77=no
14716       ;;
14717     esac
14718   fi
14719
14720 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14721 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14722 test "$ld_shlibs_F77" = no && can_build_shared=no
14723
14724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14725 if test "$GCC" = yes; then
14726   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14727 fi
14728
14729 #
14730 # Do we need to explicitly link libc?
14731 #
14732 case "x$archive_cmds_need_lc_F77" in
14733 x|xyes)
14734   # Assume -lc should be added
14735   archive_cmds_need_lc_F77=yes
14736
14737   if test "$enable_shared" = yes && test "$GCC" = yes; then
14738     case $archive_cmds_F77 in
14739     *'~'*)
14740       # FIXME: we may have to deal with multi-command sequences.
14741       ;;
14742     '$CC '*)
14743       # Test whether the compiler implicitly links with -lc since on some
14744       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14745       # to ld, don't add -lc before -lgcc.
14746       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14748       $rm conftest*
14749       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14750
14751       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752   (eval $ac_compile) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } 2>conftest.err; then
14756         soname=conftest
14757         lib=conftest
14758         libobjs=conftest.$ac_objext
14759         deplibs=
14760         wl=$lt_prog_compiler_wl_F77
14761         compiler_flags=-v
14762         linker_flags=-v
14763         verstring=
14764         output_objdir=.
14765         libname=conftest
14766         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14767         allow_undefined_flag_F77=
14768         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14769   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14770   ac_status=$?
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); }
14773         then
14774           archive_cmds_need_lc_F77=no
14775         else
14776           archive_cmds_need_lc_F77=yes
14777         fi
14778         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14779       else
14780         cat conftest.err 1>&5
14781       fi
14782       $rm conftest*
14783       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14784 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14785       ;;
14786     esac
14787   fi
14788   ;;
14789 esac
14790
14791 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14793 library_names_spec=
14794 libname_spec='lib$name'
14795 soname_spec=
14796 shrext_cmds=".so"
14797 postinstall_cmds=
14798 postuninstall_cmds=
14799 finish_cmds=
14800 finish_eval=
14801 shlibpath_var=
14802 shlibpath_overrides_runpath=unknown
14803 version_type=none
14804 dynamic_linker="$host_os ld.so"
14805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14806 if test "$GCC" = yes; then
14807   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14808   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14809     # if the path contains ";" then we assume it to be the separator
14810     # otherwise default to the standard path separator (i.e. ":") - it is
14811     # assumed that no part of a normal pathname contains ";" but that should
14812     # okay in the real world where ";" in dirpaths is itself problematic.
14813     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14814   else
14815     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14816   fi
14817 else
14818   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14819 fi
14820 need_lib_prefix=unknown
14821 hardcode_into_libs=no
14822
14823 # when you set need_version to no, make sure it does not cause -set_version
14824 # flags to be left without arguments
14825 need_version=unknown
14826
14827 case $host_os in
14828 aix3*)
14829   version_type=linux
14830   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14831   shlibpath_var=LIBPATH
14832
14833   # AIX 3 has no versioning support, so we append a major version to the name.
14834   soname_spec='${libname}${release}${shared_ext}$major'
14835   ;;
14836
14837 aix4* | aix5*)
14838   version_type=linux
14839   need_lib_prefix=no
14840   need_version=no
14841   hardcode_into_libs=yes
14842   if test "$host_cpu" = ia64; then
14843     # AIX 5 supports IA64
14844     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14845     shlibpath_var=LD_LIBRARY_PATH
14846   else
14847     # With GCC up to 2.95.x, collect2 would create an import file
14848     # for dependence libraries.  The import file would start with
14849     # the line `#! .'.  This would cause the generated library to
14850     # depend on `.', always an invalid library.  This was fixed in
14851     # development snapshots of GCC prior to 3.0.
14852     case $host_os in
14853       aix4 | aix4.[01] | aix4.[01].*)
14854       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14855            echo ' yes '
14856            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14857         :
14858       else
14859         can_build_shared=no
14860       fi
14861       ;;
14862     esac
14863     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14864     # soname into executable. Probably we can add versioning support to
14865     # collect2, so additional links can be useful in future.
14866     if test "$aix_use_runtimelinking" = yes; then
14867       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14868       # instead of lib<name>.a to let people know that these are not
14869       # typical AIX shared libraries.
14870       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871     else
14872       # We preserve .a as extension for shared libraries through AIX4.2
14873       # and later when we are not doing run time linking.
14874       library_names_spec='${libname}${release}.a $libname.a'
14875       soname_spec='${libname}${release}${shared_ext}$major'
14876     fi
14877     shlibpath_var=LIBPATH
14878   fi
14879   ;;
14880
14881 amigaos*)
14882   library_names_spec='$libname.ixlibrary $libname.a'
14883   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14884   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'
14885   ;;
14886
14887 beos*)
14888   library_names_spec='${libname}${shared_ext}'
14889   dynamic_linker="$host_os ld.so"
14890   shlibpath_var=LIBRARY_PATH
14891   ;;
14892
14893 bsdi4*)
14894   version_type=linux
14895   need_version=no
14896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897   soname_spec='${libname}${release}${shared_ext}$major'
14898   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14899   shlibpath_var=LD_LIBRARY_PATH
14900   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14901   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14902   # the default ld.so.conf also contains /usr/contrib/lib and
14903   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14904   # libtool to hard-code these into programs
14905   ;;
14906
14907 cygwin* | mingw* | pw32*)
14908   version_type=windows
14909   shrext_cmds=".dll"
14910   need_version=no
14911   need_lib_prefix=no
14912
14913   case $GCC,$host_os in
14914   yes,cygwin* | yes,mingw* | yes,pw32*)
14915     library_names_spec='$libname.dll.a'
14916     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14917     postinstall_cmds='base_file=`basename \${file}`~
14918       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14919       dldir=$destdir/`dirname \$dlpath`~
14920       test -d \$dldir || mkdir -p \$dldir~
14921       $install_prog $dir/$dlname \$dldir/$dlname'
14922     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14923       dlpath=$dir/\$dldll~
14924        $rm \$dlpath'
14925     shlibpath_overrides_runpath=yes
14926
14927     case $host_os in
14928     cygwin*)
14929       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14930       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14931       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14932       ;;
14933     mingw*)
14934       # MinGW DLLs use traditional 'lib' prefix
14935       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14937       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14938         # It is most probably a Windows format PATH printed by
14939         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14940         # path with ; separators, and with drive letters. We can handle the
14941         # drive letters (cygwin fileutils understands them), so leave them,
14942         # especially as we might pass files found there to a mingw objdump,
14943         # which wouldn't understand a cygwinified path. Ahh.
14944         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14945       else
14946         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14947       fi
14948       ;;
14949     pw32*)
14950       # pw32 DLLs use 'pw' prefix rather than 'lib'
14951       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14952       ;;
14953     esac
14954     ;;
14955
14956   *)
14957     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14958     ;;
14959   esac
14960   dynamic_linker='Win32 ld.exe'
14961   # FIXME: first we should search . and the directory the executable is in
14962   shlibpath_var=PATH
14963   ;;
14964
14965 darwin* | rhapsody*)
14966   dynamic_linker="$host_os dyld"
14967   version_type=darwin
14968   need_lib_prefix=no
14969   need_version=no
14970   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14971   soname_spec='${libname}${release}${major}$shared_ext'
14972   shlibpath_overrides_runpath=yes
14973   shlibpath_var=DYLD_LIBRARY_PATH
14974   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14975   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14976   if test "$GCC" = yes; then
14977     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"`
14978   else
14979     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14980   fi
14981   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14982   ;;
14983
14984 dgux*)
14985   version_type=linux
14986   need_lib_prefix=no
14987   need_version=no
14988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14989   soname_spec='${libname}${release}${shared_ext}$major'
14990   shlibpath_var=LD_LIBRARY_PATH
14991   ;;
14992
14993 freebsd1*)
14994   dynamic_linker=no
14995   ;;
14996
14997 kfreebsd*-gnu)
14998   version_type=linux
14999   need_lib_prefix=no
15000   need_version=no
15001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   shlibpath_var=LD_LIBRARY_PATH
15004   shlibpath_overrides_runpath=no
15005   hardcode_into_libs=yes
15006   dynamic_linker='GNU ld.so'
15007   ;;
15008
15009 freebsd*)
15010   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15011   version_type=freebsd-$objformat
15012   case $version_type in
15013     freebsd-elf*)
15014       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15015       need_version=no
15016       need_lib_prefix=no
15017       ;;
15018     freebsd-*)
15019       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15020       need_version=yes
15021       ;;
15022   esac
15023   shlibpath_var=LD_LIBRARY_PATH
15024   case $host_os in
15025   freebsd2*)
15026     shlibpath_overrides_runpath=yes
15027     ;;
15028   freebsd3.01* | freebsdelf3.01*)
15029     shlibpath_overrides_runpath=yes
15030     hardcode_into_libs=yes
15031     ;;
15032   *) # from 3.2 on
15033     shlibpath_overrides_runpath=no
15034     hardcode_into_libs=yes
15035     ;;
15036   esac
15037   ;;
15038
15039 gnu*)
15040   version_type=linux
15041   need_lib_prefix=no
15042   need_version=no
15043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15044   soname_spec='${libname}${release}${shared_ext}$major'
15045   shlibpath_var=LD_LIBRARY_PATH
15046   hardcode_into_libs=yes
15047   ;;
15048
15049 hpux9* | hpux10* | hpux11*)
15050   # Give a soname corresponding to the major version so that dld.sl refuses to
15051   # link against other versions.
15052   version_type=sunos
15053   need_lib_prefix=no
15054   need_version=no
15055   case "$host_cpu" in
15056   ia64*)
15057     shrext_cmds='.so'
15058     hardcode_into_libs=yes
15059     dynamic_linker="$host_os dld.so"
15060     shlibpath_var=LD_LIBRARY_PATH
15061     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063     soname_spec='${libname}${release}${shared_ext}$major'
15064     if test "X$HPUX_IA64_MODE" = X32; then
15065       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15066     else
15067       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15068     fi
15069     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15070     ;;
15071    hppa*64*)
15072      shrext_cmds='.sl'
15073      hardcode_into_libs=yes
15074      dynamic_linker="$host_os dld.sl"
15075      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15076      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15077      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078      soname_spec='${libname}${release}${shared_ext}$major'
15079      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15080      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15081      ;;
15082    *)
15083     shrext_cmds='.sl'
15084     dynamic_linker="$host_os dld.sl"
15085     shlibpath_var=SHLIB_PATH
15086     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088     soname_spec='${libname}${release}${shared_ext}$major'
15089     ;;
15090   esac
15091   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15092   postinstall_cmds='chmod 555 $lib'
15093   ;;
15094
15095 irix5* | irix6* | nonstopux*)
15096   case $host_os in
15097     nonstopux*) version_type=nonstopux ;;
15098     *)
15099         if test "$lt_cv_prog_gnu_ld" = yes; then
15100                 version_type=linux
15101         else
15102                 version_type=irix
15103         fi ;;
15104   esac
15105   need_lib_prefix=no
15106   need_version=no
15107   soname_spec='${libname}${release}${shared_ext}$major'
15108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15109   case $host_os in
15110   irix5* | nonstopux*)
15111     libsuff= shlibsuff=
15112     ;;
15113   *)
15114     case $LD in # libtool.m4 will add one of these switches to LD
15115     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15116       libsuff= shlibsuff= libmagic=32-bit;;
15117     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15118       libsuff=32 shlibsuff=N32 libmagic=N32;;
15119     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15120       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15121     *) libsuff= shlibsuff= libmagic=never-match;;
15122     esac
15123     ;;
15124   esac
15125   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15126   shlibpath_overrides_runpath=no
15127   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15128   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15129   hardcode_into_libs=yes
15130   ;;
15131
15132 # No shared lib support for Linux oldld, aout, or coff.
15133 linux*oldld* | linux*aout* | linux*coff*)
15134   dynamic_linker=no
15135   ;;
15136
15137 # This must be Linux ELF.
15138 linux*)
15139   version_type=linux
15140   need_lib_prefix=no
15141   need_version=no
15142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143   soname_spec='${libname}${release}${shared_ext}$major'
15144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15145   shlibpath_var=LD_LIBRARY_PATH
15146   shlibpath_overrides_runpath=no
15147   # This implies no fast_install, which is unacceptable.
15148   # Some rework will be needed to allow for fast_install
15149   # before this can be enabled.
15150   hardcode_into_libs=yes
15151
15152   # find out which ABI we are using
15153   libsuff=
15154   case "$host_cpu" in
15155   x86_64*|s390x*|powerpc64*)
15156     echo '#line 15156 "configure"' > conftest.$ac_ext
15157     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158   (eval $ac_compile) 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); }; then
15162       case `/usr/bin/file conftest.$ac_objext` in
15163       *64-bit*)
15164         libsuff=64
15165         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15166         ;;
15167       esac
15168     fi
15169     rm -rf conftest*
15170     ;;
15171   esac
15172
15173   # Append ld.so.conf contents to the search path
15174   if test -f /etc/ld.so.conf; then
15175     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15176     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15177   fi
15178
15179   # We used to test for /lib/ld.so.1 and disable shared libraries on
15180   # powerpc, because MkLinux only supported shared libraries with the
15181   # GNU dynamic linker.  Since this was broken with cross compilers,
15182   # most powerpc-linux boxes support dynamic linking these days and
15183   # people can always --disable-shared, the test was removed, and we
15184   # assume the GNU/Linux dynamic linker is in use.
15185   dynamic_linker='GNU/Linux ld.so'
15186   ;;
15187
15188 knetbsd*-gnu)
15189   version_type=linux
15190   need_lib_prefix=no
15191   need_version=no
15192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15193   soname_spec='${libname}${release}${shared_ext}$major'
15194   shlibpath_var=LD_LIBRARY_PATH
15195   shlibpath_overrides_runpath=no
15196   hardcode_into_libs=yes
15197   dynamic_linker='GNU ld.so'
15198   ;;
15199
15200 netbsd*)
15201   version_type=sunos
15202   need_lib_prefix=no
15203   need_version=no
15204   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15206     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15207     dynamic_linker='NetBSD (a.out) ld.so'
15208   else
15209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15210     soname_spec='${libname}${release}${shared_ext}$major'
15211     dynamic_linker='NetBSD ld.elf_so'
15212   fi
15213   shlibpath_var=LD_LIBRARY_PATH
15214   shlibpath_overrides_runpath=yes
15215   hardcode_into_libs=yes
15216   ;;
15217
15218 newsos6)
15219   version_type=linux
15220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221   shlibpath_var=LD_LIBRARY_PATH
15222   shlibpath_overrides_runpath=yes
15223   ;;
15224
15225 nto-qnx*)
15226   version_type=linux
15227   need_lib_prefix=no
15228   need_version=no
15229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230   soname_spec='${libname}${release}${shared_ext}$major'
15231   shlibpath_var=LD_LIBRARY_PATH
15232   shlibpath_overrides_runpath=yes
15233   ;;
15234
15235 openbsd*)
15236   version_type=sunos
15237   need_lib_prefix=no
15238   need_version=yes
15239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15240   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15241   shlibpath_var=LD_LIBRARY_PATH
15242   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15243     case $host_os in
15244       openbsd2.[89] | openbsd2.[89].*)
15245         shlibpath_overrides_runpath=no
15246         ;;
15247       *)
15248         shlibpath_overrides_runpath=yes
15249         ;;
15250       esac
15251   else
15252     shlibpath_overrides_runpath=yes
15253   fi
15254   ;;
15255
15256 os2*)
15257   libname_spec='$name'
15258   shrext_cmds=".dll"
15259   need_lib_prefix=no
15260   library_names_spec='$libname${shared_ext} $libname.a'
15261   dynamic_linker='OS/2 ld.exe'
15262   shlibpath_var=LIBPATH
15263   ;;
15264
15265 osf3* | osf4* | osf5*)
15266   version_type=osf
15267   need_lib_prefix=no
15268   need_version=no
15269   soname_spec='${libname}${release}${shared_ext}$major'
15270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271   shlibpath_var=LD_LIBRARY_PATH
15272   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15273   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15274   ;;
15275
15276 sco3.2v5*)
15277   version_type=osf
15278   soname_spec='${libname}${release}${shared_ext}$major'
15279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280   shlibpath_var=LD_LIBRARY_PATH
15281   ;;
15282
15283 solaris*)
15284   version_type=linux
15285   need_lib_prefix=no
15286   need_version=no
15287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288   soname_spec='${libname}${release}${shared_ext}$major'
15289   shlibpath_var=LD_LIBRARY_PATH
15290   shlibpath_overrides_runpath=yes
15291   hardcode_into_libs=yes
15292   # ldd complains unless libraries are executable
15293   postinstall_cmds='chmod +x $lib'
15294   ;;
15295
15296 sunos4*)
15297   version_type=sunos
15298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15299   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15300   shlibpath_var=LD_LIBRARY_PATH
15301   shlibpath_overrides_runpath=yes
15302   if test "$with_gnu_ld" = yes; then
15303     need_lib_prefix=no
15304   fi
15305   need_version=yes
15306   ;;
15307
15308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15309   version_type=linux
15310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311   soname_spec='${libname}${release}${shared_ext}$major'
15312   shlibpath_var=LD_LIBRARY_PATH
15313   case $host_vendor in
15314     sni)
15315       shlibpath_overrides_runpath=no
15316       need_lib_prefix=no
15317       export_dynamic_flag_spec='${wl}-Blargedynsym'
15318       runpath_var=LD_RUN_PATH
15319       ;;
15320     siemens)
15321       need_lib_prefix=no
15322       ;;
15323     motorola)
15324       need_lib_prefix=no
15325       need_version=no
15326       shlibpath_overrides_runpath=no
15327       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15328       ;;
15329   esac
15330   ;;
15331
15332 sysv4*MP*)
15333   if test -d /usr/nec ;then
15334     version_type=linux
15335     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15336     soname_spec='$libname${shared_ext}.$major'
15337     shlibpath_var=LD_LIBRARY_PATH
15338   fi
15339   ;;
15340
15341 uts4*)
15342   version_type=linux
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344   soname_spec='${libname}${release}${shared_ext}$major'
15345   shlibpath_var=LD_LIBRARY_PATH
15346   ;;
15347
15348 *)
15349   dynamic_linker=no
15350   ;;
15351 esac
15352 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15353 echo "${ECHO_T}$dynamic_linker" >&6; }
15354 test "$dynamic_linker" = no && can_build_shared=no
15355
15356 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15357 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15358 hardcode_action_F77=
15359 if test -n "$hardcode_libdir_flag_spec_F77" || \
15360    test -n "$runpath_var F77" || \
15361    test "X$hardcode_automatic_F77"="Xyes" ; then
15362
15363   # We can hardcode non-existant directories.
15364   if test "$hardcode_direct_F77" != no &&
15365      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15366      # have to relink, otherwise we might link with an installed library
15367      # when we should be linking with a yet-to-be-installed one
15368      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15369      test "$hardcode_minus_L_F77" != no; then
15370     # Linking always hardcodes the temporary library directory.
15371     hardcode_action_F77=relink
15372   else
15373     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15374     hardcode_action_F77=immediate
15375   fi
15376 else
15377   # We cannot hardcode anything, or else we can only hardcode existing
15378   # directories.
15379   hardcode_action_F77=unsupported
15380 fi
15381 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15382 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15383
15384 if test "$hardcode_action_F77" = relink; then
15385   # Fast installation is not supported
15386   enable_fast_install=no
15387 elif test "$shlibpath_overrides_runpath" = yes ||
15388      test "$enable_shared" = no; then
15389   # Fast installation is not necessary
15390   enable_fast_install=needless
15391 fi
15392
15393 striplib=
15394 old_striplib=
15395 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15396 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15397 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15398   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15399   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15400   { echo "$as_me:$LINENO: result: yes" >&5
15401 echo "${ECHO_T}yes" >&6; }
15402 else
15403 # FIXME - insert some real tests, host_os isn't really good enough
15404   case $host_os in
15405    darwin*)
15406        if test -n "$STRIP" ; then
15407          striplib="$STRIP -x"
15408          { echo "$as_me:$LINENO: result: yes" >&5
15409 echo "${ECHO_T}yes" >&6; }
15410        else
15411   { echo "$as_me:$LINENO: result: no" >&5
15412 echo "${ECHO_T}no" >&6; }
15413 fi
15414        ;;
15415    *)
15416   { echo "$as_me:$LINENO: result: no" >&5
15417 echo "${ECHO_T}no" >&6; }
15418     ;;
15419   esac
15420 fi
15421
15422
15423
15424 # The else clause should only fire when bootstrapping the
15425 # libtool distribution, otherwise you forgot to ship ltmain.sh
15426 # with your package, and you will get complaints that there are
15427 # no rules to generate ltmain.sh.
15428 if test -f "$ltmain"; then
15429   # See if we are running on zsh, and set the options which allow our commands through
15430   # without removal of \ escapes.
15431   if test -n "${ZSH_VERSION+set}" ; then
15432     setopt NO_GLOB_SUBST
15433   fi
15434   # Now quote all the things that may contain metacharacters while being
15435   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15436   # variables and quote the copies for generation of the libtool script.
15437   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15438     SED SHELL STRIP \
15439     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15440     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15441     deplibs_check_method reload_flag reload_cmds need_locks \
15442     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15443     lt_cv_sys_global_symbol_to_c_name_address \
15444     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15445     old_postinstall_cmds old_postuninstall_cmds \
15446     compiler_F77 \
15447     CC_F77 \
15448     LD_F77 \
15449     lt_prog_compiler_wl_F77 \
15450     lt_prog_compiler_pic_F77 \
15451     lt_prog_compiler_static_F77 \
15452     lt_prog_compiler_no_builtin_flag_F77 \
15453     export_dynamic_flag_spec_F77 \
15454     thread_safe_flag_spec_F77 \
15455     whole_archive_flag_spec_F77 \
15456     enable_shared_with_static_runtimes_F77 \
15457     old_archive_cmds_F77 \
15458     old_archive_from_new_cmds_F77 \
15459     predep_objects_F77 \
15460     postdep_objects_F77 \
15461     predeps_F77 \
15462     postdeps_F77 \
15463     compiler_lib_search_path_F77 \
15464     archive_cmds_F77 \
15465     archive_expsym_cmds_F77 \
15466     postinstall_cmds_F77 \
15467     postuninstall_cmds_F77 \
15468     old_archive_from_expsyms_cmds_F77 \
15469     allow_undefined_flag_F77 \
15470     no_undefined_flag_F77 \
15471     export_symbols_cmds_F77 \
15472     hardcode_libdir_flag_spec_F77 \
15473     hardcode_libdir_flag_spec_ld_F77 \
15474     hardcode_libdir_separator_F77 \
15475     hardcode_automatic_F77 \
15476     module_cmds_F77 \
15477     module_expsym_cmds_F77 \
15478     lt_cv_prog_compiler_c_o_F77 \
15479     exclude_expsyms_F77 \
15480     include_expsyms_F77; do
15481
15482     case $var in
15483     old_archive_cmds_F77 | \
15484     old_archive_from_new_cmds_F77 | \
15485     archive_cmds_F77 | \
15486     archive_expsym_cmds_F77 | \
15487     module_cmds_F77 | \
15488     module_expsym_cmds_F77 | \
15489     old_archive_from_expsyms_cmds_F77 | \
15490     export_symbols_cmds_F77 | \
15491     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15492     postinstall_cmds | postuninstall_cmds | \
15493     old_postinstall_cmds | old_postuninstall_cmds | \
15494     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15495       # Double-quote double-evaled strings.
15496       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15497       ;;
15498     *)
15499       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15500       ;;
15501     esac
15502   done
15503
15504   case $lt_echo in
15505   *'\$0 --fallback-echo"')
15506     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15507     ;;
15508   esac
15509
15510 cfgfile="$ofile"
15511
15512   cat <<__EOF__ >> "$cfgfile"
15513 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15514
15515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15516
15517 # Shell to use when invoking shell scripts.
15518 SHELL=$lt_SHELL
15519
15520 # Whether or not to build shared libraries.
15521 build_libtool_libs=$enable_shared
15522
15523 # Whether or not to build static libraries.
15524 build_old_libs=$enable_static
15525
15526 # Whether or not to add -lc for building shared libraries.
15527 build_libtool_need_lc=$archive_cmds_need_lc_F77
15528
15529 # Whether or not to disallow shared libs when runtime libs are static
15530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15531
15532 # Whether or not to optimize for fast installation.
15533 fast_install=$enable_fast_install
15534
15535 # The host system.
15536 host_alias=$host_alias
15537 host=$host
15538
15539 # An echo program that does not interpret backslashes.
15540 echo=$lt_echo
15541
15542 # The archiver.
15543 AR=$lt_AR
15544 AR_FLAGS=$lt_AR_FLAGS
15545
15546 # A C compiler.
15547 LTCC=$lt_LTCC
15548
15549 # A language-specific compiler.
15550 CC=$lt_compiler_F77
15551
15552 # Is the compiler the GNU C compiler?
15553 with_gcc=$GCC_F77
15554
15555 # An ERE matcher.
15556 EGREP=$lt_EGREP
15557
15558 # The linker used to build libraries.
15559 LD=$lt_LD_F77
15560
15561 # Whether we need hard or soft links.
15562 LN_S=$lt_LN_S
15563
15564 # A BSD-compatible nm program.
15565 NM=$lt_NM
15566
15567 # A symbol stripping program
15568 STRIP=$lt_STRIP
15569
15570 # Used to examine libraries when file_magic_cmd begins "file"
15571 MAGIC_CMD=$MAGIC_CMD
15572
15573 # Used on cygwin: DLL creation program.
15574 DLLTOOL="$DLLTOOL"
15575
15576 # Used on cygwin: object dumper.
15577 OBJDUMP="$OBJDUMP"
15578
15579 # Used on cygwin: assembler.
15580 AS="$AS"
15581
15582 # The name of the directory that contains temporary libtool files.
15583 objdir=$objdir
15584
15585 # How to create reloadable object files.
15586 reload_flag=$lt_reload_flag
15587 reload_cmds=$lt_reload_cmds
15588
15589 # How to pass a linker flag through the compiler.
15590 wl=$lt_lt_prog_compiler_wl_F77
15591
15592 # Object file suffix (normally "o").
15593 objext="$ac_objext"
15594
15595 # Old archive suffix (normally "a").
15596 libext="$libext"
15597
15598 # Shared library suffix (normally ".so").
15599 shrext_cmds='$shrext_cmds'
15600
15601 # Executable file suffix (normally "").
15602 exeext="$exeext"
15603
15604 # Additional compiler flags for building library objects.
15605 pic_flag=$lt_lt_prog_compiler_pic_F77
15606 pic_mode=$pic_mode
15607
15608 # What is the maximum length of a command?
15609 max_cmd_len=$lt_cv_sys_max_cmd_len
15610
15611 # Does compiler simultaneously support -c and -o options?
15612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15613
15614 # Must we lock files when doing compilation ?
15615 need_locks=$lt_need_locks
15616
15617 # Do we need the lib prefix for modules?
15618 need_lib_prefix=$need_lib_prefix
15619
15620 # Do we need a version for libraries?
15621 need_version=$need_version
15622
15623 # Whether dlopen is supported.
15624 dlopen_support=$enable_dlopen
15625
15626 # Whether dlopen of programs is supported.
15627 dlopen_self=$enable_dlopen_self
15628
15629 # Whether dlopen of statically linked programs is supported.
15630 dlopen_self_static=$enable_dlopen_self_static
15631
15632 # Compiler flag to prevent dynamic linking.
15633 link_static_flag=$lt_lt_prog_compiler_static_F77
15634
15635 # Compiler flag to turn off builtin functions.
15636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15637
15638 # Compiler flag to allow reflexive dlopens.
15639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15640
15641 # Compiler flag to generate shared objects directly from archives.
15642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15643
15644 # Compiler flag to generate thread-safe objects.
15645 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15646
15647 # Library versioning type.
15648 version_type=$version_type
15649
15650 # Format of library name prefix.
15651 libname_spec=$lt_libname_spec
15652
15653 # List of archive names.  First name is the real one, the rest are links.
15654 # The last name is the one that the linker finds with -lNAME.
15655 library_names_spec=$lt_library_names_spec
15656
15657 # The coded name of the library, if different from the real name.
15658 soname_spec=$lt_soname_spec
15659
15660 # Commands used to build and install an old-style archive.
15661 RANLIB=$lt_RANLIB
15662 old_archive_cmds=$lt_old_archive_cmds_F77
15663 old_postinstall_cmds=$lt_old_postinstall_cmds
15664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15665
15666 # Create an old-style archive from a shared archive.
15667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15668
15669 # Create a temporary old-style archive to link instead of a shared archive.
15670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15671
15672 # Commands used to build and install a shared archive.
15673 archive_cmds=$lt_archive_cmds_F77
15674 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15675 postinstall_cmds=$lt_postinstall_cmds
15676 postuninstall_cmds=$lt_postuninstall_cmds
15677
15678 # Commands used to build a loadable module (assumed same as above if empty)
15679 module_cmds=$lt_module_cmds_F77
15680 module_expsym_cmds=$lt_module_expsym_cmds_F77
15681
15682 # Commands to strip libraries.
15683 old_striplib=$lt_old_striplib
15684 striplib=$lt_striplib
15685
15686 # Dependencies to place before the objects being linked to create a
15687 # shared library.
15688 predep_objects=$lt_predep_objects_F77
15689
15690 # Dependencies to place after the objects being linked to create a
15691 # shared library.
15692 postdep_objects=$lt_postdep_objects_F77
15693
15694 # Dependencies to place before the objects being linked to create a
15695 # shared library.
15696 predeps=$lt_predeps_F77
15697
15698 # Dependencies to place after the objects being linked to create a
15699 # shared library.
15700 postdeps=$lt_postdeps_F77
15701
15702 # The library search path used internally by the compiler when linking
15703 # a shared library.
15704 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15705
15706 # Method to check whether dependent libraries are shared objects.
15707 deplibs_check_method=$lt_deplibs_check_method
15708
15709 # Command to use when deplibs_check_method == file_magic.
15710 file_magic_cmd=$lt_file_magic_cmd
15711
15712 # Flag that allows shared libraries with undefined symbols to be built.
15713 allow_undefined_flag=$lt_allow_undefined_flag_F77
15714
15715 # Flag that forces no undefined symbols.
15716 no_undefined_flag=$lt_no_undefined_flag_F77
15717
15718 # Commands used to finish a libtool library installation in a directory.
15719 finish_cmds=$lt_finish_cmds
15720
15721 # Same as above, but a single script fragment to be evaled but not shown.
15722 finish_eval=$lt_finish_eval
15723
15724 # Take the output of nm and produce a listing of raw symbols and C names.
15725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15726
15727 # Transform the output of nm in a proper C declaration
15728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15729
15730 # Transform the output of nm in a C name address pair
15731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15732
15733 # This is the shared library runtime path variable.
15734 runpath_var=$runpath_var
15735
15736 # This is the shared library path variable.
15737 shlibpath_var=$shlibpath_var
15738
15739 # Is shlibpath searched before the hard-coded library search path?
15740 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15741
15742 # How to hardcode a shared library path into an executable.
15743 hardcode_action=$hardcode_action_F77
15744
15745 # Whether we should hardcode library paths into libraries.
15746 hardcode_into_libs=$hardcode_into_libs
15747
15748 # Flag to hardcode \$libdir into a binary during linking.
15749 # This must work even if \$libdir does not exist.
15750 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15751
15752 # If ld is used when linking, flag to hardcode \$libdir into
15753 # a binary during linking. This must work even if \$libdir does
15754 # not exist.
15755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15756
15757 # Whether we need a single -rpath flag with a separated argument.
15758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15759
15760 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15761 # resulting binary.
15762 hardcode_direct=$hardcode_direct_F77
15763
15764 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15765 # resulting binary.
15766 hardcode_minus_L=$hardcode_minus_L_F77
15767
15768 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15769 # the resulting binary.
15770 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15771
15772 # Set to yes if building a shared library automatically hardcodes DIR into the library
15773 # and all subsequent libraries and executables linked against it.
15774 hardcode_automatic=$hardcode_automatic_F77
15775
15776 # Variables whose values should be saved in libtool wrapper scripts and
15777 # restored at relink time.
15778 variables_saved_for_relink="$variables_saved_for_relink"
15779
15780 # Whether libtool must link a program against all its dependency libraries.
15781 link_all_deplibs=$link_all_deplibs_F77
15782
15783 # Compile-time system search path for libraries
15784 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15785
15786 # Run-time system search path for libraries
15787 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15788
15789 # Fix the shell variable \$srcfile for the compiler.
15790 fix_srcfile_path="$fix_srcfile_path_F77"
15791
15792 # Set to yes if exported symbols are required.
15793 always_export_symbols=$always_export_symbols_F77
15794
15795 # The commands to list exported symbols.
15796 export_symbols_cmds=$lt_export_symbols_cmds_F77
15797
15798 # The commands to extract the exported symbol list from a shared archive.
15799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15800
15801 # Symbols that should not be listed in the preloaded symbols.
15802 exclude_expsyms=$lt_exclude_expsyms_F77
15803
15804 # Symbols that must always be exported.
15805 include_expsyms=$lt_include_expsyms_F77
15806
15807 # ### END LIBTOOL TAG CONFIG: $tagname
15808
15809 __EOF__
15810
15811
15812 else
15813   # If there is no Makefile yet, we rely on a make rule to execute
15814   # `config.status --recheck' to rerun these tests and create the
15815   # libtool script then.
15816   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15817   if test -f "$ltmain_in"; then
15818     test -f Makefile && make "$ltmain"
15819   fi
15820 fi
15821
15822
15823 ac_ext=c
15824 ac_cpp='$CPP $CPPFLAGS'
15825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15828
15829 CC="$lt_save_CC"
15830
15831         else
15832           tagname=""
15833         fi
15834         ;;
15835
15836       GCJ)
15837         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15838
15839
15840 # Source file extension for Java test sources.
15841 ac_ext=java
15842
15843 # Object file extension for compiled Java test sources.
15844 objext=o
15845 objext_GCJ=$objext
15846
15847 # Code to be used in simple compile tests
15848 lt_simple_compile_test_code="class foo {}\n"
15849
15850 # Code to be used in simple link tests
15851 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15852
15853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15854
15855 # If no C compiler was specified, use CC.
15856 LTCC=${LTCC-"$CC"}
15857
15858 # Allow CC to be a program name with arguments.
15859 compiler=$CC
15860
15861
15862 # Allow CC to be a program name with arguments.
15863 lt_save_CC="$CC"
15864 CC=${GCJ-"gcj"}
15865 compiler=$CC
15866 compiler_GCJ=$CC
15867
15868 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15869 archive_cmds_need_lc_GCJ=no
15870
15871 ## CAVEAT EMPTOR:
15872 ## There is no encapsulation within the following macros, do not change
15873 ## the running order or otherwise move them around unless you know exactly
15874 ## what you are doing...
15875
15876 lt_prog_compiler_no_builtin_flag_GCJ=
15877
15878 if test "$GCC" = yes; then
15879   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15880
15881
15882 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15883 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15884 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15885   echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887   lt_cv_prog_compiler_rtti_exceptions=no
15888   ac_outfile=conftest.$ac_objext
15889    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15890    lt_compiler_flag="-fno-rtti -fno-exceptions"
15891    # Insert the option either (1) after the last *FLAGS variable, or
15892    # (2) before a word containing "conftest.", or (3) at the end.
15893    # Note that $ac_compile itself does not contain backslashes and begins
15894    # with a dollar sign (not a hyphen), so the echo should work correctly.
15895    # The option is referenced via a variable to avoid confusing sed.
15896    lt_compile=`echo "$ac_compile" | $SED \
15897    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15899    -e 's:$: $lt_compiler_flag:'`
15900    (eval echo "\"\$as_me:15900: $lt_compile\"" >&5)
15901    (eval "$lt_compile" 2>conftest.err)
15902    ac_status=$?
15903    cat conftest.err >&5
15904    echo "$as_me:15904: \$? = $ac_status" >&5
15905    if (exit $ac_status) && test -s "$ac_outfile"; then
15906      # The compiler can only warn and ignore the option if not recognized
15907      # So say no if there are warnings
15908      if test ! -s conftest.err; then
15909        lt_cv_prog_compiler_rtti_exceptions=yes
15910      fi
15911    fi
15912    $rm conftest*
15913
15914 fi
15915 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15916 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15917
15918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15919     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15920 else
15921     :
15922 fi
15923
15924 fi
15925
15926 lt_prog_compiler_wl_GCJ=
15927 lt_prog_compiler_pic_GCJ=
15928 lt_prog_compiler_static_GCJ=
15929
15930 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15931 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15932
15933   if test "$GCC" = yes; then
15934     lt_prog_compiler_wl_GCJ='-Wl,'
15935     lt_prog_compiler_static_GCJ='-static'
15936
15937     case $host_os in
15938       aix*)
15939       # All AIX code is PIC.
15940       if test "$host_cpu" = ia64; then
15941         # AIX 5 now supports IA64 processor
15942         lt_prog_compiler_static_GCJ='-Bstatic'
15943       fi
15944       ;;
15945
15946     amigaos*)
15947       # FIXME: we need at least 68020 code to build shared libraries, but
15948       # adding the `-m68020' flag to GCC prevents building anything better,
15949       # like `-m68040'.
15950       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15951       ;;
15952
15953     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15954       # PIC is the default for these OSes.
15955       ;;
15956
15957     mingw* | pw32* | os2*)
15958       # This hack is so that the source file can tell whether it is being
15959       # built for inclusion in a dll (and should export symbols for example).
15960       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15961       ;;
15962
15963     darwin* | rhapsody*)
15964       # PIC is the default on this platform
15965       # Common symbols not allowed in MH_DYLIB files
15966       lt_prog_compiler_pic_GCJ='-fno-common'
15967       ;;
15968
15969     msdosdjgpp*)
15970       # Just because we use GCC doesn't mean we suddenly get shared libraries
15971       # on systems that don't support them.
15972       lt_prog_compiler_can_build_shared_GCJ=no
15973       enable_shared=no
15974       ;;
15975
15976     sysv4*MP*)
15977       if test -d /usr/nec; then
15978         lt_prog_compiler_pic_GCJ=-Kconform_pic
15979       fi
15980       ;;
15981
15982     hpux*)
15983       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15984       # not for PA HP-UX.
15985       case "$host_cpu" in
15986       hppa*64*|ia64*)
15987         # +Z the default
15988         ;;
15989       *)
15990         lt_prog_compiler_pic_GCJ='-fPIC'
15991         ;;
15992       esac
15993       ;;
15994
15995     *)
15996       lt_prog_compiler_pic_GCJ='-fPIC'
15997       ;;
15998     esac
15999   else
16000     # PORTME Check for flag to pass linker flags through the system compiler.
16001     case $host_os in
16002     aix*)
16003       lt_prog_compiler_wl_GCJ='-Wl,'
16004       if test "$host_cpu" = ia64; then
16005         # AIX 5 now supports IA64 processor
16006         lt_prog_compiler_static_GCJ='-Bstatic'
16007       else
16008         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16009       fi
16010       ;;
16011
16012     mingw* | pw32* | os2*)
16013       # This hack is so that the source file can tell whether it is being
16014       # built for inclusion in a dll (and should export symbols for example).
16015       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16016       ;;
16017
16018     hpux9* | hpux10* | hpux11*)
16019       lt_prog_compiler_wl_GCJ='-Wl,'
16020       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16021       # not for PA HP-UX.
16022       case "$host_cpu" in
16023       hppa*64*|ia64*)
16024         # +Z the default
16025         ;;
16026       *)
16027         lt_prog_compiler_pic_GCJ='+Z'
16028         ;;
16029       esac
16030       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16031       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16032       ;;
16033
16034     irix5* | irix6* | nonstopux*)
16035       lt_prog_compiler_wl_GCJ='-Wl,'
16036       # PIC (with -KPIC) is the default.
16037       lt_prog_compiler_static_GCJ='-non_shared'
16038       ;;
16039
16040     newsos6)
16041       lt_prog_compiler_pic_GCJ='-KPIC'
16042       lt_prog_compiler_static_GCJ='-Bstatic'
16043       ;;
16044
16045     linux*)
16046       case $CC in
16047       icc* | ecc*)
16048         lt_prog_compiler_wl_GCJ='-Wl,'
16049         lt_prog_compiler_pic_GCJ='-KPIC'
16050         lt_prog_compiler_static_GCJ='-static'
16051         ;;
16052       ccc*)
16053         lt_prog_compiler_wl_GCJ='-Wl,'
16054         # All Alpha code is PIC.
16055         lt_prog_compiler_static_GCJ='-non_shared'
16056         ;;
16057       esac
16058       ;;
16059
16060     osf3* | osf4* | osf5*)
16061       lt_prog_compiler_wl_GCJ='-Wl,'
16062       # All OSF/1 code is PIC.
16063       lt_prog_compiler_static_GCJ='-non_shared'
16064       ;;
16065
16066     sco3.2v5*)
16067       lt_prog_compiler_pic_GCJ='-Kpic'
16068       lt_prog_compiler_static_GCJ='-dn'
16069       ;;
16070
16071     solaris*)
16072       lt_prog_compiler_wl_GCJ='-Wl,'
16073       lt_prog_compiler_pic_GCJ='-KPIC'
16074       lt_prog_compiler_static_GCJ='-Bstatic'
16075       ;;
16076
16077     sunos4*)
16078       lt_prog_compiler_wl_GCJ='-Qoption ld '
16079       lt_prog_compiler_pic_GCJ='-PIC'
16080       lt_prog_compiler_static_GCJ='-Bstatic'
16081       ;;
16082
16083     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16084       lt_prog_compiler_wl_GCJ='-Wl,'
16085       lt_prog_compiler_pic_GCJ='-KPIC'
16086       lt_prog_compiler_static_GCJ='-Bstatic'
16087       ;;
16088
16089     sysv4*MP*)
16090       if test -d /usr/nec ;then
16091         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16092         lt_prog_compiler_static_GCJ='-Bstatic'
16093       fi
16094       ;;
16095
16096     uts4*)
16097       lt_prog_compiler_pic_GCJ='-pic'
16098       lt_prog_compiler_static_GCJ='-Bstatic'
16099       ;;
16100
16101     *)
16102       lt_prog_compiler_can_build_shared_GCJ=no
16103       ;;
16104     esac
16105   fi
16106
16107 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16108 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16109
16110 #
16111 # Check to make sure the PIC flag actually works.
16112 #
16113 if test -n "$lt_prog_compiler_pic_GCJ"; then
16114
16115 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16116 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16117 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   lt_prog_compiler_pic_works_GCJ=no
16121   ac_outfile=conftest.$ac_objext
16122    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16123    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16124    # Insert the option either (1) after the last *FLAGS variable, or
16125    # (2) before a word containing "conftest.", or (3) at the end.
16126    # Note that $ac_compile itself does not contain backslashes and begins
16127    # with a dollar sign (not a hyphen), so the echo should work correctly.
16128    # The option is referenced via a variable to avoid confusing sed.
16129    lt_compile=`echo "$ac_compile" | $SED \
16130    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16131    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16132    -e 's:$: $lt_compiler_flag:'`
16133    (eval echo "\"\$as_me:16133: $lt_compile\"" >&5)
16134    (eval "$lt_compile" 2>conftest.err)
16135    ac_status=$?
16136    cat conftest.err >&5
16137    echo "$as_me:16137: \$? = $ac_status" >&5
16138    if (exit $ac_status) && test -s "$ac_outfile"; then
16139      # The compiler can only warn and ignore the option if not recognized
16140      # So say no if there are warnings
16141      if test ! -s conftest.err; then
16142        lt_prog_compiler_pic_works_GCJ=yes
16143      fi
16144    fi
16145    $rm conftest*
16146
16147 fi
16148 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16149 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16150
16151 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16152     case $lt_prog_compiler_pic_GCJ in
16153      "" | " "*) ;;
16154      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16155      esac
16156 else
16157     lt_prog_compiler_pic_GCJ=
16158      lt_prog_compiler_can_build_shared_GCJ=no
16159 fi
16160
16161 fi
16162 case "$host_os" in
16163   # For platforms which do not support PIC, -DPIC is meaningless:
16164   *djgpp*)
16165     lt_prog_compiler_pic_GCJ=
16166     ;;
16167   *)
16168     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16169     ;;
16170 esac
16171
16172 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16173 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16174 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16175   echo $ECHO_N "(cached) $ECHO_C" >&6
16176 else
16177   lt_cv_prog_compiler_c_o_GCJ=no
16178    $rm -r conftest 2>/dev/null
16179    mkdir conftest
16180    cd conftest
16181    mkdir out
16182    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16183
16184    lt_compiler_flag="-o out/conftest2.$ac_objext"
16185    # Insert the option either (1) after the last *FLAGS variable, or
16186    # (2) before a word containing "conftest.", or (3) at the end.
16187    # Note that $ac_compile itself does not contain backslashes and begins
16188    # with a dollar sign (not a hyphen), so the echo should work correctly.
16189    lt_compile=`echo "$ac_compile" | $SED \
16190    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16191    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16192    -e 's:$: $lt_compiler_flag:'`
16193    (eval echo "\"\$as_me:16193: $lt_compile\"" >&5)
16194    (eval "$lt_compile" 2>out/conftest.err)
16195    ac_status=$?
16196    cat out/conftest.err >&5
16197    echo "$as_me:16197: \$? = $ac_status" >&5
16198    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16199    then
16200      # The compiler can only warn and ignore the option if not recognized
16201      # So say no if there are warnings
16202      if test ! -s out/conftest.err; then
16203        lt_cv_prog_compiler_c_o_GCJ=yes
16204      fi
16205    fi
16206    chmod u+w .
16207    $rm conftest*
16208    # SGI C++ compiler will create directory out/ii_files/ for
16209    # template instantiation
16210    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16211    $rm out/* && rmdir out
16212    cd ..
16213    rmdir conftest
16214    $rm conftest*
16215
16216 fi
16217 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16218 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16219
16220
16221 hard_links="nottested"
16222 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16223   # do not overwrite the value of need_locks provided by the user
16224   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16225 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16226   hard_links=yes
16227   $rm conftest*
16228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16229   touch conftest.a
16230   ln conftest.a conftest.b 2>&5 || hard_links=no
16231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16232   { echo "$as_me:$LINENO: result: $hard_links" >&5
16233 echo "${ECHO_T}$hard_links" >&6; }
16234   if test "$hard_links" = no; then
16235     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16236 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16237     need_locks=warn
16238   fi
16239 else
16240   need_locks=no
16241 fi
16242
16243 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16245
16246   runpath_var=
16247   allow_undefined_flag_GCJ=
16248   enable_shared_with_static_runtimes_GCJ=no
16249   archive_cmds_GCJ=
16250   archive_expsym_cmds_GCJ=
16251   old_archive_From_new_cmds_GCJ=
16252   old_archive_from_expsyms_cmds_GCJ=
16253   export_dynamic_flag_spec_GCJ=
16254   whole_archive_flag_spec_GCJ=
16255   thread_safe_flag_spec_GCJ=
16256   hardcode_libdir_flag_spec_GCJ=
16257   hardcode_libdir_flag_spec_ld_GCJ=
16258   hardcode_libdir_separator_GCJ=
16259   hardcode_direct_GCJ=no
16260   hardcode_minus_L_GCJ=no
16261   hardcode_shlibpath_var_GCJ=unsupported
16262   link_all_deplibs_GCJ=unknown
16263   hardcode_automatic_GCJ=no
16264   module_cmds_GCJ=
16265   module_expsym_cmds_GCJ=
16266   always_export_symbols_GCJ=no
16267   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16268   # include_expsyms should be a list of space-separated symbols to be *always*
16269   # included in the symbol list
16270   include_expsyms_GCJ=
16271   # exclude_expsyms can be an extended regexp of symbols to exclude
16272   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16273   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16274   # as well as any symbol that contains `d'.
16275   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16276   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16277   # platforms (ab)use it in PIC code, but their linkers get confused if
16278   # the symbol is explicitly referenced.  Since portable code cannot
16279   # rely on this symbol name, it's probably fine to never include it in
16280   # preloaded symbol tables.
16281   extract_expsyms_cmds=
16282
16283   case $host_os in
16284   cygwin* | mingw* | pw32*)
16285     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16286     # When not using gcc, we currently assume that we are using
16287     # Microsoft Visual C++.
16288     if test "$GCC" != yes; then
16289       with_gnu_ld=no
16290     fi
16291     ;;
16292   openbsd*)
16293     with_gnu_ld=no
16294     ;;
16295   esac
16296
16297   ld_shlibs_GCJ=yes
16298   if test "$with_gnu_ld" = yes; then
16299     # If archive_cmds runs LD, not CC, wlarc should be empty
16300     wlarc='${wl}'
16301
16302     # See if GNU ld supports shared libraries.
16303     case $host_os in
16304     aix3* | aix4* | aix5*)
16305       # On AIX/PPC, the GNU linker is very broken
16306       if test "$host_cpu" != ia64; then
16307         ld_shlibs_GCJ=no
16308         cat <<EOF 1>&2
16309
16310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16311 *** to be unable to reliably create shared libraries on AIX.
16312 *** Therefore, libtool is disabling shared libraries support.  If you
16313 *** really care for shared libraries, you may want to modify your PATH
16314 *** so that a non-GNU linker is found, and then restart.
16315
16316 EOF
16317       fi
16318       ;;
16319
16320     amigaos*)
16321       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)'
16322       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323       hardcode_minus_L_GCJ=yes
16324
16325       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16326       # that the semantics of dynamic libraries on AmigaOS, at least up
16327       # to version 4, is to share data among multiple programs linked
16328       # with the same dynamic library.  Since this doesn't match the
16329       # behavior of shared libraries on other platforms, we can't use
16330       # them.
16331       ld_shlibs_GCJ=no
16332       ;;
16333
16334     beos*)
16335       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16336         allow_undefined_flag_GCJ=unsupported
16337         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16338         # support --undefined.  This deserves some investigation.  FIXME
16339         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16340       else
16341         ld_shlibs_GCJ=no
16342       fi
16343       ;;
16344
16345     cygwin* | mingw* | pw32*)
16346       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16347       # as there is no search path for DLLs.
16348       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16349       allow_undefined_flag_GCJ=unsupported
16350       always_export_symbols_GCJ=no
16351       enable_shared_with_static_runtimes_GCJ=yes
16352       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16353
16354       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16355         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16356         # If the export-symbols file already is a .def file (1st line
16357         # is EXPORTS), use it as is; otherwise, prepend...
16358         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16359           cp $export_symbols $output_objdir/$soname.def;
16360         else
16361           echo EXPORTS > $output_objdir/$soname.def;
16362           cat $export_symbols >> $output_objdir/$soname.def;
16363         fi~
16364         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16365       else
16366         ld_shlibs=no
16367       fi
16368       ;;
16369
16370     netbsd*)
16371       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16372         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16373         wlarc=
16374       else
16375         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16377       fi
16378       ;;
16379
16380     solaris* | sysv5*)
16381       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16382         ld_shlibs_GCJ=no
16383         cat <<EOF 1>&2
16384
16385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16386 *** create shared libraries on Solaris systems.  Therefore, libtool
16387 *** is disabling shared libraries support.  We urge you to upgrade GNU
16388 *** binutils to release 2.9.1 or newer.  Another option is to modify
16389 *** your PATH or compiler configuration so that the native linker is
16390 *** used, and then restart.
16391
16392 EOF
16393       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16394         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16395         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16396       else
16397         ld_shlibs_GCJ=no
16398       fi
16399       ;;
16400
16401     sunos4*)
16402       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16403       wlarc=
16404       hardcode_direct_GCJ=yes
16405       hardcode_shlibpath_var_GCJ=no
16406       ;;
16407
16408   linux*)
16409     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16410         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411         archive_cmds_GCJ="$tmp_archive_cmds"
16412       supports_anon_versioning=no
16413       case `$LD -v 2>/dev/null` in
16414         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16415         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16416         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16417         *\ 2.11.*) ;; # other 2.11 versions
16418         *) supports_anon_versioning=yes ;;
16419       esac
16420       if test $supports_anon_versioning = yes; then
16421         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16423 $echo "local: *; };" >> $output_objdir/$libname.ver~
16424         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16425       else
16426         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16427       fi
16428     else
16429       ld_shlibs_GCJ=no
16430     fi
16431     ;;
16432
16433     *)
16434       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16435         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16436         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16437       else
16438         ld_shlibs_GCJ=no
16439       fi
16440       ;;
16441     esac
16442
16443     if test "$ld_shlibs_GCJ" = yes; then
16444       runpath_var=LD_RUN_PATH
16445       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16446       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16447       # ancient GNU ld didn't support --whole-archive et. al.
16448       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16449         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16450       else
16451         whole_archive_flag_spec_GCJ=
16452       fi
16453     fi
16454   else
16455     # PORTME fill in a description of your system's linker (not GNU ld)
16456     case $host_os in
16457     aix3*)
16458       allow_undefined_flag_GCJ=unsupported
16459       always_export_symbols_GCJ=yes
16460       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'
16461       # Note: this linker hardcodes the directories in LIBPATH if there
16462       # are no directories specified by -L.
16463       hardcode_minus_L_GCJ=yes
16464       if test "$GCC" = yes && test -z "$link_static_flag"; then
16465         # Neither direct hardcoding nor static linking is supported with a
16466         # broken collect2.
16467         hardcode_direct_GCJ=unsupported
16468       fi
16469       ;;
16470
16471     aix4* | aix5*)
16472       if test "$host_cpu" = ia64; then
16473         # On IA64, the linker does run time linking by default, so we don't
16474         # have to do anything special.
16475         aix_use_runtimelinking=no
16476         exp_sym_flag='-Bexport'
16477         no_entry_flag=""
16478       else
16479         # If we're using GNU nm, then we don't want the "-C" option.
16480         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16481         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16482           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'
16483         else
16484           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'
16485         fi
16486         aix_use_runtimelinking=no
16487
16488         # Test if we are trying to use run time linking or normal
16489         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16490         # need to do runtime linking.
16491         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16492           for ld_flag in $LDFLAGS; do
16493           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16494             aix_use_runtimelinking=yes
16495             break
16496           fi
16497           done
16498         esac
16499
16500         exp_sym_flag='-bexport'
16501         no_entry_flag='-bnoentry'
16502       fi
16503
16504       # When large executables or shared objects are built, AIX ld can
16505       # have problems creating the table of contents.  If linking a library
16506       # or program results in "error TOC overflow" add -mminimal-toc to
16507       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16508       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16509
16510       archive_cmds_GCJ=''
16511       hardcode_direct_GCJ=yes
16512       hardcode_libdir_separator_GCJ=':'
16513       link_all_deplibs_GCJ=yes
16514
16515       if test "$GCC" = yes; then
16516         case $host_os in aix4.012|aix4.012.*)
16517         # We only want to do this on AIX 4.2 and lower, the check
16518         # below for broken collect2 doesn't work under 4.3+
16519           collect2name=`${CC} -print-prog-name=collect2`
16520           if test -f "$collect2name" && \
16521            strings "$collect2name" | grep resolve_lib_name >/dev/null
16522           then
16523           # We have reworked collect2
16524           hardcode_direct_GCJ=yes
16525           else
16526           # We have old collect2
16527           hardcode_direct_GCJ=unsupported
16528           # It fails to find uninstalled libraries when the uninstalled
16529           # path is not listed in the libpath.  Setting hardcode_minus_L
16530           # to unsupported forces relinking
16531           hardcode_minus_L_GCJ=yes
16532           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16533           hardcode_libdir_separator_GCJ=
16534           fi
16535         esac
16536         shared_flag='-shared'
16537       else
16538         # not using gcc
16539         if test "$host_cpu" = ia64; then
16540         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16541         # chokes on -Wl,-G. The following line is correct:
16542           shared_flag='-G'
16543         else
16544         if test "$aix_use_runtimelinking" = yes; then
16545             shared_flag='${wl}-G'
16546           else
16547             shared_flag='${wl}-bM:SRE'
16548         fi
16549         fi
16550       fi
16551
16552       # It seems that -bexpall does not export symbols beginning with
16553       # underscore (_), so it is better to generate a list of symbols to export.
16554       always_export_symbols_GCJ=yes
16555       if test "$aix_use_runtimelinking" = yes; then
16556         # Warning - without using the other runtime loading flags (-brtl),
16557         # -berok will link without error, but may produce a broken library.
16558         allow_undefined_flag_GCJ='-berok'
16559        # Determine the default libpath from the value encoded in an empty executable.
16560        cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566
16567 int
16568 main ()
16569 {
16570
16571   ;
16572   return 0;
16573 }
16574 _ACEOF
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (ac_try="$ac_link"
16577 case "(($ac_try" in
16578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579   *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582   (eval "$ac_link") 2>conftest.er1
16583   ac_status=$?
16584   grep -v '^ *+' conftest.er1 >conftest.err
16585   rm -f conftest.er1
16586   cat conftest.err >&5
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); } && {
16589          test -z "$ac_c_werror_flag" ||
16590          test ! -s conftest.err
16591        } && test -s conftest$ac_exeext &&
16592        $as_test_x conftest$ac_exeext; then
16593
16594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16595 }'`
16596 # Check for a 64-bit object if we didn't find anything.
16597 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; }
16598 }'`; fi
16599 else
16600   echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603
16604 fi
16605
16606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16607       conftest$ac_exeext conftest.$ac_ext
16608 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16609
16610        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16611         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16612        else
16613         if test "$host_cpu" = ia64; then
16614           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16615           allow_undefined_flag_GCJ="-z nodefs"
16616           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16617         else
16618          # Determine the default libpath from the value encoded in an empty executable.
16619          cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625
16626 int
16627 main ()
16628 {
16629
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (ac_try="$ac_link"
16636 case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641   (eval "$ac_link") 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } && {
16648          test -z "$ac_c_werror_flag" ||
16649          test ! -s conftest.err
16650        } && test -s conftest$ac_exeext &&
16651        $as_test_x conftest$ac_exeext; then
16652
16653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16654 }'`
16655 # Check for a 64-bit object if we didn't find anything.
16656 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; }
16657 }'`; fi
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662
16663 fi
16664
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666       conftest$ac_exeext conftest.$ac_ext
16667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16668
16669          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16670           # Warning - without using the other run time loading flags,
16671           # -berok will link without error, but may produce a broken library.
16672           no_undefined_flag_GCJ=' ${wl}-bernotok'
16673           allow_undefined_flag_GCJ=' ${wl}-berok'
16674           # -bexpall does not export symbols beginning with underscore (_)
16675           always_export_symbols_GCJ=yes
16676           # Exported symbols can be pulled into shared objects from archives
16677           whole_archive_flag_spec_GCJ=' '
16678           archive_cmds_need_lc_GCJ=yes
16679           # This is similar to how AIX traditionally builds it's shared libraries.
16680           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16681         fi
16682       fi
16683       ;;
16684
16685     amigaos*)
16686       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)'
16687       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16688       hardcode_minus_L_GCJ=yes
16689       # see comment about different semantics on the GNU ld section
16690       ld_shlibs_GCJ=no
16691       ;;
16692
16693     bsdi4*)
16694       export_dynamic_flag_spec_GCJ=-rdynamic
16695       ;;
16696
16697     cygwin* | mingw* | pw32*)
16698       # When not using gcc, we currently assume that we are using
16699       # Microsoft Visual C++.
16700       # hardcode_libdir_flag_spec is actually meaningless, as there is
16701       # no search path for DLLs.
16702       hardcode_libdir_flag_spec_GCJ=' '
16703       allow_undefined_flag_GCJ=unsupported
16704       # Tell ltmain to make .lib files, not .a files.
16705       libext=lib
16706       # Tell ltmain to make .dll files, not .so files.
16707       shrext_cmds=".dll"
16708       # FIXME: Setting linknames here is a bad hack.
16709       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16710       # The linker will automatically build a .lib file if we build a DLL.
16711       old_archive_From_new_cmds_GCJ='true'
16712       # FIXME: Should let the user specify the lib program.
16713       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16714       fix_srcfile_path='`cygpath -w "$srcfile"`'
16715       enable_shared_with_static_runtimes_GCJ=yes
16716       ;;
16717
16718     darwin* | rhapsody*)
16719     if test "$GXX" = yes ; then
16720       archive_cmds_need_lc_GCJ=no
16721       case "$host_os" in
16722       rhapsody* | darwin1.[012])
16723         allow_undefined_flag_GCJ='-undefined suppress'
16724         ;;
16725       *) # Darwin 1.3 on
16726       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16727         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16728       else
16729         case ${MACOSX_DEPLOYMENT_TARGET} in
16730           10.[012])
16731             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16732             ;;
16733           10.*)
16734             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16735             ;;
16736         esac
16737       fi
16738         ;;
16739       esac
16740         lt_int_apple_cc_single_mod=no
16741         output_verbose_link_cmd='echo'
16742         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16743           lt_int_apple_cc_single_mod=yes
16744         fi
16745         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16746           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16747         else
16748         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16749       fi
16750       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16751       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16752         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16753           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16754         else
16755           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16756         fi
16757           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}'
16758       hardcode_direct_GCJ=no
16759       hardcode_automatic_GCJ=yes
16760       hardcode_shlibpath_var_GCJ=unsupported
16761       whole_archive_flag_spec_GCJ='-all_load $convenience'
16762       link_all_deplibs_GCJ=yes
16763     else
16764       ld_shlibs_GCJ=no
16765     fi
16766       ;;
16767
16768     dgux*)
16769       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16771       hardcode_shlibpath_var_GCJ=no
16772       ;;
16773
16774     freebsd1*)
16775       ld_shlibs_GCJ=no
16776       ;;
16777
16778     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16779     # support.  Future versions do this automatically, but an explicit c++rt0.o
16780     # does not break anything, and helps significantly (at the cost of a little
16781     # extra space).
16782     freebsd2.2*)
16783       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16784       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16785       hardcode_direct_GCJ=yes
16786       hardcode_shlibpath_var_GCJ=no
16787       ;;
16788
16789     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16790     freebsd2*)
16791       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16792       hardcode_direct_GCJ=yes
16793       hardcode_minus_L_GCJ=yes
16794       hardcode_shlibpath_var_GCJ=no
16795       ;;
16796
16797     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16798     freebsd* | kfreebsd*-gnu)
16799       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16800       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16801       hardcode_direct_GCJ=yes
16802       hardcode_shlibpath_var_GCJ=no
16803       ;;
16804
16805     hpux9*)
16806       if test "$GCC" = yes; then
16807         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'
16808       else
16809         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'
16810       fi
16811       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16812       hardcode_libdir_separator_GCJ=:
16813       hardcode_direct_GCJ=yes
16814
16815       # hardcode_minus_L: Not really in the search PATH,
16816       # but as the default location of the library.
16817       hardcode_minus_L_GCJ=yes
16818       export_dynamic_flag_spec_GCJ='${wl}-E'
16819       ;;
16820
16821     hpux10* | hpux11*)
16822       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16823         case "$host_cpu" in
16824         hppa*64*|ia64*)
16825           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16826           ;;
16827         *)
16828           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16829           ;;
16830         esac
16831       else
16832         case "$host_cpu" in
16833         hppa*64*|ia64*)
16834           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16835           ;;
16836         *)
16837           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16838           ;;
16839         esac
16840       fi
16841       if test "$with_gnu_ld" = no; then
16842         case "$host_cpu" in
16843         hppa*64*)
16844           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16845           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16846           hardcode_libdir_separator_GCJ=:
16847           hardcode_direct_GCJ=no
16848           hardcode_shlibpath_var_GCJ=no
16849           ;;
16850         ia64*)
16851           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16852           hardcode_direct_GCJ=no
16853           hardcode_shlibpath_var_GCJ=no
16854
16855           # hardcode_minus_L: Not really in the search PATH,
16856           # but as the default location of the library.
16857           hardcode_minus_L_GCJ=yes
16858           ;;
16859         *)
16860           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16861           hardcode_libdir_separator_GCJ=:
16862           hardcode_direct_GCJ=yes
16863           export_dynamic_flag_spec_GCJ='${wl}-E'
16864
16865           # hardcode_minus_L: Not really in the search PATH,
16866           # but as the default location of the library.
16867           hardcode_minus_L_GCJ=yes
16868           ;;
16869         esac
16870       fi
16871       ;;
16872
16873     irix5* | irix6* | nonstopux*)
16874       if test "$GCC" = yes; then
16875         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'
16876       else
16877         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'
16878         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16879       fi
16880       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16881       hardcode_libdir_separator_GCJ=:
16882       link_all_deplibs_GCJ=yes
16883       ;;
16884
16885     netbsd*)
16886       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16887         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16888       else
16889         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16890       fi
16891       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16892       hardcode_direct_GCJ=yes
16893       hardcode_shlibpath_var_GCJ=no
16894       ;;
16895
16896     newsos6)
16897       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898       hardcode_direct_GCJ=yes
16899       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16900       hardcode_libdir_separator_GCJ=:
16901       hardcode_shlibpath_var_GCJ=no
16902       ;;
16903
16904     openbsd*)
16905       hardcode_direct_GCJ=yes
16906       hardcode_shlibpath_var_GCJ=no
16907       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16908         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16909         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16910         export_dynamic_flag_spec_GCJ='${wl}-E'
16911       else
16912        case $host_os in
16913          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16914            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16915            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16916            ;;
16917          *)
16918            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16919            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16920            ;;
16921        esac
16922       fi
16923       ;;
16924
16925     os2*)
16926       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16927       hardcode_minus_L_GCJ=yes
16928       allow_undefined_flag_GCJ=unsupported
16929       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'
16930       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16931       ;;
16932
16933     osf3*)
16934       if test "$GCC" = yes; then
16935         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16936         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'
16937       else
16938         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16939         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'
16940       fi
16941       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16942       hardcode_libdir_separator_GCJ=:
16943       ;;
16944
16945     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16946       if test "$GCC" = yes; then
16947         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16948         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'
16949         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16950       else
16951         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16952         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'
16953         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~
16954         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16955
16956         # Both c and cxx compiler support -rpath directly
16957         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16958       fi
16959       hardcode_libdir_separator_GCJ=:
16960       ;;
16961
16962     sco3.2v5*)
16963       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964       hardcode_shlibpath_var_GCJ=no
16965       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16966       runpath_var=LD_RUN_PATH
16967       hardcode_runpath_var=yes
16968       ;;
16969
16970     solaris*)
16971       no_undefined_flag_GCJ=' -z text'
16972       if test "$GCC" = yes; then
16973         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16974         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16975           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16976       else
16977         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16978         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16979         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16980       fi
16981       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16982       hardcode_shlibpath_var_GCJ=no
16983       case $host_os in
16984       solaris2.[0-5] | solaris2.[0-5].*) ;;
16985       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16986         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16987       esac
16988       link_all_deplibs_GCJ=yes
16989       ;;
16990
16991     sunos4*)
16992       if test "x$host_vendor" = xsequent; then
16993         # Use $CC to link under sequent, because it throws in some extra .o
16994         # files that make .init and .fini sections work.
16995         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16996       else
16997         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16998       fi
16999       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17000       hardcode_direct_GCJ=yes
17001       hardcode_minus_L_GCJ=yes
17002       hardcode_shlibpath_var_GCJ=no
17003       ;;
17004
17005     sysv4)
17006       case $host_vendor in
17007         sni)
17008           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17009           hardcode_direct_GCJ=yes # is this really true???
17010         ;;
17011         siemens)
17012           ## LD is ld it makes a PLAMLIB
17013           ## CC just makes a GrossModule.
17014           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17015           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17016           hardcode_direct_GCJ=no
17017         ;;
17018         motorola)
17019           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17021         ;;
17022       esac
17023       runpath_var='LD_RUN_PATH'
17024       hardcode_shlibpath_var_GCJ=no
17025       ;;
17026
17027     sysv4.3*)
17028       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17029       hardcode_shlibpath_var_GCJ=no
17030       export_dynamic_flag_spec_GCJ='-Bexport'
17031       ;;
17032
17033     sysv4*MP*)
17034       if test -d /usr/nec; then
17035         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036         hardcode_shlibpath_var_GCJ=no
17037         runpath_var=LD_RUN_PATH
17038         hardcode_runpath_var=yes
17039         ld_shlibs_GCJ=yes
17040       fi
17041       ;;
17042
17043     sysv4.2uw2*)
17044       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17045       hardcode_direct_GCJ=yes
17046       hardcode_minus_L_GCJ=no
17047       hardcode_shlibpath_var_GCJ=no
17048       hardcode_runpath_var=yes
17049       runpath_var=LD_RUN_PATH
17050       ;;
17051
17052    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17053       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17054       if test "$GCC" = yes; then
17055         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17056       else
17057         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17058       fi
17059       runpath_var='LD_RUN_PATH'
17060       hardcode_shlibpath_var_GCJ=no
17061       ;;
17062
17063     sysv5*)
17064       no_undefined_flag_GCJ=' -z text'
17065       # $CC -shared without GNU ld will not create a library from C++
17066       # object files and a static libstdc++, better avoid it by now
17067       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17069                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17070       hardcode_libdir_flag_spec_GCJ=
17071       hardcode_shlibpath_var_GCJ=no
17072       runpath_var='LD_RUN_PATH'
17073       ;;
17074
17075     uts4*)
17076       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17078       hardcode_shlibpath_var_GCJ=no
17079       ;;
17080
17081     *)
17082       ld_shlibs_GCJ=no
17083       ;;
17084     esac
17085   fi
17086
17087 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17088 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17089 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17090
17091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17092 if test "$GCC" = yes; then
17093   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17094 fi
17095
17096 #
17097 # Do we need to explicitly link libc?
17098 #
17099 case "x$archive_cmds_need_lc_GCJ" in
17100 x|xyes)
17101   # Assume -lc should be added
17102   archive_cmds_need_lc_GCJ=yes
17103
17104   if test "$enable_shared" = yes && test "$GCC" = yes; then
17105     case $archive_cmds_GCJ in
17106     *'~'*)
17107       # FIXME: we may have to deal with multi-command sequences.
17108       ;;
17109     '$CC '*)
17110       # Test whether the compiler implicitly links with -lc since on some
17111       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17112       # to ld, don't add -lc before -lgcc.
17113       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17114 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17115       $rm conftest*
17116       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17117
17118       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119   (eval $ac_compile) 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } 2>conftest.err; then
17123         soname=conftest
17124         lib=conftest
17125         libobjs=conftest.$ac_objext
17126         deplibs=
17127         wl=$lt_prog_compiler_wl_GCJ
17128         compiler_flags=-v
17129         linker_flags=-v
17130         verstring=
17131         output_objdir=.
17132         libname=conftest
17133         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17134         allow_undefined_flag_GCJ=
17135         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17136   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }
17140         then
17141           archive_cmds_need_lc_GCJ=no
17142         else
17143           archive_cmds_need_lc_GCJ=yes
17144         fi
17145         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17146       else
17147         cat conftest.err 1>&5
17148       fi
17149       $rm conftest*
17150       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17151 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17152       ;;
17153     esac
17154   fi
17155   ;;
17156 esac
17157
17158 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17160 library_names_spec=
17161 libname_spec='lib$name'
17162 soname_spec=
17163 shrext_cmds=".so"
17164 postinstall_cmds=
17165 postuninstall_cmds=
17166 finish_cmds=
17167 finish_eval=
17168 shlibpath_var=
17169 shlibpath_overrides_runpath=unknown
17170 version_type=none
17171 dynamic_linker="$host_os ld.so"
17172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17173 if test "$GCC" = yes; then
17174   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17175   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17176     # if the path contains ";" then we assume it to be the separator
17177     # otherwise default to the standard path separator (i.e. ":") - it is
17178     # assumed that no part of a normal pathname contains ";" but that should
17179     # okay in the real world where ";" in dirpaths is itself problematic.
17180     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17181   else
17182     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17183   fi
17184 else
17185   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17186 fi
17187 need_lib_prefix=unknown
17188 hardcode_into_libs=no
17189
17190 # when you set need_version to no, make sure it does not cause -set_version
17191 # flags to be left without arguments
17192 need_version=unknown
17193
17194 case $host_os in
17195 aix3*)
17196   version_type=linux
17197   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17198   shlibpath_var=LIBPATH
17199
17200   # AIX 3 has no versioning support, so we append a major version to the name.
17201   soname_spec='${libname}${release}${shared_ext}$major'
17202   ;;
17203
17204 aix4* | aix5*)
17205   version_type=linux
17206   need_lib_prefix=no
17207   need_version=no
17208   hardcode_into_libs=yes
17209   if test "$host_cpu" = ia64; then
17210     # AIX 5 supports IA64
17211     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17212     shlibpath_var=LD_LIBRARY_PATH
17213   else
17214     # With GCC up to 2.95.x, collect2 would create an import file
17215     # for dependence libraries.  The import file would start with
17216     # the line `#! .'.  This would cause the generated library to
17217     # depend on `.', always an invalid library.  This was fixed in
17218     # development snapshots of GCC prior to 3.0.
17219     case $host_os in
17220       aix4 | aix4.[01] | aix4.[01].*)
17221       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17222            echo ' yes '
17223            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17224         :
17225       else
17226         can_build_shared=no
17227       fi
17228       ;;
17229     esac
17230     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17231     # soname into executable. Probably we can add versioning support to
17232     # collect2, so additional links can be useful in future.
17233     if test "$aix_use_runtimelinking" = yes; then
17234       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17235       # instead of lib<name>.a to let people know that these are not
17236       # typical AIX shared libraries.
17237       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238     else
17239       # We preserve .a as extension for shared libraries through AIX4.2
17240       # and later when we are not doing run time linking.
17241       library_names_spec='${libname}${release}.a $libname.a'
17242       soname_spec='${libname}${release}${shared_ext}$major'
17243     fi
17244     shlibpath_var=LIBPATH
17245   fi
17246   ;;
17247
17248 amigaos*)
17249   library_names_spec='$libname.ixlibrary $libname.a'
17250   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17251   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'
17252   ;;
17253
17254 beos*)
17255   library_names_spec='${libname}${shared_ext}'
17256   dynamic_linker="$host_os ld.so"
17257   shlibpath_var=LIBRARY_PATH
17258   ;;
17259
17260 bsdi4*)
17261   version_type=linux
17262   need_version=no
17263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264   soname_spec='${libname}${release}${shared_ext}$major'
17265   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17266   shlibpath_var=LD_LIBRARY_PATH
17267   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17268   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17269   # the default ld.so.conf also contains /usr/contrib/lib and
17270   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17271   # libtool to hard-code these into programs
17272   ;;
17273
17274 cygwin* | mingw* | pw32*)
17275   version_type=windows
17276   shrext_cmds=".dll"
17277   need_version=no
17278   need_lib_prefix=no
17279
17280   case $GCC,$host_os in
17281   yes,cygwin* | yes,mingw* | yes,pw32*)
17282     library_names_spec='$libname.dll.a'
17283     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17284     postinstall_cmds='base_file=`basename \${file}`~
17285       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17286       dldir=$destdir/`dirname \$dlpath`~
17287       test -d \$dldir || mkdir -p \$dldir~
17288       $install_prog $dir/$dlname \$dldir/$dlname'
17289     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17290       dlpath=$dir/\$dldll~
17291        $rm \$dlpath'
17292     shlibpath_overrides_runpath=yes
17293
17294     case $host_os in
17295     cygwin*)
17296       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17297       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17298       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17299       ;;
17300     mingw*)
17301       # MinGW DLLs use traditional 'lib' prefix
17302       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17303       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17304       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17305         # It is most probably a Windows format PATH printed by
17306         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17307         # path with ; separators, and with drive letters. We can handle the
17308         # drive letters (cygwin fileutils understands them), so leave them,
17309         # especially as we might pass files found there to a mingw objdump,
17310         # which wouldn't understand a cygwinified path. Ahh.
17311         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17312       else
17313         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17314       fi
17315       ;;
17316     pw32*)
17317       # pw32 DLLs use 'pw' prefix rather than 'lib'
17318       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17319       ;;
17320     esac
17321     ;;
17322
17323   *)
17324     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17325     ;;
17326   esac
17327   dynamic_linker='Win32 ld.exe'
17328   # FIXME: first we should search . and the directory the executable is in
17329   shlibpath_var=PATH
17330   ;;
17331
17332 darwin* | rhapsody*)
17333   dynamic_linker="$host_os dyld"
17334   version_type=darwin
17335   need_lib_prefix=no
17336   need_version=no
17337   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17338   soname_spec='${libname}${release}${major}$shared_ext'
17339   shlibpath_overrides_runpath=yes
17340   shlibpath_var=DYLD_LIBRARY_PATH
17341   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17342   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17343   if test "$GCC" = yes; then
17344     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"`
17345   else
17346     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17347   fi
17348   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17349   ;;
17350
17351 dgux*)
17352   version_type=linux
17353   need_lib_prefix=no
17354   need_version=no
17355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17356   soname_spec='${libname}${release}${shared_ext}$major'
17357   shlibpath_var=LD_LIBRARY_PATH
17358   ;;
17359
17360 freebsd1*)
17361   dynamic_linker=no
17362   ;;
17363
17364 kfreebsd*-gnu)
17365   version_type=linux
17366   need_lib_prefix=no
17367   need_version=no
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17369   soname_spec='${libname}${release}${shared_ext}$major'
17370   shlibpath_var=LD_LIBRARY_PATH
17371   shlibpath_overrides_runpath=no
17372   hardcode_into_libs=yes
17373   dynamic_linker='GNU ld.so'
17374   ;;
17375
17376 freebsd*)
17377   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17378   version_type=freebsd-$objformat
17379   case $version_type in
17380     freebsd-elf*)
17381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17382       need_version=no
17383       need_lib_prefix=no
17384       ;;
17385     freebsd-*)
17386       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17387       need_version=yes
17388       ;;
17389   esac
17390   shlibpath_var=LD_LIBRARY_PATH
17391   case $host_os in
17392   freebsd2*)
17393     shlibpath_overrides_runpath=yes
17394     ;;
17395   freebsd3.01* | freebsdelf3.01*)
17396     shlibpath_overrides_runpath=yes
17397     hardcode_into_libs=yes
17398     ;;
17399   *) # from 3.2 on
17400     shlibpath_overrides_runpath=no
17401     hardcode_into_libs=yes
17402     ;;
17403   esac
17404   ;;
17405
17406 gnu*)
17407   version_type=linux
17408   need_lib_prefix=no
17409   need_version=no
17410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17411   soname_spec='${libname}${release}${shared_ext}$major'
17412   shlibpath_var=LD_LIBRARY_PATH
17413   hardcode_into_libs=yes
17414   ;;
17415
17416 hpux9* | hpux10* | hpux11*)
17417   # Give a soname corresponding to the major version so that dld.sl refuses to
17418   # link against other versions.
17419   version_type=sunos
17420   need_lib_prefix=no
17421   need_version=no
17422   case "$host_cpu" in
17423   ia64*)
17424     shrext_cmds='.so'
17425     hardcode_into_libs=yes
17426     dynamic_linker="$host_os dld.so"
17427     shlibpath_var=LD_LIBRARY_PATH
17428     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430     soname_spec='${libname}${release}${shared_ext}$major'
17431     if test "X$HPUX_IA64_MODE" = X32; then
17432       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17433     else
17434       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17435     fi
17436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17437     ;;
17438    hppa*64*)
17439      shrext_cmds='.sl'
17440      hardcode_into_libs=yes
17441      dynamic_linker="$host_os dld.sl"
17442      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17443      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17444      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445      soname_spec='${libname}${release}${shared_ext}$major'
17446      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17447      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17448      ;;
17449    *)
17450     shrext_cmds='.sl'
17451     dynamic_linker="$host_os dld.sl"
17452     shlibpath_var=SHLIB_PATH
17453     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455     soname_spec='${libname}${release}${shared_ext}$major'
17456     ;;
17457   esac
17458   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17459   postinstall_cmds='chmod 555 $lib'
17460   ;;
17461
17462 irix5* | irix6* | nonstopux*)
17463   case $host_os in
17464     nonstopux*) version_type=nonstopux ;;
17465     *)
17466         if test "$lt_cv_prog_gnu_ld" = yes; then
17467                 version_type=linux
17468         else
17469                 version_type=irix
17470         fi ;;
17471   esac
17472   need_lib_prefix=no
17473   need_version=no
17474   soname_spec='${libname}${release}${shared_ext}$major'
17475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17476   case $host_os in
17477   irix5* | nonstopux*)
17478     libsuff= shlibsuff=
17479     ;;
17480   *)
17481     case $LD in # libtool.m4 will add one of these switches to LD
17482     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17483       libsuff= shlibsuff= libmagic=32-bit;;
17484     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17485       libsuff=32 shlibsuff=N32 libmagic=N32;;
17486     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17487       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17488     *) libsuff= shlibsuff= libmagic=never-match;;
17489     esac
17490     ;;
17491   esac
17492   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17493   shlibpath_overrides_runpath=no
17494   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17495   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17496   hardcode_into_libs=yes
17497   ;;
17498
17499 # No shared lib support for Linux oldld, aout, or coff.
17500 linux*oldld* | linux*aout* | linux*coff*)
17501   dynamic_linker=no
17502   ;;
17503
17504 # This must be Linux ELF.
17505 linux*)
17506   version_type=linux
17507   need_lib_prefix=no
17508   need_version=no
17509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510   soname_spec='${libname}${release}${shared_ext}$major'
17511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17512   shlibpath_var=LD_LIBRARY_PATH
17513   shlibpath_overrides_runpath=no
17514   # This implies no fast_install, which is unacceptable.
17515   # Some rework will be needed to allow for fast_install
17516   # before this can be enabled.
17517   hardcode_into_libs=yes
17518
17519   # find out which ABI we are using
17520   libsuff=
17521   case "$host_cpu" in
17522   x86_64*|s390x*|powerpc64*)
17523     echo '#line 17523 "configure"' > conftest.$ac_ext
17524     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525   (eval $ac_compile) 2>&5
17526   ac_status=$?
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); }; then
17529       case `/usr/bin/file conftest.$ac_objext` in
17530       *64-bit*)
17531         libsuff=64
17532         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17533         ;;
17534       esac
17535     fi
17536     rm -rf conftest*
17537     ;;
17538   esac
17539
17540   # Append ld.so.conf contents to the search path
17541   if test -f /etc/ld.so.conf; then
17542     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17543     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17544   fi
17545
17546   # We used to test for /lib/ld.so.1 and disable shared libraries on
17547   # powerpc, because MkLinux only supported shared libraries with the
17548   # GNU dynamic linker.  Since this was broken with cross compilers,
17549   # most powerpc-linux boxes support dynamic linking these days and
17550   # people can always --disable-shared, the test was removed, and we
17551   # assume the GNU/Linux dynamic linker is in use.
17552   dynamic_linker='GNU/Linux ld.so'
17553   ;;
17554
17555 knetbsd*-gnu)
17556   version_type=linux
17557   need_lib_prefix=no
17558   need_version=no
17559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17560   soname_spec='${libname}${release}${shared_ext}$major'
17561   shlibpath_var=LD_LIBRARY_PATH
17562   shlibpath_overrides_runpath=no
17563   hardcode_into_libs=yes
17564   dynamic_linker='GNU ld.so'
17565   ;;
17566
17567 netbsd*)
17568   version_type=sunos
17569   need_lib_prefix=no
17570   need_version=no
17571   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17573     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17574     dynamic_linker='NetBSD (a.out) ld.so'
17575   else
17576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17577     soname_spec='${libname}${release}${shared_ext}$major'
17578     dynamic_linker='NetBSD ld.elf_so'
17579   fi
17580   shlibpath_var=LD_LIBRARY_PATH
17581   shlibpath_overrides_runpath=yes
17582   hardcode_into_libs=yes
17583   ;;
17584
17585 newsos6)
17586   version_type=linux
17587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588   shlibpath_var=LD_LIBRARY_PATH
17589   shlibpath_overrides_runpath=yes
17590   ;;
17591
17592 nto-qnx*)
17593   version_type=linux
17594   need_lib_prefix=no
17595   need_version=no
17596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597   soname_spec='${libname}${release}${shared_ext}$major'
17598   shlibpath_var=LD_LIBRARY_PATH
17599   shlibpath_overrides_runpath=yes
17600   ;;
17601
17602 openbsd*)
17603   version_type=sunos
17604   need_lib_prefix=no
17605   need_version=yes
17606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17607   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17608   shlibpath_var=LD_LIBRARY_PATH
17609   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17610     case $host_os in
17611       openbsd2.[89] | openbsd2.[89].*)
17612         shlibpath_overrides_runpath=no
17613         ;;
17614       *)
17615         shlibpath_overrides_runpath=yes
17616         ;;
17617       esac
17618   else
17619     shlibpath_overrides_runpath=yes
17620   fi
17621   ;;
17622
17623 os2*)
17624   libname_spec='$name'
17625   shrext_cmds=".dll"
17626   need_lib_prefix=no
17627   library_names_spec='$libname${shared_ext} $libname.a'
17628   dynamic_linker='OS/2 ld.exe'
17629   shlibpath_var=LIBPATH
17630   ;;
17631
17632 osf3* | osf4* | osf5*)
17633   version_type=osf
17634   need_lib_prefix=no
17635   need_version=no
17636   soname_spec='${libname}${release}${shared_ext}$major'
17637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638   shlibpath_var=LD_LIBRARY_PATH
17639   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17640   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17641   ;;
17642
17643 sco3.2v5*)
17644   version_type=osf
17645   soname_spec='${libname}${release}${shared_ext}$major'
17646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647   shlibpath_var=LD_LIBRARY_PATH
17648   ;;
17649
17650 solaris*)
17651   version_type=linux
17652   need_lib_prefix=no
17653   need_version=no
17654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655   soname_spec='${libname}${release}${shared_ext}$major'
17656   shlibpath_var=LD_LIBRARY_PATH
17657   shlibpath_overrides_runpath=yes
17658   hardcode_into_libs=yes
17659   # ldd complains unless libraries are executable
17660   postinstall_cmds='chmod +x $lib'
17661   ;;
17662
17663 sunos4*)
17664   version_type=sunos
17665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17667   shlibpath_var=LD_LIBRARY_PATH
17668   shlibpath_overrides_runpath=yes
17669   if test "$with_gnu_ld" = yes; then
17670     need_lib_prefix=no
17671   fi
17672   need_version=yes
17673   ;;
17674
17675 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17676   version_type=linux
17677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678   soname_spec='${libname}${release}${shared_ext}$major'
17679   shlibpath_var=LD_LIBRARY_PATH
17680   case $host_vendor in
17681     sni)
17682       shlibpath_overrides_runpath=no
17683       need_lib_prefix=no
17684       export_dynamic_flag_spec='${wl}-Blargedynsym'
17685       runpath_var=LD_RUN_PATH
17686       ;;
17687     siemens)
17688       need_lib_prefix=no
17689       ;;
17690     motorola)
17691       need_lib_prefix=no
17692       need_version=no
17693       shlibpath_overrides_runpath=no
17694       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17695       ;;
17696   esac
17697   ;;
17698
17699 sysv4*MP*)
17700   if test -d /usr/nec ;then
17701     version_type=linux
17702     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17703     soname_spec='$libname${shared_ext}.$major'
17704     shlibpath_var=LD_LIBRARY_PATH
17705   fi
17706   ;;
17707
17708 uts4*)
17709   version_type=linux
17710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711   soname_spec='${libname}${release}${shared_ext}$major'
17712   shlibpath_var=LD_LIBRARY_PATH
17713   ;;
17714
17715 *)
17716   dynamic_linker=no
17717   ;;
17718 esac
17719 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17720 echo "${ECHO_T}$dynamic_linker" >&6; }
17721 test "$dynamic_linker" = no && can_build_shared=no
17722
17723 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17724 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17725 hardcode_action_GCJ=
17726 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17727    test -n "$runpath_var GCJ" || \
17728    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17729
17730   # We can hardcode non-existant directories.
17731   if test "$hardcode_direct_GCJ" != no &&
17732      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17733      # have to relink, otherwise we might link with an installed library
17734      # when we should be linking with a yet-to-be-installed one
17735      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17736      test "$hardcode_minus_L_GCJ" != no; then
17737     # Linking always hardcodes the temporary library directory.
17738     hardcode_action_GCJ=relink
17739   else
17740     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17741     hardcode_action_GCJ=immediate
17742   fi
17743 else
17744   # We cannot hardcode anything, or else we can only hardcode existing
17745   # directories.
17746   hardcode_action_GCJ=unsupported
17747 fi
17748 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17749 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17750
17751 if test "$hardcode_action_GCJ" = relink; then
17752   # Fast installation is not supported
17753   enable_fast_install=no
17754 elif test "$shlibpath_overrides_runpath" = yes ||
17755      test "$enable_shared" = no; then
17756   # Fast installation is not necessary
17757   enable_fast_install=needless
17758 fi
17759
17760 striplib=
17761 old_striplib=
17762 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17763 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17764 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17765   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17766   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17767   { echo "$as_me:$LINENO: result: yes" >&5
17768 echo "${ECHO_T}yes" >&6; }
17769 else
17770 # FIXME - insert some real tests, host_os isn't really good enough
17771   case $host_os in
17772    darwin*)
17773        if test -n "$STRIP" ; then
17774          striplib="$STRIP -x"
17775          { echo "$as_me:$LINENO: result: yes" >&5
17776 echo "${ECHO_T}yes" >&6; }
17777        else
17778   { echo "$as_me:$LINENO: result: no" >&5
17779 echo "${ECHO_T}no" >&6; }
17780 fi
17781        ;;
17782    *)
17783   { echo "$as_me:$LINENO: result: no" >&5
17784 echo "${ECHO_T}no" >&6; }
17785     ;;
17786   esac
17787 fi
17788
17789 if test "x$enable_dlopen" != xyes; then
17790   enable_dlopen=unknown
17791   enable_dlopen_self=unknown
17792   enable_dlopen_self_static=unknown
17793 else
17794   lt_cv_dlopen=no
17795   lt_cv_dlopen_libs=
17796
17797   case $host_os in
17798   beos*)
17799     lt_cv_dlopen="load_add_on"
17800     lt_cv_dlopen_libs=
17801     lt_cv_dlopen_self=yes
17802     ;;
17803
17804   mingw* | pw32*)
17805     lt_cv_dlopen="LoadLibrary"
17806     lt_cv_dlopen_libs=
17807    ;;
17808
17809   cygwin*)
17810     lt_cv_dlopen="dlopen"
17811     lt_cv_dlopen_libs=
17812    ;;
17813
17814   darwin*)
17815   # if libdl is installed we need to link against it
17816     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17817 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17818 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17819   echo $ECHO_N "(cached) $ECHO_C" >&6
17820 else
17821   ac_check_lib_save_LIBS=$LIBS
17822 LIBS="-ldl  $LIBS"
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h.  */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h.  */
17829
17830 /* Override any GCC internal prototype to avoid an error.
17831    Use char because int might match the return type of a GCC
17832    builtin and then its argument prototype would still apply.  */
17833 #ifdef __cplusplus
17834 extern "C"
17835 #endif
17836 char dlopen ();
17837 int
17838 main ()
17839 {
17840 return dlopen ();
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (ac_try="$ac_link"
17847 case "(($ac_try" in
17848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849   *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852   (eval "$ac_link") 2>conftest.er1
17853   ac_status=$?
17854   grep -v '^ *+' conftest.er1 >conftest.err
17855   rm -f conftest.er1
17856   cat conftest.err >&5
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); } && {
17859          test -z "$ac_c_werror_flag" ||
17860          test ! -s conftest.err
17861        } && test -s conftest$ac_exeext &&
17862        $as_test_x conftest$ac_exeext; then
17863   ac_cv_lib_dl_dlopen=yes
17864 else
17865   echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868         ac_cv_lib_dl_dlopen=no
17869 fi
17870
17871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17872       conftest$ac_exeext conftest.$ac_ext
17873 LIBS=$ac_check_lib_save_LIBS
17874 fi
17875 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17876 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17877 if test $ac_cv_lib_dl_dlopen = yes; then
17878   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17879 else
17880
17881     lt_cv_dlopen="dyld"
17882     lt_cv_dlopen_libs=
17883     lt_cv_dlopen_self=yes
17884
17885 fi
17886
17887    ;;
17888
17889   *)
17890     { echo "$as_me:$LINENO: checking for shl_load" >&5
17891 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17892 if test "${ac_cv_func_shl_load+set}" = set; then
17893   echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895   cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h.  */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h.  */
17901 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17903 #define shl_load innocuous_shl_load
17904
17905 /* System header to define __stub macros and hopefully few prototypes,
17906     which can conflict with char shl_load (); below.
17907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17908     <limits.h> exists even on freestanding compilers.  */
17909
17910 #ifdef __STDC__
17911 # include <limits.h>
17912 #else
17913 # include <assert.h>
17914 #endif
17915
17916 #undef shl_load
17917
17918 /* Override any GCC internal prototype to avoid an error.
17919    Use char because int might match the return type of a GCC
17920    builtin and then its argument prototype would still apply.  */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 char shl_load ();
17925 /* The GNU C library defines this for functions which it implements
17926     to always fail with ENOSYS.  Some functions are actually named
17927     something starting with __ and the normal name is an alias.  */
17928 #if defined __stub_shl_load || defined __stub___shl_load
17929 choke me
17930 #endif
17931
17932 int
17933 main ()
17934 {
17935 return shl_load ();
17936   ;
17937   return 0;
17938 }
17939 _ACEOF
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (ac_try="$ac_link"
17942 case "(($ac_try" in
17943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944   *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947   (eval "$ac_link") 2>conftest.er1
17948   ac_status=$?
17949   grep -v '^ *+' conftest.er1 >conftest.err
17950   rm -f conftest.er1
17951   cat conftest.err >&5
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); } && {
17954          test -z "$ac_c_werror_flag" ||
17955          test ! -s conftest.err
17956        } && test -s conftest$ac_exeext &&
17957        $as_test_x conftest$ac_exeext; then
17958   ac_cv_func_shl_load=yes
17959 else
17960   echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963         ac_cv_func_shl_load=no
17964 fi
17965
17966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17967       conftest$ac_exeext conftest.$ac_ext
17968 fi
17969 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17970 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17971 if test $ac_cv_func_shl_load = yes; then
17972   lt_cv_dlopen="shl_load"
17973 else
17974   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17975 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17976 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17977   echo $ECHO_N "(cached) $ECHO_C" >&6
17978 else
17979   ac_check_lib_save_LIBS=$LIBS
17980 LIBS="-ldld  $LIBS"
17981 cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h.  */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h.  */
17987
17988 /* Override any GCC internal prototype to avoid an error.
17989    Use char because int might match the return type of a GCC
17990    builtin and then its argument prototype would still apply.  */
17991 #ifdef __cplusplus
17992 extern "C"
17993 #endif
17994 char shl_load ();
17995 int
17996 main ()
17997 {
17998 return shl_load ();
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 rm -f conftest.$ac_objext conftest$ac_exeext
18004 if { (ac_try="$ac_link"
18005 case "(($ac_try" in
18006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007   *) ac_try_echo=$ac_try;;
18008 esac
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010   (eval "$ac_link") 2>conftest.er1
18011   ac_status=$?
18012   grep -v '^ *+' conftest.er1 >conftest.err
18013   rm -f conftest.er1
18014   cat conftest.err >&5
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); } && {
18017          test -z "$ac_c_werror_flag" ||
18018          test ! -s conftest.err
18019        } && test -s conftest$ac_exeext &&
18020        $as_test_x conftest$ac_exeext; then
18021   ac_cv_lib_dld_shl_load=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026         ac_cv_lib_dld_shl_load=no
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18030       conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18032 fi
18033 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18034 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18035 if test $ac_cv_lib_dld_shl_load = yes; then
18036   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18037 else
18038   { echo "$as_me:$LINENO: checking for dlopen" >&5
18039 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18040 if test "${ac_cv_func_dlopen+set}" = set; then
18041   echo $ECHO_N "(cached) $ECHO_C" >&6
18042 else
18043   cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h.  */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h.  */
18049 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18051 #define dlopen innocuous_dlopen
18052
18053 /* System header to define __stub macros and hopefully few prototypes,
18054     which can conflict with char dlopen (); below.
18055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18056     <limits.h> exists even on freestanding compilers.  */
18057
18058 #ifdef __STDC__
18059 # include <limits.h>
18060 #else
18061 # include <assert.h>
18062 #endif
18063
18064 #undef dlopen
18065
18066 /* Override any GCC internal prototype to avoid an error.
18067    Use char because int might match the return type of a GCC
18068    builtin and then its argument prototype would still apply.  */
18069 #ifdef __cplusplus
18070 extern "C"
18071 #endif
18072 char dlopen ();
18073 /* The GNU C library defines this for functions which it implements
18074     to always fail with ENOSYS.  Some functions are actually named
18075     something starting with __ and the normal name is an alias.  */
18076 #if defined __stub_dlopen || defined __stub___dlopen
18077 choke me
18078 #endif
18079
18080 int
18081 main ()
18082 {
18083 return dlopen ();
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (ac_try="$ac_link"
18090 case "(($ac_try" in
18091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092   *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095   (eval "$ac_link") 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } && {
18102          test -z "$ac_c_werror_flag" ||
18103          test ! -s conftest.err
18104        } && test -s conftest$ac_exeext &&
18105        $as_test_x conftest$ac_exeext; then
18106   ac_cv_func_dlopen=yes
18107 else
18108   echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111         ac_cv_func_dlopen=no
18112 fi
18113
18114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18115       conftest$ac_exeext conftest.$ac_ext
18116 fi
18117 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18118 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18119 if test $ac_cv_func_dlopen = yes; then
18120   lt_cv_dlopen="dlopen"
18121 else
18122   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18123 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18124 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18125   echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127   ac_check_lib_save_LIBS=$LIBS
18128 LIBS="-ldl  $LIBS"
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135
18136 /* Override any GCC internal prototype to avoid an error.
18137    Use char because int might match the return type of a GCC
18138    builtin and then its argument prototype would still apply.  */
18139 #ifdef __cplusplus
18140 extern "C"
18141 #endif
18142 char dlopen ();
18143 int
18144 main ()
18145 {
18146 return dlopen ();
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155   *) ac_try_echo=$ac_try;;
18156 esac
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158   (eval "$ac_link") 2>conftest.er1
18159   ac_status=$?
18160   grep -v '^ *+' conftest.er1 >conftest.err
18161   rm -f conftest.er1
18162   cat conftest.err >&5
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); } && {
18165          test -z "$ac_c_werror_flag" ||
18166          test ! -s conftest.err
18167        } && test -s conftest$ac_exeext &&
18168        $as_test_x conftest$ac_exeext; then
18169   ac_cv_lib_dl_dlopen=yes
18170 else
18171   echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18173
18174         ac_cv_lib_dl_dlopen=no
18175 fi
18176
18177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18178       conftest$ac_exeext conftest.$ac_ext
18179 LIBS=$ac_check_lib_save_LIBS
18180 fi
18181 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18182 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18183 if test $ac_cv_lib_dl_dlopen = yes; then
18184   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18185 else
18186   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18187 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18188 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18189   echo $ECHO_N "(cached) $ECHO_C" >&6
18190 else
18191   ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-lsvld  $LIBS"
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h.  */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h.  */
18199
18200 /* Override any GCC internal prototype to avoid an error.
18201    Use char because int might match the return type of a GCC
18202    builtin and then its argument prototype would still apply.  */
18203 #ifdef __cplusplus
18204 extern "C"
18205 #endif
18206 char dlopen ();
18207 int
18208 main ()
18209 {
18210 return dlopen ();
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219   *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222   (eval "$ac_link") 2>conftest.er1
18223   ac_status=$?
18224   grep -v '^ *+' conftest.er1 >conftest.err
18225   rm -f conftest.er1
18226   cat conftest.err >&5
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } && {
18229          test -z "$ac_c_werror_flag" ||
18230          test ! -s conftest.err
18231        } && test -s conftest$ac_exeext &&
18232        $as_test_x conftest$ac_exeext; then
18233   ac_cv_lib_svld_dlopen=yes
18234 else
18235   echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238         ac_cv_lib_svld_dlopen=no
18239 fi
18240
18241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18242       conftest$ac_exeext conftest.$ac_ext
18243 LIBS=$ac_check_lib_save_LIBS
18244 fi
18245 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18246 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18247 if test $ac_cv_lib_svld_dlopen = yes; then
18248   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18249 else
18250   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18251 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18252 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18253   echo $ECHO_N "(cached) $ECHO_C" >&6
18254 else
18255   ac_check_lib_save_LIBS=$LIBS
18256 LIBS="-ldld  $LIBS"
18257 cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h.  */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h.  */
18263
18264 /* Override any GCC internal prototype to avoid an error.
18265    Use char because int might match the return type of a GCC
18266    builtin and then its argument prototype would still apply.  */
18267 #ifdef __cplusplus
18268 extern "C"
18269 #endif
18270 char dld_link ();
18271 int
18272 main ()
18273 {
18274 return dld_link ();
18275   ;
18276   return 0;
18277 }
18278 _ACEOF
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (ac_try="$ac_link"
18281 case "(($ac_try" in
18282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283   *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286   (eval "$ac_link") 2>conftest.er1
18287   ac_status=$?
18288   grep -v '^ *+' conftest.er1 >conftest.err
18289   rm -f conftest.er1
18290   cat conftest.err >&5
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); } && {
18293          test -z "$ac_c_werror_flag" ||
18294          test ! -s conftest.err
18295        } && test -s conftest$ac_exeext &&
18296        $as_test_x conftest$ac_exeext; then
18297   ac_cv_lib_dld_dld_link=yes
18298 else
18299   echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18301
18302         ac_cv_lib_dld_dld_link=no
18303 fi
18304
18305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18306       conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18308 fi
18309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18310 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18311 if test $ac_cv_lib_dld_dld_link = yes; then
18312   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18313 fi
18314
18315
18316 fi
18317
18318
18319 fi
18320
18321
18322 fi
18323
18324
18325 fi
18326
18327
18328 fi
18329
18330     ;;
18331   esac
18332
18333   if test "x$lt_cv_dlopen" != xno; then
18334     enable_dlopen=yes
18335   else
18336     enable_dlopen=no
18337   fi
18338
18339   case $lt_cv_dlopen in
18340   dlopen)
18341     save_CPPFLAGS="$CPPFLAGS"
18342     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18343
18344     save_LDFLAGS="$LDFLAGS"
18345     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18346
18347     save_LIBS="$LIBS"
18348     LIBS="$lt_cv_dlopen_libs $LIBS"
18349
18350     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18351 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18352 if test "${lt_cv_dlopen_self+set}" = set; then
18353   echo $ECHO_N "(cached) $ECHO_C" >&6
18354 else
18355           if test "$cross_compiling" = yes; then :
18356   lt_cv_dlopen_self=cross
18357 else
18358   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18359   lt_status=$lt_dlunknown
18360   cat > conftest.$ac_ext <<EOF
18361 #line 18361 "configure"
18362 #include "confdefs.h"
18363
18364 #if HAVE_DLFCN_H
18365 #include <dlfcn.h>
18366 #endif
18367
18368 #include <stdio.h>
18369
18370 #ifdef RTLD_GLOBAL
18371 #  define LT_DLGLOBAL           RTLD_GLOBAL
18372 #else
18373 #  ifdef DL_GLOBAL
18374 #    define LT_DLGLOBAL         DL_GLOBAL
18375 #  else
18376 #    define LT_DLGLOBAL         0
18377 #  endif
18378 #endif
18379
18380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18381    find out it does not work in some platform. */
18382 #ifndef LT_DLLAZY_OR_NOW
18383 #  ifdef RTLD_LAZY
18384 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18385 #  else
18386 #    ifdef DL_LAZY
18387 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18388 #    else
18389 #      ifdef RTLD_NOW
18390 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18391 #      else
18392 #        ifdef DL_NOW
18393 #          define LT_DLLAZY_OR_NOW      DL_NOW
18394 #        else
18395 #          define LT_DLLAZY_OR_NOW      0
18396 #        endif
18397 #      endif
18398 #    endif
18399 #  endif
18400 #endif
18401
18402 #ifdef __cplusplus
18403 extern "C" void exit (int);
18404 #endif
18405
18406 void fnord() { int i=42;}
18407 int main ()
18408 {
18409   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18410   int status = $lt_dlunknown;
18411
18412   if (self)
18413     {
18414       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18415       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18416       /* dlclose (self); */
18417     }
18418
18419     exit (status);
18420 }
18421 EOF
18422   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423   (eval $ac_link) 2>&5
18424   ac_status=$?
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18427     (./conftest; exit; ) 2>/dev/null
18428     lt_status=$?
18429     case x$lt_status in
18430       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18431       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18432       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18433     esac
18434   else :
18435     # compilation failed
18436     lt_cv_dlopen_self=no
18437   fi
18438 fi
18439 rm -fr conftest*
18440
18441
18442 fi
18443 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18444 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18445
18446     if test "x$lt_cv_dlopen_self" = xyes; then
18447       LDFLAGS="$LDFLAGS $link_static_flag"
18448       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18449 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18450 if test "${lt_cv_dlopen_self_static+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453           if test "$cross_compiling" = yes; then :
18454   lt_cv_dlopen_self_static=cross
18455 else
18456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18457   lt_status=$lt_dlunknown
18458   cat > conftest.$ac_ext <<EOF
18459 #line 18459 "configure"
18460 #include "confdefs.h"
18461
18462 #if HAVE_DLFCN_H
18463 #include <dlfcn.h>
18464 #endif
18465
18466 #include <stdio.h>
18467
18468 #ifdef RTLD_GLOBAL
18469 #  define LT_DLGLOBAL           RTLD_GLOBAL
18470 #else
18471 #  ifdef DL_GLOBAL
18472 #    define LT_DLGLOBAL         DL_GLOBAL
18473 #  else
18474 #    define LT_DLGLOBAL         0
18475 #  endif
18476 #endif
18477
18478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18479    find out it does not work in some platform. */
18480 #ifndef LT_DLLAZY_OR_NOW
18481 #  ifdef RTLD_LAZY
18482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18483 #  else
18484 #    ifdef DL_LAZY
18485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18486 #    else
18487 #      ifdef RTLD_NOW
18488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18489 #      else
18490 #        ifdef DL_NOW
18491 #          define LT_DLLAZY_OR_NOW      DL_NOW
18492 #        else
18493 #          define LT_DLLAZY_OR_NOW      0
18494 #        endif
18495 #      endif
18496 #    endif
18497 #  endif
18498 #endif
18499
18500 #ifdef __cplusplus
18501 extern "C" void exit (int);
18502 #endif
18503
18504 void fnord() { int i=42;}
18505 int main ()
18506 {
18507   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18508   int status = $lt_dlunknown;
18509
18510   if (self)
18511     {
18512       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18513       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18514       /* dlclose (self); */
18515     }
18516
18517     exit (status);
18518 }
18519 EOF
18520   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18521   (eval $ac_link) 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18525     (./conftest; exit; ) 2>/dev/null
18526     lt_status=$?
18527     case x$lt_status in
18528       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18529       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18530       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18531     esac
18532   else :
18533     # compilation failed
18534     lt_cv_dlopen_self_static=no
18535   fi
18536 fi
18537 rm -fr conftest*
18538
18539
18540 fi
18541 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18542 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18543     fi
18544
18545     CPPFLAGS="$save_CPPFLAGS"
18546     LDFLAGS="$save_LDFLAGS"
18547     LIBS="$save_LIBS"
18548     ;;
18549   esac
18550
18551   case $lt_cv_dlopen_self in
18552   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18553   *) enable_dlopen_self=unknown ;;
18554   esac
18555
18556   case $lt_cv_dlopen_self_static in
18557   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18558   *) enable_dlopen_self_static=unknown ;;
18559   esac
18560 fi
18561
18562
18563 # The else clause should only fire when bootstrapping the
18564 # libtool distribution, otherwise you forgot to ship ltmain.sh
18565 # with your package, and you will get complaints that there are
18566 # no rules to generate ltmain.sh.
18567 if test -f "$ltmain"; then
18568   # See if we are running on zsh, and set the options which allow our commands through
18569   # without removal of \ escapes.
18570   if test -n "${ZSH_VERSION+set}" ; then
18571     setopt NO_GLOB_SUBST
18572   fi
18573   # Now quote all the things that may contain metacharacters while being
18574   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18575   # variables and quote the copies for generation of the libtool script.
18576   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18577     SED SHELL STRIP \
18578     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18579     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18580     deplibs_check_method reload_flag reload_cmds need_locks \
18581     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18582     lt_cv_sys_global_symbol_to_c_name_address \
18583     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18584     old_postinstall_cmds old_postuninstall_cmds \
18585     compiler_GCJ \
18586     CC_GCJ \
18587     LD_GCJ \
18588     lt_prog_compiler_wl_GCJ \
18589     lt_prog_compiler_pic_GCJ \
18590     lt_prog_compiler_static_GCJ \
18591     lt_prog_compiler_no_builtin_flag_GCJ \
18592     export_dynamic_flag_spec_GCJ \
18593     thread_safe_flag_spec_GCJ \
18594     whole_archive_flag_spec_GCJ \
18595     enable_shared_with_static_runtimes_GCJ \
18596     old_archive_cmds_GCJ \
18597     old_archive_from_new_cmds_GCJ \
18598     predep_objects_GCJ \
18599     postdep_objects_GCJ \
18600     predeps_GCJ \
18601     postdeps_GCJ \
18602     compiler_lib_search_path_GCJ \
18603     archive_cmds_GCJ \
18604     archive_expsym_cmds_GCJ \
18605     postinstall_cmds_GCJ \
18606     postuninstall_cmds_GCJ \
18607     old_archive_from_expsyms_cmds_GCJ \
18608     allow_undefined_flag_GCJ \
18609     no_undefined_flag_GCJ \
18610     export_symbols_cmds_GCJ \
18611     hardcode_libdir_flag_spec_GCJ \
18612     hardcode_libdir_flag_spec_ld_GCJ \
18613     hardcode_libdir_separator_GCJ \
18614     hardcode_automatic_GCJ \
18615     module_cmds_GCJ \
18616     module_expsym_cmds_GCJ \
18617     lt_cv_prog_compiler_c_o_GCJ \
18618     exclude_expsyms_GCJ \
18619     include_expsyms_GCJ; do
18620
18621     case $var in
18622     old_archive_cmds_GCJ | \
18623     old_archive_from_new_cmds_GCJ | \
18624     archive_cmds_GCJ | \
18625     archive_expsym_cmds_GCJ | \
18626     module_cmds_GCJ | \
18627     module_expsym_cmds_GCJ | \
18628     old_archive_from_expsyms_cmds_GCJ | \
18629     export_symbols_cmds_GCJ | \
18630     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18631     postinstall_cmds | postuninstall_cmds | \
18632     old_postinstall_cmds | old_postuninstall_cmds | \
18633     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18634       # Double-quote double-evaled strings.
18635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18636       ;;
18637     *)
18638       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18639       ;;
18640     esac
18641   done
18642
18643   case $lt_echo in
18644   *'\$0 --fallback-echo"')
18645     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18646     ;;
18647   esac
18648
18649 cfgfile="$ofile"
18650
18651   cat <<__EOF__ >> "$cfgfile"
18652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18653
18654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18655
18656 # Shell to use when invoking shell scripts.
18657 SHELL=$lt_SHELL
18658
18659 # Whether or not to build shared libraries.
18660 build_libtool_libs=$enable_shared
18661
18662 # Whether or not to build static libraries.
18663 build_old_libs=$enable_static
18664
18665 # Whether or not to add -lc for building shared libraries.
18666 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18667
18668 # Whether or not to disallow shared libs when runtime libs are static
18669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18670
18671 # Whether or not to optimize for fast installation.
18672 fast_install=$enable_fast_install
18673
18674 # The host system.
18675 host_alias=$host_alias
18676 host=$host
18677
18678 # An echo program that does not interpret backslashes.
18679 echo=$lt_echo
18680
18681 # The archiver.
18682 AR=$lt_AR
18683 AR_FLAGS=$lt_AR_FLAGS
18684
18685 # A C compiler.
18686 LTCC=$lt_LTCC
18687
18688 # A language-specific compiler.
18689 CC=$lt_compiler_GCJ
18690
18691 # Is the compiler the GNU C compiler?
18692 with_gcc=$GCC_GCJ
18693
18694 # An ERE matcher.
18695 EGREP=$lt_EGREP
18696
18697 # The linker used to build libraries.
18698 LD=$lt_LD_GCJ
18699
18700 # Whether we need hard or soft links.
18701 LN_S=$lt_LN_S
18702
18703 # A BSD-compatible nm program.
18704 NM=$lt_NM
18705
18706 # A symbol stripping program
18707 STRIP=$lt_STRIP
18708
18709 # Used to examine libraries when file_magic_cmd begins "file"
18710 MAGIC_CMD=$MAGIC_CMD
18711
18712 # Used on cygwin: DLL creation program.
18713 DLLTOOL="$DLLTOOL"
18714
18715 # Used on cygwin: object dumper.
18716 OBJDUMP="$OBJDUMP"
18717
18718 # Used on cygwin: assembler.
18719 AS="$AS"
18720
18721 # The name of the directory that contains temporary libtool files.
18722 objdir=$objdir
18723
18724 # How to create reloadable object files.
18725 reload_flag=$lt_reload_flag
18726 reload_cmds=$lt_reload_cmds
18727
18728 # How to pass a linker flag through the compiler.
18729 wl=$lt_lt_prog_compiler_wl_GCJ
18730
18731 # Object file suffix (normally "o").
18732 objext="$ac_objext"
18733
18734 # Old archive suffix (normally "a").
18735 libext="$libext"
18736
18737 # Shared library suffix (normally ".so").
18738 shrext_cmds='$shrext_cmds'
18739
18740 # Executable file suffix (normally "").
18741 exeext="$exeext"
18742
18743 # Additional compiler flags for building library objects.
18744 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18745 pic_mode=$pic_mode
18746
18747 # What is the maximum length of a command?
18748 max_cmd_len=$lt_cv_sys_max_cmd_len
18749
18750 # Does compiler simultaneously support -c and -o options?
18751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18752
18753 # Must we lock files when doing compilation ?
18754 need_locks=$lt_need_locks
18755
18756 # Do we need the lib prefix for modules?
18757 need_lib_prefix=$need_lib_prefix
18758
18759 # Do we need a version for libraries?
18760 need_version=$need_version
18761
18762 # Whether dlopen is supported.
18763 dlopen_support=$enable_dlopen
18764
18765 # Whether dlopen of programs is supported.
18766 dlopen_self=$enable_dlopen_self
18767
18768 # Whether dlopen of statically linked programs is supported.
18769 dlopen_self_static=$enable_dlopen_self_static
18770
18771 # Compiler flag to prevent dynamic linking.
18772 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18773
18774 # Compiler flag to turn off builtin functions.
18775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18776
18777 # Compiler flag to allow reflexive dlopens.
18778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18779
18780 # Compiler flag to generate shared objects directly from archives.
18781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18782
18783 # Compiler flag to generate thread-safe objects.
18784 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18785
18786 # Library versioning type.
18787 version_type=$version_type
18788
18789 # Format of library name prefix.
18790 libname_spec=$lt_libname_spec
18791
18792 # List of archive names.  First name is the real one, the rest are links.
18793 # The last name is the one that the linker finds with -lNAME.
18794 library_names_spec=$lt_library_names_spec
18795
18796 # The coded name of the library, if different from the real name.
18797 soname_spec=$lt_soname_spec
18798
18799 # Commands used to build and install an old-style archive.
18800 RANLIB=$lt_RANLIB
18801 old_archive_cmds=$lt_old_archive_cmds_GCJ
18802 old_postinstall_cmds=$lt_old_postinstall_cmds
18803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18804
18805 # Create an old-style archive from a shared archive.
18806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18807
18808 # Create a temporary old-style archive to link instead of a shared archive.
18809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18810
18811 # Commands used to build and install a shared archive.
18812 archive_cmds=$lt_archive_cmds_GCJ
18813 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18814 postinstall_cmds=$lt_postinstall_cmds
18815 postuninstall_cmds=$lt_postuninstall_cmds
18816
18817 # Commands used to build a loadable module (assumed same as above if empty)
18818 module_cmds=$lt_module_cmds_GCJ
18819 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18820
18821 # Commands to strip libraries.
18822 old_striplib=$lt_old_striplib
18823 striplib=$lt_striplib
18824
18825 # Dependencies to place before the objects being linked to create a
18826 # shared library.
18827 predep_objects=$lt_predep_objects_GCJ
18828
18829 # Dependencies to place after the objects being linked to create a
18830 # shared library.
18831 postdep_objects=$lt_postdep_objects_GCJ
18832
18833 # Dependencies to place before the objects being linked to create a
18834 # shared library.
18835 predeps=$lt_predeps_GCJ
18836
18837 # Dependencies to place after the objects being linked to create a
18838 # shared library.
18839 postdeps=$lt_postdeps_GCJ
18840
18841 # The library search path used internally by the compiler when linking
18842 # a shared library.
18843 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18844
18845 # Method to check whether dependent libraries are shared objects.
18846 deplibs_check_method=$lt_deplibs_check_method
18847
18848 # Command to use when deplibs_check_method == file_magic.
18849 file_magic_cmd=$lt_file_magic_cmd
18850
18851 # Flag that allows shared libraries with undefined symbols to be built.
18852 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18853
18854 # Flag that forces no undefined symbols.
18855 no_undefined_flag=$lt_no_undefined_flag_GCJ
18856
18857 # Commands used to finish a libtool library installation in a directory.
18858 finish_cmds=$lt_finish_cmds
18859
18860 # Same as above, but a single script fragment to be evaled but not shown.
18861 finish_eval=$lt_finish_eval
18862
18863 # Take the output of nm and produce a listing of raw symbols and C names.
18864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18865
18866 # Transform the output of nm in a proper C declaration
18867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18868
18869 # Transform the output of nm in a C name address pair
18870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18871
18872 # This is the shared library runtime path variable.
18873 runpath_var=$runpath_var
18874
18875 # This is the shared library path variable.
18876 shlibpath_var=$shlibpath_var
18877
18878 # Is shlibpath searched before the hard-coded library search path?
18879 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18880
18881 # How to hardcode a shared library path into an executable.
18882 hardcode_action=$hardcode_action_GCJ
18883
18884 # Whether we should hardcode library paths into libraries.
18885 hardcode_into_libs=$hardcode_into_libs
18886
18887 # Flag to hardcode \$libdir into a binary during linking.
18888 # This must work even if \$libdir does not exist.
18889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18890
18891 # If ld is used when linking, flag to hardcode \$libdir into
18892 # a binary during linking. This must work even if \$libdir does
18893 # not exist.
18894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18895
18896 # Whether we need a single -rpath flag with a separated argument.
18897 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18898
18899 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18900 # resulting binary.
18901 hardcode_direct=$hardcode_direct_GCJ
18902
18903 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18904 # resulting binary.
18905 hardcode_minus_L=$hardcode_minus_L_GCJ
18906
18907 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18908 # the resulting binary.
18909 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18910
18911 # Set to yes if building a shared library automatically hardcodes DIR into the library
18912 # and all subsequent libraries and executables linked against it.
18913 hardcode_automatic=$hardcode_automatic_GCJ
18914
18915 # Variables whose values should be saved in libtool wrapper scripts and
18916 # restored at relink time.
18917 variables_saved_for_relink="$variables_saved_for_relink"
18918
18919 # Whether libtool must link a program against all its dependency libraries.
18920 link_all_deplibs=$link_all_deplibs_GCJ
18921
18922 # Compile-time system search path for libraries
18923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18924
18925 # Run-time system search path for libraries
18926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18927
18928 # Fix the shell variable \$srcfile for the compiler.
18929 fix_srcfile_path="$fix_srcfile_path_GCJ"
18930
18931 # Set to yes if exported symbols are required.
18932 always_export_symbols=$always_export_symbols_GCJ
18933
18934 # The commands to list exported symbols.
18935 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18936
18937 # The commands to extract the exported symbol list from a shared archive.
18938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18939
18940 # Symbols that should not be listed in the preloaded symbols.
18941 exclude_expsyms=$lt_exclude_expsyms_GCJ
18942
18943 # Symbols that must always be exported.
18944 include_expsyms=$lt_include_expsyms_GCJ
18945
18946 # ### END LIBTOOL TAG CONFIG: $tagname
18947
18948 __EOF__
18949
18950
18951 else
18952   # If there is no Makefile yet, we rely on a make rule to execute
18953   # `config.status --recheck' to rerun these tests and create the
18954   # libtool script then.
18955   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18956   if test -f "$ltmain_in"; then
18957     test -f Makefile && make "$ltmain"
18958   fi
18959 fi
18960
18961
18962 ac_ext=c
18963 ac_cpp='$CPP $CPPFLAGS'
18964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18967
18968 CC="$lt_save_CC"
18969
18970         else
18971           tagname=""
18972         fi
18973         ;;
18974
18975       RC)
18976
18977
18978 # Source file extension for RC test sources.
18979 ac_ext=rc
18980
18981 # Object file extension for compiled RC test sources.
18982 objext=o
18983 objext_RC=$objext
18984
18985 # Code to be used in simple compile tests
18986 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18987
18988 # Code to be used in simple link tests
18989 lt_simple_link_test_code="$lt_simple_compile_test_code"
18990
18991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18992
18993 # If no C compiler was specified, use CC.
18994 LTCC=${LTCC-"$CC"}
18995
18996 # Allow CC to be a program name with arguments.
18997 compiler=$CC
18998
18999
19000 # Allow CC to be a program name with arguments.
19001 lt_save_CC="$CC"
19002 CC=${RC-"windres"}
19003 compiler=$CC
19004 compiler_RC=$CC
19005 lt_cv_prog_compiler_c_o_RC=yes
19006
19007 # The else clause should only fire when bootstrapping the
19008 # libtool distribution, otherwise you forgot to ship ltmain.sh
19009 # with your package, and you will get complaints that there are
19010 # no rules to generate ltmain.sh.
19011 if test -f "$ltmain"; then
19012   # See if we are running on zsh, and set the options which allow our commands through
19013   # without removal of \ escapes.
19014   if test -n "${ZSH_VERSION+set}" ; then
19015     setopt NO_GLOB_SUBST
19016   fi
19017   # Now quote all the things that may contain metacharacters while being
19018   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19019   # variables and quote the copies for generation of the libtool script.
19020   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19021     SED SHELL STRIP \
19022     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19023     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19024     deplibs_check_method reload_flag reload_cmds need_locks \
19025     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19026     lt_cv_sys_global_symbol_to_c_name_address \
19027     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19028     old_postinstall_cmds old_postuninstall_cmds \
19029     compiler_RC \
19030     CC_RC \
19031     LD_RC \
19032     lt_prog_compiler_wl_RC \
19033     lt_prog_compiler_pic_RC \
19034     lt_prog_compiler_static_RC \
19035     lt_prog_compiler_no_builtin_flag_RC \
19036     export_dynamic_flag_spec_RC \
19037     thread_safe_flag_spec_RC \
19038     whole_archive_flag_spec_RC \
19039     enable_shared_with_static_runtimes_RC \
19040     old_archive_cmds_RC \
19041     old_archive_from_new_cmds_RC \
19042     predep_objects_RC \
19043     postdep_objects_RC \
19044     predeps_RC \
19045     postdeps_RC \
19046     compiler_lib_search_path_RC \
19047     archive_cmds_RC \
19048     archive_expsym_cmds_RC \
19049     postinstall_cmds_RC \
19050     postuninstall_cmds_RC \
19051     old_archive_from_expsyms_cmds_RC \
19052     allow_undefined_flag_RC \
19053     no_undefined_flag_RC \
19054     export_symbols_cmds_RC \
19055     hardcode_libdir_flag_spec_RC \
19056     hardcode_libdir_flag_spec_ld_RC \
19057     hardcode_libdir_separator_RC \
19058     hardcode_automatic_RC \
19059     module_cmds_RC \
19060     module_expsym_cmds_RC \
19061     lt_cv_prog_compiler_c_o_RC \
19062     exclude_expsyms_RC \
19063     include_expsyms_RC; do
19064
19065     case $var in
19066     old_archive_cmds_RC | \
19067     old_archive_from_new_cmds_RC | \
19068     archive_cmds_RC | \
19069     archive_expsym_cmds_RC | \
19070     module_cmds_RC | \
19071     module_expsym_cmds_RC | \
19072     old_archive_from_expsyms_cmds_RC | \
19073     export_symbols_cmds_RC | \
19074     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19075     postinstall_cmds | postuninstall_cmds | \
19076     old_postinstall_cmds | old_postuninstall_cmds | \
19077     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19078       # Double-quote double-evaled strings.
19079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19080       ;;
19081     *)
19082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19083       ;;
19084     esac
19085   done
19086
19087   case $lt_echo in
19088   *'\$0 --fallback-echo"')
19089     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19090     ;;
19091   esac
19092
19093 cfgfile="$ofile"
19094
19095   cat <<__EOF__ >> "$cfgfile"
19096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19097
19098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19099
19100 # Shell to use when invoking shell scripts.
19101 SHELL=$lt_SHELL
19102
19103 # Whether or not to build shared libraries.
19104 build_libtool_libs=$enable_shared
19105
19106 # Whether or not to build static libraries.
19107 build_old_libs=$enable_static
19108
19109 # Whether or not to add -lc for building shared libraries.
19110 build_libtool_need_lc=$archive_cmds_need_lc_RC
19111
19112 # Whether or not to disallow shared libs when runtime libs are static
19113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19114
19115 # Whether or not to optimize for fast installation.
19116 fast_install=$enable_fast_install
19117
19118 # The host system.
19119 host_alias=$host_alias
19120 host=$host
19121
19122 # An echo program that does not interpret backslashes.
19123 echo=$lt_echo
19124
19125 # The archiver.
19126 AR=$lt_AR
19127 AR_FLAGS=$lt_AR_FLAGS
19128
19129 # A C compiler.
19130 LTCC=$lt_LTCC
19131
19132 # A language-specific compiler.
19133 CC=$lt_compiler_RC
19134
19135 # Is the compiler the GNU C compiler?
19136 with_gcc=$GCC_RC
19137
19138 # An ERE matcher.
19139 EGREP=$lt_EGREP
19140
19141 # The linker used to build libraries.
19142 LD=$lt_LD_RC
19143
19144 # Whether we need hard or soft links.
19145 LN_S=$lt_LN_S
19146
19147 # A BSD-compatible nm program.
19148 NM=$lt_NM
19149
19150 # A symbol stripping program
19151 STRIP=$lt_STRIP
19152
19153 # Used to examine libraries when file_magic_cmd begins "file"
19154 MAGIC_CMD=$MAGIC_CMD
19155
19156 # Used on cygwin: DLL creation program.
19157 DLLTOOL="$DLLTOOL"
19158
19159 # Used on cygwin: object dumper.
19160 OBJDUMP="$OBJDUMP"
19161
19162 # Used on cygwin: assembler.
19163 AS="$AS"
19164
19165 # The name of the directory that contains temporary libtool files.
19166 objdir=$objdir
19167
19168 # How to create reloadable object files.
19169 reload_flag=$lt_reload_flag
19170 reload_cmds=$lt_reload_cmds
19171
19172 # How to pass a linker flag through the compiler.
19173 wl=$lt_lt_prog_compiler_wl_RC
19174
19175 # Object file suffix (normally "o").
19176 objext="$ac_objext"
19177
19178 # Old archive suffix (normally "a").
19179 libext="$libext"
19180
19181 # Shared library suffix (normally ".so").
19182 shrext_cmds='$shrext_cmds'
19183
19184 # Executable file suffix (normally "").
19185 exeext="$exeext"
19186
19187 # Additional compiler flags for building library objects.
19188 pic_flag=$lt_lt_prog_compiler_pic_RC
19189 pic_mode=$pic_mode
19190
19191 # What is the maximum length of a command?
19192 max_cmd_len=$lt_cv_sys_max_cmd_len
19193
19194 # Does compiler simultaneously support -c and -o options?
19195 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19196
19197 # Must we lock files when doing compilation ?
19198 need_locks=$lt_need_locks
19199
19200 # Do we need the lib prefix for modules?
19201 need_lib_prefix=$need_lib_prefix
19202
19203 # Do we need a version for libraries?
19204 need_version=$need_version
19205
19206 # Whether dlopen is supported.
19207 dlopen_support=$enable_dlopen
19208
19209 # Whether dlopen of programs is supported.
19210 dlopen_self=$enable_dlopen_self
19211
19212 # Whether dlopen of statically linked programs is supported.
19213 dlopen_self_static=$enable_dlopen_self_static
19214
19215 # Compiler flag to prevent dynamic linking.
19216 link_static_flag=$lt_lt_prog_compiler_static_RC
19217
19218 # Compiler flag to turn off builtin functions.
19219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19220
19221 # Compiler flag to allow reflexive dlopens.
19222 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19223
19224 # Compiler flag to generate shared objects directly from archives.
19225 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19226
19227 # Compiler flag to generate thread-safe objects.
19228 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19229
19230 # Library versioning type.
19231 version_type=$version_type
19232
19233 # Format of library name prefix.
19234 libname_spec=$lt_libname_spec
19235
19236 # List of archive names.  First name is the real one, the rest are links.
19237 # The last name is the one that the linker finds with -lNAME.
19238 library_names_spec=$lt_library_names_spec
19239
19240 # The coded name of the library, if different from the real name.
19241 soname_spec=$lt_soname_spec
19242
19243 # Commands used to build and install an old-style archive.
19244 RANLIB=$lt_RANLIB
19245 old_archive_cmds=$lt_old_archive_cmds_RC
19246 old_postinstall_cmds=$lt_old_postinstall_cmds
19247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19248
19249 # Create an old-style archive from a shared archive.
19250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19251
19252 # Create a temporary old-style archive to link instead of a shared archive.
19253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19254
19255 # Commands used to build and install a shared archive.
19256 archive_cmds=$lt_archive_cmds_RC
19257 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19258 postinstall_cmds=$lt_postinstall_cmds
19259 postuninstall_cmds=$lt_postuninstall_cmds
19260
19261 # Commands used to build a loadable module (assumed same as above if empty)
19262 module_cmds=$lt_module_cmds_RC
19263 module_expsym_cmds=$lt_module_expsym_cmds_RC
19264
19265 # Commands to strip libraries.
19266 old_striplib=$lt_old_striplib
19267 striplib=$lt_striplib
19268
19269 # Dependencies to place before the objects being linked to create a
19270 # shared library.
19271 predep_objects=$lt_predep_objects_RC
19272
19273 # Dependencies to place after the objects being linked to create a
19274 # shared library.
19275 postdep_objects=$lt_postdep_objects_RC
19276
19277 # Dependencies to place before the objects being linked to create a
19278 # shared library.
19279 predeps=$lt_predeps_RC
19280
19281 # Dependencies to place after the objects being linked to create a
19282 # shared library.
19283 postdeps=$lt_postdeps_RC
19284
19285 # The library search path used internally by the compiler when linking
19286 # a shared library.
19287 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19288
19289 # Method to check whether dependent libraries are shared objects.
19290 deplibs_check_method=$lt_deplibs_check_method
19291
19292 # Command to use when deplibs_check_method == file_magic.
19293 file_magic_cmd=$lt_file_magic_cmd
19294
19295 # Flag that allows shared libraries with undefined symbols to be built.
19296 allow_undefined_flag=$lt_allow_undefined_flag_RC
19297
19298 # Flag that forces no undefined symbols.
19299 no_undefined_flag=$lt_no_undefined_flag_RC
19300
19301 # Commands used to finish a libtool library installation in a directory.
19302 finish_cmds=$lt_finish_cmds
19303
19304 # Same as above, but a single script fragment to be evaled but not shown.
19305 finish_eval=$lt_finish_eval
19306
19307 # Take the output of nm and produce a listing of raw symbols and C names.
19308 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19309
19310 # Transform the output of nm in a proper C declaration
19311 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19312
19313 # Transform the output of nm in a C name address pair
19314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19315
19316 # This is the shared library runtime path variable.
19317 runpath_var=$runpath_var
19318
19319 # This is the shared library path variable.
19320 shlibpath_var=$shlibpath_var
19321
19322 # Is shlibpath searched before the hard-coded library search path?
19323 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19324
19325 # How to hardcode a shared library path into an executable.
19326 hardcode_action=$hardcode_action_RC
19327
19328 # Whether we should hardcode library paths into libraries.
19329 hardcode_into_libs=$hardcode_into_libs
19330
19331 # Flag to hardcode \$libdir into a binary during linking.
19332 # This must work even if \$libdir does not exist.
19333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19334
19335 # If ld is used when linking, flag to hardcode \$libdir into
19336 # a binary during linking. This must work even if \$libdir does
19337 # not exist.
19338 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19339
19340 # Whether we need a single -rpath flag with a separated argument.
19341 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19342
19343 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19344 # resulting binary.
19345 hardcode_direct=$hardcode_direct_RC
19346
19347 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19348 # resulting binary.
19349 hardcode_minus_L=$hardcode_minus_L_RC
19350
19351 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19352 # the resulting binary.
19353 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19354
19355 # Set to yes if building a shared library automatically hardcodes DIR into the library
19356 # and all subsequent libraries and executables linked against it.
19357 hardcode_automatic=$hardcode_automatic_RC
19358
19359 # Variables whose values should be saved in libtool wrapper scripts and
19360 # restored at relink time.
19361 variables_saved_for_relink="$variables_saved_for_relink"
19362
19363 # Whether libtool must link a program against all its dependency libraries.
19364 link_all_deplibs=$link_all_deplibs_RC
19365
19366 # Compile-time system search path for libraries
19367 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19368
19369 # Run-time system search path for libraries
19370 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19371
19372 # Fix the shell variable \$srcfile for the compiler.
19373 fix_srcfile_path="$fix_srcfile_path_RC"
19374
19375 # Set to yes if exported symbols are required.
19376 always_export_symbols=$always_export_symbols_RC
19377
19378 # The commands to list exported symbols.
19379 export_symbols_cmds=$lt_export_symbols_cmds_RC
19380
19381 # The commands to extract the exported symbol list from a shared archive.
19382 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19383
19384 # Symbols that should not be listed in the preloaded symbols.
19385 exclude_expsyms=$lt_exclude_expsyms_RC
19386
19387 # Symbols that must always be exported.
19388 include_expsyms=$lt_include_expsyms_RC
19389
19390 # ### END LIBTOOL TAG CONFIG: $tagname
19391
19392 __EOF__
19393
19394
19395 else
19396   # If there is no Makefile yet, we rely on a make rule to execute
19397   # `config.status --recheck' to rerun these tests and create the
19398   # libtool script then.
19399   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19400   if test -f "$ltmain_in"; then
19401     test -f Makefile && make "$ltmain"
19402   fi
19403 fi
19404
19405
19406 ac_ext=c
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412 CC="$lt_save_CC"
19413
19414         ;;
19415
19416       *)
19417         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19418 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19419    { (exit 1); exit 1; }; }
19420         ;;
19421       esac
19422
19423       # Append the new tag name to the list of available tags.
19424       if test -n "$tagname" ; then
19425       available_tags="$available_tags $tagname"
19426     fi
19427     fi
19428   done
19429   IFS="$lt_save_ifs"
19430
19431   # Now substitute the updated list of available tags.
19432   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19433     mv "${ofile}T" "$ofile"
19434     chmod +x "$ofile"
19435   else
19436     rm -f "${ofile}T"
19437     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19438 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19439    { (exit 1); exit 1; }; }
19440   fi
19441 fi
19442
19443
19444
19445 # This can be used to rebuild libtool when needed
19446 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19447
19448 # Always use our own libtool.
19449 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19450
19451 # Prevent multiple expansion
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473 { echo "$as_me:$LINENO: checking location of temporary directory" >&5
19474 echo $ECHO_N "checking location of temporary directory... $ECHO_C" >&6; }
19475 if test -d /var/tmp; then
19476         found_tmp=/var/tmp/
19477 elif test -d /usr/tmp; then
19478         found_tmp=/usr/tmp/
19479 else
19480         found_tmp=/tmp/
19481 fi
19482 cat >>confdefs.h <<_ACEOF
19483 #define FOUND_TMP "${found_tmp}"
19484 _ACEOF
19485
19486 { echo "$as_me:$LINENO: result: ${found_tmp}" >&5
19487 echo "${ECHO_T}${found_tmp}" >&6; }
19488
19489 { echo "$as_me:$LINENO: checking for X" >&5
19490 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19491
19492
19493 # Check whether --with-x was given.
19494 if test "${with_x+set}" = set; then
19495   withval=$with_x;
19496 fi
19497
19498 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19499 if test "x$with_x" = xno; then
19500   # The user explicitly disabled X.
19501   have_x=disabled
19502 else
19503   case $x_includes,$x_libraries in #(
19504     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19505 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19506    { (exit 1); exit 1; }; };; #(
19507     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   # One or both of the vars are not set, and there is no cached value.
19511 ac_x_includes=no ac_x_libraries=no
19512 rm -f -r conftest.dir
19513 if mkdir conftest.dir; then
19514   cd conftest.dir
19515   cat >Imakefile <<'_ACEOF'
19516 incroot:
19517         @echo incroot='${INCROOT}'
19518 usrlibdir:
19519         @echo usrlibdir='${USRLIBDIR}'
19520 libdir:
19521         @echo libdir='${LIBDIR}'
19522 _ACEOF
19523   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19524     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19525     for ac_var in incroot usrlibdir libdir; do
19526       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19527     done
19528     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19529     for ac_extension in a so sl; do
19530       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19531          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19532         ac_im_usrlibdir=$ac_im_libdir; break
19533       fi
19534     done
19535     # Screen out bogus values from the imake configuration.  They are
19536     # bogus both because they are the default anyway, and because
19537     # using them would break gcc on systems where it needs fixed includes.
19538     case $ac_im_incroot in
19539         /usr/include) ac_x_includes= ;;
19540         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19541     esac
19542     case $ac_im_usrlibdir in
19543         /usr/lib | /lib) ;;
19544         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19545     esac
19546   fi
19547   cd ..
19548   rm -f -r conftest.dir
19549 fi
19550
19551 # Standard set of common directories for X headers.
19552 # Check X11 before X11Rn because it is often a symlink to the current release.
19553 ac_x_header_dirs='
19554 /usr/X11/include
19555 /usr/X11R6/include
19556 /usr/X11R5/include
19557 /usr/X11R4/include
19558
19559 /usr/include/X11
19560 /usr/include/X11R6
19561 /usr/include/X11R5
19562 /usr/include/X11R4
19563
19564 /usr/local/X11/include
19565 /usr/local/X11R6/include
19566 /usr/local/X11R5/include
19567 /usr/local/X11R4/include
19568
19569 /usr/local/include/X11
19570 /usr/local/include/X11R6
19571 /usr/local/include/X11R5
19572 /usr/local/include/X11R4
19573
19574 /usr/X386/include
19575 /usr/x386/include
19576 /usr/XFree86/include/X11
19577
19578 /usr/include
19579 /usr/local/include
19580 /usr/unsupported/include
19581 /usr/athena/include
19582 /usr/local/x11r5/include
19583 /usr/lpp/Xamples/include
19584
19585 /usr/openwin/include
19586 /usr/openwin/share/include'
19587
19588 if test "$ac_x_includes" = no; then
19589   # Guess where to find include files, by looking for Xlib.h.
19590   # First, try using that file with no special directory specified.
19591   cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h.  */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h.  */
19597 #include <X11/Xlib.h>
19598 _ACEOF
19599 if { (ac_try="$ac_cpp conftest.$ac_ext"
19600 case "(($ac_try" in
19601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602   *) ac_try_echo=$ac_try;;
19603 esac
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19606   ac_status=$?
19607   grep -v '^ *+' conftest.er1 >conftest.err
19608   rm -f conftest.er1
19609   cat conftest.err >&5
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } >/dev/null && {
19612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19613          test ! -s conftest.err
19614        }; then
19615   # We can compile using X headers with no special include directory.
19616 ac_x_includes=
19617 else
19618   echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621   for ac_dir in $ac_x_header_dirs; do
19622   if test -r "$ac_dir/X11/Xlib.h"; then
19623     ac_x_includes=$ac_dir
19624     break
19625   fi
19626 done
19627 fi
19628
19629 rm -f conftest.err conftest.$ac_ext
19630 fi # $ac_x_includes = no
19631
19632 if test "$ac_x_libraries" = no; then
19633   # Check for the libraries.
19634   # See if we find them without any special options.
19635   # Don't add to $LIBS permanently.
19636   ac_save_LIBS=$LIBS
19637   LIBS="-lX11 $LIBS"
19638   cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h.  */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h.  */
19644 #include <X11/Xlib.h>
19645 int
19646 main ()
19647 {
19648 XrmInitialize ()
19649   ;
19650   return 0;
19651 }
19652 _ACEOF
19653 rm -f conftest.$ac_objext conftest$ac_exeext
19654 if { (ac_try="$ac_link"
19655 case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_link") 2>conftest.er1
19661   ac_status=$?
19662   grep -v '^ *+' conftest.er1 >conftest.err
19663   rm -f conftest.er1
19664   cat conftest.err >&5
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } && {
19667          test -z "$ac_c_werror_flag" ||
19668          test ! -s conftest.err
19669        } && test -s conftest$ac_exeext &&
19670        $as_test_x conftest$ac_exeext; then
19671   LIBS=$ac_save_LIBS
19672 # We can link X programs with no special library path.
19673 ac_x_libraries=
19674 else
19675   echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678         LIBS=$ac_save_LIBS
19679 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19680 do
19681   # Don't even attempt the hair of trying to link an X program!
19682   for ac_extension in a so sl; do
19683     if test -r "$ac_dir/libX11.$ac_extension"; then
19684       ac_x_libraries=$ac_dir
19685       break 2
19686     fi
19687   done
19688 done
19689 fi
19690
19691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19692       conftest$ac_exeext conftest.$ac_ext
19693 fi # $ac_x_libraries = no
19694
19695 case $ac_x_includes,$ac_x_libraries in #(
19696   no,* | *,no | *\'*)
19697     # Didn't find X, or a directory has "'" in its name.
19698     ac_cv_have_x="have_x=no";; #(
19699   *)
19700     # Record where we found X for the cache.
19701     ac_cv_have_x="have_x=yes\
19702         ac_x_includes='$ac_x_includes'\
19703         ac_x_libraries='$ac_x_libraries'"
19704 esac
19705 fi
19706 ;; #(
19707     *) have_x=yes;;
19708   esac
19709   eval "$ac_cv_have_x"
19710 fi # $with_x != no
19711
19712 if test "$have_x" != yes; then
19713   { echo "$as_me:$LINENO: result: $have_x" >&5
19714 echo "${ECHO_T}$have_x" >&6; }
19715   no_x=yes
19716 else
19717   # If each of the values was on the command line, it overrides each guess.
19718   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19719   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19720   # Update the cache value to reflect the command line values.
19721   ac_cv_have_x="have_x=yes\
19722         ac_x_includes='$x_includes'\
19723         ac_x_libraries='$x_libraries'"
19724   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19725 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19726 fi
19727
19728 if test "$no_x" = yes; then
19729   # Not all programs may use this symbol, but it does not hurt to define it.
19730
19731 cat >>confdefs.h <<\_ACEOF
19732 #define X_DISPLAY_MISSING 1
19733 _ACEOF
19734
19735   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19736 else
19737   if test -n "$x_includes"; then
19738     X_CFLAGS="$X_CFLAGS -I$x_includes"
19739   fi
19740
19741   # It would also be nice to do this for all -L options, not just this one.
19742   if test -n "$x_libraries"; then
19743     X_LIBS="$X_LIBS -L$x_libraries"
19744     # For Solaris; some versions of Sun CC require a space after -R and
19745     # others require no space.  Words are not sufficient . . . .
19746     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19747 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19748     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19749     ac_xsave_c_werror_flag=$ac_c_werror_flag
19750     ac_c_werror_flag=yes
19751     cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h.  */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h.  */
19757
19758 int
19759 main ()
19760 {
19761
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_link") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } && {
19780          test -z "$ac_c_werror_flag" ||
19781          test ! -s conftest.err
19782        } && test -s conftest$ac_exeext &&
19783        $as_test_x conftest$ac_exeext; then
19784   { echo "$as_me:$LINENO: result: no" >&5
19785 echo "${ECHO_T}no" >&6; }
19786        X_LIBS="$X_LIBS -R$x_libraries"
19787 else
19788   echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19790
19791         LIBS="$ac_xsave_LIBS -R $x_libraries"
19792        cat >conftest.$ac_ext <<_ACEOF
19793 /* confdefs.h.  */
19794 _ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h.  */
19798
19799 int
19800 main ()
19801 {
19802
19803   ;
19804   return 0;
19805 }
19806 _ACEOF
19807 rm -f conftest.$ac_objext conftest$ac_exeext
19808 if { (ac_try="$ac_link"
19809 case "(($ac_try" in
19810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811   *) ac_try_echo=$ac_try;;
19812 esac
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814   (eval "$ac_link") 2>conftest.er1
19815   ac_status=$?
19816   grep -v '^ *+' conftest.er1 >conftest.err
19817   rm -f conftest.er1
19818   cat conftest.err >&5
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); } && {
19821          test -z "$ac_c_werror_flag" ||
19822          test ! -s conftest.err
19823        } && test -s conftest$ac_exeext &&
19824        $as_test_x conftest$ac_exeext; then
19825   { echo "$as_me:$LINENO: result: yes" >&5
19826 echo "${ECHO_T}yes" >&6; }
19827           X_LIBS="$X_LIBS -R $x_libraries"
19828 else
19829   echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832         { echo "$as_me:$LINENO: result: neither works" >&5
19833 echo "${ECHO_T}neither works" >&6; }
19834 fi
19835
19836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19837       conftest$ac_exeext conftest.$ac_ext
19838 fi
19839
19840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19841       conftest$ac_exeext conftest.$ac_ext
19842     ac_c_werror_flag=$ac_xsave_c_werror_flag
19843     LIBS=$ac_xsave_LIBS
19844   fi
19845
19846   # Check for system-dependent libraries X programs must link with.
19847   # Do this before checking for the system-independent R6 libraries
19848   # (-lICE), since we may need -lsocket or whatever for X linking.
19849
19850   if test "$ISC" = yes; then
19851     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19852   else
19853     # Martyn Johnson says this is needed for Ultrix, if the X
19854     # libraries were built with DECnet support.  And Karl Berry says
19855     # the Alpha needs dnet_stub (dnet does not exist).
19856     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19857     cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h.  */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h.  */
19863
19864 /* Override any GCC internal prototype to avoid an error.
19865    Use char because int might match the return type of a GCC
19866    builtin and then its argument prototype would still apply.  */
19867 #ifdef __cplusplus
19868 extern "C"
19869 #endif
19870 char XOpenDisplay ();
19871 int
19872 main ()
19873 {
19874 return XOpenDisplay ();
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_link") 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } && {
19893          test -z "$ac_c_werror_flag" ||
19894          test ! -s conftest.err
19895        } && test -s conftest$ac_exeext &&
19896        $as_test_x conftest$ac_exeext; then
19897   :
19898 else
19899   echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19901
19902         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19903 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19904 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19905   echo $ECHO_N "(cached) $ECHO_C" >&6
19906 else
19907   ac_check_lib_save_LIBS=$LIBS
19908 LIBS="-ldnet  $LIBS"
19909 cat >conftest.$ac_ext <<_ACEOF
19910 /* confdefs.h.  */
19911 _ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h.  */
19915
19916 /* Override any GCC internal prototype to avoid an error.
19917    Use char because int might match the return type of a GCC
19918    builtin and then its argument prototype would still apply.  */
19919 #ifdef __cplusplus
19920 extern "C"
19921 #endif
19922 char dnet_ntoa ();
19923 int
19924 main ()
19925 {
19926 return dnet_ntoa ();
19927   ;
19928   return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (ac_try="$ac_link"
19933 case "(($ac_try" in
19934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935   *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938   (eval "$ac_link") 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } && {
19945          test -z "$ac_c_werror_flag" ||
19946          test ! -s conftest.err
19947        } && test -s conftest$ac_exeext &&
19948        $as_test_x conftest$ac_exeext; then
19949   ac_cv_lib_dnet_dnet_ntoa=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954         ac_cv_lib_dnet_dnet_ntoa=no
19955 fi
19956
19957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19958       conftest$ac_exeext conftest.$ac_ext
19959 LIBS=$ac_check_lib_save_LIBS
19960 fi
19961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19962 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19963 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19964   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19965 fi
19966
19967     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19968       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19969 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19970 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-ldnet_stub  $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981
19982 /* Override any GCC internal prototype to avoid an error.
19983    Use char because int might match the return type of a GCC
19984    builtin and then its argument prototype would still apply.  */
19985 #ifdef __cplusplus
19986 extern "C"
19987 #endif
19988 char dnet_ntoa ();
19989 int
19990 main ()
19991 {
19992 return dnet_ntoa ();
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001   *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004   (eval "$ac_link") 2>conftest.er1
20005   ac_status=$?
20006   grep -v '^ *+' conftest.er1 >conftest.err
20007   rm -f conftest.er1
20008   cat conftest.err >&5
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } && {
20011          test -z "$ac_c_werror_flag" ||
20012          test ! -s conftest.err
20013        } && test -s conftest$ac_exeext &&
20014        $as_test_x conftest$ac_exeext; then
20015   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20016 else
20017   echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20019
20020         ac_cv_lib_dnet_stub_dnet_ntoa=no
20021 fi
20022
20023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20024       conftest$ac_exeext conftest.$ac_ext
20025 LIBS=$ac_check_lib_save_LIBS
20026 fi
20027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20028 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20029 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20030   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20031 fi
20032
20033     fi
20034 fi
20035
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037       conftest$ac_exeext conftest.$ac_ext
20038     LIBS="$ac_xsave_LIBS"
20039
20040     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20041     # to get the SysV transport functions.
20042     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20043     # needs -lnsl.
20044     # The nsl library prevents programs from opening the X display
20045     # on Irix 5.2, according to T.E. Dickey.
20046     # The functions gethostbyname, getservbyname, and inet_addr are
20047     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20048     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20049 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20050 if test "${ac_cv_func_gethostbyname+set}" = set; then
20051   echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053   cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20061 #define gethostbyname innocuous_gethostbyname
20062
20063 /* System header to define __stub macros and hopefully few prototypes,
20064     which can conflict with char gethostbyname (); below.
20065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20066     <limits.h> exists even on freestanding compilers.  */
20067
20068 #ifdef __STDC__
20069 # include <limits.h>
20070 #else
20071 # include <assert.h>
20072 #endif
20073
20074 #undef gethostbyname
20075
20076 /* Override any GCC internal prototype to avoid an error.
20077    Use char because int might match the return type of a GCC
20078    builtin and then its argument prototype would still apply.  */
20079 #ifdef __cplusplus
20080 extern "C"
20081 #endif
20082 char gethostbyname ();
20083 /* The GNU C library defines this for functions which it implements
20084     to always fail with ENOSYS.  Some functions are actually named
20085     something starting with __ and the normal name is an alias.  */
20086 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20087 choke me
20088 #endif
20089
20090 int
20091 main ()
20092 {
20093 return gethostbyname ();
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102   *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105   (eval "$ac_link") 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } && {
20112          test -z "$ac_c_werror_flag" ||
20113          test ! -s conftest.err
20114        } && test -s conftest$ac_exeext &&
20115        $as_test_x conftest$ac_exeext; then
20116   ac_cv_func_gethostbyname=yes
20117 else
20118   echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121         ac_cv_func_gethostbyname=no
20122 fi
20123
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125       conftest$ac_exeext conftest.$ac_ext
20126 fi
20127 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20128 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20129
20130     if test $ac_cv_func_gethostbyname = no; then
20131       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20132 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20133 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20134   echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136   ac_check_lib_save_LIBS=$LIBS
20137 LIBS="-lnsl  $LIBS"
20138 cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144
20145 /* Override any GCC internal prototype to avoid an error.
20146    Use char because int might match the return type of a GCC
20147    builtin and then its argument prototype would still apply.  */
20148 #ifdef __cplusplus
20149 extern "C"
20150 #endif
20151 char gethostbyname ();
20152 int
20153 main ()
20154 {
20155 return gethostbyname ();
20156   ;
20157   return 0;
20158 }
20159 _ACEOF
20160 rm -f conftest.$ac_objext conftest$ac_exeext
20161 if { (ac_try="$ac_link"
20162 case "(($ac_try" in
20163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164   *) ac_try_echo=$ac_try;;
20165 esac
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167   (eval "$ac_link") 2>conftest.er1
20168   ac_status=$?
20169   grep -v '^ *+' conftest.er1 >conftest.err
20170   rm -f conftest.er1
20171   cat conftest.err >&5
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); } && {
20174          test -z "$ac_c_werror_flag" ||
20175          test ! -s conftest.err
20176        } && test -s conftest$ac_exeext &&
20177        $as_test_x conftest$ac_exeext; then
20178   ac_cv_lib_nsl_gethostbyname=yes
20179 else
20180   echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183         ac_cv_lib_nsl_gethostbyname=no
20184 fi
20185
20186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20187       conftest$ac_exeext conftest.$ac_ext
20188 LIBS=$ac_check_lib_save_LIBS
20189 fi
20190 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20191 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20192 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20193   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20194 fi
20195
20196       if test $ac_cv_lib_nsl_gethostbyname = no; then
20197         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20198 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20199 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20200   echo $ECHO_N "(cached) $ECHO_C" >&6
20201 else
20202   ac_check_lib_save_LIBS=$LIBS
20203 LIBS="-lbsd  $LIBS"
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210
20211 /* Override any GCC internal prototype to avoid an error.
20212    Use char because int might match the return type of a GCC
20213    builtin and then its argument prototype would still apply.  */
20214 #ifdef __cplusplus
20215 extern "C"
20216 #endif
20217 char gethostbyname ();
20218 int
20219 main ()
20220 {
20221 return gethostbyname ();
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233   (eval "$ac_link") 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } && {
20240          test -z "$ac_c_werror_flag" ||
20241          test ! -s conftest.err
20242        } && test -s conftest$ac_exeext &&
20243        $as_test_x conftest$ac_exeext; then
20244   ac_cv_lib_bsd_gethostbyname=yes
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249         ac_cv_lib_bsd_gethostbyname=no
20250 fi
20251
20252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20253       conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20255 fi
20256 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20257 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20258 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20259   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20260 fi
20261
20262       fi
20263     fi
20264
20265     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20266     # socket/setsockopt and other routines are undefined under SCO ODT
20267     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20268     # on later versions), says Simon Leinen: it contains gethostby*
20269     # variants that don't use the name server (or something).  -lsocket
20270     # must be given before -lnsl if both are needed.  We assume that
20271     # if connect needs -lnsl, so does gethostbyname.
20272     { echo "$as_me:$LINENO: checking for connect" >&5
20273 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20274 if test "${ac_cv_func_connect+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20285 #define connect innocuous_connect
20286
20287 /* System header to define __stub macros and hopefully few prototypes,
20288     which can conflict with char connect (); below.
20289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20290     <limits.h> exists even on freestanding compilers.  */
20291
20292 #ifdef __STDC__
20293 # include <limits.h>
20294 #else
20295 # include <assert.h>
20296 #endif
20297
20298 #undef connect
20299
20300 /* Override any GCC internal prototype to avoid an error.
20301    Use char because int might match the return type of a GCC
20302    builtin and then its argument prototype would still apply.  */
20303 #ifdef __cplusplus
20304 extern "C"
20305 #endif
20306 char connect ();
20307 /* The GNU C library defines this for functions which it implements
20308     to always fail with ENOSYS.  Some functions are actually named
20309     something starting with __ and the normal name is an alias.  */
20310 #if defined __stub_connect || defined __stub___connect
20311 choke me
20312 #endif
20313
20314 int
20315 main ()
20316 {
20317 return connect ();
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_link") 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } && {
20336          test -z "$ac_c_werror_flag" ||
20337          test ! -s conftest.err
20338        } && test -s conftest$ac_exeext &&
20339        $as_test_x conftest$ac_exeext; then
20340   ac_cv_func_connect=yes
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345         ac_cv_func_connect=no
20346 fi
20347
20348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20349       conftest$ac_exeext conftest.$ac_ext
20350 fi
20351 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20352 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20353
20354     if test $ac_cv_func_connect = no; then
20355       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20356 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20357 if test "${ac_cv_lib_socket_connect+set}" = set; then
20358   echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360   ac_check_lib_save_LIBS=$LIBS
20361 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368
20369 /* Override any GCC internal prototype to avoid an error.
20370    Use char because int might match the return type of a GCC
20371    builtin and then its argument prototype would still apply.  */
20372 #ifdef __cplusplus
20373 extern "C"
20374 #endif
20375 char connect ();
20376 int
20377 main ()
20378 {
20379 return connect ();
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_link") 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } && {
20398          test -z "$ac_c_werror_flag" ||
20399          test ! -s conftest.err
20400        } && test -s conftest$ac_exeext &&
20401        $as_test_x conftest$ac_exeext; then
20402   ac_cv_lib_socket_connect=yes
20403 else
20404   echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20406
20407         ac_cv_lib_socket_connect=no
20408 fi
20409
20410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20411       conftest$ac_exeext conftest.$ac_ext
20412 LIBS=$ac_check_lib_save_LIBS
20413 fi
20414 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20415 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20416 if test $ac_cv_lib_socket_connect = yes; then
20417   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20418 fi
20419
20420     fi
20421
20422     # Guillermo Gomez says -lposix is necessary on A/UX.
20423     { echo "$as_me:$LINENO: checking for remove" >&5
20424 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20425 if test "${ac_cv_func_remove+set}" = set; then
20426   echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428   cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h.  */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h.  */
20434 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20436 #define remove innocuous_remove
20437
20438 /* System header to define __stub macros and hopefully few prototypes,
20439     which can conflict with char remove (); below.
20440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20441     <limits.h> exists even on freestanding compilers.  */
20442
20443 #ifdef __STDC__
20444 # include <limits.h>
20445 #else
20446 # include <assert.h>
20447 #endif
20448
20449 #undef remove
20450
20451 /* Override any GCC internal prototype to avoid an error.
20452    Use char because int might match the return type of a GCC
20453    builtin and then its argument prototype would still apply.  */
20454 #ifdef __cplusplus
20455 extern "C"
20456 #endif
20457 char remove ();
20458 /* The GNU C library defines this for functions which it implements
20459     to always fail with ENOSYS.  Some functions are actually named
20460     something starting with __ and the normal name is an alias.  */
20461 #if defined __stub_remove || defined __stub___remove
20462 choke me
20463 #endif
20464
20465 int
20466 main ()
20467 {
20468 return remove ();
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_link") 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } && {
20487          test -z "$ac_c_werror_flag" ||
20488          test ! -s conftest.err
20489        } && test -s conftest$ac_exeext &&
20490        $as_test_x conftest$ac_exeext; then
20491   ac_cv_func_remove=yes
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496         ac_cv_func_remove=no
20497 fi
20498
20499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20500       conftest$ac_exeext conftest.$ac_ext
20501 fi
20502 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20503 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20504
20505     if test $ac_cv_func_remove = no; then
20506       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20507 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20508 if test "${ac_cv_lib_posix_remove+set}" = set; then
20509   echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511   ac_check_lib_save_LIBS=$LIBS
20512 LIBS="-lposix  $LIBS"
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519
20520 /* Override any GCC internal prototype to avoid an error.
20521    Use char because int might match the return type of a GCC
20522    builtin and then its argument prototype would still apply.  */
20523 #ifdef __cplusplus
20524 extern "C"
20525 #endif
20526 char remove ();
20527 int
20528 main ()
20529 {
20530 return remove ();
20531   ;
20532   return 0;
20533 }
20534 _ACEOF
20535 rm -f conftest.$ac_objext conftest$ac_exeext
20536 if { (ac_try="$ac_link"
20537 case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_link") 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } && {
20549          test -z "$ac_c_werror_flag" ||
20550          test ! -s conftest.err
20551        } && test -s conftest$ac_exeext &&
20552        $as_test_x conftest$ac_exeext; then
20553   ac_cv_lib_posix_remove=yes
20554 else
20555   echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20557
20558         ac_cv_lib_posix_remove=no
20559 fi
20560
20561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20562       conftest$ac_exeext conftest.$ac_ext
20563 LIBS=$ac_check_lib_save_LIBS
20564 fi
20565 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20566 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20567 if test $ac_cv_lib_posix_remove = yes; then
20568   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20569 fi
20570
20571     fi
20572
20573     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20574     { echo "$as_me:$LINENO: checking for shmat" >&5
20575 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20576 if test "${ac_cv_func_shmat+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20587 #define shmat innocuous_shmat
20588
20589 /* System header to define __stub macros and hopefully few prototypes,
20590     which can conflict with char shmat (); below.
20591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20592     <limits.h> exists even on freestanding compilers.  */
20593
20594 #ifdef __STDC__
20595 # include <limits.h>
20596 #else
20597 # include <assert.h>
20598 #endif
20599
20600 #undef shmat
20601
20602 /* Override any GCC internal prototype to avoid an error.
20603    Use char because int might match the return type of a GCC
20604    builtin and then its argument prototype would still apply.  */
20605 #ifdef __cplusplus
20606 extern "C"
20607 #endif
20608 char shmat ();
20609 /* The GNU C library defines this for functions which it implements
20610     to always fail with ENOSYS.  Some functions are actually named
20611     something starting with __ and the normal name is an alias.  */
20612 #if defined __stub_shmat || defined __stub___shmat
20613 choke me
20614 #endif
20615
20616 int
20617 main ()
20618 {
20619 return shmat ();
20620   ;
20621   return 0;
20622 }
20623 _ACEOF
20624 rm -f conftest.$ac_objext conftest$ac_exeext
20625 if { (ac_try="$ac_link"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_link") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && {
20638          test -z "$ac_c_werror_flag" ||
20639          test ! -s conftest.err
20640        } && test -s conftest$ac_exeext &&
20641        $as_test_x conftest$ac_exeext; then
20642   ac_cv_func_shmat=yes
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         ac_cv_func_shmat=no
20648 fi
20649
20650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20651       conftest$ac_exeext conftest.$ac_ext
20652 fi
20653 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20654 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20655
20656     if test $ac_cv_func_shmat = no; then
20657       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20658 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20659 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20660   echo $ECHO_N "(cached) $ECHO_C" >&6
20661 else
20662   ac_check_lib_save_LIBS=$LIBS
20663 LIBS="-lipc  $LIBS"
20664 cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670
20671 /* Override any GCC internal prototype to avoid an error.
20672    Use char because int might match the return type of a GCC
20673    builtin and then its argument prototype would still apply.  */
20674 #ifdef __cplusplus
20675 extern "C"
20676 #endif
20677 char shmat ();
20678 int
20679 main ()
20680 {
20681 return shmat ();
20682   ;
20683   return 0;
20684 }
20685 _ACEOF
20686 rm -f conftest.$ac_objext conftest$ac_exeext
20687 if { (ac_try="$ac_link"
20688 case "(($ac_try" in
20689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690   *) ac_try_echo=$ac_try;;
20691 esac
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693   (eval "$ac_link") 2>conftest.er1
20694   ac_status=$?
20695   grep -v '^ *+' conftest.er1 >conftest.err
20696   rm -f conftest.er1
20697   cat conftest.err >&5
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } && {
20700          test -z "$ac_c_werror_flag" ||
20701          test ! -s conftest.err
20702        } && test -s conftest$ac_exeext &&
20703        $as_test_x conftest$ac_exeext; then
20704   ac_cv_lib_ipc_shmat=yes
20705 else
20706   echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709         ac_cv_lib_ipc_shmat=no
20710 fi
20711
20712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20713       conftest$ac_exeext conftest.$ac_ext
20714 LIBS=$ac_check_lib_save_LIBS
20715 fi
20716 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20717 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20718 if test $ac_cv_lib_ipc_shmat = yes; then
20719   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20720 fi
20721
20722     fi
20723   fi
20724
20725   # Check for libraries that X11R6 Xt/Xaw programs need.
20726   ac_save_LDFLAGS=$LDFLAGS
20727   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20728   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20729   # check for ICE first), but we must link in the order -lSM -lICE or
20730   # we get undefined symbols.  So assume we have SM if we have ICE.
20731   # These have to be linked with before -lX11, unlike the other
20732   # libraries we check for below, so use a different variable.
20733   # John Interrante, Karl Berry
20734   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20735 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20736 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20737   echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739   ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20747
20748 /* Override any GCC internal prototype to avoid an error.
20749    Use char because int might match the return type of a GCC
20750    builtin and then its argument prototype would still apply.  */
20751 #ifdef __cplusplus
20752 extern "C"
20753 #endif
20754 char IceConnectionNumber ();
20755 int
20756 main ()
20757 {
20758 return IceConnectionNumber ();
20759   ;
20760   return 0;
20761 }
20762 _ACEOF
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767   *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770   (eval "$ac_link") 2>conftest.er1
20771   ac_status=$?
20772   grep -v '^ *+' conftest.er1 >conftest.err
20773   rm -f conftest.er1
20774   cat conftest.err >&5
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); } && {
20777          test -z "$ac_c_werror_flag" ||
20778          test ! -s conftest.err
20779        } && test -s conftest$ac_exeext &&
20780        $as_test_x conftest$ac_exeext; then
20781   ac_cv_lib_ICE_IceConnectionNumber=yes
20782 else
20783   echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785
20786         ac_cv_lib_ICE_IceConnectionNumber=no
20787 fi
20788
20789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790       conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20792 fi
20793 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20794 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20795 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20796   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20797 fi
20798
20799   LDFLAGS=$ac_save_LDFLAGS
20800
20801 fi
20802
20803 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20805 if test "${ac_cv_header_stdc+set}" = set; then
20806   echo $ECHO_N "(cached) $ECHO_C" >&6
20807 else
20808   cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814 #include <stdlib.h>
20815 #include <stdarg.h>
20816 #include <string.h>
20817 #include <float.h>
20818
20819 int
20820 main ()
20821 {
20822
20823   ;
20824   return 0;
20825 }
20826 _ACEOF
20827 rm -f conftest.$ac_objext
20828 if { (ac_try="$ac_compile"
20829 case "(($ac_try" in
20830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831   *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834   (eval "$ac_compile") 2>conftest.er1
20835   ac_status=$?
20836   grep -v '^ *+' conftest.er1 >conftest.err
20837   rm -f conftest.er1
20838   cat conftest.err >&5
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } && {
20841          test -z "$ac_c_werror_flag" ||
20842          test ! -s conftest.err
20843        } && test -s conftest.$ac_objext; then
20844   ac_cv_header_stdc=yes
20845 else
20846   echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849         ac_cv_header_stdc=no
20850 fi
20851
20852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853
20854 if test $ac_cv_header_stdc = yes; then
20855   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20856   cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h.  */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h.  */
20862 #include <string.h>
20863
20864 _ACEOF
20865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20866   $EGREP "memchr" >/dev/null 2>&1; then
20867   :
20868 else
20869   ac_cv_header_stdc=no
20870 fi
20871 rm -f conftest*
20872
20873 fi
20874
20875 if test $ac_cv_header_stdc = yes; then
20876   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20877   cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h.  */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h.  */
20883 #include <stdlib.h>
20884
20885 _ACEOF
20886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20887   $EGREP "free" >/dev/null 2>&1; then
20888   :
20889 else
20890   ac_cv_header_stdc=no
20891 fi
20892 rm -f conftest*
20893
20894 fi
20895
20896 if test $ac_cv_header_stdc = yes; then
20897   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20898   if test "$cross_compiling" = yes; then
20899   :
20900 else
20901   cat >conftest.$ac_ext <<_ACEOF
20902 /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907 #include <ctype.h>
20908 #include <stdlib.h>
20909 #if ((' ' & 0x0FF) == 0x020)
20910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20912 #else
20913 # define ISLOWER(c) \
20914                    (('a' <= (c) && (c) <= 'i') \
20915                      || ('j' <= (c) && (c) <= 'r') \
20916                      || ('s' <= (c) && (c) <= 'z'))
20917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20918 #endif
20919
20920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20921 int
20922 main ()
20923 {
20924   int i;
20925   for (i = 0; i < 256; i++)
20926     if (XOR (islower (i), ISLOWER (i))
20927         || toupper (i) != TOUPPER (i))
20928       return 2;
20929   return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest$ac_exeext
20933 if { (ac_try="$ac_link"
20934 case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_link") 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20943   { (case "(($ac_try" in
20944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945   *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948   (eval "$ac_try") 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   :
20953 else
20954   echo "$as_me: program exited with status $ac_status" >&5
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 ( exit $ac_status )
20959 ac_cv_header_stdc=no
20960 fi
20961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20962 fi
20963
20964
20965 fi
20966 fi
20967 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20968 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20969 if test $ac_cv_header_stdc = yes; then
20970
20971 cat >>confdefs.h <<\_ACEOF
20972 #define STDC_HEADERS 1
20973 _ACEOF
20974
20975 fi
20976
20977 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20978 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20979 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20980   echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982   cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h.  */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h.  */
20988 #include <sys/types.h>
20989 #include <sys/wait.h>
20990 #ifndef WEXITSTATUS
20991 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20992 #endif
20993 #ifndef WIFEXITED
20994 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20995 #endif
20996
20997 int
20998 main ()
20999 {
21000   int s;
21001   wait (&s);
21002   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21003   ;
21004   return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext
21008 if { (ac_try="$ac_compile"
21009 case "(($ac_try" in
21010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011   *) ac_try_echo=$ac_try;;
21012 esac
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014   (eval "$ac_compile") 2>conftest.er1
21015   ac_status=$?
21016   grep -v '^ *+' conftest.er1 >conftest.err
21017   rm -f conftest.er1
21018   cat conftest.err >&5
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); } && {
21021          test -z "$ac_c_werror_flag" ||
21022          test ! -s conftest.err
21023        } && test -s conftest.$ac_objext; then
21024   ac_cv_header_sys_wait_h=yes
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029         ac_cv_header_sys_wait_h=no
21030 fi
21031
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 fi
21034 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21035 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21036 if test $ac_cv_header_sys_wait_h = yes; then
21037
21038 cat >>confdefs.h <<\_ACEOF
21039 #define HAVE_SYS_WAIT_H 1
21040 _ACEOF
21041
21042 fi
21043
21044
21045
21046
21047
21048
21049
21050
21051 for ac_header in fcntl.h paths.h termios.h sgtty.h unistd.h malloc.h term.h
21052 do
21053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 fi
21060 ac_res=`eval echo '${'$as_ac_Header'}'`
21061                { echo "$as_me:$LINENO: result: $ac_res" >&5
21062 echo "${ECHO_T}$ac_res" >&6; }
21063 else
21064   # Is the header compilable?
21065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073 $ac_includes_default
21074 #include <$ac_header>
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080   *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083   (eval "$ac_compile") 2>conftest.er1
21084   ac_status=$?
21085   grep -v '^ *+' conftest.er1 >conftest.err
21086   rm -f conftest.er1
21087   cat conftest.err >&5
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); } && {
21090          test -z "$ac_c_werror_flag" ||
21091          test ! -s conftest.err
21092        } && test -s conftest.$ac_objext; then
21093   ac_header_compiler=yes
21094 else
21095   echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098         ac_header_compiler=no
21099 fi
21100
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21103 echo "${ECHO_T}$ac_header_compiler" >&6; }
21104
21105 # Is the header present?
21106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 #include <$ac_header>
21115 _ACEOF
21116 if { (ac_try="$ac_cpp conftest.$ac_ext"
21117 case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21123   ac_status=$?
21124   grep -v '^ *+' conftest.er1 >conftest.err
21125   rm -f conftest.er1
21126   cat conftest.err >&5
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } >/dev/null && {
21129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21130          test ! -s conftest.err
21131        }; then
21132   ac_header_preproc=yes
21133 else
21134   echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21136
21137   ac_header_preproc=no
21138 fi
21139
21140 rm -f conftest.err conftest.$ac_ext
21141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21142 echo "${ECHO_T}$ac_header_preproc" >&6; }
21143
21144 # So?  What about this header?
21145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21146   yes:no: )
21147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21151     ac_header_preproc=yes
21152     ;;
21153   no:yes:* )
21154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21166
21167     ;;
21168 esac
21169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21172   echo $ECHO_N "(cached) $ECHO_C" >&6
21173 else
21174   eval "$as_ac_Header=\$ac_header_preproc"
21175 fi
21176 ac_res=`eval echo '${'$as_ac_Header'}'`
21177                { echo "$as_me:$LINENO: result: $ac_res" >&5
21178 echo "${ECHO_T}$ac_res" >&6; }
21179
21180 fi
21181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21182   cat >>confdefs.h <<_ACEOF
21183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21184 _ACEOF
21185
21186 fi
21187
21188 done
21189
21190
21191
21192
21193
21194
21195 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21196 do
21197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21199   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 fi
21204 ac_res=`eval echo '${'$as_ac_Header'}'`
21205                { echo "$as_me:$LINENO: result: $ac_res" >&5
21206 echo "${ECHO_T}$ac_res" >&6; }
21207 else
21208   # Is the header compilable?
21209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217 $ac_includes_default
21218 #include <$ac_header>
21219 _ACEOF
21220 rm -f conftest.$ac_objext
21221 if { (ac_try="$ac_compile"
21222 case "(($ac_try" in
21223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224   *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227   (eval "$ac_compile") 2>conftest.er1
21228   ac_status=$?
21229   grep -v '^ *+' conftest.er1 >conftest.err
21230   rm -f conftest.er1
21231   cat conftest.err >&5
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); } && {
21234          test -z "$ac_c_werror_flag" ||
21235          test ! -s conftest.err
21236        } && test -s conftest.$ac_objext; then
21237   ac_header_compiler=yes
21238 else
21239   echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21241
21242         ac_header_compiler=no
21243 fi
21244
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21247 echo "${ECHO_T}$ac_header_compiler" >&6; }
21248
21249 # Is the header present?
21250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h.  */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h.  */
21258 #include <$ac_header>
21259 _ACEOF
21260 if { (ac_try="$ac_cpp conftest.$ac_ext"
21261 case "(($ac_try" in
21262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263   *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21267   ac_status=$?
21268   grep -v '^ *+' conftest.er1 >conftest.err
21269   rm -f conftest.er1
21270   cat conftest.err >&5
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); } >/dev/null && {
21273          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21274          test ! -s conftest.err
21275        }; then
21276   ac_header_preproc=yes
21277 else
21278   echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21280
21281   ac_header_preproc=no
21282 fi
21283
21284 rm -f conftest.err conftest.$ac_ext
21285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21286 echo "${ECHO_T}$ac_header_preproc" >&6; }
21287
21288 # So?  What about this header?
21289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21290   yes:no: )
21291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21295     ac_header_preproc=yes
21296     ;;
21297   no:yes:* )
21298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21310
21311     ;;
21312 esac
21313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21316   echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318   eval "$as_ac_Header=\$ac_header_preproc"
21319 fi
21320 ac_res=`eval echo '${'$as_ac_Header'}'`
21321                { echo "$as_me:$LINENO: result: $ac_res" >&5
21322 echo "${ECHO_T}$ac_res" >&6; }
21323
21324 fi
21325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21326   cat >>confdefs.h <<_ACEOF
21327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21328 _ACEOF
21329
21330 fi
21331
21332 done
21333
21334
21335
21336
21337
21338
21339 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21340 do
21341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21346   echo $ECHO_N "(cached) $ECHO_C" >&6
21347 fi
21348 ac_res=`eval echo '${'$as_ac_Header'}'`
21349                { echo "$as_me:$LINENO: result: $ac_res" >&5
21350 echo "${ECHO_T}$ac_res" >&6; }
21351 else
21352   # Is the header compilable?
21353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21355 cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h.  */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h.  */
21361 $ac_includes_default
21362 #include <$ac_header>
21363 _ACEOF
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_compile") 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } && {
21378          test -z "$ac_c_werror_flag" ||
21379          test ! -s conftest.err
21380        } && test -s conftest.$ac_objext; then
21381   ac_header_compiler=yes
21382 else
21383   echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386         ac_header_compiler=no
21387 fi
21388
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21391 echo "${ECHO_T}$ac_header_compiler" >&6; }
21392
21393 # Is the header present?
21394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h.  */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h.  */
21402 #include <$ac_header>
21403 _ACEOF
21404 if { (ac_try="$ac_cpp conftest.$ac_ext"
21405 case "(($ac_try" in
21406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407   *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21411   ac_status=$?
21412   grep -v '^ *+' conftest.er1 >conftest.err
21413   rm -f conftest.er1
21414   cat conftest.err >&5
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } >/dev/null && {
21417          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21418          test ! -s conftest.err
21419        }; then
21420   ac_header_preproc=yes
21421 else
21422   echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425   ac_header_preproc=no
21426 fi
21427
21428 rm -f conftest.err conftest.$ac_ext
21429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21430 echo "${ECHO_T}$ac_header_preproc" >&6; }
21431
21432 # So?  What about this header?
21433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21434   yes:no: )
21435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21439     ac_header_preproc=yes
21440     ;;
21441   no:yes:* )
21442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21454
21455     ;;
21456 esac
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   eval "$as_ac_Header=\$ac_header_preproc"
21463 fi
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465                { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21467
21468 fi
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470   cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21472 _ACEOF
21473
21474 fi
21475
21476 done
21477
21478
21479 if test "$no_x" != "yes"; then
21480         ZWGC_LIBX11=-lX11
21481 fi
21482
21483
21484
21485 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21486 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21487 if test "${ac_cv_type_signal+set}" = set; then
21488   echo $ECHO_N "(cached) $ECHO_C" >&6
21489 else
21490   cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h.  */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h.  */
21496 #include <sys/types.h>
21497 #include <signal.h>
21498
21499 int
21500 main ()
21501 {
21502 return *(signal (0, 0)) (0) == 1;
21503   ;
21504   return 0;
21505 }
21506 _ACEOF
21507 rm -f conftest.$ac_objext
21508 if { (ac_try="$ac_compile"
21509 case "(($ac_try" in
21510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511   *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514   (eval "$ac_compile") 2>conftest.er1
21515   ac_status=$?
21516   grep -v '^ *+' conftest.er1 >conftest.err
21517   rm -f conftest.er1
21518   cat conftest.err >&5
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); } && {
21521          test -z "$ac_c_werror_flag" ||
21522          test ! -s conftest.err
21523        } && test -s conftest.$ac_objext; then
21524   ac_cv_type_signal=int
21525 else
21526   echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529         ac_cv_type_signal=void
21530 fi
21531
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 fi
21534 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21535 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21536
21537 cat >>confdefs.h <<_ACEOF
21538 #define RETSIGTYPE $ac_cv_type_signal
21539 _ACEOF
21540
21541
21542 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21543 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21544 if test "${ac_cv_type_uid_t+set}" = set; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 #include <sys/types.h>
21554
21555 _ACEOF
21556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21557   $EGREP "uid_t" >/dev/null 2>&1; then
21558   ac_cv_type_uid_t=yes
21559 else
21560   ac_cv_type_uid_t=no
21561 fi
21562 rm -f conftest*
21563
21564 fi
21565 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21566 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21567 if test $ac_cv_type_uid_t = no; then
21568
21569 cat >>confdefs.h <<\_ACEOF
21570 #define uid_t int
21571 _ACEOF
21572
21573
21574 cat >>confdefs.h <<\_ACEOF
21575 #define gid_t int
21576 _ACEOF
21577
21578 fi
21579
21580 { echo "$as_me:$LINENO: checking for short" >&5
21581 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21582 if test "${ac_cv_type_short+set}" = set; then
21583   echo $ECHO_N "(cached) $ECHO_C" >&6
21584 else
21585   cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591 $ac_includes_default
21592 typedef short ac__type_new_;
21593 int
21594 main ()
21595 {
21596 if ((ac__type_new_ *) 0)
21597   return 0;
21598 if (sizeof (ac__type_new_))
21599   return 0;
21600   ;
21601   return 0;
21602 }
21603 _ACEOF
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608   *) ac_try_echo=$ac_try;;
21609 esac
21610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611   (eval "$ac_compile") 2>conftest.er1
21612   ac_status=$?
21613   grep -v '^ *+' conftest.er1 >conftest.err
21614   rm -f conftest.er1
21615   cat conftest.err >&5
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); } && {
21618          test -z "$ac_c_werror_flag" ||
21619          test ! -s conftest.err
21620        } && test -s conftest.$ac_objext; then
21621   ac_cv_type_short=yes
21622 else
21623   echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626         ac_cv_type_short=no
21627 fi
21628
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630 fi
21631 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21632 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21633
21634 # The cast to long int works around a bug in the HP C Compiler
21635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21637 # This bug is HP SR number 8606223364.
21638 { echo "$as_me:$LINENO: checking size of short" >&5
21639 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21640 if test "${ac_cv_sizeof_short+set}" = set; then
21641   echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643   if test "$cross_compiling" = yes; then
21644   # Depending upon the size, compute the lo and hi bounds.
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651 $ac_includes_default
21652    typedef short ac__type_sizeof_;
21653 int
21654 main ()
21655 {
21656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21657 test_array [0] = 0
21658
21659   ;
21660   return 0;
21661 }
21662 _ACEOF
21663 rm -f conftest.$ac_objext
21664 if { (ac_try="$ac_compile"
21665 case "(($ac_try" in
21666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667   *) ac_try_echo=$ac_try;;
21668 esac
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670   (eval "$ac_compile") 2>conftest.er1
21671   ac_status=$?
21672   grep -v '^ *+' conftest.er1 >conftest.err
21673   rm -f conftest.er1
21674   cat conftest.err >&5
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } && {
21677          test -z "$ac_c_werror_flag" ||
21678          test ! -s conftest.err
21679        } && test -s conftest.$ac_objext; then
21680   ac_lo=0 ac_mid=0
21681   while :; do
21682     cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688 $ac_includes_default
21689    typedef short ac__type_sizeof_;
21690 int
21691 main ()
21692 {
21693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21694 test_array [0] = 0
21695
21696   ;
21697   return 0;
21698 }
21699 _ACEOF
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704   *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707   (eval "$ac_compile") 2>conftest.er1
21708   ac_status=$?
21709   grep -v '^ *+' conftest.er1 >conftest.err
21710   rm -f conftest.er1
21711   cat conftest.err >&5
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); } && {
21714          test -z "$ac_c_werror_flag" ||
21715          test ! -s conftest.err
21716        } && test -s conftest.$ac_objext; then
21717   ac_hi=$ac_mid; break
21718 else
21719   echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722         ac_lo=`expr $ac_mid + 1`
21723                         if test $ac_lo -le $ac_mid; then
21724                           ac_lo= ac_hi=
21725                           break
21726                         fi
21727                         ac_mid=`expr 2 '*' $ac_mid + 1`
21728 fi
21729
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731   done
21732 else
21733   echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736         cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742 $ac_includes_default
21743    typedef short ac__type_sizeof_;
21744 int
21745 main ()
21746 {
21747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21748 test_array [0] = 0
21749
21750   ;
21751   return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext
21755 if { (ac_try="$ac_compile"
21756 case "(($ac_try" in
21757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758   *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761   (eval "$ac_compile") 2>conftest.er1
21762   ac_status=$?
21763   grep -v '^ *+' conftest.er1 >conftest.err
21764   rm -f conftest.er1
21765   cat conftest.err >&5
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); } && {
21768          test -z "$ac_c_werror_flag" ||
21769          test ! -s conftest.err
21770        } && test -s conftest.$ac_objext; then
21771   ac_hi=-1 ac_mid=-1
21772   while :; do
21773     cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h.  */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h.  */
21779 $ac_includes_default
21780    typedef short ac__type_sizeof_;
21781 int
21782 main ()
21783 {
21784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21785 test_array [0] = 0
21786
21787   ;
21788   return 0;
21789 }
21790 _ACEOF
21791 rm -f conftest.$ac_objext
21792 if { (ac_try="$ac_compile"
21793 case "(($ac_try" in
21794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795   *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798   (eval "$ac_compile") 2>conftest.er1
21799   ac_status=$?
21800   grep -v '^ *+' conftest.er1 >conftest.err
21801   rm -f conftest.er1
21802   cat conftest.err >&5
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); } && {
21805          test -z "$ac_c_werror_flag" ||
21806          test ! -s conftest.err
21807        } && test -s conftest.$ac_objext; then
21808   ac_lo=$ac_mid; break
21809 else
21810   echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813         ac_hi=`expr '(' $ac_mid ')' - 1`
21814                         if test $ac_mid -le $ac_hi; then
21815                           ac_lo= ac_hi=
21816                           break
21817                         fi
21818                         ac_mid=`expr 2 '*' $ac_mid`
21819 fi
21820
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822   done
21823 else
21824   echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827         ac_lo= ac_hi=
21828 fi
21829
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 fi
21832
21833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21834 # Binary search between lo and hi bounds.
21835 while test "x$ac_lo" != "x$ac_hi"; do
21836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21837   cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h.  */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h.  */
21843 $ac_includes_default
21844    typedef short ac__type_sizeof_;
21845 int
21846 main ()
21847 {
21848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21849 test_array [0] = 0
21850
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (ac_try="$ac_compile"
21857 case "(($ac_try" in
21858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859   *) ac_try_echo=$ac_try;;
21860 esac
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862   (eval "$ac_compile") 2>conftest.er1
21863   ac_status=$?
21864   grep -v '^ *+' conftest.er1 >conftest.err
21865   rm -f conftest.er1
21866   cat conftest.err >&5
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); } && {
21869          test -z "$ac_c_werror_flag" ||
21870          test ! -s conftest.err
21871        } && test -s conftest.$ac_objext; then
21872   ac_hi=$ac_mid
21873 else
21874   echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877         ac_lo=`expr '(' $ac_mid ')' + 1`
21878 fi
21879
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 done
21882 case $ac_lo in
21883 ?*) ac_cv_sizeof_short=$ac_lo;;
21884 '') if test "$ac_cv_type_short" = yes; then
21885      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21886 See \`config.log' for more details." >&5
21887 echo "$as_me: error: cannot compute sizeof (short)
21888 See \`config.log' for more details." >&2;}
21889    { (exit 77); exit 77; }; }
21890    else
21891      ac_cv_sizeof_short=0
21892    fi ;;
21893 esac
21894 else
21895   cat >conftest.$ac_ext <<_ACEOF
21896 /* confdefs.h.  */
21897 _ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h.  */
21901 $ac_includes_default
21902    typedef short ac__type_sizeof_;
21903 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21904 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21905 #include <stdio.h>
21906 #include <stdlib.h>
21907 int
21908 main ()
21909 {
21910
21911   FILE *f = fopen ("conftest.val", "w");
21912   if (! f)
21913     return 1;
21914   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21915     {
21916       long int i = longval ();
21917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21918         return 1;
21919       fprintf (f, "%ld\n", i);
21920     }
21921   else
21922     {
21923       unsigned long int i = ulongval ();
21924       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21925         return 1;
21926       fprintf (f, "%lu\n", i);
21927     }
21928   return ferror (f) || fclose (f) != 0;
21929
21930   ;
21931   return 0;
21932 }
21933 _ACEOF
21934 rm -f conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938   *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941   (eval "$ac_link") 2>&5
21942   ac_status=$?
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21945   { (case "(($ac_try" in
21946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947   *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950   (eval "$ac_try") 2>&5
21951   ac_status=$?
21952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); }; }; then
21954   ac_cv_sizeof_short=`cat conftest.val`
21955 else
21956   echo "$as_me: program exited with status $ac_status" >&5
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21959
21960 ( exit $ac_status )
21961 if test "$ac_cv_type_short" = yes; then
21962      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21963 See \`config.log' for more details." >&5
21964 echo "$as_me: error: cannot compute sizeof (short)
21965 See \`config.log' for more details." >&2;}
21966    { (exit 77); exit 77; }; }
21967    else
21968      ac_cv_sizeof_short=0
21969    fi
21970 fi
21971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21972 fi
21973 rm -f conftest.val
21974 fi
21975 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21976 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21977
21978
21979
21980 cat >>confdefs.h <<_ACEOF
21981 #define SIZEOF_SHORT $ac_cv_sizeof_short
21982 _ACEOF
21983
21984
21985 { echo "$as_me:$LINENO: checking for int" >&5
21986 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21987 if test "${ac_cv_type_int+set}" = set; then
21988   echo $ECHO_N "(cached) $ECHO_C" >&6
21989 else
21990   cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h.  */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h.  */
21996 $ac_includes_default
21997 typedef int ac__type_new_;
21998 int
21999 main ()
22000 {
22001 if ((ac__type_new_ *) 0)
22002   return 0;
22003 if (sizeof (ac__type_new_))
22004   return 0;
22005   ;
22006   return 0;
22007 }
22008 _ACEOF
22009 rm -f conftest.$ac_objext
22010 if { (ac_try="$ac_compile"
22011 case "(($ac_try" in
22012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013   *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016   (eval "$ac_compile") 2>conftest.er1
22017   ac_status=$?
22018   grep -v '^ *+' conftest.er1 >conftest.err
22019   rm -f conftest.er1
22020   cat conftest.err >&5
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); } && {
22023          test -z "$ac_c_werror_flag" ||
22024          test ! -s conftest.err
22025        } && test -s conftest.$ac_objext; then
22026   ac_cv_type_int=yes
22027 else
22028   echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031         ac_cv_type_int=no
22032 fi
22033
22034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 fi
22036 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22037 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22038
22039 # The cast to long int works around a bug in the HP C Compiler
22040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22042 # This bug is HP SR number 8606223364.
22043 { echo "$as_me:$LINENO: checking size of int" >&5
22044 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22045 if test "${ac_cv_sizeof_int+set}" = set; then
22046   echo $ECHO_N "(cached) $ECHO_C" >&6
22047 else
22048   if test "$cross_compiling" = yes; then
22049   # Depending upon the size, compute the lo and hi bounds.
22050 cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056 $ac_includes_default
22057    typedef int ac__type_sizeof_;
22058 int
22059 main ()
22060 {
22061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22062 test_array [0] = 0
22063
22064   ;
22065   return 0;
22066 }
22067 _ACEOF
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072   *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075   (eval "$ac_compile") 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } && {
22082          test -z "$ac_c_werror_flag" ||
22083          test ! -s conftest.err
22084        } && test -s conftest.$ac_objext; then
22085   ac_lo=0 ac_mid=0
22086   while :; do
22087     cat >conftest.$ac_ext <<_ACEOF
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093 $ac_includes_default
22094    typedef int ac__type_sizeof_;
22095 int
22096 main ()
22097 {
22098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22099 test_array [0] = 0
22100
22101   ;
22102   return 0;
22103 }
22104 _ACEOF
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109   *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112   (eval "$ac_compile") 2>conftest.er1
22113   ac_status=$?
22114   grep -v '^ *+' conftest.er1 >conftest.err
22115   rm -f conftest.er1
22116   cat conftest.err >&5
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); } && {
22119          test -z "$ac_c_werror_flag" ||
22120          test ! -s conftest.err
22121        } && test -s conftest.$ac_objext; then
22122   ac_hi=$ac_mid; break
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127         ac_lo=`expr $ac_mid + 1`
22128                         if test $ac_lo -le $ac_mid; then
22129                           ac_lo= ac_hi=
22130                           break
22131                         fi
22132                         ac_mid=`expr 2 '*' $ac_mid + 1`
22133 fi
22134
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136   done
22137 else
22138   echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22140
22141         cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h.  */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h.  */
22147 $ac_includes_default
22148    typedef int ac__type_sizeof_;
22149 int
22150 main ()
22151 {
22152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22153 test_array [0] = 0
22154
22155   ;
22156   return 0;
22157 }
22158 _ACEOF
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163   *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166   (eval "$ac_compile") 2>conftest.er1
22167   ac_status=$?
22168   grep -v '^ *+' conftest.er1 >conftest.err
22169   rm -f conftest.er1
22170   cat conftest.err >&5
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } && {
22173          test -z "$ac_c_werror_flag" ||
22174          test ! -s conftest.err
22175        } && test -s conftest.$ac_objext; then
22176   ac_hi=-1 ac_mid=-1
22177   while :; do
22178     cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184 $ac_includes_default
22185    typedef int ac__type_sizeof_;
22186 int
22187 main ()
22188 {
22189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22190 test_array [0] = 0
22191
22192   ;
22193   return 0;
22194 }
22195 _ACEOF
22196 rm -f conftest.$ac_objext
22197 if { (ac_try="$ac_compile"
22198 case "(($ac_try" in
22199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200   *) ac_try_echo=$ac_try;;
22201 esac
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203   (eval "$ac_compile") 2>conftest.er1
22204   ac_status=$?
22205   grep -v '^ *+' conftest.er1 >conftest.err
22206   rm -f conftest.er1
22207   cat conftest.err >&5
22208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209   (exit $ac_status); } && {
22210          test -z "$ac_c_werror_flag" ||
22211          test ! -s conftest.err
22212        } && test -s conftest.$ac_objext; then
22213   ac_lo=$ac_mid; break
22214 else
22215   echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22217
22218         ac_hi=`expr '(' $ac_mid ')' - 1`
22219                         if test $ac_mid -le $ac_hi; then
22220                           ac_lo= ac_hi=
22221                           break
22222                         fi
22223                         ac_mid=`expr 2 '*' $ac_mid`
22224 fi
22225
22226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227   done
22228 else
22229   echo "$as_me: failed program was:" >&5
22230 sed 's/^/| /' conftest.$ac_ext >&5
22231
22232         ac_lo= ac_hi=
22233 fi
22234
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 fi
22237
22238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239 # Binary search between lo and hi bounds.
22240 while test "x$ac_lo" != "x$ac_hi"; do
22241   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22242   cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 $ac_includes_default
22249    typedef int ac__type_sizeof_;
22250 int
22251 main ()
22252 {
22253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22254 test_array [0] = 0
22255
22256   ;
22257   return 0;
22258 }
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264   *) ac_try_echo=$ac_try;;
22265 esac
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267   (eval "$ac_compile") 2>conftest.er1
22268   ac_status=$?
22269   grep -v '^ *+' conftest.er1 >conftest.err
22270   rm -f conftest.er1
22271   cat conftest.err >&5
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); } && {
22274          test -z "$ac_c_werror_flag" ||
22275          test ! -s conftest.err
22276        } && test -s conftest.$ac_objext; then
22277   ac_hi=$ac_mid
22278 else
22279   echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282         ac_lo=`expr '(' $ac_mid ')' + 1`
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 done
22287 case $ac_lo in
22288 ?*) ac_cv_sizeof_int=$ac_lo;;
22289 '') if test "$ac_cv_type_int" = yes; then
22290      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22291 See \`config.log' for more details." >&5
22292 echo "$as_me: error: cannot compute sizeof (int)
22293 See \`config.log' for more details." >&2;}
22294    { (exit 77); exit 77; }; }
22295    else
22296      ac_cv_sizeof_int=0
22297    fi ;;
22298 esac
22299 else
22300   cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h.  */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h.  */
22306 $ac_includes_default
22307    typedef int ac__type_sizeof_;
22308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22310 #include <stdio.h>
22311 #include <stdlib.h>
22312 int
22313 main ()
22314 {
22315
22316   FILE *f = fopen ("conftest.val", "w");
22317   if (! f)
22318     return 1;
22319   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22320     {
22321       long int i = longval ();
22322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22323         return 1;
22324       fprintf (f, "%ld\n", i);
22325     }
22326   else
22327     {
22328       unsigned long int i = ulongval ();
22329       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22330         return 1;
22331       fprintf (f, "%lu\n", i);
22332     }
22333   return ferror (f) || fclose (f) != 0;
22334
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 rm -f conftest$ac_exeext
22340 if { (ac_try="$ac_link"
22341 case "(($ac_try" in
22342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343   *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346   (eval "$ac_link") 2>&5
22347   ac_status=$?
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22350   { (case "(($ac_try" in
22351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352   *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355   (eval "$ac_try") 2>&5
22356   ac_status=$?
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); }; }; then
22359   ac_cv_sizeof_int=`cat conftest.val`
22360 else
22361   echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365 ( exit $ac_status )
22366 if test "$ac_cv_type_int" = yes; then
22367      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22368 See \`config.log' for more details." >&5
22369 echo "$as_me: error: cannot compute sizeof (int)
22370 See \`config.log' for more details." >&2;}
22371    { (exit 77); exit 77; }; }
22372    else
22373      ac_cv_sizeof_int=0
22374    fi
22375 fi
22376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22377 fi
22378 rm -f conftest.val
22379 fi
22380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22381 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22382
22383
22384
22385 cat >>confdefs.h <<_ACEOF
22386 #define SIZEOF_INT $ac_cv_sizeof_int
22387 _ACEOF
22388
22389
22390 { echo "$as_me:$LINENO: checking for long" >&5
22391 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22392 if test "${ac_cv_type_long+set}" = set; then
22393   echo $ECHO_N "(cached) $ECHO_C" >&6
22394 else
22395   cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 $ac_includes_default
22402 typedef long ac__type_new_;
22403 int
22404 main ()
22405 {
22406 if ((ac__type_new_ *) 0)
22407   return 0;
22408 if (sizeof (ac__type_new_))
22409   return 0;
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418   *) ac_try_echo=$ac_try;;
22419 esac
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421   (eval "$ac_compile") 2>conftest.er1
22422   ac_status=$?
22423   grep -v '^ *+' conftest.er1 >conftest.err
22424   rm -f conftest.er1
22425   cat conftest.err >&5
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); } && {
22428          test -z "$ac_c_werror_flag" ||
22429          test ! -s conftest.err
22430        } && test -s conftest.$ac_objext; then
22431   ac_cv_type_long=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436         ac_cv_type_long=no
22437 fi
22438
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 fi
22441 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22442 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22443
22444 # The cast to long int works around a bug in the HP C Compiler
22445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22447 # This bug is HP SR number 8606223364.
22448 { echo "$as_me:$LINENO: checking size of long" >&5
22449 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22450 if test "${ac_cv_sizeof_long+set}" = set; then
22451   echo $ECHO_N "(cached) $ECHO_C" >&6
22452 else
22453   if test "$cross_compiling" = yes; then
22454   # Depending upon the size, compute the lo and hi bounds.
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h.  */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h.  */
22461 $ac_includes_default
22462    typedef long ac__type_sizeof_;
22463 int
22464 main ()
22465 {
22466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22467 test_array [0] = 0
22468
22469   ;
22470   return 0;
22471 }
22472 _ACEOF
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477   *) ac_try_echo=$ac_try;;
22478 esac
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480   (eval "$ac_compile") 2>conftest.er1
22481   ac_status=$?
22482   grep -v '^ *+' conftest.er1 >conftest.err
22483   rm -f conftest.er1
22484   cat conftest.err >&5
22485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); } && {
22487          test -z "$ac_c_werror_flag" ||
22488          test ! -s conftest.err
22489        } && test -s conftest.$ac_objext; then
22490   ac_lo=0 ac_mid=0
22491   while :; do
22492     cat >conftest.$ac_ext <<_ACEOF
22493 /* confdefs.h.  */
22494 _ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h.  */
22498 $ac_includes_default
22499    typedef long ac__type_sizeof_;
22500 int
22501 main ()
22502 {
22503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22504 test_array [0] = 0
22505
22506   ;
22507   return 0;
22508 }
22509 _ACEOF
22510 rm -f conftest.$ac_objext
22511 if { (ac_try="$ac_compile"
22512 case "(($ac_try" in
22513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514   *) ac_try_echo=$ac_try;;
22515 esac
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517   (eval "$ac_compile") 2>conftest.er1
22518   ac_status=$?
22519   grep -v '^ *+' conftest.er1 >conftest.err
22520   rm -f conftest.er1
22521   cat conftest.err >&5
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); } && {
22524          test -z "$ac_c_werror_flag" ||
22525          test ! -s conftest.err
22526        } && test -s conftest.$ac_objext; then
22527   ac_hi=$ac_mid; break
22528 else
22529   echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22531
22532         ac_lo=`expr $ac_mid + 1`
22533                         if test $ac_lo -le $ac_mid; then
22534                           ac_lo= ac_hi=
22535                           break
22536                         fi
22537                         ac_mid=`expr 2 '*' $ac_mid + 1`
22538 fi
22539
22540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541   done
22542 else
22543   echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22545
22546         cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552 $ac_includes_default
22553    typedef long ac__type_sizeof_;
22554 int
22555 main ()
22556 {
22557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22558 test_array [0] = 0
22559
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568   *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571   (eval "$ac_compile") 2>conftest.er1
22572   ac_status=$?
22573   grep -v '^ *+' conftest.er1 >conftest.err
22574   rm -f conftest.er1
22575   cat conftest.err >&5
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } && {
22578          test -z "$ac_c_werror_flag" ||
22579          test ! -s conftest.err
22580        } && test -s conftest.$ac_objext; then
22581   ac_hi=-1 ac_mid=-1
22582   while :; do
22583     cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 $ac_includes_default
22590    typedef long ac__type_sizeof_;
22591 int
22592 main ()
22593 {
22594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22595 test_array [0] = 0
22596
22597   ;
22598   return 0;
22599 }
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605   *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608   (eval "$ac_compile") 2>conftest.er1
22609   ac_status=$?
22610   grep -v '^ *+' conftest.er1 >conftest.err
22611   rm -f conftest.er1
22612   cat conftest.err >&5
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } && {
22615          test -z "$ac_c_werror_flag" ||
22616          test ! -s conftest.err
22617        } && test -s conftest.$ac_objext; then
22618   ac_lo=$ac_mid; break
22619 else
22620   echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623         ac_hi=`expr '(' $ac_mid ')' - 1`
22624                         if test $ac_mid -le $ac_hi; then
22625                           ac_lo= ac_hi=
22626                           break
22627                         fi
22628                         ac_mid=`expr 2 '*' $ac_mid`
22629 fi
22630
22631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22632   done
22633 else
22634   echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637         ac_lo= ac_hi=
22638 fi
22639
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 fi
22642
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644 # Binary search between lo and hi bounds.
22645 while test "x$ac_lo" != "x$ac_hi"; do
22646   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22647   cat >conftest.$ac_ext <<_ACEOF
22648 /* confdefs.h.  */
22649 _ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h.  */
22653 $ac_includes_default
22654    typedef long ac__type_sizeof_;
22655 int
22656 main ()
22657 {
22658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22659 test_array [0] = 0
22660
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (ac_try="$ac_compile"
22667 case "(($ac_try" in
22668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669   *) ac_try_echo=$ac_try;;
22670 esac
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672   (eval "$ac_compile") 2>conftest.er1
22673   ac_status=$?
22674   grep -v '^ *+' conftest.er1 >conftest.err
22675   rm -f conftest.er1
22676   cat conftest.err >&5
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); } && {
22679          test -z "$ac_c_werror_flag" ||
22680          test ! -s conftest.err
22681        } && test -s conftest.$ac_objext; then
22682   ac_hi=$ac_mid
22683 else
22684   echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22686
22687         ac_lo=`expr '(' $ac_mid ')' + 1`
22688 fi
22689
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691 done
22692 case $ac_lo in
22693 ?*) ac_cv_sizeof_long=$ac_lo;;
22694 '') if test "$ac_cv_type_long" = yes; then
22695      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22696 See \`config.log' for more details." >&5
22697 echo "$as_me: error: cannot compute sizeof (long)
22698 See \`config.log' for more details." >&2;}
22699    { (exit 77); exit 77; }; }
22700    else
22701      ac_cv_sizeof_long=0
22702    fi ;;
22703 esac
22704 else
22705   cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711 $ac_includes_default
22712    typedef long ac__type_sizeof_;
22713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22715 #include <stdio.h>
22716 #include <stdlib.h>
22717 int
22718 main ()
22719 {
22720
22721   FILE *f = fopen ("conftest.val", "w");
22722   if (! f)
22723     return 1;
22724   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22725     {
22726       long int i = longval ();
22727       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22728         return 1;
22729       fprintf (f, "%ld\n", i);
22730     }
22731   else
22732     {
22733       unsigned long int i = ulongval ();
22734       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22735         return 1;
22736       fprintf (f, "%lu\n", i);
22737     }
22738   return ferror (f) || fclose (f) != 0;
22739
22740   ;
22741   return 0;
22742 }
22743 _ACEOF
22744 rm -f conftest$ac_exeext
22745 if { (ac_try="$ac_link"
22746 case "(($ac_try" in
22747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748   *) ac_try_echo=$ac_try;;
22749 esac
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751   (eval "$ac_link") 2>&5
22752   ac_status=$?
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22755   { (case "(($ac_try" in
22756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22757   *) ac_try_echo=$ac_try;;
22758 esac
22759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22760   (eval "$ac_try") 2>&5
22761   ac_status=$?
22762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763   (exit $ac_status); }; }; then
22764   ac_cv_sizeof_long=`cat conftest.val`
22765 else
22766   echo "$as_me: program exited with status $ac_status" >&5
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770 ( exit $ac_status )
22771 if test "$ac_cv_type_long" = yes; then
22772      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22773 See \`config.log' for more details." >&5
22774 echo "$as_me: error: cannot compute sizeof (long)
22775 See \`config.log' for more details." >&2;}
22776    { (exit 77); exit 77; }; }
22777    else
22778      ac_cv_sizeof_long=0
22779    fi
22780 fi
22781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22782 fi
22783 rm -f conftest.val
22784 fi
22785 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22786 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22787
22788
22789
22790 cat >>confdefs.h <<_ACEOF
22791 #define SIZEOF_LONG $ac_cv_sizeof_long
22792 _ACEOF
22793
22794
22795 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22796 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22797 if test "$ac_cv_sizeof_long" = 4; then
22798         int32=long
22799 elif test "$ac_cv_sizeof_int" = 4; then
22800         int32=int
22801 elif test "$ac_cv_sizeof_short" = 4; then
22802         int32=short
22803 else
22804         { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22805 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22806         int32=long
22807 fi
22808 cat >>confdefs.h <<_ACEOF
22809 #define ZEPHYR_INT32 ${int32}
22810 _ACEOF
22811
22812 { echo "$as_me:$LINENO: result: ${int32}" >&5
22813 echo "${ECHO_T}${int32}" >&6; }
22814
22815
22816 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
22817 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
22818 if test "${ac_cv_lib_w_wslen+set}" = set; then
22819   echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821   ac_check_lib_save_LIBS=$LIBS
22822 LIBS="-lw  $LIBS"
22823 cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829
22830 /* Override any GCC internal prototype to avoid an error.
22831    Use char because int might match the return type of a GCC
22832    builtin and then its argument prototype would still apply.  */
22833 #ifdef __cplusplus
22834 extern "C"
22835 #endif
22836 char wslen ();
22837 int
22838 main ()
22839 {
22840 return wslen ();
22841   ;
22842   return 0;
22843 }
22844 _ACEOF
22845 rm -f conftest.$ac_objext conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849   *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852   (eval "$ac_link") 2>conftest.er1
22853   ac_status=$?
22854   grep -v '^ *+' conftest.er1 >conftest.err
22855   rm -f conftest.er1
22856   cat conftest.err >&5
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); } && {
22859          test -z "$ac_c_werror_flag" ||
22860          test ! -s conftest.err
22861        } && test -s conftest$ac_exeext &&
22862        $as_test_x conftest$ac_exeext; then
22863   ac_cv_lib_w_wslen=yes
22864 else
22865   echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22867
22868         ac_cv_lib_w_wslen=no
22869 fi
22870
22871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22872       conftest$ac_exeext conftest.$ac_ext
22873 LIBS=$ac_check_lib_save_LIBS
22874 fi
22875 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
22876 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
22877 if test $ac_cv_lib_w_wslen = yes; then
22878   cat >>confdefs.h <<_ACEOF
22879 #define HAVE_LIBW 1
22880 _ACEOF
22881
22882   LIBS="-lw $LIBS"
22883
22884 fi
22885
22886
22887 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22890   echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892   ac_check_lib_save_LIBS=$LIBS
22893 LIBS="-ldl  $LIBS"
22894 cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h.  */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h.  */
22900
22901 /* Override any GCC internal prototype to avoid an error.
22902    Use char because int might match the return type of a GCC
22903    builtin and then its argument prototype would still apply.  */
22904 #ifdef __cplusplus
22905 extern "C"
22906 #endif
22907 char dlopen ();
22908 int
22909 main ()
22910 {
22911 return dlopen ();
22912   ;
22913   return 0;
22914 }
22915 _ACEOF
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920   *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923   (eval "$ac_link") 2>conftest.er1
22924   ac_status=$?
22925   grep -v '^ *+' conftest.er1 >conftest.err
22926   rm -f conftest.er1
22927   cat conftest.err >&5
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); } && {
22930          test -z "$ac_c_werror_flag" ||
22931          test ! -s conftest.err
22932        } && test -s conftest$ac_exeext &&
22933        $as_test_x conftest$ac_exeext; then
22934   ac_cv_lib_dl_dlopen=yes
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939         ac_cv_lib_dl_dlopen=no
22940 fi
22941
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943       conftest$ac_exeext conftest.$ac_ext
22944 LIBS=$ac_check_lib_save_LIBS
22945 fi
22946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22948 if test $ac_cv_lib_dl_dlopen = yes; then
22949   cat >>confdefs.h <<_ACEOF
22950 #define HAVE_LIBDL 1
22951 _ACEOF
22952
22953   LIBS="-ldl $LIBS"
22954
22955 fi
22956
22957
22958 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22959 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
22960 if test "${ac_cv_search_gethostbyname+set}" = set; then
22961   echo $ECHO_N "(cached) $ECHO_C" >&6
22962 else
22963   ac_func_search_save_LIBS=$LIBS
22964 cat >conftest.$ac_ext <<_ACEOF
22965 /* confdefs.h.  */
22966 _ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h.  */
22970
22971 /* Override any GCC internal prototype to avoid an error.
22972    Use char because int might match the return type of a GCC
22973    builtin and then its argument prototype would still apply.  */
22974 #ifdef __cplusplus
22975 extern "C"
22976 #endif
22977 char gethostbyname ();
22978 int
22979 main ()
22980 {
22981 return gethostbyname ();
22982   ;
22983   return 0;
22984 }
22985 _ACEOF
22986 for ac_lib in '' nsl; do
22987   if test -z "$ac_lib"; then
22988     ac_res="none required"
22989   else
22990     ac_res=-l$ac_lib
22991     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22992   fi
22993   rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_link") 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } && {
23007          test -z "$ac_c_werror_flag" ||
23008          test ! -s conftest.err
23009        } && test -s conftest$ac_exeext &&
23010        $as_test_x conftest$ac_exeext; then
23011   ac_cv_search_gethostbyname=$ac_res
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016
23017 fi
23018
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23020       conftest$ac_exeext
23021   if test "${ac_cv_search_gethostbyname+set}" = set; then
23022   break
23023 fi
23024 done
23025 if test "${ac_cv_search_gethostbyname+set}" = set; then
23026   :
23027 else
23028   ac_cv_search_gethostbyname=no
23029 fi
23030 rm conftest.$ac_ext
23031 LIBS=$ac_func_search_save_LIBS
23032 fi
23033 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23034 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23035 ac_res=$ac_cv_search_gethostbyname
23036 if test "$ac_res" != no; then
23037   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23038
23039 fi
23040
23041 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23042 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23043 if test "${ac_cv_search_socket+set}" = set; then
23044   echo $ECHO_N "(cached) $ECHO_C" >&6
23045 else
23046   ac_func_search_save_LIBS=$LIBS
23047 cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053
23054 /* Override any GCC internal prototype to avoid an error.
23055    Use char because int might match the return type of a GCC
23056    builtin and then its argument prototype would still apply.  */
23057 #ifdef __cplusplus
23058 extern "C"
23059 #endif
23060 char socket ();
23061 int
23062 main ()
23063 {
23064 return socket ();
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 for ac_lib in '' socket; do
23070   if test -z "$ac_lib"; then
23071     ac_res="none required"
23072   else
23073     ac_res=-l$ac_lib
23074     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23075   fi
23076   rm -f conftest.$ac_objext conftest$ac_exeext
23077 if { (ac_try="$ac_link"
23078 case "(($ac_try" in
23079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080   *) ac_try_echo=$ac_try;;
23081 esac
23082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23083   (eval "$ac_link") 2>conftest.er1
23084   ac_status=$?
23085   grep -v '^ *+' conftest.er1 >conftest.err
23086   rm -f conftest.er1
23087   cat conftest.err >&5
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); } && {
23090          test -z "$ac_c_werror_flag" ||
23091          test ! -s conftest.err
23092        } && test -s conftest$ac_exeext &&
23093        $as_test_x conftest$ac_exeext; then
23094   ac_cv_search_socket=$ac_res
23095 else
23096   echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23098
23099
23100 fi
23101
23102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23103       conftest$ac_exeext
23104   if test "${ac_cv_search_socket+set}" = set; then
23105   break
23106 fi
23107 done
23108 if test "${ac_cv_search_socket+set}" = set; then
23109   :
23110 else
23111   ac_cv_search_socket=no
23112 fi
23113 rm conftest.$ac_ext
23114 LIBS=$ac_func_search_save_LIBS
23115 fi
23116 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23117 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23118 ac_res=$ac_cv_search_socket
23119 if test "$ac_res" != no; then
23120   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23121
23122 fi
23123
23124
23125 # Hesiod needs -lresolv on Sun systems for res_send.
23126 if test "$hesiod" != "no"; then
23127
23128 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23129 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23130 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23131   echo $ECHO_N "(cached) $ECHO_C" >&6
23132 else
23133   ac_check_lib_save_LIBS=$LIBS
23134 LIBS="-l44bsd  $LIBS"
23135 cat >conftest.$ac_ext <<_ACEOF
23136 /* confdefs.h.  */
23137 _ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h.  */
23141
23142 /* Override any GCC internal prototype to avoid an error.
23143    Use char because int might match the return type of a GCC
23144    builtin and then its argument prototype would still apply.  */
23145 #ifdef __cplusplus
23146 extern "C"
23147 #endif
23148 char strerror ();
23149 int
23150 main ()
23151 {
23152 return strerror ();
23153   ;
23154   return 0;
23155 }
23156 _ACEOF
23157 rm -f conftest.$ac_objext conftest$ac_exeext
23158 if { (ac_try="$ac_link"
23159 case "(($ac_try" in
23160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161   *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164   (eval "$ac_link") 2>conftest.er1
23165   ac_status=$?
23166   grep -v '^ *+' conftest.er1 >conftest.err
23167   rm -f conftest.er1
23168   cat conftest.err >&5
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); } && {
23171          test -z "$ac_c_werror_flag" ||
23172          test ! -s conftest.err
23173        } && test -s conftest$ac_exeext &&
23174        $as_test_x conftest$ac_exeext; then
23175   ac_cv_lib_44bsd_strerror=yes
23176 else
23177   echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23179
23180         ac_cv_lib_44bsd_strerror=no
23181 fi
23182
23183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23184       conftest$ac_exeext conftest.$ac_ext
23185 LIBS=$ac_check_lib_save_LIBS
23186 fi
23187 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23188 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23189 if test $ac_cv_lib_44bsd_strerror = yes; then
23190   cat >>confdefs.h <<_ACEOF
23191 #define HAVE_LIB44BSD 1
23192 _ACEOF
23193
23194   LIBS="-l44bsd $LIBS"
23195
23196 fi
23197
23198
23199 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
23200 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
23201 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
23202   echo $ECHO_N "(cached) $ECHO_C" >&6
23203 else
23204   ac_check_lib_save_LIBS=$LIBS
23205 LIBS="-lresolv  $LIBS"
23206 cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h.  */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h.  */
23212
23213 /* Override any GCC internal prototype to avoid an error.
23214    Use char because int might match the return type of a GCC
23215    builtin and then its argument prototype would still apply.  */
23216 #ifdef __cplusplus
23217 extern "C"
23218 #endif
23219 char res_send ();
23220 int
23221 main ()
23222 {
23223 return res_send ();
23224   ;
23225   return 0;
23226 }
23227 _ACEOF
23228 rm -f conftest.$ac_objext conftest$ac_exeext
23229 if { (ac_try="$ac_link"
23230 case "(($ac_try" in
23231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232   *) ac_try_echo=$ac_try;;
23233 esac
23234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235   (eval "$ac_link") 2>conftest.er1
23236   ac_status=$?
23237   grep -v '^ *+' conftest.er1 >conftest.err
23238   rm -f conftest.er1
23239   cat conftest.err >&5
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); } && {
23242          test -z "$ac_c_werror_flag" ||
23243          test ! -s conftest.err
23244        } && test -s conftest$ac_exeext &&
23245        $as_test_x conftest$ac_exeext; then
23246   ac_cv_lib_resolv_res_send=yes
23247 else
23248   echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23250
23251         ac_cv_lib_resolv_res_send=no
23252 fi
23253
23254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23255       conftest$ac_exeext conftest.$ac_ext
23256 LIBS=$ac_check_lib_save_LIBS
23257 fi
23258 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
23259 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
23260 if test $ac_cv_lib_resolv_res_send = yes; then
23261   cat >>confdefs.h <<_ACEOF
23262 #define HAVE_LIBRESOLV 1
23263 _ACEOF
23264
23265   LIBS="-lresolv $LIBS"
23266
23267 fi
23268
23269
23270 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
23271 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
23272 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
23273   echo $ECHO_N "(cached) $ECHO_C" >&6
23274 else
23275   ac_check_lib_save_LIBS=$LIBS
23276 LIBS="-lresolv  $LIBS"
23277 cat >conftest.$ac_ext <<_ACEOF
23278 /* confdefs.h.  */
23279 _ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h.  */
23283
23284 /* Override any GCC internal prototype to avoid an error.
23285    Use char because int might match the return type of a GCC
23286    builtin and then its argument prototype would still apply.  */
23287 #ifdef __cplusplus
23288 extern "C"
23289 #endif
23290 char __res_send ();
23291 int
23292 main ()
23293 {
23294 return __res_send ();
23295   ;
23296   return 0;
23297 }
23298 _ACEOF
23299 rm -f conftest.$ac_objext conftest$ac_exeext
23300 if { (ac_try="$ac_link"
23301 case "(($ac_try" in
23302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303   *) ac_try_echo=$ac_try;;
23304 esac
23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306   (eval "$ac_link") 2>conftest.er1
23307   ac_status=$?
23308   grep -v '^ *+' conftest.er1 >conftest.err
23309   rm -f conftest.er1
23310   cat conftest.err >&5
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); } && {
23313          test -z "$ac_c_werror_flag" ||
23314          test ! -s conftest.err
23315        } && test -s conftest$ac_exeext &&
23316        $as_test_x conftest$ac_exeext; then
23317   ac_cv_lib_resolv___res_send=yes
23318 else
23319   echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23321
23322         ac_cv_lib_resolv___res_send=no
23323 fi
23324
23325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23326       conftest$ac_exeext conftest.$ac_ext
23327 LIBS=$ac_check_lib_save_LIBS
23328 fi
23329 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
23330 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
23331 if test $ac_cv_lib_resolv___res_send = yes; then
23332   cat >>confdefs.h <<_ACEOF
23333 #define HAVE_LIBRESOLV 1
23334 _ACEOF
23335
23336   LIBS="-lresolv $LIBS"
23337
23338 fi
23339
23340 fi
23341
23342 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23343 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23344 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23345   echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347   ac_check_lib_save_LIBS=$LIBS
23348 LIBS="-lcurses  $LIBS"
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h.  */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h.  */
23355
23356 /* Override any GCC internal prototype to avoid an error.
23357    Use char because int might match the return type of a GCC
23358    builtin and then its argument prototype would still apply.  */
23359 #ifdef __cplusplus
23360 extern "C"
23361 #endif
23362 char tgetstr ();
23363 int
23364 main ()
23365 {
23366 return tgetstr ();
23367   ;
23368   return 0;
23369 }
23370 _ACEOF
23371 rm -f conftest.$ac_objext conftest$ac_exeext
23372 if { (ac_try="$ac_link"
23373 case "(($ac_try" in
23374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375   *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378   (eval "$ac_link") 2>conftest.er1
23379   ac_status=$?
23380   grep -v '^ *+' conftest.er1 >conftest.err
23381   rm -f conftest.er1
23382   cat conftest.err >&5
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); } && {
23385          test -z "$ac_c_werror_flag" ||
23386          test ! -s conftest.err
23387        } && test -s conftest$ac_exeext &&
23388        $as_test_x conftest$ac_exeext; then
23389   ac_cv_lib_curses_tgetstr=yes
23390 else
23391   echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23393
23394         ac_cv_lib_curses_tgetstr=no
23395 fi
23396
23397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23398       conftest$ac_exeext conftest.$ac_ext
23399 LIBS=$ac_check_lib_save_LIBS
23400 fi
23401 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23402 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23403 if test $ac_cv_lib_curses_tgetstr = yes; then
23404   TLIB=-lcurses
23405 else
23406   TLIB=-ltermcap
23407 fi
23408
23409 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23410 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23411 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23412   echo $ECHO_N "(cached) $ECHO_C" >&6
23413 else
23414   ac_check_lib_save_LIBS=$LIBS
23415 LIBS="-lsrc  $LIBS"
23416 cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422
23423 /* Override any GCC internal prototype to avoid an error.
23424    Use char because int might match the return type of a GCC
23425    builtin and then its argument prototype would still apply.  */
23426 #ifdef __cplusplus
23427 extern "C"
23428 #endif
23429 char srcsrpy ();
23430 int
23431 main ()
23432 {
23433 return srcsrpy ();
23434   ;
23435   return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (ac_try="$ac_link"
23440 case "(($ac_try" in
23441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442   *) ac_try_echo=$ac_try;;
23443 esac
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445   (eval "$ac_link") 2>conftest.er1
23446   ac_status=$?
23447   grep -v '^ *+' conftest.er1 >conftest.err
23448   rm -f conftest.er1
23449   cat conftest.err >&5
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); } && {
23452          test -z "$ac_c_werror_flag" ||
23453          test ! -s conftest.err
23454        } && test -s conftest$ac_exeext &&
23455        $as_test_x conftest$ac_exeext; then
23456   ac_cv_lib_src_srcsrpy=yes
23457 else
23458   echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23460
23461         ac_cv_lib_src_srcsrpy=no
23462 fi
23463
23464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23465       conftest$ac_exeext conftest.$ac_ext
23466 LIBS=$ac_check_lib_save_LIBS
23467 fi
23468 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23469 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23470 if test $ac_cv_lib_src_srcsrpy = yes; then
23471   SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23472 #define HAVE_SRC 1
23473 _ACEOF
23474
23475 fi
23476
23477
23478
23479
23480
23481
23482 # Check whether --with-krb4 was given.
23483 if test "${with_krb4+set}" = set; then
23484   withval=$with_krb4; krb4="$withval"
23485 else
23486   krb4=no
23487 fi
23488
23489 if test "$krb4" != no; then
23490         { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23491 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23492 if test "${ac_cv_func_gethostbyname+set}" = set; then
23493   echo $ECHO_N "(cached) $ECHO_C" >&6
23494 else
23495   cat >conftest.$ac_ext <<_ACEOF
23496 /* confdefs.h.  */
23497 _ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h.  */
23501 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23503 #define gethostbyname innocuous_gethostbyname
23504
23505 /* System header to define __stub macros and hopefully few prototypes,
23506     which can conflict with char gethostbyname (); below.
23507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23508     <limits.h> exists even on freestanding compilers.  */
23509
23510 #ifdef __STDC__
23511 # include <limits.h>
23512 #else
23513 # include <assert.h>
23514 #endif
23515
23516 #undef gethostbyname
23517
23518 /* Override any GCC internal prototype to avoid an error.
23519    Use char because int might match the return type of a GCC
23520    builtin and then its argument prototype would still apply.  */
23521 #ifdef __cplusplus
23522 extern "C"
23523 #endif
23524 char gethostbyname ();
23525 /* The GNU C library defines this for functions which it implements
23526     to always fail with ENOSYS.  Some functions are actually named
23527     something starting with __ and the normal name is an alias.  */
23528 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23529 choke me
23530 #endif
23531
23532 int
23533 main ()
23534 {
23535 return gethostbyname ();
23536   ;
23537   return 0;
23538 }
23539 _ACEOF
23540 rm -f conftest.$ac_objext conftest$ac_exeext
23541 if { (ac_try="$ac_link"
23542 case "(($ac_try" in
23543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544   *) ac_try_echo=$ac_try;;
23545 esac
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547   (eval "$ac_link") 2>conftest.er1
23548   ac_status=$?
23549   grep -v '^ *+' conftest.er1 >conftest.err
23550   rm -f conftest.er1
23551   cat conftest.err >&5
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); } && {
23554          test -z "$ac_c_werror_flag" ||
23555          test ! -s conftest.err
23556        } && test -s conftest$ac_exeext &&
23557        $as_test_x conftest$ac_exeext; then
23558   ac_cv_func_gethostbyname=yes
23559 else
23560   echo "$as_me: failed program was:" >&5
23561 sed 's/^/| /' conftest.$ac_ext >&5
23562
23563         ac_cv_func_gethostbyname=no
23564 fi
23565
23566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23567       conftest$ac_exeext conftest.$ac_ext
23568 fi
23569 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23570 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23571 if test $ac_cv_func_gethostbyname = yes; then
23572   :
23573 else
23574
23575 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23576 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23577 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23578   echo $ECHO_N "(cached) $ECHO_C" >&6
23579 else
23580   ac_check_lib_save_LIBS=$LIBS
23581 LIBS="-lnsl  $LIBS"
23582 cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h.  */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h.  */
23588
23589 /* Override any GCC internal prototype to avoid an error.
23590    Use char because int might match the return type of a GCC
23591    builtin and then its argument prototype would still apply.  */
23592 #ifdef __cplusplus
23593 extern "C"
23594 #endif
23595 char gethostbyname ();
23596 int
23597 main ()
23598 {
23599 return gethostbyname ();
23600   ;
23601   return 0;
23602 }
23603 _ACEOF
23604 rm -f conftest.$ac_objext conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608   *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611   (eval "$ac_link") 2>conftest.er1
23612   ac_status=$?
23613   grep -v '^ *+' conftest.er1 >conftest.err
23614   rm -f conftest.er1
23615   cat conftest.err >&5
23616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617   (exit $ac_status); } && {
23618          test -z "$ac_c_werror_flag" ||
23619          test ! -s conftest.err
23620        } && test -s conftest$ac_exeext &&
23621        $as_test_x conftest$ac_exeext; then
23622   ac_cv_lib_nsl_gethostbyname=yes
23623 else
23624   echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23626
23627         ac_cv_lib_nsl_gethostbyname=no
23628 fi
23629
23630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23631       conftest$ac_exeext conftest.$ac_ext
23632 LIBS=$ac_check_lib_save_LIBS
23633 fi
23634 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23635 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23636 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23637   cat >>confdefs.h <<_ACEOF
23638 #define HAVE_LIBNSL 1
23639 _ACEOF
23640
23641   LIBS="-lnsl $LIBS"
23642
23643 fi
23644
23645 fi
23646
23647 { echo "$as_me:$LINENO: checking for socket" >&5
23648 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23649 if test "${ac_cv_func_socket+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652   cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h.  */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h.  */
23658 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23660 #define socket innocuous_socket
23661
23662 /* System header to define __stub macros and hopefully few prototypes,
23663     which can conflict with char socket (); below.
23664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23665     <limits.h> exists even on freestanding compilers.  */
23666
23667 #ifdef __STDC__
23668 # include <limits.h>
23669 #else
23670 # include <assert.h>
23671 #endif
23672
23673 #undef socket
23674
23675 /* Override any GCC internal prototype to avoid an error.
23676    Use char because int might match the return type of a GCC
23677    builtin and then its argument prototype would still apply.  */
23678 #ifdef __cplusplus
23679 extern "C"
23680 #endif
23681 char socket ();
23682 /* The GNU C library defines this for functions which it implements
23683     to always fail with ENOSYS.  Some functions are actually named
23684     something starting with __ and the normal name is an alias.  */
23685 #if defined __stub_socket || defined __stub___socket
23686 choke me
23687 #endif
23688
23689 int
23690 main ()
23691 {
23692 return socket ();
23693   ;
23694   return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701   *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704   (eval "$ac_link") 2>conftest.er1
23705   ac_status=$?
23706   grep -v '^ *+' conftest.er1 >conftest.err
23707   rm -f conftest.er1
23708   cat conftest.err >&5
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); } && {
23711          test -z "$ac_c_werror_flag" ||
23712          test ! -s conftest.err
23713        } && test -s conftest$ac_exeext &&
23714        $as_test_x conftest$ac_exeext; then
23715   ac_cv_func_socket=yes
23716 else
23717   echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23719
23720         ac_cv_func_socket=no
23721 fi
23722
23723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23724       conftest$ac_exeext conftest.$ac_ext
23725 fi
23726 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23727 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23728 if test $ac_cv_func_socket = yes; then
23729   :
23730 else
23731
23732 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23733 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23734 if test "${ac_cv_lib_socket_socket+set}" = set; then
23735   echo $ECHO_N "(cached) $ECHO_C" >&6
23736 else
23737   ac_check_lib_save_LIBS=$LIBS
23738 LIBS="-lsocket  $LIBS"
23739 cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h.  */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h.  */
23745
23746 /* Override any GCC internal prototype to avoid an error.
23747    Use char because int might match the return type of a GCC
23748    builtin and then its argument prototype would still apply.  */
23749 #ifdef __cplusplus
23750 extern "C"
23751 #endif
23752 char socket ();
23753 int
23754 main ()
23755 {
23756 return socket ();
23757   ;
23758   return 0;
23759 }
23760 _ACEOF
23761 rm -f conftest.$ac_objext conftest$ac_exeext
23762 if { (ac_try="$ac_link"
23763 case "(($ac_try" in
23764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765   *) ac_try_echo=$ac_try;;
23766 esac
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768   (eval "$ac_link") 2>conftest.er1
23769   ac_status=$?
23770   grep -v '^ *+' conftest.er1 >conftest.err
23771   rm -f conftest.er1
23772   cat conftest.err >&5
23773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774   (exit $ac_status); } && {
23775          test -z "$ac_c_werror_flag" ||
23776          test ! -s conftest.err
23777        } && test -s conftest$ac_exeext &&
23778        $as_test_x conftest$ac_exeext; then
23779   ac_cv_lib_socket_socket=yes
23780 else
23781   echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23783
23784         ac_cv_lib_socket_socket=no
23785 fi
23786
23787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23788       conftest$ac_exeext conftest.$ac_ext
23789 LIBS=$ac_check_lib_save_LIBS
23790 fi
23791 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23792 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23793 if test $ac_cv_lib_socket_socket = yes; then
23794   cat >>confdefs.h <<_ACEOF
23795 #define HAVE_LIBSOCKET 1
23796 _ACEOF
23797
23798   LIBS="-lsocket $LIBS"
23799
23800 fi
23801
23802 fi
23803
23804
23805 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23806 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23807 if test "${ac_cv_lib_gen_compile+set}" = set; then
23808   echo $ECHO_N "(cached) $ECHO_C" >&6
23809 else
23810   ac_check_lib_save_LIBS=$LIBS
23811 LIBS="-lgen  $LIBS"
23812 cat >conftest.$ac_ext <<_ACEOF
23813 /* confdefs.h.  */
23814 _ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h.  */
23818
23819 /* Override any GCC internal prototype to avoid an error.
23820    Use char because int might match the return type of a GCC
23821    builtin and then its argument prototype would still apply.  */
23822 #ifdef __cplusplus
23823 extern "C"
23824 #endif
23825 char compile ();
23826 int
23827 main ()
23828 {
23829 return compile ();
23830   ;
23831   return 0;
23832 }
23833 _ACEOF
23834 rm -f conftest.$ac_objext conftest$ac_exeext
23835 if { (ac_try="$ac_link"
23836 case "(($ac_try" in
23837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838   *) ac_try_echo=$ac_try;;
23839 esac
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841   (eval "$ac_link") 2>conftest.er1
23842   ac_status=$?
23843   grep -v '^ *+' conftest.er1 >conftest.err
23844   rm -f conftest.er1
23845   cat conftest.err >&5
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); } && {
23848          test -z "$ac_c_werror_flag" ||
23849          test ! -s conftest.err
23850        } && test -s conftest$ac_exeext &&
23851        $as_test_x conftest$ac_exeext; then
23852   ac_cv_lib_gen_compile=yes
23853 else
23854   echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23856
23857         ac_cv_lib_gen_compile=no
23858 fi
23859
23860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23861       conftest$ac_exeext conftest.$ac_ext
23862 LIBS=$ac_check_lib_save_LIBS
23863 fi
23864 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23865 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23866 if test $ac_cv_lib_gen_compile = yes; then
23867   cat >>confdefs.h <<_ACEOF
23868 #define HAVE_LIBGEN 1
23869 _ACEOF
23870
23871   LIBS="-lgen $LIBS"
23872
23873 fi
23874
23875 if test "$krb4" != yes; then
23876         CPPFLAGS="$CPPFLAGS -I$krb4/include"
23877         if test -d "$krb4/include/kerberosIV"; then
23878                 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23879         fi
23880         LDFLAGS="$LDFLAGS -L$krb4/lib"
23881 fi
23882 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23883 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23884 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23885   echo $ECHO_N "(cached) $ECHO_C" >&6
23886 else
23887   ac_check_lib_save_LIBS=$LIBS
23888 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23889 cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h.  */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h.  */
23895
23896 /* Override any GCC internal prototype to avoid an error.
23897    Use char because int might match the return type of a GCC
23898    builtin and then its argument prototype would still apply.  */
23899 #ifdef __cplusplus
23900 extern "C"
23901 #endif
23902 char krb_rd_req ();
23903 int
23904 main ()
23905 {
23906 return krb_rd_req ();
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 rm -f conftest.$ac_objext conftest$ac_exeext
23912 if { (ac_try="$ac_link"
23913 case "(($ac_try" in
23914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915   *) ac_try_echo=$ac_try;;
23916 esac
23917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23918   (eval "$ac_link") 2>conftest.er1
23919   ac_status=$?
23920   grep -v '^ *+' conftest.er1 >conftest.err
23921   rm -f conftest.er1
23922   cat conftest.err >&5
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); } && {
23925          test -z "$ac_c_werror_flag" ||
23926          test ! -s conftest.err
23927        } && test -s conftest$ac_exeext &&
23928        $as_test_x conftest$ac_exeext; then
23929   ac_cv_lib_krb4_krb_rd_req=yes
23930 else
23931   echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23933
23934         ac_cv_lib_krb4_krb_rd_req=no
23935 fi
23936
23937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23938       conftest$ac_exeext conftest.$ac_ext
23939 LIBS=$ac_check_lib_save_LIBS
23940 fi
23941 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23942 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23943 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23944   KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23945 else
23946   { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23947 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23948 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23949   echo $ECHO_N "(cached) $ECHO_C" >&6
23950 else
23951   ac_check_lib_save_LIBS=$LIBS
23952 LIBS="-lkrb -ldes $LIBS"
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959
23960 /* Override any GCC internal prototype to avoid an error.
23961    Use char because int might match the return type of a GCC
23962    builtin and then its argument prototype would still apply.  */
23963 #ifdef __cplusplus
23964 extern "C"
23965 #endif
23966 char krb_rd_req ();
23967 int
23968 main ()
23969 {
23970 return krb_rd_req ();
23971   ;
23972   return 0;
23973 }
23974 _ACEOF
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (ac_try="$ac_link"
23977 case "(($ac_try" in
23978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979   *) ac_try_echo=$ac_try;;
23980 esac
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982   (eval "$ac_link") 2>conftest.er1
23983   ac_status=$?
23984   grep -v '^ *+' conftest.er1 >conftest.err
23985   rm -f conftest.er1
23986   cat conftest.err >&5
23987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988   (exit $ac_status); } && {
23989          test -z "$ac_c_werror_flag" ||
23990          test ! -s conftest.err
23991        } && test -s conftest$ac_exeext &&
23992        $as_test_x conftest$ac_exeext; then
23993   ac_cv_lib_krb_krb_rd_req=yes
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998         ac_cv_lib_krb_krb_rd_req=no
23999 fi
24000
24001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24002       conftest$ac_exeext conftest.$ac_ext
24003 LIBS=$ac_check_lib_save_LIBS
24004 fi
24005 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24006 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24007 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24008   KRB4_LIBS="-lkrb -ldes"
24009 else
24010   { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24011 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24012    { (exit 1); exit 1; }; }
24013 fi
24014
24015 fi
24016
24017         cat >>confdefs.h <<\_ACEOF
24018 #define HAVE_KRB4 1
24019 _ACEOF
24020
24021 fi
24022
24023
24024
24025 # Check whether --with-krb5 was given.
24026 if test "${with_krb5+set}" = set; then
24027   withval=$with_krb5; krb5="$withval"
24028 else
24029   krb5=no
24030 fi
24031
24032 if test "$krb5" != no; then
24033    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24034 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24035 if test "${ac_cv_search_gethostbyname+set}" = set; then
24036   echo $ECHO_N "(cached) $ECHO_C" >&6
24037 else
24038   ac_func_search_save_LIBS=$LIBS
24039 cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h.  */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h.  */
24045
24046 /* Override any GCC internal prototype to avoid an error.
24047    Use char because int might match the return type of a GCC
24048    builtin and then its argument prototype would still apply.  */
24049 #ifdef __cplusplus
24050 extern "C"
24051 #endif
24052 char gethostbyname ();
24053 int
24054 main ()
24055 {
24056 return gethostbyname ();
24057   ;
24058   return 0;
24059 }
24060 _ACEOF
24061 for ac_lib in '' nsl; do
24062   if test -z "$ac_lib"; then
24063     ac_res="none required"
24064   else
24065     ac_res=-l$ac_lib
24066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24067   fi
24068   rm -f conftest.$ac_objext conftest$ac_exeext
24069 if { (ac_try="$ac_link"
24070 case "(($ac_try" in
24071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072   *) ac_try_echo=$ac_try;;
24073 esac
24074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075   (eval "$ac_link") 2>conftest.er1
24076   ac_status=$?
24077   grep -v '^ *+' conftest.er1 >conftest.err
24078   rm -f conftest.er1
24079   cat conftest.err >&5
24080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); } && {
24082          test -z "$ac_c_werror_flag" ||
24083          test ! -s conftest.err
24084        } && test -s conftest$ac_exeext &&
24085        $as_test_x conftest$ac_exeext; then
24086   ac_cv_search_gethostbyname=$ac_res
24087 else
24088   echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091
24092 fi
24093
24094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24095       conftest$ac_exeext
24096   if test "${ac_cv_search_gethostbyname+set}" = set; then
24097   break
24098 fi
24099 done
24100 if test "${ac_cv_search_gethostbyname+set}" = set; then
24101   :
24102 else
24103   ac_cv_search_gethostbyname=no
24104 fi
24105 rm conftest.$ac_ext
24106 LIBS=$ac_func_search_save_LIBS
24107 fi
24108 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24109 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24110 ac_res=$ac_cv_search_gethostbyname
24111 if test "$ac_res" != no; then
24112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24113
24114 fi
24115
24116    { echo "$as_me:$LINENO: checking for library containing socket" >&5
24117 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24118 if test "${ac_cv_search_socket+set}" = set; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 else
24121   ac_func_search_save_LIBS=$LIBS
24122 cat >conftest.$ac_ext <<_ACEOF
24123 /* confdefs.h.  */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h.  */
24128
24129 /* Override any GCC internal prototype to avoid an error.
24130    Use char because int might match the return type of a GCC
24131    builtin and then its argument prototype would still apply.  */
24132 #ifdef __cplusplus
24133 extern "C"
24134 #endif
24135 char socket ();
24136 int
24137 main ()
24138 {
24139 return socket ();
24140   ;
24141   return 0;
24142 }
24143 _ACEOF
24144 for ac_lib in '' socket; do
24145   if test -z "$ac_lib"; then
24146     ac_res="none required"
24147   else
24148     ac_res=-l$ac_lib
24149     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24150   fi
24151   rm -f conftest.$ac_objext conftest$ac_exeext
24152 if { (ac_try="$ac_link"
24153 case "(($ac_try" in
24154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155   *) ac_try_echo=$ac_try;;
24156 esac
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158   (eval "$ac_link") 2>conftest.er1
24159   ac_status=$?
24160   grep -v '^ *+' conftest.er1 >conftest.err
24161   rm -f conftest.er1
24162   cat conftest.err >&5
24163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164   (exit $ac_status); } && {
24165          test -z "$ac_c_werror_flag" ||
24166          test ! -s conftest.err
24167        } && test -s conftest$ac_exeext &&
24168        $as_test_x conftest$ac_exeext; then
24169   ac_cv_search_socket=$ac_res
24170 else
24171   echo "$as_me: failed program was:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24173
24174
24175 fi
24176
24177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24178       conftest$ac_exeext
24179   if test "${ac_cv_search_socket+set}" = set; then
24180   break
24181 fi
24182 done
24183 if test "${ac_cv_search_socket+set}" = set; then
24184   :
24185 else
24186   ac_cv_search_socket=no
24187 fi
24188 rm conftest.$ac_ext
24189 LIBS=$ac_func_search_save_LIBS
24190 fi
24191 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24192 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24193 ac_res=$ac_cv_search_socket
24194 if test "$ac_res" != no; then
24195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24196
24197 fi
24198
24199
24200 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24201 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24202 if test "${ac_cv_lib_gen_compile+set}" = set; then
24203   echo $ECHO_N "(cached) $ECHO_C" >&6
24204 else
24205   ac_check_lib_save_LIBS=$LIBS
24206 LIBS="-lgen  $LIBS"
24207 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h.  */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h.  */
24213
24214 /* Override any GCC internal prototype to avoid an error.
24215    Use char because int might match the return type of a GCC
24216    builtin and then its argument prototype would still apply.  */
24217 #ifdef __cplusplus
24218 extern "C"
24219 #endif
24220 char compile ();
24221 int
24222 main ()
24223 {
24224 return compile ();
24225   ;
24226   return 0;
24227 }
24228 _ACEOF
24229 rm -f conftest.$ac_objext conftest$ac_exeext
24230 if { (ac_try="$ac_link"
24231 case "(($ac_try" in
24232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24233   *) ac_try_echo=$ac_try;;
24234 esac
24235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24236   (eval "$ac_link") 2>conftest.er1
24237   ac_status=$?
24238   grep -v '^ *+' conftest.er1 >conftest.err
24239   rm -f conftest.er1
24240   cat conftest.err >&5
24241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242   (exit $ac_status); } && {
24243          test -z "$ac_c_werror_flag" ||
24244          test ! -s conftest.err
24245        } && test -s conftest$ac_exeext &&
24246        $as_test_x conftest$ac_exeext; then
24247   ac_cv_lib_gen_compile=yes
24248 else
24249   echo "$as_me: failed program was:" >&5
24250 sed 's/^/| /' conftest.$ac_ext >&5
24251
24252         ac_cv_lib_gen_compile=no
24253 fi
24254
24255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24256       conftest$ac_exeext conftest.$ac_ext
24257 LIBS=$ac_check_lib_save_LIBS
24258 fi
24259 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24260 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24261 if test $ac_cv_lib_gen_compile = yes; then
24262   cat >>confdefs.h <<_ACEOF
24263 #define HAVE_LIBGEN 1
24264 _ACEOF
24265
24266   LIBS="-lgen $LIBS"
24267
24268 fi
24269
24270    if test "$krb5" != yes; then
24271       PATH="$PATH:$krb5/bin"
24272    fi
24273    # Extract the first word of "krb5-config", so it can be a program name with args.
24274 set dummy krb5-config; ac_word=$2
24275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24277 if test "${ac_cv_prog_krb5config+set}" = set; then
24278   echo $ECHO_N "(cached) $ECHO_C" >&6
24279 else
24280   if test -n "$krb5config"; then
24281   ac_cv_prog_krb5config="$krb5config" # Let the user override the test.
24282 else
24283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24284 for as_dir in $PATH
24285 do
24286   IFS=$as_save_IFS
24287   test -z "$as_dir" && as_dir=.
24288   for ac_exec_ext in '' $ac_executable_extensions; do
24289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24290     ac_cv_prog_krb5config="yes"
24291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24292     break 2
24293   fi
24294 done
24295 done
24296 IFS=$as_save_IFS
24297
24298 fi
24299 fi
24300 krb5config=$ac_cv_prog_krb5config
24301 if test -n "$krb5config"; then
24302   { echo "$as_me:$LINENO: result: $krb5config" >&5
24303 echo "${ECHO_T}$krb5config" >&6; }
24304 else
24305   { echo "$as_me:$LINENO: result: no" >&5
24306 echo "${ECHO_T}no" >&6; }
24307 fi
24308
24309
24310    if test "$krb5config" == yes; then
24311       CPPFLAGS="$CPPFLAGS $(krb5-config --cflags krb5)"
24312       KRB5_LIBS="$(krb5-config --libs krb5)"
24313    else
24314       if test "$krb5" != yes; then
24315          CPPFLAGS="$CPPFLAGS -I$krb5/include"
24316          LDFLAGS="$LDFLAGS -L$krb5/lib"
24317       fi
24318       { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24319 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24320 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24321   echo $ECHO_N "(cached) $ECHO_C" >&6
24322 else
24323   ac_check_lib_save_LIBS=$LIBS
24324 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24325 cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h.  */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h.  */
24331
24332 /* Override any GCC internal prototype to avoid an error.
24333    Use char because int might match the return type of a GCC
24334    builtin and then its argument prototype would still apply.  */
24335 #ifdef __cplusplus
24336 extern "C"
24337 #endif
24338 char krb5_init_context ();
24339 int
24340 main ()
24341 {
24342 return krb5_init_context ();
24343   ;
24344   return 0;
24345 }
24346 _ACEOF
24347 rm -f conftest.$ac_objext conftest$ac_exeext
24348 if { (ac_try="$ac_link"
24349 case "(($ac_try" in
24350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351   *) ac_try_echo=$ac_try;;
24352 esac
24353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24354   (eval "$ac_link") 2>conftest.er1
24355   ac_status=$?
24356   grep -v '^ *+' conftest.er1 >conftest.err
24357   rm -f conftest.er1
24358   cat conftest.err >&5
24359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360   (exit $ac_status); } && {
24361          test -z "$ac_c_werror_flag" ||
24362          test ! -s conftest.err
24363        } && test -s conftest$ac_exeext &&
24364        $as_test_x conftest$ac_exeext; then
24365   ac_cv_lib_krb5_krb5_init_context=yes
24366 else
24367   echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24369
24370         ac_cv_lib_krb5_krb5_init_context=no
24371 fi
24372
24373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24374       conftest$ac_exeext conftest.$ac_ext
24375 LIBS=$ac_check_lib_save_LIBS
24376 fi
24377 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24378 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24379 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24380   :
24381 else
24382   { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24383 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24384    { (exit 1); exit 1; }; }
24385 fi
24386
24387       KRB5_LIBS="-lkrb5 -l5crypto -lcom_err"
24388    fi
24389    cat >>confdefs.h <<\_ACEOF
24390 #define HAVE_KRB5 1
24391 _ACEOF
24392
24393 fi
24394
24395
24396
24397 # Check whether --with-krb5 was given.
24398 if test "${with_krb5+set}" = set; then
24399   withval=$with_krb5; krb5="$withval"
24400 else
24401   krb5=no
24402 fi
24403
24404 if test "$krb5" != no; then
24405         { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24406 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24407 if test "${ac_cv_search_gethostbyname+set}" = set; then
24408   echo $ECHO_N "(cached) $ECHO_C" >&6
24409 else
24410   ac_func_search_save_LIBS=$LIBS
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h.  */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h.  */
24417
24418 /* Override any GCC internal prototype to avoid an error.
24419    Use char because int might match the return type of a GCC
24420    builtin and then its argument prototype would still apply.  */
24421 #ifdef __cplusplus
24422 extern "C"
24423 #endif
24424 char gethostbyname ();
24425 int
24426 main ()
24427 {
24428 return gethostbyname ();
24429   ;
24430   return 0;
24431 }
24432 _ACEOF
24433 for ac_lib in '' nsl; do
24434   if test -z "$ac_lib"; then
24435     ac_res="none required"
24436   else
24437     ac_res=-l$ac_lib
24438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24439   fi
24440   rm -f conftest.$ac_objext conftest$ac_exeext
24441 if { (ac_try="$ac_link"
24442 case "(($ac_try" in
24443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444   *) ac_try_echo=$ac_try;;
24445 esac
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447   (eval "$ac_link") 2>conftest.er1
24448   ac_status=$?
24449   grep -v '^ *+' conftest.er1 >conftest.err
24450   rm -f conftest.er1
24451   cat conftest.err >&5
24452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453   (exit $ac_status); } && {
24454          test -z "$ac_c_werror_flag" ||
24455          test ! -s conftest.err
24456        } && test -s conftest$ac_exeext &&
24457        $as_test_x conftest$ac_exeext; then
24458   ac_cv_search_gethostbyname=$ac_res
24459 else
24460   echo "$as_me: failed program was:" >&5
24461 sed 's/^/| /' conftest.$ac_ext >&5
24462
24463
24464 fi
24465
24466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24467       conftest$ac_exeext
24468   if test "${ac_cv_search_gethostbyname+set}" = set; then
24469   break
24470 fi
24471 done
24472 if test "${ac_cv_search_gethostbyname+set}" = set; then
24473   :
24474 else
24475   ac_cv_search_gethostbyname=no
24476 fi
24477 rm conftest.$ac_ext
24478 LIBS=$ac_func_search_save_LIBS
24479 fi
24480 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24481 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24482 ac_res=$ac_cv_search_gethostbyname
24483 if test "$ac_res" != no; then
24484   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24485
24486 fi
24487
24488 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24489 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24490 if test "${ac_cv_search_socket+set}" = set; then
24491   echo $ECHO_N "(cached) $ECHO_C" >&6
24492 else
24493   ac_func_search_save_LIBS=$LIBS
24494 cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500
24501 /* Override any GCC internal prototype to avoid an error.
24502    Use char because int might match the return type of a GCC
24503    builtin and then its argument prototype would still apply.  */
24504 #ifdef __cplusplus
24505 extern "C"
24506 #endif
24507 char socket ();
24508 int
24509 main ()
24510 {
24511 return socket ();
24512   ;
24513   return 0;
24514 }
24515 _ACEOF
24516 for ac_lib in '' socket; do
24517   if test -z "$ac_lib"; then
24518     ac_res="none required"
24519   else
24520     ac_res=-l$ac_lib
24521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24522   fi
24523   rm -f conftest.$ac_objext conftest$ac_exeext
24524 if { (ac_try="$ac_link"
24525 case "(($ac_try" in
24526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527   *) ac_try_echo=$ac_try;;
24528 esac
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530   (eval "$ac_link") 2>conftest.er1
24531   ac_status=$?
24532   grep -v '^ *+' conftest.er1 >conftest.err
24533   rm -f conftest.er1
24534   cat conftest.err >&5
24535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536   (exit $ac_status); } && {
24537          test -z "$ac_c_werror_flag" ||
24538          test ! -s conftest.err
24539        } && test -s conftest$ac_exeext &&
24540        $as_test_x conftest$ac_exeext; then
24541   ac_cv_search_socket=$ac_res
24542 else
24543   echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24545
24546
24547 fi
24548
24549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24550       conftest$ac_exeext
24551   if test "${ac_cv_search_socket+set}" = set; then
24552   break
24553 fi
24554 done
24555 if test "${ac_cv_search_socket+set}" = set; then
24556   :
24557 else
24558   ac_cv_search_socket=no
24559 fi
24560 rm conftest.$ac_ext
24561 LIBS=$ac_func_search_save_LIBS
24562 fi
24563 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24564 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24565 ac_res=$ac_cv_search_socket
24566 if test "$ac_res" != no; then
24567   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24568
24569 fi
24570
24571
24572 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24573 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24574 if test "${ac_cv_lib_gen_compile+set}" = set; then
24575   echo $ECHO_N "(cached) $ECHO_C" >&6
24576 else
24577   ac_check_lib_save_LIBS=$LIBS
24578 LIBS="-lgen  $LIBS"
24579 cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h.  */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h.  */
24585
24586 /* Override any GCC internal prototype to avoid an error.
24587    Use char because int might match the return type of a GCC
24588    builtin and then its argument prototype would still apply.  */
24589 #ifdef __cplusplus
24590 extern "C"
24591 #endif
24592 char compile ();
24593 int
24594 main ()
24595 {
24596 return compile ();
24597   ;
24598   return 0;
24599 }
24600 _ACEOF
24601 rm -f conftest.$ac_objext conftest$ac_exeext
24602 if { (ac_try="$ac_link"
24603 case "(($ac_try" in
24604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605   *) ac_try_echo=$ac_try;;
24606 esac
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608   (eval "$ac_link") 2>conftest.er1
24609   ac_status=$?
24610   grep -v '^ *+' conftest.er1 >conftest.err
24611   rm -f conftest.er1
24612   cat conftest.err >&5
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); } && {
24615          test -z "$ac_c_werror_flag" ||
24616          test ! -s conftest.err
24617        } && test -s conftest$ac_exeext &&
24618        $as_test_x conftest$ac_exeext; then
24619   ac_cv_lib_gen_compile=yes
24620 else
24621   echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24623
24624         ac_cv_lib_gen_compile=no
24625 fi
24626
24627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24628       conftest$ac_exeext conftest.$ac_ext
24629 LIBS=$ac_check_lib_save_LIBS
24630 fi
24631 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24632 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24633 if test $ac_cv_lib_gen_compile = yes; then
24634   cat >>confdefs.h <<_ACEOF
24635 #define HAVE_LIBGEN 1
24636 _ACEOF
24637
24638   LIBS="-lgen $LIBS"
24639
24640 fi
24641
24642 if test "$krb5" != yes; then
24643         CPPFLAGS="$CPPFLAGS -I$krb5/include"
24644         LDFLAGS="$LDFLAGS -L$krb5/lib"
24645 fi
24646 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24647 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24648 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24649   echo $ECHO_N "(cached) $ECHO_C" >&6
24650 else
24651   ac_check_lib_save_LIBS=$LIBS
24652 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24653 cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h.  */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h.  */
24659
24660 /* Override any GCC internal prototype to avoid an error.
24661    Use char because int might match the return type of a GCC
24662    builtin and then its argument prototype would still apply.  */
24663 #ifdef __cplusplus
24664 extern "C"
24665 #endif
24666 char krb5_init_context ();
24667 int
24668 main ()
24669 {
24670 return krb5_init_context ();
24671   ;
24672   return 0;
24673 }
24674 _ACEOF
24675 rm -f conftest.$ac_objext conftest$ac_exeext
24676 if { (ac_try="$ac_link"
24677 case "(($ac_try" in
24678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679   *) ac_try_echo=$ac_try;;
24680 esac
24681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24682   (eval "$ac_link") 2>conftest.er1
24683   ac_status=$?
24684   grep -v '^ *+' conftest.er1 >conftest.err
24685   rm -f conftest.er1
24686   cat conftest.err >&5
24687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688   (exit $ac_status); } && {
24689          test -z "$ac_c_werror_flag" ||
24690          test ! -s conftest.err
24691        } && test -s conftest$ac_exeext &&
24692        $as_test_x conftest$ac_exeext; then
24693   ac_cv_lib_krb5_krb5_init_context=yes
24694 else
24695   echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698         ac_cv_lib_krb5_krb5_init_context=no
24699 fi
24700
24701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24702       conftest$ac_exeext conftest.$ac_ext
24703 LIBS=$ac_check_lib_save_LIBS
24704 fi
24705 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24706 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24707 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24708   :
24709 else
24710   { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24711 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24712    { (exit 1); exit 1; }; }
24713 fi
24714
24715         KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24716         cat >>confdefs.h <<\_ACEOF
24717 #define HAVE_KRB5 1
24718 _ACEOF
24719
24720 fi
24721
24722
24723 # Check whether --with-hesiod was given.
24724 if test "${with_hesiod+set}" = set; then
24725   withval=$with_hesiod; hesiod="$withval"
24726 else
24727   hesiod=no
24728 fi
24729
24730 if test "$hesiod" != no; then
24731         { echo "$as_me:$LINENO: checking for res_send" >&5
24732 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24733 if test "${ac_cv_func_res_send+set}" = set; then
24734   echo $ECHO_N "(cached) $ECHO_C" >&6
24735 else
24736   cat >conftest.$ac_ext <<_ACEOF
24737 /* confdefs.h.  */
24738 _ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h.  */
24742 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24744 #define res_send innocuous_res_send
24745
24746 /* System header to define __stub macros and hopefully few prototypes,
24747     which can conflict with char res_send (); below.
24748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24749     <limits.h> exists even on freestanding compilers.  */
24750
24751 #ifdef __STDC__
24752 # include <limits.h>
24753 #else
24754 # include <assert.h>
24755 #endif
24756
24757 #undef res_send
24758
24759 /* Override any GCC internal prototype to avoid an error.
24760    Use char because int might match the return type of a GCC
24761    builtin and then its argument prototype would still apply.  */
24762 #ifdef __cplusplus
24763 extern "C"
24764 #endif
24765 char res_send ();
24766 /* The GNU C library defines this for functions which it implements
24767     to always fail with ENOSYS.  Some functions are actually named
24768     something starting with __ and the normal name is an alias.  */
24769 #if defined __stub_res_send || defined __stub___res_send
24770 choke me
24771 #endif
24772
24773 int
24774 main ()
24775 {
24776 return res_send ();
24777   ;
24778   return 0;
24779 }
24780 _ACEOF
24781 rm -f conftest.$ac_objext conftest$ac_exeext
24782 if { (ac_try="$ac_link"
24783 case "(($ac_try" in
24784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785   *) ac_try_echo=$ac_try;;
24786 esac
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788   (eval "$ac_link") 2>conftest.er1
24789   ac_status=$?
24790   grep -v '^ *+' conftest.er1 >conftest.err
24791   rm -f conftest.er1
24792   cat conftest.err >&5
24793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794   (exit $ac_status); } && {
24795          test -z "$ac_c_werror_flag" ||
24796          test ! -s conftest.err
24797        } && test -s conftest$ac_exeext &&
24798        $as_test_x conftest$ac_exeext; then
24799   ac_cv_func_res_send=yes
24800 else
24801   echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24803
24804         ac_cv_func_res_send=no
24805 fi
24806
24807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24808       conftest$ac_exeext conftest.$ac_ext
24809 fi
24810 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24811 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24812 if test $ac_cv_func_res_send = yes; then
24813   :
24814 else
24815
24816 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24817 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24818 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24819   echo $ECHO_N "(cached) $ECHO_C" >&6
24820 else
24821   ac_check_lib_save_LIBS=$LIBS
24822 LIBS="-lresolv  $LIBS"
24823 cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829
24830 /* Override any GCC internal prototype to avoid an error.
24831    Use char because int might match the return type of a GCC
24832    builtin and then its argument prototype would still apply.  */
24833 #ifdef __cplusplus
24834 extern "C"
24835 #endif
24836 char res_send ();
24837 int
24838 main ()
24839 {
24840 return res_send ();
24841   ;
24842   return 0;
24843 }
24844 _ACEOF
24845 rm -f conftest.$ac_objext conftest$ac_exeext
24846 if { (ac_try="$ac_link"
24847 case "(($ac_try" in
24848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849   *) ac_try_echo=$ac_try;;
24850 esac
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852   (eval "$ac_link") 2>conftest.er1
24853   ac_status=$?
24854   grep -v '^ *+' conftest.er1 >conftest.err
24855   rm -f conftest.er1
24856   cat conftest.err >&5
24857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); } && {
24859          test -z "$ac_c_werror_flag" ||
24860          test ! -s conftest.err
24861        } && test -s conftest$ac_exeext &&
24862        $as_test_x conftest$ac_exeext; then
24863   ac_cv_lib_resolv_res_send=yes
24864 else
24865   echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868         ac_cv_lib_resolv_res_send=no
24869 fi
24870
24871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24872       conftest$ac_exeext conftest.$ac_ext
24873 LIBS=$ac_check_lib_save_LIBS
24874 fi
24875 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24876 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24877 if test $ac_cv_lib_resolv_res_send = yes; then
24878   cat >>confdefs.h <<_ACEOF
24879 #define HAVE_LIBRESOLV 1
24880 _ACEOF
24881
24882   LIBS="-lresolv $LIBS"
24883
24884 fi
24885
24886 fi
24887
24888 if test "$hesiod" != yes; then
24889         CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24890         LDFLAGS="$LDFLAGS -L$hesiod/lib"
24891 fi
24892 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24893 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24894 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24895   echo $ECHO_N "(cached) $ECHO_C" >&6
24896 else
24897   ac_check_lib_save_LIBS=$LIBS
24898 LIBS="-lhesiod $LIBS $LIBS"
24899 cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905
24906 /* Override any GCC internal prototype to avoid an error.
24907    Use char because int might match the return type of a GCC
24908    builtin and then its argument prototype would still apply.  */
24909 #ifdef __cplusplus
24910 extern "C"
24911 #endif
24912 char hes_resolve ();
24913 int
24914 main ()
24915 {
24916 return hes_resolve ();
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (ac_try="$ac_link"
24923 case "(($ac_try" in
24924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925   *) ac_try_echo=$ac_try;;
24926 esac
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928   (eval "$ac_link") 2>conftest.er1
24929   ac_status=$?
24930   grep -v '^ *+' conftest.er1 >conftest.err
24931   rm -f conftest.er1
24932   cat conftest.err >&5
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); } && {
24935          test -z "$ac_c_werror_flag" ||
24936          test ! -s conftest.err
24937        } && test -s conftest$ac_exeext &&
24938        $as_test_x conftest$ac_exeext; then
24939   ac_cv_lib_hesiod_hes_resolve=yes
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944         ac_cv_lib_hesiod_hes_resolve=no
24945 fi
24946
24947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24948       conftest$ac_exeext conftest.$ac_ext
24949 LIBS=$ac_check_lib_save_LIBS
24950 fi
24951 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24952 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24953 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24954   :
24955 else
24956   { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24957 echo "$as_me: error: Hesiod library not found" >&2;}
24958    { (exit 1); exit 1; }; }
24959 fi
24960
24961         HESIOD_LIBS="-lhesiod"
24962         cat >>confdefs.h <<\_ACEOF
24963 #define HAVE_HESIOD 1
24964 _ACEOF
24965
24966 fi
24967
24968
24969 # Check whether --with-regex was given.
24970 if test "${with_regex+set}" = set; then
24971   withval=$with_regex; regex="$withval"
24972 else
24973   regex=no
24974 fi
24975
24976 if test "$regex" != no; then
24977         if test "$regex" != yes; then
24978                 CPPFLAGS="$CPPFLAGS -I$regex/include"
24979                 LDFLAGS="$LDFLAGS -L$regex/lib"
24980         fi
24981         { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24982 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24983 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24984   echo $ECHO_N "(cached) $ECHO_C" >&6
24985 else
24986   ac_check_lib_save_LIBS=$LIBS
24987 LIBS="-lregex  $LIBS"
24988 cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994
24995 /* Override any GCC internal prototype to avoid an error.
24996    Use char because int might match the return type of a GCC
24997    builtin and then its argument prototype would still apply.  */
24998 #ifdef __cplusplus
24999 extern "C"
25000 #endif
25001 char regcomp ();
25002 int
25003 main ()
25004 {
25005 return regcomp ();
25006   ;
25007   return 0;
25008 }
25009 _ACEOF
25010 rm -f conftest.$ac_objext conftest$ac_exeext
25011 if { (ac_try="$ac_link"
25012 case "(($ac_try" in
25013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014   *) ac_try_echo=$ac_try;;
25015 esac
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017   (eval "$ac_link") 2>conftest.er1
25018   ac_status=$?
25019   grep -v '^ *+' conftest.er1 >conftest.err
25020   rm -f conftest.er1
25021   cat conftest.err >&5
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); } && {
25024          test -z "$ac_c_werror_flag" ||
25025          test ! -s conftest.err
25026        } && test -s conftest$ac_exeext &&
25027        $as_test_x conftest$ac_exeext; then
25028   ac_cv_lib_regex_regcomp=yes
25029 else
25030   echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033         ac_cv_lib_regex_regcomp=no
25034 fi
25035
25036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25037       conftest$ac_exeext conftest.$ac_ext
25038 LIBS=$ac_check_lib_save_LIBS
25039 fi
25040 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
25041 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
25042 if test $ac_cv_lib_regex_regcomp = yes; then
25043   REGEX_LIBS=-lregex
25044 else
25045   { { echo "$as_me:$LINENO: error: regex library not found" >&5
25046 echo "$as_me: error: regex library not found" >&2;}
25047    { (exit 1); exit 1; }; }
25048 fi
25049
25050 else
25051         { echo "$as_me:$LINENO: checking for regcomp" >&5
25052 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
25053 if test "${ac_cv_func_regcomp+set}" = set; then
25054   echo $ECHO_N "(cached) $ECHO_C" >&6
25055 else
25056   cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
25063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25064 #define regcomp innocuous_regcomp
25065
25066 /* System header to define __stub macros and hopefully few prototypes,
25067     which can conflict with char regcomp (); below.
25068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25069     <limits.h> exists even on freestanding compilers.  */
25070
25071 #ifdef __STDC__
25072 # include <limits.h>
25073 #else
25074 # include <assert.h>
25075 #endif
25076
25077 #undef regcomp
25078
25079 /* Override any GCC internal prototype to avoid an error.
25080    Use char because int might match the return type of a GCC
25081    builtin and then its argument prototype would still apply.  */
25082 #ifdef __cplusplus
25083 extern "C"
25084 #endif
25085 char regcomp ();
25086 /* The GNU C library defines this for functions which it implements
25087     to always fail with ENOSYS.  Some functions are actually named
25088     something starting with __ and the normal name is an alias.  */
25089 #if defined __stub_regcomp || defined __stub___regcomp
25090 choke me
25091 #endif
25092
25093 int
25094 main ()
25095 {
25096 return regcomp ();
25097   ;
25098   return 0;
25099 }
25100 _ACEOF
25101 rm -f conftest.$ac_objext conftest$ac_exeext
25102 if { (ac_try="$ac_link"
25103 case "(($ac_try" in
25104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105   *) ac_try_echo=$ac_try;;
25106 esac
25107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108   (eval "$ac_link") 2>conftest.er1
25109   ac_status=$?
25110   grep -v '^ *+' conftest.er1 >conftest.err
25111   rm -f conftest.er1
25112   cat conftest.err >&5
25113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114   (exit $ac_status); } && {
25115          test -z "$ac_c_werror_flag" ||
25116          test ! -s conftest.err
25117        } && test -s conftest$ac_exeext &&
25118        $as_test_x conftest$ac_exeext; then
25119   ac_cv_func_regcomp=yes
25120 else
25121   echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25123
25124         ac_cv_func_regcomp=no
25125 fi
25126
25127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25128       conftest$ac_exeext conftest.$ac_ext
25129 fi
25130 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
25131 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
25132 if test $ac_cv_func_regcomp = yes; then
25133   :
25134 else
25135   { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
25136 echo "$as_me: error: can't find POSIX regexp support" >&2;}
25137    { (exit 1); exit 1; }; }
25138 fi
25139
25140 fi
25141
25142
25143 # Check whether --with-com_err was given.
25144 if test "${with_com_err+set}" = set; then
25145   withval=$with_com_err; com_err="$withval"
25146 else
25147   com_err=yes
25148 fi
25149
25150 if test "$com_err" != no; then
25151         if test "$com_err" != yes; then
25152                 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25153                 LDFLAGS="$LDFLAGS -L$com_err/lib"
25154         fi
25155         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25156 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25157 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25158   echo $ECHO_N "(cached) $ECHO_C" >&6
25159 else
25160   ac_check_lib_save_LIBS=$LIBS
25161 LIBS="-lcom_err  $LIBS"
25162 cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h.  */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h.  */
25168
25169 /* Override any GCC internal prototype to avoid an error.
25170    Use char because int might match the return type of a GCC
25171    builtin and then its argument prototype would still apply.  */
25172 #ifdef __cplusplus
25173 extern "C"
25174 #endif
25175 char com_err ();
25176 int
25177 main ()
25178 {
25179 return com_err ();
25180   ;
25181   return 0;
25182 }
25183 _ACEOF
25184 rm -f conftest.$ac_objext conftest$ac_exeext
25185 if { (ac_try="$ac_link"
25186 case "(($ac_try" in
25187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188   *) ac_try_echo=$ac_try;;
25189 esac
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191   (eval "$ac_link") 2>conftest.er1
25192   ac_status=$?
25193   grep -v '^ *+' conftest.er1 >conftest.err
25194   rm -f conftest.er1
25195   cat conftest.err >&5
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); } && {
25198          test -z "$ac_c_werror_flag" ||
25199          test ! -s conftest.err
25200        } && test -s conftest$ac_exeext &&
25201        $as_test_x conftest$ac_exeext; then
25202   ac_cv_lib_com_err_com_err=yes
25203 else
25204   echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25206
25207         ac_cv_lib_com_err_com_err=no
25208 fi
25209
25210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25211       conftest$ac_exeext conftest.$ac_ext
25212 LIBS=$ac_check_lib_save_LIBS
25213 fi
25214 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25215 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25216 if test $ac_cv_lib_com_err_com_err = yes; then
25217   :
25218 else
25219   { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25220 echo "$as_me: error: com_err library not found" >&2;}
25221    { (exit 1); exit 1; }; }
25222 fi
25223
25224 else
25225         { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25226 echo "$as_me: error: This package requires com_err." >&2;}
25227    { (exit 1); exit 1; }; }
25228 fi
25229
25230 # Check whether --with-ss was given.
25231 if test "${with_ss+set}" = set; then
25232   withval=$with_ss; ss="$withval"
25233 else
25234   ss=yes
25235 fi
25236
25237 if test "$ss" != no; then
25238         if test "$ss" != yes; then
25239                 CPPFLAGS="$CPPFLAGS -I$ss/include"
25240                 LDFLAGS="$LDFLAGS -L$ss/lib"
25241         fi
25242
25243 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
25244 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
25245 if test "${ac_cv_lib_curses_initscr+set}" = set; then
25246   echo $ECHO_N "(cached) $ECHO_C" >&6
25247 else
25248   ac_check_lib_save_LIBS=$LIBS
25249 LIBS="-lcurses  $LIBS"
25250 cat >conftest.$ac_ext <<_ACEOF
25251 /* confdefs.h.  */
25252 _ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h.  */
25256
25257 /* Override any GCC internal prototype to avoid an error.
25258    Use char because int might match the return type of a GCC
25259    builtin and then its argument prototype would still apply.  */
25260 #ifdef __cplusplus
25261 extern "C"
25262 #endif
25263 char initscr ();
25264 int
25265 main ()
25266 {
25267 return initscr ();
25268   ;
25269   return 0;
25270 }
25271 _ACEOF
25272 rm -f conftest.$ac_objext conftest$ac_exeext
25273 if { (ac_try="$ac_link"
25274 case "(($ac_try" in
25275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276   *) ac_try_echo=$ac_try;;
25277 esac
25278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25279   (eval "$ac_link") 2>conftest.er1
25280   ac_status=$?
25281   grep -v '^ *+' conftest.er1 >conftest.err
25282   rm -f conftest.er1
25283   cat conftest.err >&5
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); } && {
25286          test -z "$ac_c_werror_flag" ||
25287          test ! -s conftest.err
25288        } && test -s conftest$ac_exeext &&
25289        $as_test_x conftest$ac_exeext; then
25290   ac_cv_lib_curses_initscr=yes
25291 else
25292   echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25294
25295         ac_cv_lib_curses_initscr=no
25296 fi
25297
25298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25299       conftest$ac_exeext conftest.$ac_ext
25300 LIBS=$ac_check_lib_save_LIBS
25301 fi
25302 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
25303 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
25304 if test $ac_cv_lib_curses_initscr = yes; then
25305   cat >>confdefs.h <<_ACEOF
25306 #define HAVE_LIBCURSES 1
25307 _ACEOF
25308
25309   LIBS="-lcurses $LIBS"
25310
25311 fi
25312
25313
25314 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
25315 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
25316 if test "${ac_cv_lib_readline_readline+set}" = set; then
25317   echo $ECHO_N "(cached) $ECHO_C" >&6
25318 else
25319   ac_check_lib_save_LIBS=$LIBS
25320 LIBS="-lreadline  $LIBS"
25321 cat >conftest.$ac_ext <<_ACEOF
25322 /* confdefs.h.  */
25323 _ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h.  */
25327
25328 /* Override any GCC internal prototype to avoid an error.
25329    Use char because int might match the return type of a GCC
25330    builtin and then its argument prototype would still apply.  */
25331 #ifdef __cplusplus
25332 extern "C"
25333 #endif
25334 char readline ();
25335 int
25336 main ()
25337 {
25338 return readline ();
25339   ;
25340   return 0;
25341 }
25342 _ACEOF
25343 rm -f conftest.$ac_objext conftest$ac_exeext
25344 if { (ac_try="$ac_link"
25345 case "(($ac_try" in
25346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347   *) ac_try_echo=$ac_try;;
25348 esac
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350   (eval "$ac_link") 2>conftest.er1
25351   ac_status=$?
25352   grep -v '^ *+' conftest.er1 >conftest.err
25353   rm -f conftest.er1
25354   cat conftest.err >&5
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); } && {
25357          test -z "$ac_c_werror_flag" ||
25358          test ! -s conftest.err
25359        } && test -s conftest$ac_exeext &&
25360        $as_test_x conftest$ac_exeext; then
25361   ac_cv_lib_readline_readline=yes
25362 else
25363   echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25365
25366         ac_cv_lib_readline_readline=no
25367 fi
25368
25369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25370       conftest$ac_exeext conftest.$ac_ext
25371 LIBS=$ac_check_lib_save_LIBS
25372 fi
25373 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
25374 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
25375 if test $ac_cv_lib_readline_readline = yes; then
25376   cat >>confdefs.h <<_ACEOF
25377 #define HAVE_LIBREADLINE 1
25378 _ACEOF
25379
25380   LIBS="-lreadline $LIBS"
25381
25382 fi
25383
25384         { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25385 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25386 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25387   echo $ECHO_N "(cached) $ECHO_C" >&6
25388 else
25389   ac_check_lib_save_LIBS=$LIBS
25390 LIBS="-lss -lcom_err $LIBS"
25391 cat >conftest.$ac_ext <<_ACEOF
25392 /* confdefs.h.  */
25393 _ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h.  */
25397
25398 /* Override any GCC internal prototype to avoid an error.
25399    Use char because int might match the return type of a GCC
25400    builtin and then its argument prototype would still apply.  */
25401 #ifdef __cplusplus
25402 extern "C"
25403 #endif
25404 char ss_perror ();
25405 int
25406 main ()
25407 {
25408 return ss_perror ();
25409   ;
25410   return 0;
25411 }
25412 _ACEOF
25413 rm -f conftest.$ac_objext conftest$ac_exeext
25414 if { (ac_try="$ac_link"
25415 case "(($ac_try" in
25416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417   *) ac_try_echo=$ac_try;;
25418 esac
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420   (eval "$ac_link") 2>conftest.er1
25421   ac_status=$?
25422   grep -v '^ *+' conftest.er1 >conftest.err
25423   rm -f conftest.er1
25424   cat conftest.err >&5
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); } && {
25427          test -z "$ac_c_werror_flag" ||
25428          test ! -s conftest.err
25429        } && test -s conftest$ac_exeext &&
25430        $as_test_x conftest$ac_exeext; then
25431   ac_cv_lib_ss_ss_perror=yes
25432 else
25433   echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25435
25436         ac_cv_lib_ss_ss_perror=no
25437 fi
25438
25439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25440       conftest$ac_exeext conftest.$ac_ext
25441 LIBS=$ac_check_lib_save_LIBS
25442 fi
25443 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25444 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25445 if test $ac_cv_lib_ss_ss_perror = yes; then
25446   :
25447 else
25448   { { echo "$as_me:$LINENO: error: ss library not found" >&5
25449 echo "$as_me: error: ss library not found" >&2;}
25450    { (exit 1); exit 1; }; }
25451 fi
25452
25453 else
25454         { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25455 echo "$as_me: error: This package requires ss." >&2;}
25456    { (exit 1); exit 1; }; }
25457 fi
25458 LIBS="$KRB5_LIBS $KRB4_LIBS $HESIOD_LIBS $LIBS"
25459
25460 { echo "$as_me:$LINENO: checking for res_send" >&5
25461 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
25462 if test "${ac_cv_func_res_send+set}" = set; then
25463   echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465   cat >conftest.$ac_ext <<_ACEOF
25466 /* confdefs.h.  */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h.  */
25471 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
25472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25473 #define res_send innocuous_res_send
25474
25475 /* System header to define __stub macros and hopefully few prototypes,
25476     which can conflict with char res_send (); below.
25477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25478     <limits.h> exists even on freestanding compilers.  */
25479
25480 #ifdef __STDC__
25481 # include <limits.h>
25482 #else
25483 # include <assert.h>
25484 #endif
25485
25486 #undef res_send
25487
25488 /* Override any GCC internal prototype to avoid an error.
25489    Use char because int might match the return type of a GCC
25490    builtin and then its argument prototype would still apply.  */
25491 #ifdef __cplusplus
25492 extern "C"
25493 #endif
25494 char res_send ();
25495 /* The GNU C library defines this for functions which it implements
25496     to always fail with ENOSYS.  Some functions are actually named
25497     something starting with __ and the normal name is an alias.  */
25498 #if defined __stub_res_send || defined __stub___res_send
25499 choke me
25500 #endif
25501
25502 int
25503 main ()
25504 {
25505 return res_send ();
25506   ;
25507   return 0;
25508 }
25509 _ACEOF
25510 rm -f conftest.$ac_objext conftest$ac_exeext
25511 if { (ac_try="$ac_link"
25512 case "(($ac_try" in
25513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514   *) ac_try_echo=$ac_try;;
25515 esac
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517   (eval "$ac_link") 2>conftest.er1
25518   ac_status=$?
25519   grep -v '^ *+' conftest.er1 >conftest.err
25520   rm -f conftest.er1
25521   cat conftest.err >&5
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); } && {
25524          test -z "$ac_c_werror_flag" ||
25525          test ! -s conftest.err
25526        } && test -s conftest$ac_exeext &&
25527        $as_test_x conftest$ac_exeext; then
25528   ac_cv_func_res_send=yes
25529 else
25530   echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25532
25533         ac_cv_func_res_send=no
25534 fi
25535
25536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25537       conftest$ac_exeext conftest.$ac_ext
25538 fi
25539 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
25540 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
25541 if test $ac_cv_func_res_send = yes; then
25542   :
25543 else
25544
25545 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
25546 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
25547 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
25548   echo $ECHO_N "(cached) $ECHO_C" >&6
25549 else
25550   ac_check_lib_save_LIBS=$LIBS
25551 LIBS="-lresolv  $LIBS"
25552 cat >conftest.$ac_ext <<_ACEOF
25553 /* confdefs.h.  */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h.  */
25558
25559 /* Override any GCC internal prototype to avoid an error.
25560    Use char because int might match the return type of a GCC
25561    builtin and then its argument prototype would still apply.  */
25562 #ifdef __cplusplus
25563 extern "C"
25564 #endif
25565 char res_send ();
25566 int
25567 main ()
25568 {
25569 return res_send ();
25570   ;
25571   return 0;
25572 }
25573 _ACEOF
25574 rm -f conftest.$ac_objext conftest$ac_exeext
25575 if { (ac_try="$ac_link"
25576 case "(($ac_try" in
25577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578   *) ac_try_echo=$ac_try;;
25579 esac
25580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25581   (eval "$ac_link") 2>conftest.er1
25582   ac_status=$?
25583   grep -v '^ *+' conftest.er1 >conftest.err
25584   rm -f conftest.er1
25585   cat conftest.err >&5
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); } && {
25588          test -z "$ac_c_werror_flag" ||
25589          test ! -s conftest.err
25590        } && test -s conftest$ac_exeext &&
25591        $as_test_x conftest$ac_exeext; then
25592   ac_cv_lib_resolv_res_send=yes
25593 else
25594   echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25596
25597         ac_cv_lib_resolv_res_send=no
25598 fi
25599
25600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25601       conftest$ac_exeext conftest.$ac_ext
25602 LIBS=$ac_check_lib_save_LIBS
25603 fi
25604 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
25605 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
25606 if test $ac_cv_lib_resolv_res_send = yes; then
25607   cat >>confdefs.h <<_ACEOF
25608 #define HAVE_LIBRESOLV 1
25609 _ACEOF
25610
25611   LIBS="-lresolv $LIBS"
25612
25613 fi
25614
25615 fi
25616
25617 { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
25618 echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
25619 if test "${ac_cv_lib_cares_ares_init+set}" = set; then
25620   echo $ECHO_N "(cached) $ECHO_C" >&6
25621 else
25622   ac_check_lib_save_LIBS=$LIBS
25623 LIBS="-lcares  $LIBS"
25624 cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h.  */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h.  */
25630
25631 /* Override any GCC internal prototype to avoid an error.
25632    Use char because int might match the return type of a GCC
25633    builtin and then its argument prototype would still apply.  */
25634 #ifdef __cplusplus
25635 extern "C"
25636 #endif
25637 char ares_init ();
25638 int
25639 main ()
25640 {
25641 return ares_init ();
25642   ;
25643   return 0;
25644 }
25645 _ACEOF
25646 rm -f conftest.$ac_objext conftest$ac_exeext
25647 if { (ac_try="$ac_link"
25648 case "(($ac_try" in
25649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25650   *) ac_try_echo=$ac_try;;
25651 esac
25652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25653   (eval "$ac_link") 2>conftest.er1
25654   ac_status=$?
25655   grep -v '^ *+' conftest.er1 >conftest.err
25656   rm -f conftest.er1
25657   cat conftest.err >&5
25658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); } && {
25660          test -z "$ac_c_werror_flag" ||
25661          test ! -s conftest.err
25662        } && test -s conftest$ac_exeext &&
25663        $as_test_x conftest$ac_exeext; then
25664   ac_cv_lib_cares_ares_init=yes
25665 else
25666   echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.$ac_ext >&5
25668
25669         ac_cv_lib_cares_ares_init=no
25670 fi
25671
25672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25673       conftest$ac_exeext conftest.$ac_ext
25674 LIBS=$ac_check_lib_save_LIBS
25675 fi
25676 { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
25677 echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
25678 if test $ac_cv_lib_cares_ares_init = yes; then
25679   ARES_LIBS="-lcares"
25680                     cat >>confdefs.h <<\_ACEOF
25681 #define HAVE_ARES 1
25682 _ACEOF
25683
25684 else
25685   { { echo "$as_me:$LINENO: error: libcares not found" >&5
25686 echo "$as_me: error: libcares not found" >&2;}
25687    { (exit 1); exit 1; }; }
25688 fi
25689
25690
25691
25692 if test $ac_cv_c_compiler_gnu = yes; then
25693     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25694 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25695 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25696   echo $ECHO_N "(cached) $ECHO_C" >&6
25697 else
25698     ac_pattern="Autoconf.*'x'"
25699   cat >conftest.$ac_ext <<_ACEOF
25700 /* confdefs.h.  */
25701 _ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h.  */
25705 #include <sgtty.h>
25706 Autoconf TIOCGETP
25707 _ACEOF
25708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25709   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25710   ac_cv_prog_gcc_traditional=yes
25711 else
25712   ac_cv_prog_gcc_traditional=no
25713 fi
25714 rm -f conftest*
25715
25716
25717   if test $ac_cv_prog_gcc_traditional = no; then
25718     cat >conftest.$ac_ext <<_ACEOF
25719 /* confdefs.h.  */
25720 _ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h.  */
25724 #include <termio.h>
25725 Autoconf TCGETA
25726 _ACEOF
25727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25728   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25729   ac_cv_prog_gcc_traditional=yes
25730 fi
25731 rm -f conftest*
25732
25733   fi
25734 fi
25735 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25736 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25737   if test $ac_cv_prog_gcc_traditional = yes; then
25738     CC="$CC -traditional"
25739   fi
25740 fi
25741
25742
25743 for ac_func in vprintf
25744 do
25745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25749   echo $ECHO_N "(cached) $ECHO_C" >&6
25750 else
25751   cat >conftest.$ac_ext <<_ACEOF
25752 /* confdefs.h.  */
25753 _ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h.  */
25757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25759 #define $ac_func innocuous_$ac_func
25760
25761 /* System header to define __stub macros and hopefully few prototypes,
25762     which can conflict with char $ac_func (); below.
25763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25764     <limits.h> exists even on freestanding compilers.  */
25765
25766 #ifdef __STDC__
25767 # include <limits.h>
25768 #else
25769 # include <assert.h>
25770 #endif
25771
25772 #undef $ac_func
25773
25774 /* Override any GCC internal prototype to avoid an error.
25775    Use char because int might match the return type of a GCC
25776    builtin and then its argument prototype would still apply.  */
25777 #ifdef __cplusplus
25778 extern "C"
25779 #endif
25780 char $ac_func ();
25781 /* The GNU C library defines this for functions which it implements
25782     to always fail with ENOSYS.  Some functions are actually named
25783     something starting with __ and the normal name is an alias.  */
25784 #if defined __stub_$ac_func || defined __stub___$ac_func
25785 choke me
25786 #endif
25787
25788 int
25789 main ()
25790 {
25791 return $ac_func ();
25792   ;
25793   return 0;
25794 }
25795 _ACEOF
25796 rm -f conftest.$ac_objext conftest$ac_exeext
25797 if { (ac_try="$ac_link"
25798 case "(($ac_try" in
25799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800   *) ac_try_echo=$ac_try;;
25801 esac
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803   (eval "$ac_link") 2>conftest.er1
25804   ac_status=$?
25805   grep -v '^ *+' conftest.er1 >conftest.err
25806   rm -f conftest.er1
25807   cat conftest.err >&5
25808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809   (exit $ac_status); } && {
25810          test -z "$ac_c_werror_flag" ||
25811          test ! -s conftest.err
25812        } && test -s conftest$ac_exeext &&
25813        $as_test_x conftest$ac_exeext; then
25814   eval "$as_ac_var=yes"
25815 else
25816   echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25818
25819         eval "$as_ac_var=no"
25820 fi
25821
25822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25823       conftest$ac_exeext conftest.$ac_ext
25824 fi
25825 ac_res=`eval echo '${'$as_ac_var'}'`
25826                { echo "$as_me:$LINENO: result: $ac_res" >&5
25827 echo "${ECHO_T}$ac_res" >&6; }
25828 if test `eval echo '${'$as_ac_var'}'` = yes; then
25829   cat >>confdefs.h <<_ACEOF
25830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25831 _ACEOF
25832
25833 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25834 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25835 if test "${ac_cv_func__doprnt+set}" = set; then
25836   echo $ECHO_N "(cached) $ECHO_C" >&6
25837 else
25838   cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25846 #define _doprnt innocuous__doprnt
25847
25848 /* System header to define __stub macros and hopefully few prototypes,
25849     which can conflict with char _doprnt (); below.
25850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25851     <limits.h> exists even on freestanding compilers.  */
25852
25853 #ifdef __STDC__
25854 # include <limits.h>
25855 #else
25856 # include <assert.h>
25857 #endif
25858
25859 #undef _doprnt
25860
25861 /* Override any GCC internal prototype to avoid an error.
25862    Use char because int might match the return type of a GCC
25863    builtin and then its argument prototype would still apply.  */
25864 #ifdef __cplusplus
25865 extern "C"
25866 #endif
25867 char _doprnt ();
25868 /* The GNU C library defines this for functions which it implements
25869     to always fail with ENOSYS.  Some functions are actually named
25870     something starting with __ and the normal name is an alias.  */
25871 #if defined __stub__doprnt || defined __stub____doprnt
25872 choke me
25873 #endif
25874
25875 int
25876 main ()
25877 {
25878 return _doprnt ();
25879   ;
25880   return 0;
25881 }
25882 _ACEOF
25883 rm -f conftest.$ac_objext conftest$ac_exeext
25884 if { (ac_try="$ac_link"
25885 case "(($ac_try" in
25886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887   *) ac_try_echo=$ac_try;;
25888 esac
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890   (eval "$ac_link") 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } && {
25897          test -z "$ac_c_werror_flag" ||
25898          test ! -s conftest.err
25899        } && test -s conftest$ac_exeext &&
25900        $as_test_x conftest$ac_exeext; then
25901   ac_cv_func__doprnt=yes
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906         ac_cv_func__doprnt=no
25907 fi
25908
25909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25910       conftest$ac_exeext conftest.$ac_ext
25911 fi
25912 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25913 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25914 if test $ac_cv_func__doprnt = yes; then
25915
25916 cat >>confdefs.h <<\_ACEOF
25917 #define HAVE_DOPRNT 1
25918 _ACEOF
25919
25920 fi
25921
25922 fi
25923 done
25924
25925
25926 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25927 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25928 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25929   echo $ECHO_N "(cached) $ECHO_C" >&6
25930 else
25931   # Use it with a single arg.
25932 cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h.  */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h.  */
25938 $ac_includes_default
25939 int
25940 main ()
25941 {
25942 getpgrp (0);
25943   ;
25944   return 0;
25945 }
25946 _ACEOF
25947 rm -f conftest.$ac_objext
25948 if { (ac_try="$ac_compile"
25949 case "(($ac_try" in
25950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25951   *) ac_try_echo=$ac_try;;
25952 esac
25953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25954   (eval "$ac_compile") 2>conftest.er1
25955   ac_status=$?
25956   grep -v '^ *+' conftest.er1 >conftest.err
25957   rm -f conftest.er1
25958   cat conftest.err >&5
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); } && {
25961          test -z "$ac_c_werror_flag" ||
25962          test ! -s conftest.err
25963        } && test -s conftest.$ac_objext; then
25964   ac_cv_func_getpgrp_void=no
25965 else
25966   echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25968
25969         ac_cv_func_getpgrp_void=yes
25970 fi
25971
25972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973
25974 fi
25975 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25976 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25977 if test $ac_cv_func_getpgrp_void = yes; then
25978
25979 cat >>confdefs.h <<\_ACEOF
25980 #define GETPGRP_VOID 1
25981 _ACEOF
25982
25983 fi
25984
25985 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25986 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25987 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25988   echo $ECHO_N "(cached) $ECHO_C" >&6
25989 else
25990   if test "$cross_compiling" = yes; then
25991   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
25992 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
25993    { (exit 1); exit 1; }; }
25994 else
25995   cat >conftest.$ac_ext <<_ACEOF
25996 /* confdefs.h.  */
25997 _ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h.  */
26001 $ac_includes_default
26002 int
26003 main ()
26004 {
26005 /* If this system has a BSD-style setpgrp which takes arguments,
26006   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
26007   exit successfully. */
26008   return setpgrp (1,1) != -1;
26009   ;
26010   return 0;
26011 }
26012 _ACEOF
26013 rm -f conftest$ac_exeext
26014 if { (ac_try="$ac_link"
26015 case "(($ac_try" in
26016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26017   *) ac_try_echo=$ac_try;;
26018 esac
26019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26020   (eval "$ac_link") 2>&5
26021   ac_status=$?
26022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26024   { (case "(($ac_try" in
26025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026   *) ac_try_echo=$ac_try;;
26027 esac
26028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26029   (eval "$ac_try") 2>&5
26030   ac_status=$?
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); }; }; then
26033   ac_cv_func_setpgrp_void=no
26034 else
26035   echo "$as_me: program exited with status $ac_status" >&5
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039 ( exit $ac_status )
26040 ac_cv_func_setpgrp_void=yes
26041 fi
26042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26043 fi
26044
26045
26046 fi
26047 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
26048 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
26049 if test $ac_cv_func_setpgrp_void = yes; then
26050
26051 cat >>confdefs.h <<\_ACEOF
26052 #define SETPGRP_VOID 1
26053 _ACEOF
26054
26055 fi
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
26066 do
26067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26071   echo $ECHO_N "(cached) $ECHO_C" >&6
26072 else
26073   cat >conftest.$ac_ext <<_ACEOF
26074 /* confdefs.h.  */
26075 _ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h.  */
26079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26081 #define $ac_func innocuous_$ac_func
26082
26083 /* System header to define __stub macros and hopefully few prototypes,
26084     which can conflict with char $ac_func (); below.
26085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26086     <limits.h> exists even on freestanding compilers.  */
26087
26088 #ifdef __STDC__
26089 # include <limits.h>
26090 #else
26091 # include <assert.h>
26092 #endif
26093
26094 #undef $ac_func
26095
26096 /* Override any GCC internal prototype to avoid an error.
26097    Use char because int might match the return type of a GCC
26098    builtin and then its argument prototype would still apply.  */
26099 #ifdef __cplusplus
26100 extern "C"
26101 #endif
26102 char $ac_func ();
26103 /* The GNU C library defines this for functions which it implements
26104     to always fail with ENOSYS.  Some functions are actually named
26105     something starting with __ and the normal name is an alias.  */
26106 #if defined __stub_$ac_func || defined __stub___$ac_func
26107 choke me
26108 #endif
26109
26110 int
26111 main ()
26112 {
26113 return $ac_func ();
26114   ;
26115   return 0;
26116 }
26117 _ACEOF
26118 rm -f conftest.$ac_objext conftest$ac_exeext
26119 if { (ac_try="$ac_link"
26120 case "(($ac_try" in
26121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122   *) ac_try_echo=$ac_try;;
26123 esac
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125   (eval "$ac_link") 2>conftest.er1
26126   ac_status=$?
26127   grep -v '^ *+' conftest.er1 >conftest.err
26128   rm -f conftest.er1
26129   cat conftest.err >&5
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); } && {
26132          test -z "$ac_c_werror_flag" ||
26133          test ! -s conftest.err
26134        } && test -s conftest$ac_exeext &&
26135        $as_test_x conftest$ac_exeext; then
26136   eval "$as_ac_var=yes"
26137 else
26138   echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26140
26141         eval "$as_ac_var=no"
26142 fi
26143
26144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26145       conftest$ac_exeext conftest.$ac_ext
26146 fi
26147 ac_res=`eval echo '${'$as_ac_var'}'`
26148                { echo "$as_me:$LINENO: result: $ac_res" >&5
26149 echo "${ECHO_T}$ac_res" >&6; }
26150 if test `eval echo '${'$as_ac_var'}'` = yes; then
26151   cat >>confdefs.h <<_ACEOF
26152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26153 _ACEOF
26154
26155 fi
26156 done
26157
26158
26159
26160
26161
26162
26163
26164 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
26165 do
26166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26170   echo $ECHO_N "(cached) $ECHO_C" >&6
26171 else
26172   cat >conftest.$ac_ext <<_ACEOF
26173 /* confdefs.h.  */
26174 _ACEOF
26175 cat confdefs.h >>conftest.$ac_ext
26176 cat >>conftest.$ac_ext <<_ACEOF
26177 /* end confdefs.h.  */
26178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26180 #define $ac_func innocuous_$ac_func
26181
26182 /* System header to define __stub macros and hopefully few prototypes,
26183     which can conflict with char $ac_func (); below.
26184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26185     <limits.h> exists even on freestanding compilers.  */
26186
26187 #ifdef __STDC__
26188 # include <limits.h>
26189 #else
26190 # include <assert.h>
26191 #endif
26192
26193 #undef $ac_func
26194
26195 /* Override any GCC internal prototype to avoid an error.
26196    Use char because int might match the return type of a GCC
26197    builtin and then its argument prototype would still apply.  */
26198 #ifdef __cplusplus
26199 extern "C"
26200 #endif
26201 char $ac_func ();
26202 /* The GNU C library defines this for functions which it implements
26203     to always fail with ENOSYS.  Some functions are actually named
26204     something starting with __ and the normal name is an alias.  */
26205 #if defined __stub_$ac_func || defined __stub___$ac_func
26206 choke me
26207 #endif
26208
26209 int
26210 main ()
26211 {
26212 return $ac_func ();
26213   ;
26214   return 0;
26215 }
26216 _ACEOF
26217 rm -f conftest.$ac_objext conftest$ac_exeext
26218 if { (ac_try="$ac_link"
26219 case "(($ac_try" in
26220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26221   *) ac_try_echo=$ac_try;;
26222 esac
26223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26224   (eval "$ac_link") 2>conftest.er1
26225   ac_status=$?
26226   grep -v '^ *+' conftest.er1 >conftest.err
26227   rm -f conftest.er1
26228   cat conftest.err >&5
26229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230   (exit $ac_status); } && {
26231          test -z "$ac_c_werror_flag" ||
26232          test ! -s conftest.err
26233        } && test -s conftest$ac_exeext &&
26234        $as_test_x conftest$ac_exeext; then
26235   eval "$as_ac_var=yes"
26236 else
26237   echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26239
26240         eval "$as_ac_var=no"
26241 fi
26242
26243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26244       conftest$ac_exeext conftest.$ac_ext
26245 fi
26246 ac_res=`eval echo '${'$as_ac_var'}'`
26247                { echo "$as_me:$LINENO: result: $ac_res" >&5
26248 echo "${ECHO_T}$ac_res" >&6; }
26249 if test `eval echo '${'$as_ac_var'}'` = yes; then
26250   cat >>confdefs.h <<_ACEOF
26251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26252 _ACEOF
26253
26254 fi
26255 done
26256
26257
26258
26259
26260 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
26261 do
26262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26266   echo $ECHO_N "(cached) $ECHO_C" >&6
26267 else
26268   cat >conftest.$ac_ext <<_ACEOF
26269 /* confdefs.h.  */
26270 _ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h.  */
26274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26276 #define $ac_func innocuous_$ac_func
26277
26278 /* System header to define __stub macros and hopefully few prototypes,
26279     which can conflict with char $ac_func (); below.
26280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26281     <limits.h> exists even on freestanding compilers.  */
26282
26283 #ifdef __STDC__
26284 # include <limits.h>
26285 #else
26286 # include <assert.h>
26287 #endif
26288
26289 #undef $ac_func
26290
26291 /* Override any GCC internal prototype to avoid an error.
26292    Use char because int might match the return type of a GCC
26293    builtin and then its argument prototype would still apply.  */
26294 #ifdef __cplusplus
26295 extern "C"
26296 #endif
26297 char $ac_func ();
26298 /* The GNU C library defines this for functions which it implements
26299     to always fail with ENOSYS.  Some functions are actually named
26300     something starting with __ and the normal name is an alias.  */
26301 #if defined __stub_$ac_func || defined __stub___$ac_func
26302 choke me
26303 #endif
26304
26305 int
26306 main ()
26307 {
26308 return $ac_func ();
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest.$ac_objext conftest$ac_exeext
26314 if { (ac_try="$ac_link"
26315 case "(($ac_try" in
26316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317   *) ac_try_echo=$ac_try;;
26318 esac
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320   (eval "$ac_link") 2>conftest.er1
26321   ac_status=$?
26322   grep -v '^ *+' conftest.er1 >conftest.err
26323   rm -f conftest.er1
26324   cat conftest.err >&5
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); } && {
26327          test -z "$ac_c_werror_flag" ||
26328          test ! -s conftest.err
26329        } && test -s conftest$ac_exeext &&
26330        $as_test_x conftest$ac_exeext; then
26331   eval "$as_ac_var=yes"
26332 else
26333   echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26335
26336         eval "$as_ac_var=no"
26337 fi
26338
26339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26340       conftest$ac_exeext conftest.$ac_ext
26341 fi
26342 ac_res=`eval echo '${'$as_ac_var'}'`
26343                { echo "$as_me:$LINENO: result: $ac_res" >&5
26344 echo "${ECHO_T}$ac_res" >&6; }
26345 if test `eval echo '${'$as_ac_var'}'` = yes; then
26346   cat >>confdefs.h <<_ACEOF
26347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26348 _ACEOF
26349
26350 fi
26351 done
26352
26353
26354
26355 for ac_func in krb5_crypto_init krb5_c_decrypt
26356 do
26357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26361   echo $ECHO_N "(cached) $ECHO_C" >&6
26362 else
26363   cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26371 #define $ac_func innocuous_$ac_func
26372
26373 /* System header to define __stub macros and hopefully few prototypes,
26374     which can conflict with char $ac_func (); below.
26375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376     <limits.h> exists even on freestanding compilers.  */
26377
26378 #ifdef __STDC__
26379 # include <limits.h>
26380 #else
26381 # include <assert.h>
26382 #endif
26383
26384 #undef $ac_func
26385
26386 /* Override any GCC internal prototype to avoid an error.
26387    Use char because int might match the return type of a GCC
26388    builtin and then its argument prototype would still apply.  */
26389 #ifdef __cplusplus
26390 extern "C"
26391 #endif
26392 char $ac_func ();
26393 /* The GNU C library defines this for functions which it implements
26394     to always fail with ENOSYS.  Some functions are actually named
26395     something starting with __ and the normal name is an alias.  */
26396 #if defined __stub_$ac_func || defined __stub___$ac_func
26397 choke me
26398 #endif
26399
26400 int
26401 main ()
26402 {
26403 return $ac_func ();
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412   *) ac_try_echo=$ac_try;;
26413 esac
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415   (eval "$ac_link") 2>conftest.er1
26416   ac_status=$?
26417   grep -v '^ *+' conftest.er1 >conftest.err
26418   rm -f conftest.er1
26419   cat conftest.err >&5
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); } && {
26422          test -z "$ac_c_werror_flag" ||
26423          test ! -s conftest.err
26424        } && test -s conftest$ac_exeext &&
26425        $as_test_x conftest$ac_exeext; then
26426   eval "$as_ac_var=yes"
26427 else
26428   echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431         eval "$as_ac_var=no"
26432 fi
26433
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435       conftest$ac_exeext conftest.$ac_ext
26436 fi
26437 ac_res=`eval echo '${'$as_ac_var'}'`
26438                { echo "$as_me:$LINENO: result: $ac_res" >&5
26439 echo "${ECHO_T}$ac_res" >&6; }
26440 if test `eval echo '${'$as_ac_var'}'` = yes; then
26441   cat >>confdefs.h <<_ACEOF
26442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26443 _ACEOF
26444
26445 fi
26446 done
26447
26448
26449 { echo "$as_me:$LINENO: checking for krb5_auth_con_getauthenticator taking double pointer" >&5
26450 echo $ECHO_N "checking for krb5_auth_con_getauthenticator taking double pointer... $ECHO_C" >&6; }
26451 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
26452   echo $ECHO_N "(cached) $ECHO_C" >&6
26453 else
26454
26455 local_save_CPPFLAGS="$CPPFLAGS"
26456 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26457 cat >conftest.$ac_ext <<_ACEOF
26458 /* confdefs.h.  */
26459 _ACEOF
26460 cat confdefs.h >>conftest.$ac_ext
26461 cat >>conftest.$ac_ext <<_ACEOF
26462 /* end confdefs.h.  */
26463 #define socklen_t int
26464 #define ssize_t int
26465 #include <krb5.h>
26466 krb5_error_code
26467 krb5_auth_con_getauthenticator(krb5_context context,
26468                            krb5_auth_context auth_context,
26469                            krb5_authenticator *authenticator);
26470 int
26471 main ()
26472 {
26473 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26474   ;
26475   return 0;
26476 }
26477 _ACEOF
26478 rm -f conftest.$ac_objext
26479 if { (ac_try="$ac_compile"
26480 case "(($ac_try" in
26481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26482   *) ac_try_echo=$ac_try;;
26483 esac
26484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26485   (eval "$ac_compile") 2>conftest.er1
26486   ac_status=$?
26487   grep -v '^ *+' conftest.er1 >conftest.err
26488   rm -f conftest.er1
26489   cat conftest.err >&5
26490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491   (exit $ac_status); } && {
26492          test -z "$ac_c_werror_flag" ||
26493          test ! -s conftest.err
26494        } && test -s conftest.$ac_objext; then
26495   ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26496 else
26497   echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26499
26500         ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26501 fi
26502
26503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26504
26505 fi
26506
26507 CPPFLAGS="${local_save_CPPFLAGS}"
26508 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26509         cat >>confdefs.h <<\_ACEOF
26510 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26511 _ACEOF
26512 fi
26513 { echo "$as_me:$LINENO: result: $ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&5
26514 echo "${ECHO_T}$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&6; }
26515
26516 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26517 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26518 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26519   echo $ECHO_N "(cached) $ECHO_C" >&6
26520 else
26521
26522 local_save_CPPFLAGS="$CPPFLAGS"
26523 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26524 cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h.  */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h.  */
26530 #include <krb5.h>
26531 int
26532 main ()
26533 {
26534 krb5_ticket _tkt; _tkt.enc_part2;
26535   ;
26536   return 0;
26537 }
26538 _ACEOF
26539 rm -f conftest.$ac_objext
26540 if { (ac_try="$ac_compile"
26541 case "(($ac_try" in
26542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26543   *) ac_try_echo=$ac_try;;
26544 esac
26545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26546   (eval "$ac_compile") 2>conftest.er1
26547   ac_status=$?
26548   grep -v '^ *+' conftest.er1 >conftest.err
26549   rm -f conftest.er1
26550   cat conftest.err >&5
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); } && {
26553          test -z "$ac_c_werror_flag" ||
26554          test ! -s conftest.err
26555        } && test -s conftest.$ac_objext; then
26556   ac_cv_have_krb5_ticket_enc_part2=yes
26557 else
26558   echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26560
26561         ac_cv_have_krb5_ticket_enc_part2=no
26562 fi
26563
26564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26565
26566 fi
26567
26568 CPPFLAGS="${local_save_CPPFLAGS}"
26569 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26570         cat >>confdefs.h <<\_ACEOF
26571 #define HAVE_KRB5_TICKET_ENC_PART2 1
26572 _ACEOF
26573 fi
26574 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26575 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26576
26577 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26578 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26579 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26580   echo $ECHO_N "(cached) $ECHO_C" >&6
26581 else
26582
26583 local_save_CPPFLAGS="$CPPFLAGS"
26584 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26585 cat >conftest.$ac_ext <<_ACEOF
26586 /* confdefs.h.  */
26587 _ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h.  */
26591 #include <krb5.h>
26592 int
26593 main ()
26594 {
26595 krb5_creds _creds; _creds.keyblock.enctype;
26596   ;
26597   return 0;
26598 }
26599 _ACEOF
26600 rm -f conftest.$ac_objext
26601 if { (ac_try="$ac_compile"
26602 case "(($ac_try" in
26603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26604   *) ac_try_echo=$ac_try;;
26605 esac
26606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26607   (eval "$ac_compile") 2>conftest.er1
26608   ac_status=$?
26609   grep -v '^ *+' conftest.er1 >conftest.err
26610   rm -f conftest.er1
26611   cat conftest.err >&5
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); } && {
26614          test -z "$ac_c_werror_flag" ||
26615          test ! -s conftest.err
26616        } && test -s conftest.$ac_objext; then
26617   ac_cv_have_krb5_creds_keyblock_enctype=yes
26618 else
26619   echo "$as_me: failed program was:" >&5
26620 sed 's/^/| /' conftest.$ac_ext >&5
26621
26622         ac_cv_have_krb5_creds_keyblock_enctype=no
26623 fi
26624
26625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26626
26627 fi
26628
26629 CPPFLAGS="${local_save_CPPFLAGS}"
26630 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26631         cat >>confdefs.h <<\_ACEOF
26632 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26633 _ACEOF
26634 fi
26635 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26636 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26637
26638 # Check whether --enable-cmu-zwgcplus was given.
26639 if test "${enable_cmu_zwgcplus+set}" = set; then
26640   enableval=$enable_cmu_zwgcplus;
26641 if test "$enableval" = "yes"; then
26642         cat >>confdefs.h <<\_ACEOF
26643 #define CMU_ZWGCPLUS 1
26644 _ACEOF
26645
26646 fi
26647
26648 fi
26649
26650
26651 # Check whether --enable-cmu-zctl-punt was given.
26652 if test "${enable_cmu_zctl_punt+set}" = set; then
26653   enableval=$enable_cmu_zctl_punt;
26654 if test "$enableval" = "yes"; then
26655         cat >>confdefs.h <<\_ACEOF
26656 #define CMU_ZCTL_PUNT 1
26657 _ACEOF
26658
26659 fi
26660
26661 fi
26662
26663
26664 # Check whether --enable-cmu-hm-flush-restrict was given.
26665 if test "${enable_cmu_hm_flush_restrict+set}" = set; then
26666   enableval=$enable_cmu_hm_flush_restrict;
26667 if test "$enableval" = "yes"; then
26668         cat >>confdefs.h <<\_ACEOF
26669 #define HM_FLUSH_RESTRICT 1
26670 _ACEOF
26671
26672 fi
26673
26674 fi
26675
26676
26677 # Check whether --enable-cmu-opstaff-locate-self was given.
26678 if test "${enable_cmu_opstaff_locate_self+set}" = set; then
26679   enableval=$enable_cmu_opstaff_locate_self;
26680 if test "$enableval" = "yes"; then
26681         cat >>confdefs.h <<\_ACEOF
26682 #define OPSTAFF_LOCATE_SELF 1
26683 _ACEOF
26684
26685 fi
26686
26687 fi
26688
26689
26690 ac_config_headers="$ac_config_headers h/config.h"
26691
26692 ac_config_files="$ac_config_files Makefile clients/Makefile clients/zaway/Makefile clients/zctl/Makefile clients/zleave/Makefile clients/zlocate/Makefile clients/znol/Makefile clients/zshutdown_notify/Makefile clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile libdyn/Makefile server/Makefile zhm/Makefile zwgc/Makefile"
26693
26694 cat >confcache <<\_ACEOF
26695 # This file is a shell script that caches the results of configure
26696 # tests run on this system so they can be shared between configure
26697 # scripts and configure runs, see configure's option --config-cache.
26698 # It is not useful on other systems.  If it contains results you don't
26699 # want to keep, you may remove or edit it.
26700 #
26701 # config.status only pays attention to the cache file if you give it
26702 # the --recheck option to rerun configure.
26703 #
26704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26706 # following values.
26707
26708 _ACEOF
26709
26710 # The following way of writing the cache mishandles newlines in values,
26711 # but we know of no workaround that is simple, portable, and efficient.
26712 # So, we kill variables containing newlines.
26713 # Ultrix sh set writes to stderr and can't be redirected directly,
26714 # and sets the high bit in the cache file unless we assign to the vars.
26715 (
26716   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26717     eval ac_val=\$$ac_var
26718     case $ac_val in #(
26719     *${as_nl}*)
26720       case $ac_var in #(
26721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26723       esac
26724       case $ac_var in #(
26725       _ | IFS | as_nl) ;; #(
26726       *) $as_unset $ac_var ;;
26727       esac ;;
26728     esac
26729   done
26730
26731   (set) 2>&1 |
26732     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26733     *${as_nl}ac_space=\ *)
26734       # `set' does not quote correctly, so add quotes (double-quote
26735       # substitution turns \\\\ into \\, and sed turns \\ into \).
26736       sed -n \
26737         "s/'/'\\\\''/g;
26738           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26739       ;; #(
26740     *)
26741       # `set' quotes correctly as required by POSIX, so do not add quotes.
26742       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26743       ;;
26744     esac |
26745     sort
26746 ) |
26747   sed '
26748      /^ac_cv_env_/b end
26749      t clear
26750      :clear
26751      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26752      t end
26753      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26754      :end' >>confcache
26755 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26756   if test -w "$cache_file"; then
26757     test "x$cache_file" != "x/dev/null" &&
26758       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26759 echo "$as_me: updating cache $cache_file" >&6;}
26760     cat confcache >$cache_file
26761   else
26762     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26763 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26764   fi
26765 fi
26766 rm -f confcache
26767
26768 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26769 # Let make expand exec_prefix.
26770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26771
26772 DEFS=-DHAVE_CONFIG_H
26773
26774 ac_libobjs=
26775 ac_ltlibobjs=
26776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26777   # 1. Remove the extension, and $U if already installed.
26778   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26779   ac_i=`echo "$ac_i" | sed "$ac_script"`
26780   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26781   #    will be set to the directory where LIBOBJS objects are built.
26782   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26783   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26784 done
26785 LIBOBJS=$ac_libobjs
26786
26787 LTLIBOBJS=$ac_ltlibobjs
26788
26789
26790
26791 : ${CONFIG_STATUS=./config.status}
26792 ac_clean_files_save=$ac_clean_files
26793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26794 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26795 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26796 cat >$CONFIG_STATUS <<_ACEOF
26797 #! $SHELL
26798 # Generated by $as_me.
26799 # Run this file to recreate the current configuration.
26800 # Compiler output produced by configure, useful for debugging
26801 # configure, is in config.log if it exists.
26802
26803 debug=false
26804 ac_cs_recheck=false
26805 ac_cs_silent=false
26806 SHELL=\${CONFIG_SHELL-$SHELL}
26807 _ACEOF
26808
26809 cat >>$CONFIG_STATUS <<\_ACEOF
26810 ## --------------------- ##
26811 ## M4sh Initialization.  ##
26812 ## --------------------- ##
26813
26814 # Be more Bourne compatible
26815 DUALCASE=1; export DUALCASE # for MKS sh
26816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26817   emulate sh
26818   NULLCMD=:
26819   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26820   # is contrary to our usage.  Disable this feature.
26821   alias -g '${1+"$@"}'='"$@"'
26822   setopt NO_GLOB_SUBST
26823 else
26824   case `(set -o) 2>/dev/null` in
26825   *posix*) set -o posix ;;
26826 esac
26827
26828 fi
26829
26830
26831
26832
26833 # PATH needs CR
26834 # Avoid depending upon Character Ranges.
26835 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26836 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26837 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26838 as_cr_digits='0123456789'
26839 as_cr_alnum=$as_cr_Letters$as_cr_digits
26840
26841 # The user is always right.
26842 if test "${PATH_SEPARATOR+set}" != set; then
26843   echo "#! /bin/sh" >conf$$.sh
26844   echo  "exit 0"   >>conf$$.sh
26845   chmod +x conf$$.sh
26846   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26847     PATH_SEPARATOR=';'
26848   else
26849     PATH_SEPARATOR=:
26850   fi
26851   rm -f conf$$.sh
26852 fi
26853
26854 # Support unset when possible.
26855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26856   as_unset=unset
26857 else
26858   as_unset=false
26859 fi
26860
26861
26862 # IFS
26863 # We need space, tab and new line, in precisely that order.  Quoting is
26864 # there to prevent editors from complaining about space-tab.
26865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26866 # splitting by setting IFS to empty value.)
26867 as_nl='
26868 '
26869 IFS=" ""        $as_nl"
26870
26871 # Find who we are.  Look in the path if we contain no directory separator.
26872 case $0 in
26873   *[\\/]* ) as_myself=$0 ;;
26874   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26875 for as_dir in $PATH
26876 do
26877   IFS=$as_save_IFS
26878   test -z "$as_dir" && as_dir=.
26879   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26880 done
26881 IFS=$as_save_IFS
26882
26883      ;;
26884 esac
26885 # We did not find ourselves, most probably we were run as `sh COMMAND'
26886 # in which case we are not to be found in the path.
26887 if test "x$as_myself" = x; then
26888   as_myself=$0
26889 fi
26890 if test ! -f "$as_myself"; then
26891   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26892   { (exit 1); exit 1; }
26893 fi
26894
26895 # Work around bugs in pre-3.0 UWIN ksh.
26896 for as_var in ENV MAIL MAILPATH
26897 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26898 done
26899 PS1='$ '
26900 PS2='> '
26901 PS4='+ '
26902
26903 # NLS nuisances.
26904 for as_var in \
26905   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26906   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26907   LC_TELEPHONE LC_TIME
26908 do
26909   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26910     eval $as_var=C; export $as_var
26911   else
26912     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26913   fi
26914 done
26915
26916 # Required to use basename.
26917 if expr a : '\(a\)' >/dev/null 2>&1 &&
26918    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26919   as_expr=expr
26920 else
26921   as_expr=false
26922 fi
26923
26924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26925   as_basename=basename
26926 else
26927   as_basename=false
26928 fi
26929
26930
26931 # Name of the executable.
26932 as_me=`$as_basename -- "$0" ||
26933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26934          X"$0" : 'X\(//\)$' \| \
26935          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26936 echo X/"$0" |
26937     sed '/^.*\/\([^/][^/]*\)\/*$/{
26938             s//\1/
26939             q
26940           }
26941           /^X\/\(\/\/\)$/{
26942             s//\1/
26943             q
26944           }
26945           /^X\/\(\/\).*/{
26946             s//\1/
26947             q
26948           }
26949           s/.*/./; q'`
26950
26951 # CDPATH.
26952 $as_unset CDPATH
26953
26954
26955
26956   as_lineno_1=$LINENO
26957   as_lineno_2=$LINENO
26958   test "x$as_lineno_1" != "x$as_lineno_2" &&
26959   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26960
26961   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26962   # uniformly replaced by the line number.  The first 'sed' inserts a
26963   # line-number line after each line using $LINENO; the second 'sed'
26964   # does the real work.  The second script uses 'N' to pair each
26965   # line-number line with the line containing $LINENO, and appends
26966   # trailing '-' during substitution so that $LINENO is not a special
26967   # case at line end.
26968   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26969   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26970   # E. McMahon (1931-1989) for sed's syntax.  :-)
26971   sed -n '
26972     p
26973     /[$]LINENO/=
26974   ' <$as_myself |
26975     sed '
26976       s/[$]LINENO.*/&-/
26977       t lineno
26978       b
26979       :lineno
26980       N
26981       :loop
26982       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26983       t loop
26984       s/-\n.*//
26985     ' >$as_me.lineno &&
26986   chmod +x "$as_me.lineno" ||
26987     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26988    { (exit 1); exit 1; }; }
26989
26990   # Don't try to exec as it changes $[0], causing all sort of problems
26991   # (the dirname of $[0] is not the place where we might find the
26992   # original and so on.  Autoconf is especially sensitive to this).
26993   . "./$as_me.lineno"
26994   # Exit status is that of the last command.
26995   exit
26996 }
26997
26998
26999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27000   as_dirname=dirname
27001 else
27002   as_dirname=false
27003 fi
27004
27005 ECHO_C= ECHO_N= ECHO_T=
27006 case `echo -n x` in
27007 -n*)
27008   case `echo 'x\c'` in
27009   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27010   *)   ECHO_C='\c';;
27011   esac;;
27012 *)
27013   ECHO_N='-n';;
27014 esac
27015
27016 if expr a : '\(a\)' >/dev/null 2>&1 &&
27017    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27018   as_expr=expr
27019 else
27020   as_expr=false
27021 fi
27022
27023 rm -f conf$$ conf$$.exe conf$$.file
27024 if test -d conf$$.dir; then
27025   rm -f conf$$.dir/conf$$.file
27026 else
27027   rm -f conf$$.dir
27028   mkdir conf$$.dir
27029 fi
27030 echo >conf$$.file
27031 if ln -s conf$$.file conf$$ 2>/dev/null; then
27032   as_ln_s='ln -s'
27033   # ... but there are two gotchas:
27034   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27035   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27036   # In both cases, we have to default to `cp -p'.
27037   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27038     as_ln_s='cp -p'
27039 elif ln conf$$.file conf$$ 2>/dev/null; then
27040   as_ln_s=ln
27041 else
27042   as_ln_s='cp -p'
27043 fi
27044 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27045 rmdir conf$$.dir 2>/dev/null
27046
27047 if mkdir -p . 2>/dev/null; then
27048   as_mkdir_p=:
27049 else
27050   test -d ./-p && rmdir ./-p
27051   as_mkdir_p=false
27052 fi
27053
27054 if test -x / >/dev/null 2>&1; then
27055   as_test_x='test -x'
27056 else
27057   if ls -dL / >/dev/null 2>&1; then
27058     as_ls_L_option=L
27059   else
27060     as_ls_L_option=
27061   fi
27062   as_test_x='
27063     eval sh -c '\''
27064       if test -d "$1"; then
27065         test -d "$1/.";
27066       else
27067         case $1 in
27068         -*)set "./$1";;
27069         esac;
27070         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27071         ???[sx]*):;;*)false;;esac;fi
27072     '\'' sh
27073   '
27074 fi
27075 as_executable_p=$as_test_x
27076
27077 # Sed expression to map a string onto a valid CPP name.
27078 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27079
27080 # Sed expression to map a string onto a valid variable name.
27081 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27082
27083
27084 exec 6>&1
27085
27086 # Save the log message, to keep $[0] and so on meaningful, and to
27087 # report actual input values of CONFIG_FILES etc. instead of their
27088 # values after options handling.
27089 ac_log="
27090 This file was extended by $as_me, which was
27091 generated by GNU Autoconf 2.61.  Invocation command line was
27092
27093   CONFIG_FILES    = $CONFIG_FILES
27094   CONFIG_HEADERS  = $CONFIG_HEADERS
27095   CONFIG_LINKS    = $CONFIG_LINKS
27096   CONFIG_COMMANDS = $CONFIG_COMMANDS
27097   $ $0 $@
27098
27099 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27100 "
27101
27102 _ACEOF
27103
27104 cat >>$CONFIG_STATUS <<_ACEOF
27105 # Files that config.status was made for.
27106 config_files="$ac_config_files"
27107 config_headers="$ac_config_headers"
27108
27109 _ACEOF
27110
27111 cat >>$CONFIG_STATUS <<\_ACEOF
27112 ac_cs_usage="\
27113 \`$as_me' instantiates files from templates according to the
27114 current configuration.
27115
27116 Usage: $0 [OPTIONS] [FILE]...
27117
27118   -h, --help       print this help, then exit
27119   -V, --version    print version number and configuration settings, then exit
27120   -q, --quiet      do not print progress messages
27121   -d, --debug      don't remove temporary files
27122       --recheck    update $as_me by reconfiguring in the same conditions
27123   --file=FILE[:TEMPLATE]
27124                    instantiate the configuration file FILE
27125   --header=FILE[:TEMPLATE]
27126                    instantiate the configuration header FILE
27127
27128 Configuration files:
27129 $config_files
27130
27131 Configuration headers:
27132 $config_headers
27133
27134 Report bugs to <bug-autoconf@gnu.org>."
27135
27136 _ACEOF
27137 cat >>$CONFIG_STATUS <<_ACEOF
27138 ac_cs_version="\\
27139 config.status
27140 configured by $0, generated by GNU Autoconf 2.61,
27141   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27142
27143 Copyright (C) 2006 Free Software Foundation, Inc.
27144 This config.status script is free software; the Free Software Foundation
27145 gives unlimited permission to copy, distribute and modify it."
27146
27147 ac_pwd='$ac_pwd'
27148 srcdir='$srcdir'
27149 INSTALL='$INSTALL'
27150 _ACEOF
27151
27152 cat >>$CONFIG_STATUS <<\_ACEOF
27153 # If no file are specified by the user, then we need to provide default
27154 # value.  By we need to know if files were specified by the user.
27155 ac_need_defaults=:
27156 while test $# != 0
27157 do
27158   case $1 in
27159   --*=*)
27160     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27161     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27162     ac_shift=:
27163     ;;
27164   *)
27165     ac_option=$1
27166     ac_optarg=$2
27167     ac_shift=shift
27168     ;;
27169   esac
27170
27171   case $ac_option in
27172   # Handling of the options.
27173   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27174     ac_cs_recheck=: ;;
27175   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27176     echo "$ac_cs_version"; exit ;;
27177   --debug | --debu | --deb | --de | --d | -d )
27178     debug=: ;;
27179   --file | --fil | --fi | --f )
27180     $ac_shift
27181     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27182     ac_need_defaults=false;;
27183   --header | --heade | --head | --hea )
27184     $ac_shift
27185     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27186     ac_need_defaults=false;;
27187   --he | --h)
27188     # Conflict between --help and --header
27189     { echo "$as_me: error: ambiguous option: $1
27190 Try \`$0 --help' for more information." >&2
27191    { (exit 1); exit 1; }; };;
27192   --help | --hel | -h )
27193     echo "$ac_cs_usage"; exit ;;
27194   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27195   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27196     ac_cs_silent=: ;;
27197
27198   # This is an error.
27199   -*) { echo "$as_me: error: unrecognized option: $1
27200 Try \`$0 --help' for more information." >&2
27201    { (exit 1); exit 1; }; } ;;
27202
27203   *) ac_config_targets="$ac_config_targets $1"
27204      ac_need_defaults=false ;;
27205
27206   esac
27207   shift
27208 done
27209
27210 ac_configure_extra_args=
27211
27212 if $ac_cs_silent; then
27213   exec 6>/dev/null
27214   ac_configure_extra_args="$ac_configure_extra_args --silent"
27215 fi
27216
27217 _ACEOF
27218 cat >>$CONFIG_STATUS <<_ACEOF
27219 if \$ac_cs_recheck; then
27220   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27221   CONFIG_SHELL=$SHELL
27222   export CONFIG_SHELL
27223   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27224 fi
27225
27226 _ACEOF
27227 cat >>$CONFIG_STATUS <<\_ACEOF
27228 exec 5>>config.log
27229 {
27230   echo
27231   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27232 ## Running $as_me. ##
27233 _ASBOX
27234   echo "$ac_log"
27235 } >&5
27236
27237 _ACEOF
27238 cat >>$CONFIG_STATUS <<_ACEOF
27239 _ACEOF
27240
27241 cat >>$CONFIG_STATUS <<\_ACEOF
27242
27243 # Handling of arguments.
27244 for ac_config_target in $ac_config_targets
27245 do
27246   case $ac_config_target in
27247     "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
27248     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27249     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
27250     "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
27251     "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
27252     "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
27253     "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
27254     "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
27255     "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
27256     "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
27257     "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
27258     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27259     "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
27260     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
27261     "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
27262     "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
27263
27264   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27266    { (exit 1); exit 1; }; };;
27267   esac
27268 done
27269
27270
27271 # If the user did not use the arguments to specify the items to instantiate,
27272 # then the envvar interface is used.  Set only those that are not.
27273 # We use the long form for the default assignment because of an extremely
27274 # bizarre bug on SunOS 4.1.3.
27275 if $ac_need_defaults; then
27276   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27277   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27278 fi
27279
27280 # Have a temporary directory for convenience.  Make it in the build tree
27281 # simply because there is no reason against having it here, and in addition,
27282 # creating and moving files from /tmp can sometimes cause problems.
27283 # Hook for its removal unless debugging.
27284 # Note that there is a small window in which the directory will not be cleaned:
27285 # after its creation but before its name has been assigned to `$tmp'.
27286 $debug ||
27287 {
27288   tmp=
27289   trap 'exit_status=$?
27290   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27291 ' 0
27292   trap '{ (exit 1); exit 1; }' 1 2 13 15
27293 }
27294 # Create a (secure) tmp directory for tmp files.
27295
27296 {
27297   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27298   test -n "$tmp" && test -d "$tmp"
27299 }  ||
27300 {
27301   tmp=./conf$$-$RANDOM
27302   (umask 077 && mkdir "$tmp")
27303 } ||
27304 {
27305    echo "$me: cannot create a temporary directory in ." >&2
27306    { (exit 1); exit 1; }
27307 }
27308
27309 #
27310 # Set up the sed scripts for CONFIG_FILES section.
27311 #
27312
27313 # No need to generate the scripts if there are no CONFIG_FILES.
27314 # This happens for instance when ./config.status config.h
27315 if test -n "$CONFIG_FILES"; then
27316
27317 _ACEOF
27318
27319
27320
27321 ac_delim='%!_!# '
27322 for ac_last_try in false false false false false :; do
27323   cat >conf$$subs.sed <<_ACEOF
27324 SHELL!$SHELL$ac_delim
27325 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27326 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27327 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27328 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27329 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27330 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27331 exec_prefix!$exec_prefix$ac_delim
27332 prefix!$prefix$ac_delim
27333 program_transform_name!$program_transform_name$ac_delim
27334 bindir!$bindir$ac_delim
27335 sbindir!$sbindir$ac_delim
27336 libexecdir!$libexecdir$ac_delim
27337 datarootdir!$datarootdir$ac_delim
27338 datadir!$datadir$ac_delim
27339 sysconfdir!$sysconfdir$ac_delim
27340 sharedstatedir!$sharedstatedir$ac_delim
27341 localstatedir!$localstatedir$ac_delim
27342 includedir!$includedir$ac_delim
27343 oldincludedir!$oldincludedir$ac_delim
27344 docdir!$docdir$ac_delim
27345 infodir!$infodir$ac_delim
27346 htmldir!$htmldir$ac_delim
27347 dvidir!$dvidir$ac_delim
27348 pdfdir!$pdfdir$ac_delim
27349 psdir!$psdir$ac_delim
27350 libdir!$libdir$ac_delim
27351 localedir!$localedir$ac_delim
27352 mandir!$mandir$ac_delim
27353 DEFS!$DEFS$ac_delim
27354 ECHO_C!$ECHO_C$ac_delim
27355 ECHO_N!$ECHO_N$ac_delim
27356 ECHO_T!$ECHO_T$ac_delim
27357 LIBS!$LIBS$ac_delim
27358 build_alias!$build_alias$ac_delim
27359 host_alias!$host_alias$ac_delim
27360 target_alias!$target_alias$ac_delim
27361 lbindir!$lbindir$ac_delim
27362 lsbindir!$lsbindir$ac_delim
27363 build!$build$ac_delim
27364 build_cpu!$build_cpu$ac_delim
27365 build_vendor!$build_vendor$ac_delim
27366 build_os!$build_os$ac_delim
27367 host!$host$ac_delim
27368 host_cpu!$host_cpu$ac_delim
27369 host_vendor!$host_vendor$ac_delim
27370 host_os!$host_os$ac_delim
27371 target!$target$ac_delim
27372 target_cpu!$target_cpu$ac_delim
27373 target_vendor!$target_vendor$ac_delim
27374 target_os!$target_os$ac_delim
27375 CC!$CC$ac_delim
27376 CFLAGS!$CFLAGS$ac_delim
27377 LDFLAGS!$LDFLAGS$ac_delim
27378 CPPFLAGS!$CPPFLAGS$ac_delim
27379 ac_ct_CC!$ac_ct_CC$ac_delim
27380 EXEEXT!$EXEEXT$ac_delim
27381 OBJEXT!$OBJEXT$ac_delim
27382 YACC!$YACC$ac_delim
27383 YFLAGS!$YFLAGS$ac_delim
27384 LEX!$LEX$ac_delim
27385 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27386 LEXLIB!$LEXLIB$ac_delim
27387 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27388 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27389 INSTALL_DATA!$INSTALL_DATA$ac_delim
27390 RANLIB!$RANLIB$ac_delim
27391 GREP!$GREP$ac_delim
27392 EGREP!$EGREP$ac_delim
27393 LN_S!$LN_S$ac_delim
27394 ECHO!$ECHO$ac_delim
27395 AR!$AR$ac_delim
27396 STRIP!$STRIP$ac_delim
27397 CPP!$CPP$ac_delim
27398 CXX!$CXX$ac_delim
27399 CXXFLAGS!$CXXFLAGS$ac_delim
27400 ac_ct_CXX!$ac_ct_CXX$ac_delim
27401 CXXCPP!$CXXCPP$ac_delim
27402 F77!$F77$ac_delim
27403 FFLAGS!$FFLAGS$ac_delim
27404 ac_ct_F77!$ac_ct_F77$ac_delim
27405 LIBTOOL!$LIBTOOL$ac_delim
27406 XMKMF!$XMKMF$ac_delim
27407 X_CFLAGS!$X_CFLAGS$ac_delim
27408 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27409 X_LIBS!$X_LIBS$ac_delim
27410 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27411 XCLIENTS!$XCLIENTS$ac_delim
27412 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
27413 TLIB!$TLIB$ac_delim
27414 RLIB!$RLIB$ac_delim
27415 SLIB!$SLIB$ac_delim
27416 KRB4_LIBS!$KRB4_LIBS$ac_delim
27417 krb5config!$krb5config$ac_delim
27418 KRB5_LIBS!$KRB5_LIBS$ac_delim
27419 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
27420 REGEX_LIBS!$REGEX_LIBS$ac_delim
27421 _ACEOF
27422
27423   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27424     break
27425   elif $ac_last_try; then
27426     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27427 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27428    { (exit 1); exit 1; }; }
27429   else
27430     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27431   fi
27432 done
27433
27434 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27435 if test -n "$ac_eof"; then
27436   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27437   ac_eof=`expr $ac_eof + 1`
27438 fi
27439
27440 cat >>$CONFIG_STATUS <<_ACEOF
27441 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27443 _ACEOF
27444 sed '
27445 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27446 s/^/s,@/; s/!/@,|#_!!_#|/
27447 :n
27448 t n
27449 s/'"$ac_delim"'$/,g/; t
27450 s/$/\\/; p
27451 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27452 ' >>$CONFIG_STATUS <conf$$subs.sed
27453 rm -f conf$$subs.sed
27454 cat >>$CONFIG_STATUS <<_ACEOF
27455 CEOF$ac_eof
27456 _ACEOF
27457
27458
27459 ac_delim='%!_!# '
27460 for ac_last_try in false false false false false :; do
27461   cat >conf$$subs.sed <<_ACEOF
27462 ARES_LIBS!$ARES_LIBS$ac_delim
27463 LIBOBJS!$LIBOBJS$ac_delim
27464 LTLIBOBJS!$LTLIBOBJS$ac_delim
27465 _ACEOF
27466
27467   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
27468     break
27469   elif $ac_last_try; then
27470     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27471 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27472    { (exit 1); exit 1; }; }
27473   else
27474     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27475   fi
27476 done
27477
27478 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27479 if test -n "$ac_eof"; then
27480   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27481   ac_eof=`expr $ac_eof + 1`
27482 fi
27483
27484 cat >>$CONFIG_STATUS <<_ACEOF
27485 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27487 _ACEOF
27488 sed '
27489 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27490 s/^/s,@/; s/!/@,|#_!!_#|/
27491 :n
27492 t n
27493 s/'"$ac_delim"'$/,g/; t
27494 s/$/\\/; p
27495 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27496 ' >>$CONFIG_STATUS <conf$$subs.sed
27497 rm -f conf$$subs.sed
27498 cat >>$CONFIG_STATUS <<_ACEOF
27499 :end
27500 s/|#_!!_#|//g
27501 CEOF$ac_eof
27502 _ACEOF
27503
27504
27505 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27506 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27507 # trailing colons and then remove the whole line if VPATH becomes empty
27508 # (actually we leave an empty line to preserve line numbers).
27509 if test "x$srcdir" = x.; then
27510   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27511 s/:*\$(srcdir):*/:/
27512 s/:*\${srcdir}:*/:/
27513 s/:*@srcdir@:*/:/
27514 s/^\([^=]*=[     ]*\):*/\1/
27515 s/:*$//
27516 s/^[^=]*=[       ]*$//
27517 }'
27518 fi
27519
27520 cat >>$CONFIG_STATUS <<\_ACEOF
27521 fi # test -n "$CONFIG_FILES"
27522
27523
27524 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
27525 do
27526   case $ac_tag in
27527   :[FHLC]) ac_mode=$ac_tag; continue;;
27528   esac
27529   case $ac_mode$ac_tag in
27530   :[FHL]*:*);;
27531   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27532 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27533    { (exit 1); exit 1; }; };;
27534   :[FH]-) ac_tag=-:-;;
27535   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27536   esac
27537   ac_save_IFS=$IFS
27538   IFS=:
27539   set x $ac_tag
27540   IFS=$ac_save_IFS
27541   shift
27542   ac_file=$1
27543   shift
27544
27545   case $ac_mode in
27546   :L) ac_source=$1;;
27547   :[FH])
27548     ac_file_inputs=
27549     for ac_f
27550     do
27551       case $ac_f in
27552       -) ac_f="$tmp/stdin";;
27553       *) # Look for the file first in the build tree, then in the source tree
27554          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27555          # because $ac_f cannot contain `:'.
27556          test -f "$ac_f" ||
27557            case $ac_f in
27558            [\\/$]*) false;;
27559            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27560            esac ||
27561            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27562 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27563    { (exit 1); exit 1; }; };;
27564       esac
27565       ac_file_inputs="$ac_file_inputs $ac_f"
27566     done
27567
27568     # Let's still pretend it is `configure' which instantiates (i.e., don't
27569     # use $as_me), people would be surprised to read:
27570     #    /* config.h.  Generated by config.status.  */
27571     configure_input="Generated from "`IFS=:
27572           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27573     if test x"$ac_file" != x-; then
27574       configure_input="$ac_file.  $configure_input"
27575       { echo "$as_me:$LINENO: creating $ac_file" >&5
27576 echo "$as_me: creating $ac_file" >&6;}
27577     fi
27578
27579     case $ac_tag in
27580     *:-:* | *:-) cat >"$tmp/stdin";;
27581     esac
27582     ;;
27583   esac
27584
27585   ac_dir=`$as_dirname -- "$ac_file" ||
27586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27587          X"$ac_file" : 'X\(//\)[^/]' \| \
27588          X"$ac_file" : 'X\(//\)$' \| \
27589          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27590 echo X"$ac_file" |
27591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27592             s//\1/
27593             q
27594           }
27595           /^X\(\/\/\)[^/].*/{
27596             s//\1/
27597             q
27598           }
27599           /^X\(\/\/\)$/{
27600             s//\1/
27601             q
27602           }
27603           /^X\(\/\).*/{
27604             s//\1/
27605             q
27606           }
27607           s/.*/./; q'`
27608   { as_dir="$ac_dir"
27609   case $as_dir in #(
27610   -*) as_dir=./$as_dir;;
27611   esac
27612   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27613     as_dirs=
27614     while :; do
27615       case $as_dir in #(
27616       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27617       *) as_qdir=$as_dir;;
27618       esac
27619       as_dirs="'$as_qdir' $as_dirs"
27620       as_dir=`$as_dirname -- "$as_dir" ||
27621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27622          X"$as_dir" : 'X\(//\)[^/]' \| \
27623          X"$as_dir" : 'X\(//\)$' \| \
27624          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27625 echo X"$as_dir" |
27626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27627             s//\1/
27628             q
27629           }
27630           /^X\(\/\/\)[^/].*/{
27631             s//\1/
27632             q
27633           }
27634           /^X\(\/\/\)$/{
27635             s//\1/
27636             q
27637           }
27638           /^X\(\/\).*/{
27639             s//\1/
27640             q
27641           }
27642           s/.*/./; q'`
27643       test -d "$as_dir" && break
27644     done
27645     test -z "$as_dirs" || eval "mkdir $as_dirs"
27646   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27647 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27648    { (exit 1); exit 1; }; }; }
27649   ac_builddir=.
27650
27651 case "$ac_dir" in
27652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27653 *)
27654   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27655   # A ".." for each directory in $ac_dir_suffix.
27656   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27657   case $ac_top_builddir_sub in
27658   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27659   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27660   esac ;;
27661 esac
27662 ac_abs_top_builddir=$ac_pwd
27663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27664 # for backward compatibility:
27665 ac_top_builddir=$ac_top_build_prefix
27666
27667 case $srcdir in
27668   .)  # We are building in place.
27669     ac_srcdir=.
27670     ac_top_srcdir=$ac_top_builddir_sub
27671     ac_abs_top_srcdir=$ac_pwd ;;
27672   [\\/]* | ?:[\\/]* )  # Absolute name.
27673     ac_srcdir=$srcdir$ac_dir_suffix;
27674     ac_top_srcdir=$srcdir
27675     ac_abs_top_srcdir=$srcdir ;;
27676   *) # Relative name.
27677     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27678     ac_top_srcdir=$ac_top_build_prefix$srcdir
27679     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27680 esac
27681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27682
27683
27684   case $ac_mode in
27685   :F)
27686   #
27687   # CONFIG_FILE
27688   #
27689
27690   case $INSTALL in
27691   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27692   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27693   esac
27694 _ACEOF
27695
27696 cat >>$CONFIG_STATUS <<\_ACEOF
27697 # If the template does not know about datarootdir, expand it.
27698 # FIXME: This hack should be removed a few years after 2.60.
27699 ac_datarootdir_hack=; ac_datarootdir_seen=
27700
27701 case `sed -n '/datarootdir/ {
27702   p
27703   q
27704 }
27705 /@datadir@/p
27706 /@docdir@/p
27707 /@infodir@/p
27708 /@localedir@/p
27709 /@mandir@/p
27710 ' $ac_file_inputs` in
27711 *datarootdir*) ac_datarootdir_seen=yes;;
27712 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27713   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27714 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27715 _ACEOF
27716 cat >>$CONFIG_STATUS <<_ACEOF
27717   ac_datarootdir_hack='
27718   s&@datadir@&$datadir&g
27719   s&@docdir@&$docdir&g
27720   s&@infodir@&$infodir&g
27721   s&@localedir@&$localedir&g
27722   s&@mandir@&$mandir&g
27723     s&\\\${datarootdir}&$datarootdir&g' ;;
27724 esac
27725 _ACEOF
27726
27727 # Neutralize VPATH when `$srcdir' = `.'.
27728 # Shell code in configure.ac might set extrasub.
27729 # FIXME: do we really want to maintain this feature?
27730 cat >>$CONFIG_STATUS <<_ACEOF
27731   sed "$ac_vpsub
27732 $extrasub
27733 _ACEOF
27734 cat >>$CONFIG_STATUS <<\_ACEOF
27735 :t
27736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27737 s&@configure_input@&$configure_input&;t t
27738 s&@top_builddir@&$ac_top_builddir_sub&;t t
27739 s&@srcdir@&$ac_srcdir&;t t
27740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27741 s&@top_srcdir@&$ac_top_srcdir&;t t
27742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27743 s&@builddir@&$ac_builddir&;t t
27744 s&@abs_builddir@&$ac_abs_builddir&;t t
27745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27746 s&@INSTALL@&$ac_INSTALL&;t t
27747 $ac_datarootdir_hack
27748 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27749
27750 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27751   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27752   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27753   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27754 which seems to be undefined.  Please make sure it is defined." >&5
27755 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27756 which seems to be undefined.  Please make sure it is defined." >&2;}
27757
27758   rm -f "$tmp/stdin"
27759   case $ac_file in
27760   -) cat "$tmp/out"; rm -f "$tmp/out";;
27761   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27762   esac
27763  ;;
27764   :H)
27765   #
27766   # CONFIG_HEADER
27767   #
27768 _ACEOF
27769
27770 # Transform confdefs.h into a sed script `conftest.defines', that
27771 # substitutes the proper values into config.h.in to produce config.h.
27772 rm -f conftest.defines conftest.tail
27773 # First, append a space to every undef/define line, to ease matching.
27774 echo 's/$/ /' >conftest.defines
27775 # Then, protect against being on the right side of a sed subst, or in
27776 # an unquoted here document, in config.status.  If some macros were
27777 # called several times there might be several #defines for the same
27778 # symbol, which is useless.  But do not sort them, since the last
27779 # AC_DEFINE must be honored.
27780 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27781 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27782 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27783 # PARAMS is the parameter list in the macro definition--in most cases, it's
27784 # just an empty string.
27785 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27786 ac_dB='\\)[      (].*,\\1define\\2'
27787 ac_dC=' '
27788 ac_dD=' ,'
27789
27790 uniq confdefs.h |
27791   sed -n '
27792         t rset
27793         :rset
27794         s/^[     ]*#[    ]*define[       ][      ]*//
27795         t ok
27796         d
27797         :ok
27798         s/[\\&,]/\\&/g
27799         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27800         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27801   ' >>conftest.defines
27802
27803 # Remove the space that was appended to ease matching.
27804 # Then replace #undef with comments.  This is necessary, for
27805 # example, in the case of _POSIX_SOURCE, which is predefined and required
27806 # on some systems where configure will not decide to define it.
27807 # (The regexp can be short, since the line contains either #define or #undef.)
27808 echo 's/ $//
27809 s,^[     #]*u.*,/* & */,' >>conftest.defines
27810
27811 # Break up conftest.defines:
27812 ac_max_sed_lines=50
27813
27814 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27815 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27816 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27817 # et cetera.
27818 ac_in='$ac_file_inputs'
27819 ac_out='"$tmp/out1"'
27820 ac_nxt='"$tmp/out2"'
27821
27822 while :
27823 do
27824   # Write a here document:
27825     cat >>$CONFIG_STATUS <<_ACEOF
27826     # First, check the format of the line:
27827     cat >"\$tmp/defines.sed" <<\\CEOF
27828 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27829 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27830 b
27831 :def
27832 _ACEOF
27833   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27834   echo 'CEOF
27835     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27836   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27837   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27838   grep . conftest.tail >/dev/null || break
27839   rm -f conftest.defines
27840   mv conftest.tail conftest.defines
27841 done
27842 rm -f conftest.defines conftest.tail
27843
27844 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27845 cat >>$CONFIG_STATUS <<\_ACEOF
27846   if test x"$ac_file" != x-; then
27847     echo "/* $configure_input  */" >"$tmp/config.h"
27848     cat "$ac_result" >>"$tmp/config.h"
27849     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27850       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27851 echo "$as_me: $ac_file is unchanged" >&6;}
27852     else
27853       rm -f $ac_file
27854       mv "$tmp/config.h" $ac_file
27855     fi
27856   else
27857     echo "/* $configure_input  */"
27858     cat "$ac_result"
27859   fi
27860   rm -f "$tmp/out12"
27861  ;;
27862
27863
27864   esac
27865
27866 done # for ac_tag
27867
27868
27869 { (exit 0); exit 0; }
27870 _ACEOF
27871 chmod +x $CONFIG_STATUS
27872 ac_clean_files=$ac_clean_files_save
27873
27874
27875 # configure is writing to config.log, and then calls config.status.
27876 # config.status does its own redirection, appending to config.log.
27877 # Unfortunately, on DOS this fails, as config.log is still kept open
27878 # by configure, so config.status won't be able to write to it; its
27879 # output is simply discarded.  So we exec the FD to /dev/null,
27880 # effectively closing config.log, so it can be properly (re)opened and
27881 # appended to by config.status.  When coming back to configure, we
27882 # need to make the FD available again.
27883 if test "$no_create" != yes; then
27884   ac_cs_success=:
27885   ac_config_status_args=
27886   test "$silent" = yes &&
27887     ac_config_status_args="$ac_config_status_args --quiet"
27888   exec 5>/dev/null
27889   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27890   exec 5>>config.log
27891   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27892   # would make configure fail if this is the last instruction.
27893   $ac_cs_success || { (exit 1); exit 1; }
27894 fi
27895