]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/configure
r4272@bucket (orig r262): kcr | 2008-01-21 02:46:16 -0500
[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 KRB5_LIBS
864 HESIOD_LIBS
865 REGEX_LIBS
866 ARES_LIBS
867 LIBOBJS
868 LTLIBOBJS'
869 ac_subst_files=''
870       ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 CC
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
878 YACC
879 YFLAGS
880 CPP
881 CXX
882 CXXFLAGS
883 CCC
884 CXXCPP
885 F77
886 FFLAGS
887 XMKMF'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
909
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
935
936 ac_prev=
937 ac_dashdash=
938 for ac_option
939 do
940   # If the previous option needs an argument, assign it.
941   if test -n "$ac_prev"; then
942     eval $ac_prev=\$ac_option
943     ac_prev=
944     continue
945   fi
946
947   case $ac_option in
948   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949   *)    ac_optarg=yes ;;
950   esac
951
952   # Accept the important Cygnus configure options, so we can diagnose typos.
953
954   case $ac_dashdash$ac_option in
955   --)
956     ac_dashdash=yes ;;
957
958   -bindir | --bindir | --bindi | --bind | --bin | --bi)
959     ac_prev=bindir ;;
960   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961     bindir=$ac_optarg ;;
962
963   -build | --build | --buil | --bui | --bu)
964     ac_prev=build_alias ;;
965   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966     build_alias=$ac_optarg ;;
967
968   -cache-file | --cache-file | --cache-fil | --cache-fi \
969   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970     ac_prev=cache_file ;;
971   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973     cache_file=$ac_optarg ;;
974
975   --config-cache | -C)
976     cache_file=config.cache ;;
977
978   -datadir | --datadir | --datadi | --datad)
979     ac_prev=datadir ;;
980   -datadir=* | --datadir=* | --datadi=* | --datad=*)
981     datadir=$ac_optarg ;;
982
983   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984   | --dataroo | --dataro | --datar)
985     ac_prev=datarootdir ;;
986   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988     datarootdir=$ac_optarg ;;
989
990   -disable-* | --disable-*)
991     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992     # Reject names that are not valid shell variable names.
993     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
994       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995    { (exit 1); exit 1; }; }
996     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
997     eval enable_$ac_feature=no ;;
998
999   -docdir | --docdir | --docdi | --doc | --do)
1000     ac_prev=docdir ;;
1001   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002     docdir=$ac_optarg ;;
1003
1004   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005     ac_prev=dvidir ;;
1006   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007     dvidir=$ac_optarg ;;
1008
1009   -enable-* | --enable-*)
1010     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011     # Reject names that are not valid shell variable names.
1012     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014    { (exit 1); exit 1; }; }
1015     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016     eval enable_$ac_feature=\$ac_optarg ;;
1017
1018   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020   | --exec | --exe | --ex)
1021     ac_prev=exec_prefix ;;
1022   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024   | --exec=* | --exe=* | --ex=*)
1025     exec_prefix=$ac_optarg ;;
1026
1027   -gas | --gas | --ga | --g)
1028     # Obsolete; use --with-gas.
1029     with_gas=yes ;;
1030
1031   -help | --help | --hel | --he | -h)
1032     ac_init_help=long ;;
1033   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034     ac_init_help=recursive ;;
1035   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036     ac_init_help=short ;;
1037
1038   -host | --host | --hos | --ho)
1039     ac_prev=host_alias ;;
1040   -host=* | --host=* | --hos=* | --ho=*)
1041     host_alias=$ac_optarg ;;
1042
1043   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044     ac_prev=htmldir ;;
1045   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046   | --ht=*)
1047     htmldir=$ac_optarg ;;
1048
1049   -includedir | --includedir | --includedi | --included | --include \
1050   | --includ | --inclu | --incl | --inc)
1051     ac_prev=includedir ;;
1052   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053   | --includ=* | --inclu=* | --incl=* | --inc=*)
1054     includedir=$ac_optarg ;;
1055
1056   -infodir | --infodir | --infodi | --infod | --info | --inf)
1057     ac_prev=infodir ;;
1058   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059     infodir=$ac_optarg ;;
1060
1061   -libdir | --libdir | --libdi | --libd)
1062     ac_prev=libdir ;;
1063   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064     libdir=$ac_optarg ;;
1065
1066   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067   | --libexe | --libex | --libe)
1068     ac_prev=libexecdir ;;
1069   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070   | --libexe=* | --libex=* | --libe=*)
1071     libexecdir=$ac_optarg ;;
1072
1073   -localedir | --localedir | --localedi | --localed | --locale)
1074     ac_prev=localedir ;;
1075   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076     localedir=$ac_optarg ;;
1077
1078   -localstatedir | --localstatedir | --localstatedi | --localstated \
1079   | --localstate | --localstat | --localsta | --localst | --locals)
1080     ac_prev=localstatedir ;;
1081   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083     localstatedir=$ac_optarg ;;
1084
1085   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086     ac_prev=mandir ;;
1087   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088     mandir=$ac_optarg ;;
1089
1090   -nfp | --nfp | --nf)
1091     # Obsolete; use --without-fp.
1092     with_fp=no ;;
1093
1094   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095   | --no-cr | --no-c | -n)
1096     no_create=yes ;;
1097
1098   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100     no_recursion=yes ;;
1101
1102   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104   | --oldin | --oldi | --old | --ol | --o)
1105     ac_prev=oldincludedir ;;
1106   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109     oldincludedir=$ac_optarg ;;
1110
1111   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112     ac_prev=prefix ;;
1113   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114     prefix=$ac_optarg ;;
1115
1116   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117   | --program-pre | --program-pr | --program-p)
1118     ac_prev=program_prefix ;;
1119   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121     program_prefix=$ac_optarg ;;
1122
1123   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124   | --program-suf | --program-su | --program-s)
1125     ac_prev=program_suffix ;;
1126   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128     program_suffix=$ac_optarg ;;
1129
1130   -program-transform-name | --program-transform-name \
1131   | --program-transform-nam | --program-transform-na \
1132   | --program-transform-n | --program-transform- \
1133   | --program-transform | --program-transfor \
1134   | --program-transfo | --program-transf \
1135   | --program-trans | --program-tran \
1136   | --progr-tra | --program-tr | --program-t)
1137     ac_prev=program_transform_name ;;
1138   -program-transform-name=* | --program-transform-name=* \
1139   | --program-transform-nam=* | --program-transform-na=* \
1140   | --program-transform-n=* | --program-transform-=* \
1141   | --program-transform=* | --program-transfor=* \
1142   | --program-transfo=* | --program-transf=* \
1143   | --program-trans=* | --program-tran=* \
1144   | --progr-tra=* | --program-tr=* | --program-t=*)
1145     program_transform_name=$ac_optarg ;;
1146
1147   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148     ac_prev=pdfdir ;;
1149   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150     pdfdir=$ac_optarg ;;
1151
1152   -psdir | --psdir | --psdi | --psd | --ps)
1153     ac_prev=psdir ;;
1154   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155     psdir=$ac_optarg ;;
1156
1157   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158   | -silent | --silent | --silen | --sile | --sil)
1159     silent=yes ;;
1160
1161   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162     ac_prev=sbindir ;;
1163   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164   | --sbi=* | --sb=*)
1165     sbindir=$ac_optarg ;;
1166
1167   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169   | --sharedst | --shareds | --shared | --share | --shar \
1170   | --sha | --sh)
1171     ac_prev=sharedstatedir ;;
1172   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175   | --sha=* | --sh=*)
1176     sharedstatedir=$ac_optarg ;;
1177
1178   -site | --site | --sit)
1179     ac_prev=site ;;
1180   -site=* | --site=* | --sit=*)
1181     site=$ac_optarg ;;
1182
1183   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184     ac_prev=srcdir ;;
1185   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186     srcdir=$ac_optarg ;;
1187
1188   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189   | --syscon | --sysco | --sysc | --sys | --sy)
1190     ac_prev=sysconfdir ;;
1191   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193     sysconfdir=$ac_optarg ;;
1194
1195   -target | --target | --targe | --targ | --tar | --ta | --t)
1196     ac_prev=target_alias ;;
1197   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198     target_alias=$ac_optarg ;;
1199
1200   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201     verbose=yes ;;
1202
1203   -version | --version | --versio | --versi | --vers | -V)
1204     ac_init_version=: ;;
1205
1206   -with-* | --with-*)
1207     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208     # Reject names that are not valid shell variable names.
1209     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210       { echo "$as_me: error: invalid package name: $ac_package" >&2
1211    { (exit 1); exit 1; }; }
1212     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1213     eval with_$ac_package=\$ac_optarg ;;
1214
1215   -without-* | --without-*)
1216     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219       { echo "$as_me: error: invalid package name: $ac_package" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222     eval with_$ac_package=no ;;
1223
1224   --x)
1225     # Obsolete; use --with-x.
1226     with_x=yes ;;
1227
1228   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229   | --x-incl | --x-inc | --x-in | --x-i)
1230     ac_prev=x_includes ;;
1231   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233     x_includes=$ac_optarg ;;
1234
1235   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237     ac_prev=x_libraries ;;
1238   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240     x_libraries=$ac_optarg ;;
1241
1242   -*) { echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244    { (exit 1); exit 1; }; }
1245     ;;
1246
1247   *=*)
1248     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252    { (exit 1); exit 1; }; }
1253     eval $ac_envvar=\$ac_optarg
1254     export $ac_envvar ;;
1255
1256   *)
1257     # FIXME: should be removed in autoconf 3.0.
1258     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1262     ;;
1263
1264   esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269   { echo "$as_me: error: missing argument to $ac_option" >&2
1270    { (exit 1); exit 1; }; }
1271 fi
1272
1273 # Be sure to have absolute directory names.
1274 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275                 datadir sysconfdir sharedstatedir localstatedir includedir \
1276                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277                 libdir localedir mandir
1278 do
1279   eval ac_val=\$$ac_var
1280   case $ac_val in
1281     [\\/$]* | ?:[\\/]* )  continue;;
1282     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283   esac
1284   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1285    { (exit 1); exit 1; }; }
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297   if test "x$build_alias" = x; then
1298     cross_compiling=maybe
1299     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300     If a cross compiler is detected then cross compile mode will be used." >&2
1301   elif test "x$build_alias" != "x$host_alias"; then
1302     cross_compiling=yes
1303   fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315   { echo "$as_me: error: Working directory cannot be determined" >&2
1316    { (exit 1); exit 1; }; }
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318   { echo "$as_me: error: pwd does not report name of working directory" >&2
1319    { (exit 1); exit 1; }; }
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324   ac_srcdir_defaulted=yes
1325   # Try the directory containing this script, then the parent directory.
1326   ac_confdir=`$as_dirname -- "$0" ||
1327 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328          X"$0" : 'X\(//\)[^/]' \| \
1329          X"$0" : 'X\(//\)$' \| \
1330          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1331 echo X"$0" |
1332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\/\)[^/].*/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\/\)$/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\).*/{
1345             s//\1/
1346             q
1347           }
1348           s/.*/./; q'`
1349   srcdir=$ac_confdir
1350   if test ! -r "$srcdir/$ac_unique_file"; then
1351     srcdir=..
1352   fi
1353 else
1354   ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1359    { (exit 1); exit 1; }; }
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1364    { (exit 1); exit 1; }; }
1365         pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368   srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378   eval ac_env_${ac_var}_value=\$${ac_var}
1379   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387   # Omit some internal or obsolete options to make the list less imposing.
1388   # This message is too long to be a string in the A/UX 3.1 sh.
1389   cat <<_ACEOF
1390 \`configure' configures this package to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE.  See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400   -h, --help              display this help and exit
1401       --help=short        display options specific to this package
1402       --help=recursive    display the short help of all the included packages
1403   -V, --version           display version information and exit
1404   -q, --quiet, --silent   do not print \`checking...' messages
1405       --cache-file=FILE   cache test results in FILE [disabled]
1406   -C, --config-cache      alias for \`--cache-file=config.cache'
1407   -n, --no-create         do not create output files
1408       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411   --prefix=PREFIX         install architecture-independent files in PREFIX
1412                           [$ac_default_prefix]
1413   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1414                           [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424   --bindir=DIR           user executables [EPREFIX/bin]
1425   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1426   --libexecdir=DIR       program executables [EPREFIX/libexec]
1427   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1428   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1429   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1430   --libdir=DIR           object code libraries [EPREFIX/lib]
1431   --includedir=DIR       C header files [PREFIX/include]
1432   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1433   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1434   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1435   --infodir=DIR          info documentation [DATAROOTDIR/info]
1436   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1437   --mandir=DIR           man documentation [DATAROOTDIR/man]
1438   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1439   --htmldir=DIR          html documentation [DOCDIR]
1440   --dvidir=DIR           dvi documentation [DOCDIR]
1441   --pdfdir=DIR           pdf documentation [DOCDIR]
1442   --psdir=DIR            ps documentation [DOCDIR]
1443 _ACEOF
1444
1445   cat <<\_ACEOF
1446
1447 X features:
1448   --x-includes=DIR    X include files are in DIR
1449   --x-libraries=DIR   X library files are in DIR
1450
1451 System types:
1452   --build=BUILD     configure for building on BUILD [guessed]
1453   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1454   --target=TARGET   configure for building compilers for TARGET [HOST]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459
1460   cat <<\_ACEOF
1461
1462 Optional Features:
1463   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465   --enable-shared[=PKGS]  build shared libraries [default=yes]
1466   --enable-static[=PKGS]  build static libraries [default=yes]
1467   --enable-fast-install[=PKGS]
1468                           optimize for fast installation [default=yes]
1469   --disable-libtool-lock  avoid locking (might break parallel builds)
1470
1471 Optional Packages:
1472   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1475   --with-pic              try to use only PIC/non-PIC objects [default=use
1476                           both]
1477   --with-tags[=TAGS]      include additional configurations [automatic]
1478   --with-x                use the X Window System
1479   --with-krb4=PREFIX      Use Kerberos 4
1480   --with-krb5=PREFIX      Use Kerberos 5
1481   --with-hesiod=PREFIX    Use Hesiod
1482   --with-regex=PREFIX     Use installed regex library
1483   --with-ares=PREFIX      Use libares
1484   --with-com_err=PREFIX   Specify location of com_err
1485   --with-ss=PREFIX        Specify location of ss (requires com_err)
1486
1487 Some influential environment variables:
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491               nonstandard directory <lib dir>
1492   LIBS        libraries to pass to the linker, e.g. -l<library>
1493   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1496               the first program found out of: `bison -y', `byacc', `yacc'.
1497   YFLAGS      The list of arguments that will be passed by default to $YACC.
1498               This script will default YFLAGS to the empty string to avoid a
1499               default value of `-d' given by some make applications.
1500   CPP         C preprocessor
1501   CXX         C++ compiler command
1502   CXXFLAGS    C++ compiler flags
1503   CXXCPP      C++ preprocessor
1504   F77         Fortran 77 compiler command
1505   FFLAGS      Fortran 77 compiler flags
1506   XMKMF       Path to xmkmf, Makefile generator for X Window System
1507
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1510
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516   # If there are subdirs, report their specific --help.
1517   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518     test -d "$ac_dir" || continue
1519     ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525   # A ".." for each directory in $ac_dir_suffix.
1526   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527   case $ac_top_builddir_sub in
1528   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530   esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538   .)  # We are building in place.
1539     ac_srcdir=.
1540     ac_top_srcdir=$ac_top_builddir_sub
1541     ac_abs_top_srcdir=$ac_pwd ;;
1542   [\\/]* | ?:[\\/]* )  # Absolute name.
1543     ac_srcdir=$srcdir$ac_dir_suffix;
1544     ac_top_srcdir=$srcdir
1545     ac_abs_top_srcdir=$srcdir ;;
1546   *) # Relative name.
1547     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548     ac_top_srcdir=$ac_top_build_prefix$srcdir
1549     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553     cd "$ac_dir" || { ac_status=$?; continue; }
1554     # Check for guested configure.
1555     if test -f "$ac_srcdir/configure.gnu"; then
1556       echo &&
1557       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558     elif test -f "$ac_srcdir/configure"; then
1559       echo &&
1560       $SHELL "$ac_srcdir/configure" --help=recursive
1561     else
1562       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563     fi || ac_status=$?
1564     cd "$ac_pwd" || { ac_status=$?; break; }
1565   done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570   cat <<\_ACEOF
1571 configure
1572 generated by GNU Autoconf 2.61
1573
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579   exit
1580 fi
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1584
1585 It was created by $as_me, which was
1586 generated by GNU Autoconf 2.61.  Invocation command line was
1587
1588   $ $0 $@
1589
1590 _ACEOF
1591 exec 5>>config.log
1592 {
1593 cat <<_ASUNAME
1594 ## --------- ##
1595 ## Platform. ##
1596 ## --------- ##
1597
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1606
1607 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1608 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1611 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1612 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1613 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1614
1615 _ASUNAME
1616
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620   IFS=$as_save_IFS
1621   test -z "$as_dir" && as_dir=.
1622   echo "PATH: $as_dir"
1623 done
1624 IFS=$as_save_IFS
1625
1626 } >&5
1627
1628 cat >&5 <<_ACEOF
1629
1630
1631 ## ----------- ##
1632 ## Core tests. ##
1633 ## ----------- ##
1634
1635 _ACEOF
1636
1637
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_configure_args=
1644 ac_configure_args0=
1645 ac_configure_args1=
1646 ac_must_keep_next=false
1647 for ac_pass in 1 2
1648 do
1649   for ac_arg
1650   do
1651     case $ac_arg in
1652     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654     | -silent | --silent | --silen | --sile | --sil)
1655       continue ;;
1656     *\'*)
1657       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658     esac
1659     case $ac_pass in
1660     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661     2)
1662       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663       if test $ac_must_keep_next = true; then
1664         ac_must_keep_next=false # Got value, back to normal.
1665       else
1666         case $ac_arg in
1667           *=* | --config-cache | -C | -disable-* | --disable-* \
1668           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670           | -with-* | --with-* | -without-* | --without-* | --x)
1671             case "$ac_configure_args0 " in
1672               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673             esac
1674             ;;
1675           -* ) ac_must_keep_next=true ;;
1676         esac
1677       fi
1678       ac_configure_args="$ac_configure_args '$ac_arg'"
1679       ;;
1680     esac
1681   done
1682 done
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log.  We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692   # Save into config.log some information that might help in debugging.
1693   {
1694     echo
1695
1696     cat <<\_ASBOX
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1700 _ASBOX
1701     echo
1702     # The following way of writing the cache mishandles newlines in values,
1703 (
1704   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705     eval ac_val=\$$ac_var
1706     case $ac_val in #(
1707     *${as_nl}*)
1708       case $ac_var in #(
1709       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711       esac
1712       case $ac_var in #(
1713       _ | IFS | as_nl) ;; #(
1714       *) $as_unset $ac_var ;;
1715       esac ;;
1716     esac
1717   done
1718   (set) 2>&1 |
1719     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720     *${as_nl}ac_space=\ *)
1721       sed -n \
1722         "s/'\''/'\''\\\\'\'''\''/g;
1723           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724       ;; #(
1725     *)
1726       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727       ;;
1728     esac |
1729     sort
1730 )
1731     echo
1732
1733     cat <<\_ASBOX
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1737 _ASBOX
1738     echo
1739     for ac_var in $ac_subst_vars
1740     do
1741       eval ac_val=\$$ac_var
1742       case $ac_val in
1743       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744       esac
1745       echo "$ac_var='\''$ac_val'\''"
1746     done | sort
1747     echo
1748
1749     if test -n "$ac_subst_files"; then
1750       cat <<\_ASBOX
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1754 _ASBOX
1755       echo
1756       for ac_var in $ac_subst_files
1757       do
1758         eval ac_val=\$$ac_var
1759         case $ac_val in
1760         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761         esac
1762         echo "$ac_var='\''$ac_val'\''"
1763       done | sort
1764       echo
1765     fi
1766
1767     if test -s confdefs.h; then
1768       cat <<\_ASBOX
1769 ## ----------- ##
1770 ## confdefs.h. ##
1771 ## ----------- ##
1772 _ASBOX
1773       echo
1774       cat confdefs.h
1775       echo
1776     fi
1777     test "$ac_signal" != 0 &&
1778       echo "$as_me: caught signal $ac_signal"
1779     echo "$as_me: exit $exit_status"
1780   } >&5
1781   rm -f core *.core core.conftest.* &&
1782     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783     exit $exit_status
1784 ' 0
1785 for ac_signal in 1 2 13 15; do
1786   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 done
1788 ac_signal=0
1789
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1792
1793 # Predefined preprocessor variables.
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 _ACEOF
1818
1819
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823   set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 else
1827   set x "$ac_default_prefix/share/config.site" \
1828         "$ac_default_prefix/etc/config.site"
1829 fi
1830 shift
1831 for ac_site_file
1832 do
1833   if test -r "$ac_site_file"; then
1834     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 echo "$as_me: loading site script $ac_site_file" >&6;}
1836     sed 's/^/| /' "$ac_site_file" >&5
1837     . "$ac_site_file"
1838   fi
1839 done
1840
1841 if test -r "$cache_file"; then
1842   # Some versions of bash will fail to source /dev/null (special
1843   # files actually), so we avoid doing that.
1844   if test -f "$cache_file"; then
1845     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 echo "$as_me: loading cache $cache_file" >&6;}
1847     case $cache_file in
1848       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849       *)                      . "./$cache_file";;
1850     esac
1851   fi
1852 else
1853   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 echo "$as_me: creating cache $cache_file" >&6;}
1855   >$cache_file
1856 fi
1857
1858 # Check that the precious variables saved in the cache have kept the same
1859 # value.
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863   eval ac_new_set=\$ac_env_${ac_var}_set
1864   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865   eval ac_new_val=\$ac_env_${ac_var}_value
1866   case $ac_old_set,$ac_new_set in
1867     set,)
1868       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870       ac_cache_corrupted=: ;;
1871     ,set)
1872       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874       ac_cache_corrupted=: ;;
1875     ,);;
1876     *)
1877       if test "x$ac_old_val" != "x$ac_new_val"; then
1878         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1881 echo "$as_me:   former value:  $ac_old_val" >&2;}
1882         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1883 echo "$as_me:   current value: $ac_new_val" >&2;}
1884         ac_cache_corrupted=:
1885       fi;;
1886   esac
1887   # Pass precious variables to config.status.
1888   if test "$ac_new_set" = set; then
1889     case $ac_new_val in
1890     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891     *) ac_arg=$ac_var=$ac_new_val ;;
1892     esac
1893     case " $ac_configure_args " in
1894       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1895       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896     esac
1897   fi
1898 done
1899 if $ac_cache_corrupted; then
1900   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904    { (exit 1); exit 1; }; }
1905 fi
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928
1929
1930
1931 test -d h || mkdir h
1932 test -d h/zephyr || mkdir h/zephyr
1933
1934 test -z "$lbindir" && lbindir='${bindir}'
1935 test -z "$lsbindir" && lsbindir='${sbindir}'
1936
1937
1938
1939 ac_aux_dir=
1940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941   if test -f "$ac_dir/install-sh"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/install-sh -c"
1944     break
1945   elif 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/shtool"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/shtool install -c"
1952     break
1953   fi
1954 done
1955 if test -z "$ac_aux_dir"; then
1956   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1968
1969
1970 # Make sure we can run config.sub.
1971 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1972   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1973 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1974    { (exit 1); exit 1; }; }
1975
1976 { echo "$as_me:$LINENO: checking build system type" >&5
1977 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1978 if test "${ac_cv_build+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   ac_build_alias=$build_alias
1982 test "x$ac_build_alias" = x &&
1983   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1984 test "x$ac_build_alias" = x &&
1985   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1986 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1987    { (exit 1); exit 1; }; }
1988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1989   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1990 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1991    { (exit 1); exit 1; }; }
1992
1993 fi
1994 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1995 echo "${ECHO_T}$ac_cv_build" >&6; }
1996 case $ac_cv_build in
1997 *-*-*) ;;
1998 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1999 echo "$as_me: error: invalid value of canonical build" >&2;}
2000    { (exit 1); exit 1; }; };;
2001 esac
2002 build=$ac_cv_build
2003 ac_save_IFS=$IFS; IFS='-'
2004 set x $ac_cv_build
2005 shift
2006 build_cpu=$1
2007 build_vendor=$2
2008 shift; shift
2009 # Remember, the first character of IFS is used to create $*,
2010 # except with old shells:
2011 build_os=$*
2012 IFS=$ac_save_IFS
2013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2014
2015
2016 { echo "$as_me:$LINENO: checking host system type" >&5
2017 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2018 if test "${ac_cv_host+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test "x$host_alias" = x; then
2022   ac_cv_host=$ac_cv_build
2023 else
2024   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2025     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2026 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2027    { (exit 1); exit 1; }; }
2028 fi
2029
2030 fi
2031 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2032 echo "${ECHO_T}$ac_cv_host" >&6; }
2033 case $ac_cv_host in
2034 *-*-*) ;;
2035 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2036 echo "$as_me: error: invalid value of canonical host" >&2;}
2037    { (exit 1); exit 1; }; };;
2038 esac
2039 host=$ac_cv_host
2040 ac_save_IFS=$IFS; IFS='-'
2041 set x $ac_cv_host
2042 shift
2043 host_cpu=$1
2044 host_vendor=$2
2045 shift; shift
2046 # Remember, the first character of IFS is used to create $*,
2047 # except with old shells:
2048 host_os=$*
2049 IFS=$ac_save_IFS
2050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2051
2052
2053 { echo "$as_me:$LINENO: checking target system type" >&5
2054 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2055 if test "${ac_cv_target+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test "x$target_alias" = x; then
2059   ac_cv_target=$ac_cv_host
2060 else
2061   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2062     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2063 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2064    { (exit 1); exit 1; }; }
2065 fi
2066
2067 fi
2068 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2069 echo "${ECHO_T}$ac_cv_target" >&6; }
2070 case $ac_cv_target in
2071 *-*-*) ;;
2072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2073 echo "$as_me: error: invalid value of canonical target" >&2;}
2074    { (exit 1); exit 1; }; };;
2075 esac
2076 target=$ac_cv_target
2077 ac_save_IFS=$IFS; IFS='-'
2078 set x $ac_cv_target
2079 shift
2080 target_cpu=$1
2081 target_vendor=$2
2082 shift; shift
2083 # Remember, the first character of IFS is used to create $*,
2084 # except with old shells:
2085 target_os=$*
2086 IFS=$ac_save_IFS
2087 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2088
2089
2090 # The aliases save the names the user supplied, while $host etc.
2091 # will get canonicalized.
2092 test -n "$target_alias" &&
2093   test "$program_prefix$program_suffix$program_transform_name" = \
2094     NONENONEs,x,x, &&
2095   program_prefix=${target_alias}-
2096 cat >>confdefs.h <<_ACEOF
2097 #define MACHINE_TYPE "$host"
2098 _ACEOF
2099
2100
2101 ac_ext=c
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 if test -n "$ac_tool_prefix"; then
2107   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   if test -n "$CC"; then
2115   ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2119 do
2120   IFS=$as_save_IFS
2121   test -z "$as_dir" && as_dir=.
2122   for ac_exec_ext in '' $ac_executable_extensions; do
2123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126     break 2
2127   fi
2128 done
2129 done
2130 IFS=$as_save_IFS
2131
2132 fi
2133 fi
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136   { echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6; }
2138 else
2139   { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2141 fi
2142
2143
2144 fi
2145 if test -z "$ac_cv_prog_CC"; then
2146   ac_ct_CC=$CC
2147   # Extract the first word of "gcc", so it can be a program name with args.
2148 set dummy gcc; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   if test -n "$ac_ct_CC"; then
2155   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162   for ac_exec_ext in '' $ac_executable_extensions; do
2163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164     ac_cv_prog_ac_ct_CC="gcc"
2165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166     break 2
2167   fi
2168 done
2169 done
2170 IFS=$as_save_IFS
2171
2172 fi
2173 fi
2174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175 if test -n "$ac_ct_CC"; then
2176   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177 echo "${ECHO_T}$ac_ct_CC" >&6; }
2178 else
2179   { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2181 fi
2182
2183   if test "x$ac_ct_CC" = x; then
2184     CC=""
2185   else
2186     case $cross_compiling:$ac_tool_warned in
2187 yes:)
2188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2189 whose name does not start with the host triplet.  If you think this
2190 configuration is useful to you, please write to autoconf@gnu.org." >&5
2191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2192 whose name does not start with the host triplet.  If you think this
2193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2194 ac_tool_warned=yes ;;
2195 esac
2196     CC=$ac_ct_CC
2197   fi
2198 else
2199   CC="$ac_cv_prog_CC"
2200 fi
2201
2202 if test -z "$CC"; then
2203           if test -n "$ac_tool_prefix"; then
2204     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2205 set dummy ${ac_tool_prefix}cc; ac_word=$2
2206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 if test "${ac_cv_prog_CC+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   if test -n "$CC"; then
2212   ac_cv_prog_CC="$CC" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219   for ac_exec_ext in '' $ac_executable_extensions; do
2220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221     ac_cv_prog_CC="${ac_tool_prefix}cc"
2222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223     break 2
2224   fi
2225 done
2226 done
2227 IFS=$as_save_IFS
2228
2229 fi
2230 fi
2231 CC=$ac_cv_prog_CC
2232 if test -n "$CC"; then
2233   { echo "$as_me:$LINENO: result: $CC" >&5
2234 echo "${ECHO_T}$CC" >&6; }
2235 else
2236   { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2238 fi
2239
2240
2241   fi
2242 fi
2243 if test -z "$CC"; then
2244   # Extract the first word of "cc", so it can be a program name with args.
2245 set dummy cc; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_prog_CC+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   if test -n "$CC"; then
2252   ac_cv_prog_CC="$CC" # Let the user override the test.
2253 else
2254   ac_prog_rejected=no
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260   for ac_exec_ext in '' $ac_executable_extensions; do
2261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2263        ac_prog_rejected=yes
2264        continue
2265      fi
2266     ac_cv_prog_CC="cc"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274 if test $ac_prog_rejected = yes; then
2275   # We found a bogon in the path, so make sure we never use it.
2276   set dummy $ac_cv_prog_CC
2277   shift
2278   if test $# != 0; then
2279     # We chose a different compiler from the bogus one.
2280     # However, it has the same basename, so the bogon will be chosen
2281     # first if we set CC to just the basename; use the full file name.
2282     shift
2283     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2284   fi
2285 fi
2286 fi
2287 fi
2288 CC=$ac_cv_prog_CC
2289 if test -n "$CC"; then
2290   { echo "$as_me:$LINENO: result: $CC" >&5
2291 echo "${ECHO_T}$CC" >&6; }
2292 else
2293   { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295 fi
2296
2297
2298 fi
2299 if test -z "$CC"; then
2300   if test -n "$ac_tool_prefix"; then
2301   for ac_prog in cl.exe
2302   do
2303     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307 if test "${ac_cv_prog_CC+set}" = set; then
2308   echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310   if test -n "$CC"; then
2311   ac_cv_prog_CC="$CC" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316   IFS=$as_save_IFS
2317   test -z "$as_dir" && as_dir=.
2318   for ac_exec_ext in '' $ac_executable_extensions; do
2319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322     break 2
2323   fi
2324 done
2325 done
2326 IFS=$as_save_IFS
2327
2328 fi
2329 fi
2330 CC=$ac_cv_prog_CC
2331 if test -n "$CC"; then
2332   { echo "$as_me:$LINENO: result: $CC" >&5
2333 echo "${ECHO_T}$CC" >&6; }
2334 else
2335   { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2337 fi
2338
2339
2340     test -n "$CC" && break
2341   done
2342 fi
2343 if test -z "$CC"; then
2344   ac_ct_CC=$CC
2345   for ac_prog in cl.exe
2346 do
2347   # Extract the first word of "$ac_prog", so it can be a program name with args.
2348 set dummy $ac_prog; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   if test -n "$ac_ct_CC"; then
2355   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360   IFS=$as_save_IFS
2361   test -z "$as_dir" && as_dir=.
2362   for ac_exec_ext in '' $ac_executable_extensions; do
2363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364     ac_cv_prog_ac_ct_CC="$ac_prog"
2365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366     break 2
2367   fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2375 if test -n "$ac_ct_CC"; then
2376   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2377 echo "${ECHO_T}$ac_ct_CC" >&6; }
2378 else
2379   { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2381 fi
2382
2383
2384   test -n "$ac_ct_CC" && break
2385 done
2386
2387   if test "x$ac_ct_CC" = x; then
2388     CC=""
2389   else
2390     case $cross_compiling:$ac_tool_warned in
2391 yes:)
2392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet.  If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&5
2395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet.  If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2398 ac_tool_warned=yes ;;
2399 esac
2400     CC=$ac_ct_CC
2401   fi
2402 fi
2403
2404 fi
2405
2406
2407 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&5
2409 echo "$as_me: error: no acceptable C compiler found in \$PATH
2410 See \`config.log' for more details." >&2;}
2411    { (exit 1); exit 1; }; }
2412
2413 # Provide some information about the compiler.
2414 echo "$as_me:$LINENO: checking for C compiler version" >&5
2415 ac_compiler=`set X $ac_compile; echo $2`
2416 { (ac_try="$ac_compiler --version >&5"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_compiler --version >&5") 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }
2426 { (ac_try="$ac_compiler -v >&5"
2427 case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_compiler -v >&5") 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }
2436 { (ac_try="$ac_compiler -V >&5"
2437 case "(($ac_try" in
2438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439   *) ac_try_echo=$ac_try;;
2440 esac
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442   (eval "$ac_compiler -V >&5") 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }
2446
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453
2454 int
2455 main ()
2456 {
2457
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 ac_clean_files_save=$ac_clean_files
2463 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2464 # Try to create an executable without -o first, disregard a.out.
2465 # It will help us diagnose broken compilers, and finding out an intuition
2466 # of exeext.
2467 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2468 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2469 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2470 #
2471 # List of possible output files, starting from the most likely.
2472 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2473 # only as a last resort.  b.out is created by i960 compilers.
2474 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2475 #
2476 # The IRIX 6 linker writes into existing files which may not be
2477 # executable, retaining their permissions.  Remove them first so a
2478 # subsequent execution test works.
2479 ac_rmfiles=
2480 for ac_file in $ac_files
2481 do
2482   case $ac_file in
2483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2484     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2485   esac
2486 done
2487 rm -f $ac_rmfiles
2488
2489 if { (ac_try="$ac_link_default"
2490 case "(($ac_try" in
2491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492   *) ac_try_echo=$ac_try;;
2493 esac
2494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495   (eval "$ac_link_default") 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }; then
2499   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2501 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2502 # so that the user can short-circuit this test for compilers unknown to
2503 # Autoconf.
2504 for ac_file in $ac_files ''
2505 do
2506   test -f "$ac_file" || continue
2507   case $ac_file in
2508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2509         ;;
2510     [ab].out )
2511         # We found the default executable, but exeext='' is most
2512         # certainly right.
2513         break;;
2514     *.* )
2515         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2516         then :; else
2517            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518         fi
2519         # We set ac_cv_exeext here because the later test for it is not
2520         # safe: cross compilers may not add the suffix if given an `-o'
2521         # argument, so we may need to know it at that point already.
2522         # Even if this section looks crufty: it has the advantage of
2523         # actually working.
2524         break;;
2525     * )
2526         break;;
2527   esac
2528 done
2529 test "$ac_cv_exeext" = no && ac_cv_exeext=
2530
2531 else
2532   ac_file=''
2533 fi
2534
2535 { echo "$as_me:$LINENO: result: $ac_file" >&5
2536 echo "${ECHO_T}$ac_file" >&6; }
2537 if test -z "$ac_file"; then
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: C compiler cannot create executables
2544 See \`config.log' for more details." >&2;}
2545    { (exit 77); exit 77; }; }
2546 fi
2547
2548 ac_exeext=$ac_cv_exeext
2549
2550 # Check that the compiler produces executables we can run.  If not, either
2551 # the compiler is broken, or we cross compile.
2552 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2553 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2554 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2555 # If not cross compiling, check that we can run a simple program.
2556 if test "$cross_compiling" != yes; then
2557   if { ac_try='./$ac_file'
2558   { (case "(($ac_try" in
2559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560   *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563   (eval "$ac_try") 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567     cross_compiling=no
2568   else
2569     if test "$cross_compiling" = maybe; then
2570         cross_compiling=yes
2571     else
2572         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2573 If you meant to cross compile, use \`--host'.
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: cannot run C compiled programs.
2576 If you meant to cross compile, use \`--host'.
2577 See \`config.log' for more details." >&2;}
2578    { (exit 1); exit 1; }; }
2579     fi
2580   fi
2581 fi
2582 { echo "$as_me:$LINENO: result: yes" >&5
2583 echo "${ECHO_T}yes" >&6; }
2584
2585 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2586 ac_clean_files=$ac_clean_files_save
2587 # Check that the compiler produces executables we can run.  If not, either
2588 # the compiler is broken, or we cross compile.
2589 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2590 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2591 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2592 echo "${ECHO_T}$cross_compiling" >&6; }
2593
2594 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2595 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2596 if { (ac_try="$ac_link"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_link") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; then
2606   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2607 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2608 # work properly (i.e., refer to `conftest.exe'), while it won't with
2609 # `rm'.
2610 for ac_file in conftest.exe conftest conftest.*; do
2611   test -f "$ac_file" || continue
2612   case $ac_file in
2613     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2614     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615           break;;
2616     * ) break;;
2617   esac
2618 done
2619 else
2620   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2623 See \`config.log' for more details." >&2;}
2624    { (exit 1); exit 1; }; }
2625 fi
2626
2627 rm -f conftest$ac_cv_exeext
2628 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2629 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2630
2631 rm -f conftest.$ac_ext
2632 EXEEXT=$ac_cv_exeext
2633 ac_exeext=$EXEEXT
2634 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2635 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2636 if test "${ac_cv_objext+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.o conftest.obj
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658   *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661   (eval "$ac_compile") 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; then
2665   for ac_file in conftest.o conftest.obj conftest.*; do
2666   test -f "$ac_file" || continue;
2667   case $ac_file in
2668     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2669     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2670        break;;
2671   esac
2672 done
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2678 See \`config.log' for more details." >&5
2679 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2680 See \`config.log' for more details." >&2;}
2681    { (exit 1); exit 1; }; }
2682 fi
2683
2684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2685 fi
2686 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2687 echo "${ECHO_T}$ac_cv_objext" >&6; }
2688 OBJEXT=$ac_cv_objext
2689 ac_objext=$OBJEXT
2690 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2691 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2692 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2693   echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695   cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701
2702 int
2703 main ()
2704 {
2705 #ifndef __GNUC__
2706        choke me
2707 #endif
2708
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_compile") 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } && {
2727          test -z "$ac_c_werror_flag" ||
2728          test ! -s conftest.err
2729        } && test -s conftest.$ac_objext; then
2730   ac_compiler_gnu=yes
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735         ac_compiler_gnu=no
2736 fi
2737
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2740
2741 fi
2742 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2744 GCC=`test $ac_compiler_gnu = yes && echo yes`
2745 ac_test_CFLAGS=${CFLAGS+set}
2746 ac_save_CFLAGS=$CFLAGS
2747 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2748 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_g+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   ac_save_c_werror_flag=$ac_c_werror_flag
2753    ac_c_werror_flag=yes
2754    ac_cv_prog_cc_g=no
2755    CFLAGS="-g"
2756    cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h.  */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h.  */
2762
2763 int
2764 main ()
2765 {
2766
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (ac_try="$ac_compile"
2773 case "(($ac_try" in
2774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775   *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778   (eval "$ac_compile") 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } && {
2785          test -z "$ac_c_werror_flag" ||
2786          test ! -s conftest.err
2787        } && test -s conftest.$ac_objext; then
2788   ac_cv_prog_cc_g=yes
2789 else
2790   echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793         CFLAGS=""
2794       cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800
2801 int
2802 main ()
2803 {
2804
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2811 case "(($ac_try" in
2812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813   *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816   (eval "$ac_compile") 2>conftest.er1
2817   ac_status=$?
2818   grep -v '^ *+' conftest.er1 >conftest.err
2819   rm -f conftest.er1
2820   cat conftest.err >&5
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } && {
2823          test -z "$ac_c_werror_flag" ||
2824          test ! -s conftest.err
2825        } && test -s conftest.$ac_objext; then
2826   :
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831         ac_c_werror_flag=$ac_save_c_werror_flag
2832          CFLAGS="-g"
2833          cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839
2840 int
2841 main ()
2842 {
2843
2844   ;
2845   return 0;
2846 }
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2850 case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_compile") 2>conftest.er1
2856   ac_status=$?
2857   grep -v '^ *+' conftest.er1 >conftest.err
2858   rm -f conftest.er1
2859   cat conftest.err >&5
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } && {
2862          test -z "$ac_c_werror_flag" ||
2863          test ! -s conftest.err
2864        } && test -s conftest.$ac_objext; then
2865   ac_cv_prog_cc_g=yes
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870
2871 fi
2872
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 fi
2875
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 fi
2878
2879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880    ac_c_werror_flag=$ac_save_c_werror_flag
2881 fi
2882 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2883 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2884 if test "$ac_test_CFLAGS" = set; then
2885   CFLAGS=$ac_save_CFLAGS
2886 elif test $ac_cv_prog_cc_g = yes; then
2887   if test "$GCC" = yes; then
2888     CFLAGS="-g -O2"
2889   else
2890     CFLAGS="-g"
2891   fi
2892 else
2893   if test "$GCC" = yes; then
2894     CFLAGS="-O2"
2895   else
2896     CFLAGS=
2897   fi
2898 fi
2899 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2900 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_cc_c89+set}" = set; then
2902   echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904   ac_cv_prog_cc_c89=no
2905 ac_save_CC=$CC
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 #include <stdarg.h>
2913 #include <stdio.h>
2914 #include <sys/types.h>
2915 #include <sys/stat.h>
2916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2917 struct buf { int x; };
2918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2919 static char *e (p, i)
2920      char **p;
2921      int i;
2922 {
2923   return p[i];
2924 }
2925 static char *f (char * (*g) (char **, int), char **p, ...)
2926 {
2927   char *s;
2928   va_list v;
2929   va_start (v,p);
2930   s = g (p, va_arg (v,int));
2931   va_end (v);
2932   return s;
2933 }
2934
2935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2936    function prototypes and stuff, but not '\xHH' hex character constants.
2937    These don't provoke an error unfortunately, instead are silently treated
2938    as 'x'.  The following induces an error, until -std is added to get
2939    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2940    array size at least.  It's necessary to write '\x00'==0 to get something
2941    that's true only with -std.  */
2942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2943
2944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2945    inside strings and character constants.  */
2946 #define FOO(x) 'x'
2947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2948
2949 int test (int i, double x);
2950 struct s1 {int (*f) (int a);};
2951 struct s2 {int (*f) (double a);};
2952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2953 int argc;
2954 char **argv;
2955 int
2956 main ()
2957 {
2958 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2959   ;
2960   return 0;
2961 }
2962 _ACEOF
2963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2964         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2965 do
2966   CC="$ac_save_CC $ac_arg"
2967   rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compile") 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } && {
2981          test -z "$ac_c_werror_flag" ||
2982          test ! -s conftest.err
2983        } && test -s conftest.$ac_objext; then
2984   ac_cv_prog_cc_c89=$ac_arg
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989
2990 fi
2991
2992 rm -f core conftest.err conftest.$ac_objext
2993   test "x$ac_cv_prog_cc_c89" != "xno" && break
2994 done
2995 rm -f conftest.$ac_ext
2996 CC=$ac_save_CC
2997
2998 fi
2999 # AC_CACHE_VAL
3000 case "x$ac_cv_prog_cc_c89" in
3001   x)
3002     { echo "$as_me:$LINENO: result: none needed" >&5
3003 echo "${ECHO_T}none needed" >&6; } ;;
3004   xno)
3005     { echo "$as_me:$LINENO: result: unsupported" >&5
3006 echo "${ECHO_T}unsupported" >&6; } ;;
3007   *)
3008     CC="$CC $ac_cv_prog_cc_c89"
3009     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3010 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3011 esac
3012
3013
3014 ac_ext=c
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019
3020 for ac_prog in 'bison -y' byacc
3021 do
3022   # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_YACC+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   if test -n "$YACC"; then
3030   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037   for ac_exec_ext in '' $ac_executable_extensions; do
3038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039     ac_cv_prog_YACC="$ac_prog"
3040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 YACC=$ac_cv_prog_YACC
3050 if test -n "$YACC"; then
3051   { echo "$as_me:$LINENO: result: $YACC" >&5
3052 echo "${ECHO_T}$YACC" >&6; }
3053 else
3054   { echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6; }
3056 fi
3057
3058
3059   test -n "$YACC" && break
3060 done
3061 test -n "$YACC" || YACC="yacc"
3062
3063
3064 for ac_prog in flex lex
3065 do
3066   # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_LEX+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   if test -n "$LEX"; then
3074   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081   for ac_exec_ext in '' $ac_executable_extensions; do
3082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083     ac_cv_prog_LEX="$ac_prog"
3084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088 done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 LEX=$ac_cv_prog_LEX
3094 if test -n "$LEX"; then
3095   { echo "$as_me:$LINENO: result: $LEX" >&5
3096 echo "${ECHO_T}$LEX" >&6; }
3097 else
3098   { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3100 fi
3101
3102
3103   test -n "$LEX" && break
3104 done
3105 test -n "$LEX" || LEX=":"
3106
3107 if test "x$LEX" != "x:"; then
3108   cat >conftest.l <<_ACEOF
3109 %%
3110 a { ECHO; }
3111 b { REJECT; }
3112 c { yymore (); }
3113 d { yyless (1); }
3114 e { yyless (input () != 0); }
3115 f { unput (yytext[0]); }
3116 . { BEGIN INITIAL; }
3117 %%
3118 #ifdef YYTEXT_POINTER
3119 extern char *yytext;
3120 #endif
3121 int
3122 main (void)
3123 {
3124   return ! yylex () + ! yywrap ();
3125 }
3126 _ACEOF
3127 { (ac_try="$LEX conftest.l"
3128 case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$LEX conftest.l") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }
3137 { echo "$as_me:$LINENO: checking lex output file root" >&5
3138 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_lex_root+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142
3143 if test -f lex.yy.c; then
3144   ac_cv_prog_lex_root=lex.yy
3145 elif test -f lexyy.c; then
3146   ac_cv_prog_lex_root=lexyy
3147 else
3148   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3149 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3150    { (exit 1); exit 1; }; }
3151 fi
3152 fi
3153 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3154 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3155 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3156
3157 if test -z "${LEXLIB+set}"; then
3158   { echo "$as_me:$LINENO: checking lex library" >&5
3159 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3160 if test "${ac_cv_lib_lex+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163
3164     ac_save_LIBS=$LIBS
3165     ac_cv_lib_lex='none needed'
3166     for ac_lib in '' -lfl -ll; do
3167       LIBS="$ac_lib $ac_save_LIBS"
3168       cat >conftest.$ac_ext <<_ACEOF
3169 `cat $LEX_OUTPUT_ROOT.c`
3170 _ACEOF
3171 rm -f conftest.$ac_objext conftest$ac_exeext
3172 if { (ac_try="$ac_link"
3173 case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_link") 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } && {
3185          test -z "$ac_c_werror_flag" ||
3186          test ! -s conftest.err
3187        } && test -s conftest$ac_exeext &&
3188        $as_test_x conftest$ac_exeext; then
3189   ac_cv_lib_lex=$ac_lib
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3198       conftest$ac_exeext conftest.$ac_ext
3199       test "$ac_cv_lib_lex" != 'none needed' && break
3200     done
3201     LIBS=$ac_save_LIBS
3202
3203 fi
3204 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3205 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3206   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3207 fi
3208
3209
3210 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3211 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   # POSIX says lex can declare yytext either as a pointer or an array; the
3216 # default is implementation-dependent.  Figure out which it is, since
3217 # not all implementations provide the %pointer and %array declarations.
3218 ac_cv_prog_lex_yytext_pointer=no
3219 ac_save_LIBS=$LIBS
3220 LIBS="$LEXLIB $ac_save_LIBS"
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #define YYTEXT_POINTER 1
3223 `cat $LEX_OUTPUT_ROOT.c`
3224 _ACEOF
3225 rm -f conftest.$ac_objext conftest$ac_exeext
3226 if { (ac_try="$ac_link"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232   (eval "$ac_link") 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } && {
3239          test -z "$ac_c_werror_flag" ||
3240          test ! -s conftest.err
3241        } && test -s conftest$ac_exeext &&
3242        $as_test_x conftest$ac_exeext; then
3243   ac_cv_prog_lex_yytext_pointer=yes
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3252       conftest$ac_exeext conftest.$ac_ext
3253 LIBS=$ac_save_LIBS
3254
3255 fi
3256 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3257 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3258 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3259
3260 cat >>confdefs.h <<\_ACEOF
3261 #define YYTEXT_POINTER 1
3262 _ACEOF
3263
3264 fi
3265 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3266
3267 fi
3268 # Find a good install program.  We prefer a C program (faster),
3269 # so one script is as good as another.  But avoid the broken or
3270 # incompatible versions:
3271 # SysV /etc/install, /usr/sbin/install
3272 # SunOS /usr/etc/install
3273 # IRIX /sbin/install
3274 # AIX /bin/install
3275 # AmigaOS /C/install, which installs bootblocks on floppy discs
3276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3279 # OS/2's system install, which has a completely different semantic
3280 # ./install, which can be erroneously created by make from ./install.sh.
3281 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3283 if test -z "$INSTALL"; then
3284 if test "${ac_cv_path_install+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292   # Account for people who put trailing slashes in PATH elements.
3293 case $as_dir/ in
3294   ./ | .// | /cC/* | \
3295   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3296   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3297   /usr/ucb/* ) ;;
3298   *)
3299     # OSF1 and SCO ODT 3.0 have their own names for install.
3300     # Don't use installbsd from OSF since it installs stuff as root
3301     # by default.
3302     for ac_prog in ginstall scoinst install; do
3303       for ac_exec_ext in '' $ac_executable_extensions; do
3304         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3305           if test $ac_prog = install &&
3306             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307             # AIX install.  It has an incompatible calling convention.
3308             :
3309           elif test $ac_prog = install &&
3310             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3311             # program-specific install script used by HP pwplus--don't use.
3312             :
3313           else
3314             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3315             break 3
3316           fi
3317         fi
3318       done
3319     done
3320     ;;
3321 esac
3322 done
3323 IFS=$as_save_IFS
3324
3325
3326 fi
3327   if test "${ac_cv_path_install+set}" = set; then
3328     INSTALL=$ac_cv_path_install
3329   else
3330     # As a last resort, use the slow shell script.  Don't cache a
3331     # value for INSTALL within a source directory, because that will
3332     # break other packages using the cache if that directory is
3333     # removed, or if the value is a relative name.
3334     INSTALL=$ac_install_sh
3335   fi
3336 fi
3337 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3338 echo "${ECHO_T}$INSTALL" >&6; }
3339
3340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3341 # It thinks the first close brace ends the variable substitution.
3342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3343
3344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3345
3346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3347
3348 if test -n "$ac_tool_prefix"; then
3349   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_RANLIB+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   if test -n "$RANLIB"; then
3357   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364   for ac_exec_ext in '' $ac_executable_extensions; do
3365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371 done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 RANLIB=$ac_cv_prog_RANLIB
3377 if test -n "$RANLIB"; then
3378   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3379 echo "${ECHO_T}$RANLIB" >&6; }
3380 else
3381   { echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6; }
3383 fi
3384
3385
3386 fi
3387 if test -z "$ac_cv_prog_RANLIB"; then
3388   ac_ct_RANLIB=$RANLIB
3389   # Extract the first word of "ranlib", so it can be a program name with args.
3390 set dummy ranlib; ac_word=$2
3391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   if test -n "$ac_ct_RANLIB"; then
3397   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404   for ac_exec_ext in '' $ac_executable_extensions; do
3405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406     ac_cv_prog_ac_ct_RANLIB="ranlib"
3407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3417 if test -n "$ac_ct_RANLIB"; then
3418   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3419 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3420 else
3421   { echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6; }
3423 fi
3424
3425   if test "x$ac_ct_RANLIB" = x; then
3426     RANLIB=":"
3427   else
3428     case $cross_compiling:$ac_tool_warned in
3429 yes:)
3430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3431 whose name does not start with the host triplet.  If you think this
3432 configuration is useful to you, please write to autoconf@gnu.org." >&5
3433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3434 whose name does not start with the host triplet.  If you think this
3435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3436 ac_tool_warned=yes ;;
3437 esac
3438     RANLIB=$ac_ct_RANLIB
3439   fi
3440 else
3441   RANLIB="$ac_cv_prog_RANLIB"
3442 fi
3443
3444 # Check whether --enable-shared was given.
3445 if test "${enable_shared+set}" = set; then
3446   enableval=$enable_shared; p=${PACKAGE-default}
3447     case $enableval in
3448     yes) enable_shared=yes ;;
3449     no) enable_shared=no ;;
3450     *)
3451       enable_shared=no
3452       # Look at the argument we got.  We use all the common list separators.
3453       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3454       for pkg in $enableval; do
3455         IFS="$lt_save_ifs"
3456         if test "X$pkg" = "X$p"; then
3457           enable_shared=yes
3458         fi
3459       done
3460       IFS="$lt_save_ifs"
3461       ;;
3462     esac
3463 else
3464   enable_shared=yes
3465 fi
3466
3467
3468 # Check whether --enable-static was given.
3469 if test "${enable_static+set}" = set; then
3470   enableval=$enable_static; p=${PACKAGE-default}
3471     case $enableval in
3472     yes) enable_static=yes ;;
3473     no) enable_static=no ;;
3474     *)
3475      enable_static=no
3476       # Look at the argument we got.  We use all the common list separators.
3477       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3478       for pkg in $enableval; do
3479         IFS="$lt_save_ifs"
3480         if test "X$pkg" = "X$p"; then
3481           enable_static=yes
3482         fi
3483       done
3484       IFS="$lt_save_ifs"
3485       ;;
3486     esac
3487 else
3488   enable_static=yes
3489 fi
3490
3491
3492 # Check whether --enable-fast-install was given.
3493 if test "${enable_fast_install+set}" = set; then
3494   enableval=$enable_fast_install; p=${PACKAGE-default}
3495     case $enableval in
3496     yes) enable_fast_install=yes ;;
3497     no) enable_fast_install=no ;;
3498     *)
3499       enable_fast_install=no
3500       # Look at the argument we got.  We use all the common list separators.
3501       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3502       for pkg in $enableval; do
3503         IFS="$lt_save_ifs"
3504         if test "X$pkg" = "X$p"; then
3505           enable_fast_install=yes
3506         fi
3507       done
3508       IFS="$lt_save_ifs"
3509       ;;
3510     esac
3511 else
3512   enable_fast_install=yes
3513 fi
3514
3515
3516 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3517 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3518 if test "${lt_cv_path_SED+set}" = set; then
3519   echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521   # Loop through the user's path and test for sed and gsed.
3522 # Then use that list of sed's as ones to test for truncation.
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526   IFS=$as_save_IFS
3527   test -z "$as_dir" && as_dir=.
3528   for lt_ac_prog in sed gsed; do
3529     for ac_exec_ext in '' $ac_executable_extensions; do
3530       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3531         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3532       fi
3533     done
3534   done
3535 done
3536 lt_ac_max=0
3537 lt_ac_count=0
3538 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3539 # along with /bin/sed that truncates output.
3540 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3541   test ! -f $lt_ac_sed && break
3542   cat /dev/null > conftest.in
3543   lt_ac_count=0
3544   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3545   # Check for GNU sed and select it if it is found.
3546   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3547     lt_cv_path_SED=$lt_ac_sed
3548     break
3549   fi
3550   while true; do
3551     cat conftest.in conftest.in >conftest.tmp
3552     mv conftest.tmp conftest.in
3553     cp conftest.in conftest.nl
3554     echo >>conftest.nl
3555     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3556     cmp -s conftest.out conftest.nl || break
3557     # 10000 chars as input seems more than enough
3558     test $lt_ac_count -gt 10 && break
3559     lt_ac_count=`expr $lt_ac_count + 1`
3560     if test $lt_ac_count -gt $lt_ac_max; then
3561       lt_ac_max=$lt_ac_count
3562       lt_cv_path_SED=$lt_ac_sed
3563     fi
3564   done
3565 done
3566 SED=$lt_cv_path_SED
3567
3568 fi
3569
3570 { echo "$as_me:$LINENO: result: $SED" >&5
3571 echo "${ECHO_T}$SED" >&6; }
3572
3573 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3574 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3575 if test "${ac_cv_path_GREP+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   # Extract the first word of "grep ggrep" to use in msg output
3579 if test -z "$GREP"; then
3580 set dummy grep ggrep; ac_prog_name=$2
3581 if test "${ac_cv_path_GREP+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   ac_path_GREP_found=false
3585 # Loop through the user's path and test for each of PROGNAME-LIST
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_prog in grep ggrep; do
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3594     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3595     # Check for GNU ac_path_GREP and select it if it is found.
3596   # Check for GNU $ac_path_GREP
3597 case `"$ac_path_GREP" --version 2>&1` in
3598 *GNU*)
3599   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3600 *)
3601   ac_count=0
3602   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3603   while :
3604   do
3605     cat "conftest.in" "conftest.in" >"conftest.tmp"
3606     mv "conftest.tmp" "conftest.in"
3607     cp "conftest.in" "conftest.nl"
3608     echo 'GREP' >> "conftest.nl"
3609     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3610     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3611     ac_count=`expr $ac_count + 1`
3612     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3613       # Best one so far, save it but keep looking for a better one
3614       ac_cv_path_GREP="$ac_path_GREP"
3615       ac_path_GREP_max=$ac_count
3616     fi
3617     # 10*(2^10) chars as input seems more than enough
3618     test $ac_count -gt 10 && break
3619   done
3620   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3621 esac
3622
3623
3624     $ac_path_GREP_found && break 3
3625   done
3626 done
3627
3628 done
3629 IFS=$as_save_IFS
3630
3631
3632 fi
3633
3634 GREP="$ac_cv_path_GREP"
3635 if test -z "$GREP"; then
3636   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3637 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3638    { (exit 1); exit 1; }; }
3639 fi
3640
3641 else
3642   ac_cv_path_GREP=$GREP
3643 fi
3644
3645
3646 fi
3647 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3648 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3649  GREP="$ac_cv_path_GREP"
3650
3651
3652 { echo "$as_me:$LINENO: checking for egrep" >&5
3653 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_EGREP+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3658    then ac_cv_path_EGREP="$GREP -E"
3659    else
3660      # Extract the first word of "egrep" to use in msg output
3661 if test -z "$EGREP"; then
3662 set dummy egrep; ac_prog_name=$2
3663 if test "${ac_cv_path_EGREP+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   ac_path_EGREP_found=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673   for ac_prog in egrep; do
3674   for ac_exec_ext in '' $ac_executable_extensions; do
3675     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3676     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3677     # Check for GNU ac_path_EGREP and select it if it is found.
3678   # Check for GNU $ac_path_EGREP
3679 case `"$ac_path_EGREP" --version 2>&1` in
3680 *GNU*)
3681   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3682 *)
3683   ac_count=0
3684   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3685   while :
3686   do
3687     cat "conftest.in" "conftest.in" >"conftest.tmp"
3688     mv "conftest.tmp" "conftest.in"
3689     cp "conftest.in" "conftest.nl"
3690     echo 'EGREP' >> "conftest.nl"
3691     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693     ac_count=`expr $ac_count + 1`
3694     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3695       # Best one so far, save it but keep looking for a better one
3696       ac_cv_path_EGREP="$ac_path_EGREP"
3697       ac_path_EGREP_max=$ac_count
3698     fi
3699     # 10*(2^10) chars as input seems more than enough
3700     test $ac_count -gt 10 && break
3701   done
3702   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 esac
3704
3705
3706     $ac_path_EGREP_found && break 3
3707   done
3708 done
3709
3710 done
3711 IFS=$as_save_IFS
3712
3713
3714 fi
3715
3716 EGREP="$ac_cv_path_EGREP"
3717 if test -z "$EGREP"; then
3718   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3719 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3720    { (exit 1); exit 1; }; }
3721 fi
3722
3723 else
3724   ac_cv_path_EGREP=$EGREP
3725 fi
3726
3727
3728    fi
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3731 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3732  EGREP="$ac_cv_path_EGREP"
3733
3734
3735
3736 # Check whether --with-gnu-ld was given.
3737 if test "${with_gnu_ld+set}" = set; then
3738   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3739 else
3740   with_gnu_ld=no
3741 fi
3742
3743 ac_prog=ld
3744 if test "$GCC" = yes; then
3745   # Check if gcc -print-prog-name=ld gives a path.
3746   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3747 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3748   case $host in
3749   *-*-mingw*)
3750     # gcc leaves a trailing carriage return which upsets mingw
3751     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3752   *)
3753     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3754   esac
3755   case $ac_prog in
3756     # Accept absolute paths.
3757     [\\/]* | ?:[\\/]*)
3758       re_direlt='/[^/][^/]*/\.\./'
3759       # Canonicalize the pathname of ld
3760       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3761       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3762         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3763       done
3764       test -z "$LD" && LD="$ac_prog"
3765       ;;
3766   "")
3767     # If it fails, then pretend we aren't using GCC.
3768     ac_prog=ld
3769     ;;
3770   *)
3771     # If it is relative, then search for the first ld in PATH.
3772     with_gnu_ld=unknown
3773     ;;
3774   esac
3775 elif test "$with_gnu_ld" = yes; then
3776   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3777 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3778 else
3779   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3780 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3781 fi
3782 if test "${lt_cv_path_LD+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   if test -z "$LD"; then
3786   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3787   for ac_dir in $PATH; do
3788     IFS="$lt_save_ifs"
3789     test -z "$ac_dir" && ac_dir=.
3790     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3791       lt_cv_path_LD="$ac_dir/$ac_prog"
3792       # Check to see if the program is GNU ld.  I'd rather use --version,
3793       # but apparently some GNU ld's only accept -v.
3794       # Break only if it was the GNU/non-GNU ld that we prefer.
3795       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3796       *GNU* | *'with BFD'*)
3797         test "$with_gnu_ld" != no && break
3798         ;;
3799       *)
3800         test "$with_gnu_ld" != yes && break
3801         ;;
3802       esac
3803     fi
3804   done
3805   IFS="$lt_save_ifs"
3806 else
3807   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3808 fi
3809 fi
3810
3811 LD="$lt_cv_path_LD"
3812 if test -n "$LD"; then
3813   { echo "$as_me:$LINENO: result: $LD" >&5
3814 echo "${ECHO_T}$LD" >&6; }
3815 else
3816   { echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6; }
3818 fi
3819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3821    { (exit 1); exit 1; }; }
3822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3824 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3828 case `$LD -v 2>&1 </dev/null` in
3829 *GNU* | *'with BFD'*)
3830   lt_cv_prog_gnu_ld=yes
3831   ;;
3832 *)
3833   lt_cv_prog_gnu_ld=no
3834   ;;
3835 esac
3836 fi
3837 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3838 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3839 with_gnu_ld=$lt_cv_prog_gnu_ld
3840
3841
3842 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3843 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3844 if test "${lt_cv_ld_reload_flag+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   lt_cv_ld_reload_flag='-r'
3848 fi
3849 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3850 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3851 reload_flag=$lt_cv_ld_reload_flag
3852 case $reload_flag in
3853 "" | " "*) ;;
3854 *) reload_flag=" $reload_flag" ;;
3855 esac
3856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3857
3858 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3859 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3860 if test "${lt_cv_path_NM+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   if test -n "$NM"; then
3864   # Let the user override the test.
3865   lt_cv_path_NM="$NM"
3866 else
3867   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3868   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3869     IFS="$lt_save_ifs"
3870     test -z "$ac_dir" && ac_dir=.
3871     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3872     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3873       # Check to see if the nm accepts a BSD-compat flag.
3874       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3875       #   nm: unknown option "B" ignored
3876       # Tru64's nm complains that /dev/null is an invalid object file
3877       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3878       */dev/null* | *'Invalid file or object type'*)
3879         lt_cv_path_NM="$tmp_nm -B"
3880         break
3881         ;;
3882       *)
3883         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3884         */dev/null*)
3885           lt_cv_path_NM="$tmp_nm -p"
3886           break
3887           ;;
3888         *)
3889           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3890           continue # so that we can try to find one that supports BSD flags
3891           ;;
3892         esac
3893       esac
3894     fi
3895   done
3896   IFS="$lt_save_ifs"
3897   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3898 fi
3899 fi
3900 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3901 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3902 NM="$lt_cv_path_NM"
3903
3904 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3905 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3906 LN_S=$as_ln_s
3907 if test "$LN_S" = "ln -s"; then
3908   { echo "$as_me:$LINENO: result: yes" >&5
3909 echo "${ECHO_T}yes" >&6; }
3910 else
3911   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3912 echo "${ECHO_T}no, using $LN_S" >&6; }
3913 fi
3914
3915 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3916 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3917 if test "${lt_cv_deplibs_check_method+set}" = set; then
3918   echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920   lt_cv_file_magic_cmd='$MAGIC_CMD'
3921 lt_cv_file_magic_test_file=
3922 lt_cv_deplibs_check_method='unknown'
3923 # Need to set the preceding variable on all platforms that support
3924 # interlibrary dependencies.
3925 # 'none' -- dependencies not supported.
3926 # `unknown' -- same as none, but documents that we really don't know.
3927 # 'pass_all' -- all dependencies passed with no checks.
3928 # 'test_compile' -- check by making test program.
3929 # 'file_magic [[regex]]' -- check by looking for files in library path
3930 # which responds to the $file_magic_cmd with a given extended regex.
3931 # If you have `file' or equivalent on your system and you're not sure
3932 # whether `pass_all' will *always* work, you probably want this one.
3933
3934 case $host_os in
3935 aix4* | aix5*)
3936   lt_cv_deplibs_check_method=pass_all
3937   ;;
3938
3939 beos*)
3940   lt_cv_deplibs_check_method=pass_all
3941   ;;
3942
3943 bsdi4*)
3944   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3945   lt_cv_file_magic_cmd='/usr/bin/file -L'
3946   lt_cv_file_magic_test_file=/shlib/libc.so
3947   ;;
3948
3949 cygwin*)
3950   # func_win32_libid is a shell function defined in ltmain.sh
3951   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3952   lt_cv_file_magic_cmd='func_win32_libid'
3953   ;;
3954
3955 mingw* | pw32*)
3956   # Base MSYS/MinGW do not provide the 'file' command needed by
3957   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3958   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3959   lt_cv_file_magic_cmd='$OBJDUMP -f'
3960   ;;
3961
3962 darwin* | rhapsody*)
3963   lt_cv_deplibs_check_method=pass_all
3964   ;;
3965
3966 freebsd* | kfreebsd*-gnu)
3967   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3968     case $host_cpu in
3969     i*86 )
3970       # Not sure whether the presence of OpenBSD here was a mistake.
3971       # Let's accept both of them until this is cleared up.
3972       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3973       lt_cv_file_magic_cmd=/usr/bin/file
3974       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3975       ;;
3976     esac
3977   else
3978     lt_cv_deplibs_check_method=pass_all
3979   fi
3980   ;;
3981
3982 gnu*)
3983   lt_cv_deplibs_check_method=pass_all
3984   ;;
3985
3986 hpux10.20* | hpux11*)
3987   lt_cv_file_magic_cmd=/usr/bin/file
3988   case "$host_cpu" in
3989   ia64*)
3990     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3991     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3992     ;;
3993   hppa*64*)
3994     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]'
3995     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3996     ;;
3997   *)
3998     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3999     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4000     ;;
4001   esac
4002   ;;
4003
4004 irix5* | irix6* | nonstopux*)
4005   case $LD in
4006   *-32|*"-32 ") libmagic=32-bit;;
4007   *-n32|*"-n32 ") libmagic=N32;;
4008   *-64|*"-64 ") libmagic=64-bit;;
4009   *) libmagic=never-match;;
4010   esac
4011   lt_cv_deplibs_check_method=pass_all
4012   ;;
4013
4014 # This must be Linux ELF.
4015 linux*)
4016   case $host_cpu in
4017   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4018     lt_cv_deplibs_check_method=pass_all ;;
4019   *)
4020     # glibc up to 2.1.1 does not perform some relocations on ARM
4021     # this will be overridden with pass_all, but let us keep it just in case
4022     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4023   esac
4024   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4025   lt_cv_deplibs_check_method=pass_all
4026   ;;
4027
4028 netbsd*)
4029   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4030     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4031   else
4032     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4033   fi
4034   ;;
4035
4036 newos6*)
4037   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4038   lt_cv_file_magic_cmd=/usr/bin/file
4039   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4040   ;;
4041
4042 nto-qnx*)
4043   lt_cv_deplibs_check_method=unknown
4044   ;;
4045
4046 openbsd*)
4047   lt_cv_file_magic_cmd=/usr/bin/file
4048   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4049   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4050     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4051   else
4052     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4053   fi
4054   ;;
4055
4056 osf3* | osf4* | osf5*)
4057   lt_cv_deplibs_check_method=pass_all
4058   ;;
4059
4060 sco3.2v5*)
4061   lt_cv_deplibs_check_method=pass_all
4062   ;;
4063
4064 solaris*)
4065   lt_cv_deplibs_check_method=pass_all
4066   ;;
4067
4068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4069   case $host_vendor in
4070   motorola)
4071     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]'
4072     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4073     ;;
4074   ncr)
4075     lt_cv_deplibs_check_method=pass_all
4076     ;;
4077   sequent)
4078     lt_cv_file_magic_cmd='/bin/file'
4079     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4080     ;;
4081   sni)
4082     lt_cv_file_magic_cmd='/bin/file'
4083     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4084     lt_cv_file_magic_test_file=/lib/libc.so
4085     ;;
4086   siemens)
4087     lt_cv_deplibs_check_method=pass_all
4088     ;;
4089   esac
4090   ;;
4091
4092 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4093   lt_cv_deplibs_check_method=pass_all
4094   ;;
4095 esac
4096
4097 fi
4098 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4099 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4100 file_magic_cmd=$lt_cv_file_magic_cmd
4101 deplibs_check_method=$lt_cv_deplibs_check_method
4102 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4103
4104
4105
4106
4107 # If no C compiler was specified, use CC.
4108 LTCC=${LTCC-"$CC"}
4109
4110 # Allow CC to be a program name with arguments.
4111 compiler=$CC
4112
4113 # Check whether --enable-libtool-lock was given.
4114 if test "${enable_libtool_lock+set}" = set; then
4115   enableval=$enable_libtool_lock;
4116 fi
4117
4118 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4119
4120 # Some flags need to be propagated to the compiler or linker for good
4121 # libtool support.
4122 case $host in
4123 ia64-*-hpux*)
4124   # Find out which ABI we are using.
4125   echo 'int i;' > conftest.$ac_ext
4126   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127   (eval $ac_compile) 2>&5
4128   ac_status=$?
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); }; then
4131     case `/usr/bin/file conftest.$ac_objext` in
4132     *ELF-32*)
4133       HPUX_IA64_MODE="32"
4134       ;;
4135     *ELF-64*)
4136       HPUX_IA64_MODE="64"
4137       ;;
4138     esac
4139   fi
4140   rm -rf conftest*
4141   ;;
4142 *-*-irix6*)
4143   # Find out which ABI we are using.
4144   echo '#line 4144 "configure"' > conftest.$ac_ext
4145   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146   (eval $ac_compile) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; then
4150    if test "$lt_cv_prog_gnu_ld" = yes; then
4151     case `/usr/bin/file conftest.$ac_objext` in
4152     *32-bit*)
4153       LD="${LD-ld} -melf32bsmip"
4154       ;;
4155     *N32*)
4156       LD="${LD-ld} -melf32bmipn32"
4157       ;;
4158     *64-bit*)
4159       LD="${LD-ld} -melf64bmip"
4160       ;;
4161     esac
4162    else
4163     case `/usr/bin/file conftest.$ac_objext` in
4164     *32-bit*)
4165       LD="${LD-ld} -32"
4166       ;;
4167     *N32*)
4168       LD="${LD-ld} -n32"
4169       ;;
4170     *64-bit*)
4171       LD="${LD-ld} -64"
4172       ;;
4173     esac
4174    fi
4175   fi
4176   rm -rf conftest*
4177   ;;
4178
4179 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4180   # Find out which ABI we are using.
4181   echo 'int i;' > conftest.$ac_ext
4182   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183   (eval $ac_compile) 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; then
4187     case "`/usr/bin/file conftest.o`" in
4188     *32-bit*)
4189       case $host in
4190         x86_64-*linux*)
4191           LD="${LD-ld} -m elf_i386"
4192           ;;
4193         ppc64-*linux*|powerpc64-*linux*)
4194           LD="${LD-ld} -m elf32ppclinux"
4195           ;;
4196         s390x-*linux*)
4197           LD="${LD-ld} -m elf_s390"
4198           ;;
4199         sparc64-*linux*)
4200           LD="${LD-ld} -m elf32_sparc"
4201           ;;
4202       esac
4203       ;;
4204     *64-bit*)
4205       case $host in
4206         x86_64-*linux*)
4207           LD="${LD-ld} -m elf_x86_64"
4208           ;;
4209         ppc*-*linux*|powerpc*-*linux*)
4210           LD="${LD-ld} -m elf64ppc"
4211           ;;
4212         s390*-*linux*)
4213           LD="${LD-ld} -m elf64_s390"
4214           ;;
4215         sparc*-*linux*)
4216           LD="${LD-ld} -m elf64_sparc"
4217           ;;
4218       esac
4219       ;;
4220     esac
4221   fi
4222   rm -rf conftest*
4223   ;;
4224
4225 *-*-sco3.2v5*)
4226   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4227   SAVE_CFLAGS="$CFLAGS"
4228   CFLAGS="$CFLAGS -belf"
4229   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4230 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4231 if test "${lt_cv_cc_needs_belf+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240      cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h.  */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h.  */
4246
4247 int
4248 main ()
4249 {
4250
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest.$ac_objext conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4257 case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_link") 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } && {
4269          test -z "$ac_c_werror_flag" ||
4270          test ! -s conftest.err
4271        } && test -s conftest$ac_exeext &&
4272        $as_test_x conftest$ac_exeext; then
4273   lt_cv_cc_needs_belf=yes
4274 else
4275   echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278         lt_cv_cc_needs_belf=no
4279 fi
4280
4281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4282       conftest$ac_exeext conftest.$ac_ext
4283      ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289 fi
4290 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4291 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4292   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4293     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4294     CFLAGS="$SAVE_CFLAGS"
4295   fi
4296   ;;
4297
4298 esac
4299
4300 need_locks="$enable_libtool_lock"
4301
4302
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4309 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4310 # On Suns, sometimes $CPP names a directory.
4311 if test -n "$CPP" && test -d "$CPP"; then
4312   CPP=
4313 fi
4314 if test -z "$CPP"; then
4315   if test "${ac_cv_prog_CPP+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318       # Double quotes because CPP needs to be expanded
4319     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4320     do
4321       ac_preproc_ok=false
4322 for ac_c_preproc_warn_flag in '' yes
4323 do
4324   # Use a header file that comes with gcc, so configuring glibc
4325   # with a fresh cross-compiler works.
4326   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327   # <limits.h> exists even on freestanding compilers.
4328   # On the NeXT, cc -E runs the code through the compiler's parser,
4329   # not just through cpp. "Syntax error" is here to catch this case.
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 #ifdef __STDC__
4337 # include <limits.h>
4338 #else
4339 # include <assert.h>
4340 #endif
4341                      Syntax error
4342 _ACEOF
4343 if { (ac_try="$ac_cpp conftest.$ac_ext"
4344 case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4350   ac_status=$?
4351   grep -v '^ *+' conftest.er1 >conftest.err
4352   rm -f conftest.er1
4353   cat conftest.err >&5
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); } >/dev/null && {
4356          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4357          test ! -s conftest.err
4358        }; then
4359   :
4360 else
4361   echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364   # Broken: fails on valid input.
4365 continue
4366 fi
4367
4368 rm -f conftest.err conftest.$ac_ext
4369
4370   # OK, works on sane cases.  Now check whether nonexistent headers
4371   # can be detected and how.
4372   cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 #include <ac_nonexistent.h>
4379 _ACEOF
4380 if { (ac_try="$ac_cpp conftest.$ac_ext"
4381 case "(($ac_try" in
4382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383   *) ac_try_echo=$ac_try;;
4384 esac
4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4387   ac_status=$?
4388   grep -v '^ *+' conftest.er1 >conftest.err
4389   rm -f conftest.er1
4390   cat conftest.err >&5
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } >/dev/null && {
4393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4394          test ! -s conftest.err
4395        }; then
4396   # Broken: success on invalid input.
4397 continue
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402   # Passes both tests.
4403 ac_preproc_ok=:
4404 break
4405 fi
4406
4407 rm -f conftest.err conftest.$ac_ext
4408
4409 done
4410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411 rm -f conftest.err conftest.$ac_ext
4412 if $ac_preproc_ok; then
4413   break
4414 fi
4415
4416     done
4417     ac_cv_prog_CPP=$CPP
4418
4419 fi
4420   CPP=$ac_cv_prog_CPP
4421 else
4422   ac_cv_prog_CPP=$CPP
4423 fi
4424 { echo "$as_me:$LINENO: result: $CPP" >&5
4425 echo "${ECHO_T}$CPP" >&6; }
4426 ac_preproc_ok=false
4427 for ac_c_preproc_warn_flag in '' yes
4428 do
4429   # Use a header file that comes with gcc, so configuring glibc
4430   # with a fresh cross-compiler works.
4431   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4432   # <limits.h> exists even on freestanding compilers.
4433   # On the NeXT, cc -E runs the code through the compiler's parser,
4434   # not just through cpp. "Syntax error" is here to catch this case.
4435   cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441 #ifdef __STDC__
4442 # include <limits.h>
4443 #else
4444 # include <assert.h>
4445 #endif
4446                      Syntax error
4447 _ACEOF
4448 if { (ac_try="$ac_cpp conftest.$ac_ext"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4455   ac_status=$?
4456   grep -v '^ *+' conftest.er1 >conftest.err
4457   rm -f conftest.er1
4458   cat conftest.err >&5
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } >/dev/null && {
4461          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4462          test ! -s conftest.err
4463        }; then
4464   :
4465 else
4466   echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469   # Broken: fails on valid input.
4470 continue
4471 fi
4472
4473 rm -f conftest.err conftest.$ac_ext
4474
4475   # OK, works on sane cases.  Now check whether nonexistent headers
4476   # can be detected and how.
4477   cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 #include <ac_nonexistent.h>
4484 _ACEOF
4485 if { (ac_try="$ac_cpp conftest.$ac_ext"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } >/dev/null && {
4498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4499          test ! -s conftest.err
4500        }; then
4501   # Broken: success on invalid input.
4502 continue
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507   # Passes both tests.
4508 ac_preproc_ok=:
4509 break
4510 fi
4511
4512 rm -f conftest.err conftest.$ac_ext
4513
4514 done
4515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4516 rm -f conftest.err conftest.$ac_ext
4517 if $ac_preproc_ok; then
4518   :
4519 else
4520   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4521 See \`config.log' for more details." >&5
4522 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4523 See \`config.log' for more details." >&2;}
4524    { (exit 1); exit 1; }; }
4525 fi
4526
4527 ac_ext=c
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532
4533
4534 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4535 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4536 if test "${ac_cv_header_stdc+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545 #include <stdlib.h>
4546 #include <stdarg.h>
4547 #include <string.h>
4548 #include <float.h>
4549
4550 int
4551 main ()
4552 {
4553
4554   ;
4555   return 0;
4556 }
4557 _ACEOF
4558 rm -f conftest.$ac_objext
4559 if { (ac_try="$ac_compile"
4560 case "(($ac_try" in
4561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562   *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565   (eval "$ac_compile") 2>conftest.er1
4566   ac_status=$?
4567   grep -v '^ *+' conftest.er1 >conftest.err
4568   rm -f conftest.er1
4569   cat conftest.err >&5
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); } && {
4572          test -z "$ac_c_werror_flag" ||
4573          test ! -s conftest.err
4574        } && test -s conftest.$ac_objext; then
4575   ac_cv_header_stdc=yes
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580         ac_cv_header_stdc=no
4581 fi
4582
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584
4585 if test $ac_cv_header_stdc = yes; then
4586   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4587   cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h.  */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h.  */
4593 #include <string.h>
4594
4595 _ACEOF
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597   $EGREP "memchr" >/dev/null 2>&1; then
4598   :
4599 else
4600   ac_cv_header_stdc=no
4601 fi
4602 rm -f conftest*
4603
4604 fi
4605
4606 if test $ac_cv_header_stdc = yes; then
4607   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4608   cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h.  */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h.  */
4614 #include <stdlib.h>
4615
4616 _ACEOF
4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618   $EGREP "free" >/dev/null 2>&1; then
4619   :
4620 else
4621   ac_cv_header_stdc=no
4622 fi
4623 rm -f conftest*
4624
4625 fi
4626
4627 if test $ac_cv_header_stdc = yes; then
4628   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4629   if test "$cross_compiling" = yes; then
4630   :
4631 else
4632   cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 #include <ctype.h>
4639 #include <stdlib.h>
4640 #if ((' ' & 0x0FF) == 0x020)
4641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4643 #else
4644 # define ISLOWER(c) \
4645                    (('a' <= (c) && (c) <= 'i') \
4646                      || ('j' <= (c) && (c) <= 'r') \
4647                      || ('s' <= (c) && (c) <= 'z'))
4648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4649 #endif
4650
4651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4652 int
4653 main ()
4654 {
4655   int i;
4656   for (i = 0; i < 256; i++)
4657     if (XOR (islower (i), ISLOWER (i))
4658         || toupper (i) != TOUPPER (i))
4659       return 2;
4660   return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest$ac_exeext
4664 if { (ac_try="$ac_link"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_link") 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4674   { (case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679   (eval "$ac_try") 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; }; then
4683   :
4684 else
4685   echo "$as_me: program exited with status $ac_status" >&5
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ( exit $ac_status )
4690 ac_cv_header_stdc=no
4691 fi
4692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4693 fi
4694
4695
4696 fi
4697 fi
4698 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4699 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4700 if test $ac_cv_header_stdc = yes; then
4701
4702 cat >>confdefs.h <<\_ACEOF
4703 #define STDC_HEADERS 1
4704 _ACEOF
4705
4706 fi
4707
4708 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4719                   inttypes.h stdint.h unistd.h
4720 do
4721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 $ac_includes_default
4734
4735 #include <$ac_header>
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (ac_try="$ac_compile"
4739 case "(($ac_try" in
4740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741   *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744   (eval "$ac_compile") 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } && {
4751          test -z "$ac_c_werror_flag" ||
4752          test ! -s conftest.err
4753        } && test -s conftest.$ac_objext; then
4754   eval "$as_ac_Header=yes"
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759         eval "$as_ac_Header=no"
4760 fi
4761
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 fi
4764 ac_res=`eval echo '${'$as_ac_Header'}'`
4765                { echo "$as_me:$LINENO: result: $ac_res" >&5
4766 echo "${ECHO_T}$ac_res" >&6; }
4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768   cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770 _ACEOF
4771
4772 fi
4773
4774 done
4775
4776
4777
4778 for ac_header in dlfcn.h
4779 do
4780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4782   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 fi
4787 ac_res=`eval echo '${'$as_ac_Header'}'`
4788                { echo "$as_me:$LINENO: result: $ac_res" >&5
4789 echo "${ECHO_T}$ac_res" >&6; }
4790 else
4791   # Is the header compilable?
4792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 $ac_includes_default
4801 #include <$ac_header>
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4805 case "(($ac_try" in
4806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807   *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810   (eval "$ac_compile") 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } && {
4817          test -z "$ac_c_werror_flag" ||
4818          test ! -s conftest.err
4819        } && test -s conftest.$ac_objext; then
4820   ac_header_compiler=yes
4821 else
4822   echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825         ac_header_compiler=no
4826 fi
4827
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6; }
4831
4832 # Is the header present?
4833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841 #include <$ac_header>
4842 _ACEOF
4843 if { (ac_try="$ac_cpp conftest.$ac_ext"
4844 case "(($ac_try" in
4845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846   *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850   ac_status=$?
4851   grep -v '^ *+' conftest.er1 >conftest.err
4852   rm -f conftest.er1
4853   cat conftest.err >&5
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); } >/dev/null && {
4856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4857          test ! -s conftest.err
4858        }; then
4859   ac_header_preproc=yes
4860 else
4861   echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864   ac_header_preproc=no
4865 fi
4866
4867 rm -f conftest.err conftest.$ac_ext
4868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4869 echo "${ECHO_T}$ac_header_preproc" >&6; }
4870
4871 # So?  What about this header?
4872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4873   yes:no: )
4874     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4878     ac_header_preproc=yes
4879     ;;
4880   no:yes:* )
4881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4883     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4884 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4885     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4887     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4888 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4891     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4893
4894     ;;
4895 esac
4896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   eval "$as_ac_Header=\$ac_header_preproc"
4902 fi
4903 ac_res=`eval echo '${'$as_ac_Header'}'`
4904                { echo "$as_me:$LINENO: result: $ac_res" >&5
4905 echo "${ECHO_T}$ac_res" >&6; }
4906
4907 fi
4908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4909   cat >>confdefs.h <<_ACEOF
4910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4911 _ACEOF
4912
4913 fi
4914
4915 done
4916
4917 ac_ext=cpp
4918 ac_cpp='$CXXCPP $CPPFLAGS'
4919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4922 if test -z "$CXX"; then
4923   if test -n "$CCC"; then
4924     CXX=$CCC
4925   else
4926     if test -n "$ac_tool_prefix"; then
4927   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4928   do
4929     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4933 if test "${ac_cv_prog_CXX+set}" = set; then
4934   echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936   if test -n "$CXX"; then
4937   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944   for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 CXX=$ac_cv_prog_CXX
4957 if test -n "$CXX"; then
4958   { echo "$as_me:$LINENO: result: $CXX" >&5
4959 echo "${ECHO_T}$CXX" >&6; }
4960 else
4961   { echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6; }
4963 fi
4964
4965
4966     test -n "$CXX" && break
4967   done
4968 fi
4969 if test -z "$CXX"; then
4970   ac_ct_CXX=$CXX
4971   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4972 do
4973   # Extract the first word of "$ac_prog", so it can be a program name with args.
4974 set dummy $ac_prog; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   if test -n "$ac_ct_CXX"; then
4981   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988   for ac_exec_ext in '' $ac_executable_extensions; do
4989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990     ac_cv_prog_ac_ct_CXX="$ac_prog"
4991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5001 if test -n "$ac_ct_CXX"; then
5002   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5003 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5004 else
5005   { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5007 fi
5008
5009
5010   test -n "$ac_ct_CXX" && break
5011 done
5012
5013   if test "x$ac_ct_CXX" = x; then
5014     CXX="g++"
5015   else
5016     case $cross_compiling:$ac_tool_warned in
5017 yes:)
5018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5019 whose name does not start with the host triplet.  If you think this
5020 configuration is useful to you, please write to autoconf@gnu.org." >&5
5021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5022 whose name does not start with the host triplet.  If you think this
5023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5024 ac_tool_warned=yes ;;
5025 esac
5026     CXX=$ac_ct_CXX
5027   fi
5028 fi
5029
5030   fi
5031 fi
5032 # Provide some information about the compiler.
5033 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5034 ac_compiler=`set X $ac_compile; echo $2`
5035 { (ac_try="$ac_compiler --version >&5"
5036 case "(($ac_try" in
5037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038   *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041   (eval "$ac_compiler --version >&5") 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }
5045 { (ac_try="$ac_compiler -v >&5"
5046 case "(($ac_try" in
5047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048   *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051   (eval "$ac_compiler -v >&5") 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }
5055 { (ac_try="$ac_compiler -V >&5"
5056 case "(($ac_try" in
5057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058   *) ac_try_echo=$ac_try;;
5059 esac
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061   (eval "$ac_compiler -V >&5") 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }
5065
5066 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5067 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5068 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077
5078 int
5079 main ()
5080 {
5081 #ifndef __GNUC__
5082        choke me
5083 #endif
5084
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (ac_try="$ac_compile"
5091 case "(($ac_try" in
5092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093   *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096   (eval "$ac_compile") 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } && {
5103          test -z "$ac_cxx_werror_flag" ||
5104          test ! -s conftest.err
5105        } && test -s conftest.$ac_objext; then
5106   ac_compiler_gnu=yes
5107 else
5108   echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111         ac_compiler_gnu=no
5112 fi
5113
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5116
5117 fi
5118 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5119 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5120 GXX=`test $ac_compiler_gnu = yes && echo yes`
5121 ac_test_CXXFLAGS=${CXXFLAGS+set}
5122 ac_save_CXXFLAGS=$CXXFLAGS
5123 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5124 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5125 if test "${ac_cv_prog_cxx_g+set}" = set; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5129    ac_cxx_werror_flag=yes
5130    ac_cv_prog_cxx_g=no
5131    CXXFLAGS="-g"
5132    cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h.  */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h.  */
5138
5139 int
5140 main ()
5141 {
5142
5143   ;
5144   return 0;
5145 }
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (ac_try="$ac_compile"
5149 case "(($ac_try" in
5150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151   *) ac_try_echo=$ac_try;;
5152 esac
5153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154   (eval "$ac_compile") 2>conftest.er1
5155   ac_status=$?
5156   grep -v '^ *+' conftest.er1 >conftest.err
5157   rm -f conftest.er1
5158   cat conftest.err >&5
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } && {
5161          test -z "$ac_cxx_werror_flag" ||
5162          test ! -s conftest.err
5163        } && test -s conftest.$ac_objext; then
5164   ac_cv_prog_cxx_g=yes
5165 else
5166   echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5168
5169         CXXFLAGS=""
5170       cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176
5177 int
5178 main ()
5179 {
5180
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext
5186 if { (ac_try="$ac_compile"
5187 case "(($ac_try" in
5188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189   *) ac_try_echo=$ac_try;;
5190 esac
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192   (eval "$ac_compile") 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } && {
5199          test -z "$ac_cxx_werror_flag" ||
5200          test ! -s conftest.err
5201        } && test -s conftest.$ac_objext; then
5202   :
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5208          CXXFLAGS="-g"
5209          cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215
5216 int
5217 main ()
5218 {
5219
5220   ;
5221   return 0;
5222 }
5223 _ACEOF
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5226 case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_compile") 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } && {
5238          test -z "$ac_cxx_werror_flag" ||
5239          test ! -s conftest.err
5240        } && test -s conftest.$ac_objext; then
5241   ac_cv_prog_cxx_g=yes
5242 else
5243   echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246
5247 fi
5248
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 fi
5251
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 fi
5254
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5257 fi
5258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5259 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5260 if test "$ac_test_CXXFLAGS" = set; then
5261   CXXFLAGS=$ac_save_CXXFLAGS
5262 elif test $ac_cv_prog_cxx_g = yes; then
5263   if test "$GXX" = yes; then
5264     CXXFLAGS="-g -O2"
5265   else
5266     CXXFLAGS="-g"
5267   fi
5268 else
5269   if test "$GXX" = yes; then
5270     CXXFLAGS="-O2"
5271   else
5272     CXXFLAGS=
5273   fi
5274 fi
5275 ac_ext=cpp
5276 ac_cpp='$CXXCPP $CPPFLAGS'
5277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5280
5281 ac_ext=cpp
5282 ac_cpp='$CXXCPP $CPPFLAGS'
5283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5286 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5287 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5288 if test -z "$CXXCPP"; then
5289   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292       # Double quotes because CXXCPP needs to be expanded
5293     for CXXCPP in "$CXX -E" "/lib/cpp"
5294     do
5295       ac_preproc_ok=false
5296 for ac_cxx_preproc_warn_flag in '' yes
5297 do
5298   # Use a header file that comes with gcc, so configuring glibc
5299   # with a fresh cross-compiler works.
5300   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301   # <limits.h> exists even on freestanding compilers.
5302   # On the NeXT, cc -E runs the code through the compiler's parser,
5303   # not just through cpp. "Syntax error" is here to catch this case.
5304   cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310 #ifdef __STDC__
5311 # include <limits.h>
5312 #else
5313 # include <assert.h>
5314 #endif
5315                      Syntax error
5316 _ACEOF
5317 if { (ac_try="$ac_cpp conftest.$ac_ext"
5318 case "(($ac_try" in
5319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320   *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5324   ac_status=$?
5325   grep -v '^ *+' conftest.er1 >conftest.err
5326   rm -f conftest.er1
5327   cat conftest.err >&5
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); } >/dev/null && {
5330          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5331          test ! -s conftest.err
5332        }; then
5333   :
5334 else
5335   echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338   # Broken: fails on valid input.
5339 continue
5340 fi
5341
5342 rm -f conftest.err conftest.$ac_ext
5343
5344   # OK, works on sane cases.  Now check whether nonexistent headers
5345   # can be detected and how.
5346   cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352 #include <ac_nonexistent.h>
5353 _ACEOF
5354 if { (ac_try="$ac_cpp conftest.$ac_ext"
5355 case "(($ac_try" in
5356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357   *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5361   ac_status=$?
5362   grep -v '^ *+' conftest.er1 >conftest.err
5363   rm -f conftest.er1
5364   cat conftest.err >&5
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } >/dev/null && {
5367          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5368          test ! -s conftest.err
5369        }; then
5370   # Broken: success on invalid input.
5371 continue
5372 else
5373   echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376   # Passes both tests.
5377 ac_preproc_ok=:
5378 break
5379 fi
5380
5381 rm -f conftest.err conftest.$ac_ext
5382
5383 done
5384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385 rm -f conftest.err conftest.$ac_ext
5386 if $ac_preproc_ok; then
5387   break
5388 fi
5389
5390     done
5391     ac_cv_prog_CXXCPP=$CXXCPP
5392
5393 fi
5394   CXXCPP=$ac_cv_prog_CXXCPP
5395 else
5396   ac_cv_prog_CXXCPP=$CXXCPP
5397 fi
5398 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5399 echo "${ECHO_T}$CXXCPP" >&6; }
5400 ac_preproc_ok=false
5401 for ac_cxx_preproc_warn_flag in '' yes
5402 do
5403   # Use a header file that comes with gcc, so configuring glibc
5404   # with a fresh cross-compiler works.
5405   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406   # <limits.h> exists even on freestanding compilers.
5407   # On the NeXT, cc -E runs the code through the compiler's parser,
5408   # not just through cpp. "Syntax error" is here to catch this case.
5409   cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415 #ifdef __STDC__
5416 # include <limits.h>
5417 #else
5418 # include <assert.h>
5419 #endif
5420                      Syntax error
5421 _ACEOF
5422 if { (ac_try="$ac_cpp conftest.$ac_ext"
5423 case "(($ac_try" in
5424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425   *) ac_try_echo=$ac_try;;
5426 esac
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5429   ac_status=$?
5430   grep -v '^ *+' conftest.er1 >conftest.err
5431   rm -f conftest.er1
5432   cat conftest.err >&5
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); } >/dev/null && {
5435          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5436          test ! -s conftest.err
5437        }; then
5438   :
5439 else
5440   echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5442
5443   # Broken: fails on valid input.
5444 continue
5445 fi
5446
5447 rm -f conftest.err conftest.$ac_ext
5448
5449   # OK, works on sane cases.  Now check whether nonexistent headers
5450   # can be detected and how.
5451   cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h.  */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h.  */
5457 #include <ac_nonexistent.h>
5458 _ACEOF
5459 if { (ac_try="$ac_cpp conftest.$ac_ext"
5460 case "(($ac_try" in
5461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462   *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5466   ac_status=$?
5467   grep -v '^ *+' conftest.er1 >conftest.err
5468   rm -f conftest.er1
5469   cat conftest.err >&5
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); } >/dev/null && {
5472          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5473          test ! -s conftest.err
5474        }; then
5475   # Broken: success on invalid input.
5476 continue
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481   # Passes both tests.
5482 ac_preproc_ok=:
5483 break
5484 fi
5485
5486 rm -f conftest.err conftest.$ac_ext
5487
5488 done
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.$ac_ext
5491 if $ac_preproc_ok; then
5492   :
5493 else
5494   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5497 See \`config.log' for more details." >&2;}
5498    { (exit 1); exit 1; }; }
5499 fi
5500
5501 ac_ext=cpp
5502 ac_cpp='$CXXCPP $CPPFLAGS'
5503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5506
5507
5508 ac_ext=f
5509 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5510 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5512 if test -n "$ac_tool_prefix"; then
5513   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
5514   do
5515     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5519 if test "${ac_cv_prog_F77+set}" = set; then
5520   echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522   if test -n "$F77"; then
5523   ac_cv_prog_F77="$F77" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530   for ac_exec_ext in '' $ac_executable_extensions; do
5531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 F77=$ac_cv_prog_F77
5543 if test -n "$F77"; then
5544   { echo "$as_me:$LINENO: result: $F77" >&5
5545 echo "${ECHO_T}$F77" >&6; }
5546 else
5547   { echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6; }
5549 fi
5550
5551
5552     test -n "$F77" && break
5553   done
5554 fi
5555 if test -z "$F77"; then
5556   ac_ct_F77=$F77
5557   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
5558 do
5559   # Extract the first word of "$ac_prog", so it can be a program name with args.
5560 set dummy $ac_prog; ac_word=$2
5561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5563 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   if test -n "$ac_ct_F77"; then
5567   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572   IFS=$as_save_IFS
5573   test -z "$as_dir" && as_dir=.
5574   for ac_exec_ext in '' $ac_executable_extensions; do
5575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576     ac_cv_prog_ac_ct_F77="$ac_prog"
5577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578     break 2
5579   fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5587 if test -n "$ac_ct_F77"; then
5588   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5589 echo "${ECHO_T}$ac_ct_F77" >&6; }
5590 else
5591   { echo "$as_me:$LINENO: result: no" >&5
5592 echo "${ECHO_T}no" >&6; }
5593 fi
5594
5595
5596   test -n "$ac_ct_F77" && break
5597 done
5598
5599   if test "x$ac_ct_F77" = x; then
5600     F77=""
5601   else
5602     case $cross_compiling:$ac_tool_warned in
5603 yes:)
5604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5605 whose name does not start with the host triplet.  If you think this
5606 configuration is useful to you, please write to autoconf@gnu.org." >&5
5607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5608 whose name does not start with the host triplet.  If you think this
5609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612     F77=$ac_ct_F77
5613   fi
5614 fi
5615
5616
5617 # Provide some information about the compiler.
5618 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5619 ac_compiler=`set X $ac_compile; echo $2`
5620 { (ac_try="$ac_compiler --version >&5"
5621 case "(($ac_try" in
5622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623   *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626   (eval "$ac_compiler --version >&5") 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }
5630 { (ac_try="$ac_compiler -v >&5"
5631 case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_compiler -v >&5") 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }
5640 { (ac_try="$ac_compiler -V >&5"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_compiler -V >&5") 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); }
5650 rm -f a.out
5651
5652 # If we don't use `.F' as extension, the preprocessor is not run on the
5653 # input file.  (Note that this only needs to work for GNU compilers.)
5654 ac_save_ext=$ac_ext
5655 ac_ext=F
5656 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5657 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5658 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   cat >conftest.$ac_ext <<_ACEOF
5662       program main
5663 #ifndef __GNUC__
5664        choke me
5665 #endif
5666
5667       end
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5671 case "(($ac_try" in
5672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673   *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676   (eval "$ac_compile") 2>conftest.er1
5677   ac_status=$?
5678   grep -v '^ *+' conftest.er1 >conftest.err
5679   rm -f conftest.er1
5680   cat conftest.err >&5
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); } && {
5683          test -z "$ac_f77_werror_flag" ||
5684          test ! -s conftest.err
5685        } && test -s conftest.$ac_objext; then
5686   ac_compiler_gnu=yes
5687 else
5688   echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691         ac_compiler_gnu=no
5692 fi
5693
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5696
5697 fi
5698 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5699 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5700 ac_ext=$ac_save_ext
5701 ac_test_FFLAGS=${FFLAGS+set}
5702 ac_save_FFLAGS=$FFLAGS
5703 FFLAGS=
5704 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5705 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_f77_g+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   FFLAGS=-g
5710 cat >conftest.$ac_ext <<_ACEOF
5711       program main
5712
5713       end
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (ac_try="$ac_compile"
5717 case "(($ac_try" in
5718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719   *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722   (eval "$ac_compile") 2>conftest.er1
5723   ac_status=$?
5724   grep -v '^ *+' conftest.er1 >conftest.err
5725   rm -f conftest.er1
5726   cat conftest.err >&5
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); } && {
5729          test -z "$ac_f77_werror_flag" ||
5730          test ! -s conftest.err
5731        } && test -s conftest.$ac_objext; then
5732   ac_cv_prog_f77_g=yes
5733 else
5734   echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737         ac_cv_prog_f77_g=no
5738 fi
5739
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741
5742 fi
5743 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5744 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5745 if test "$ac_test_FFLAGS" = set; then
5746   FFLAGS=$ac_save_FFLAGS
5747 elif test $ac_cv_prog_f77_g = yes; then
5748   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5749     FFLAGS="-g -O2"
5750   else
5751     FFLAGS="-g"
5752   fi
5753 else
5754   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5755     FFLAGS="-O2"
5756   else
5757     FFLAGS=
5758   fi
5759 fi
5760
5761 G77=`test $ac_compiler_gnu = yes && echo yes`
5762 ac_ext=c
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767
5768
5769
5770 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5771
5772 # find the maximum length of command line arguments
5773 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5774 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5775 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778     i=0
5779   teststring="ABCD"
5780
5781   case $build_os in
5782   msdosdjgpp*)
5783     # On DJGPP, this test can blow up pretty badly due to problems in libc
5784     # (any single argument exceeding 2000 bytes causes a buffer overrun
5785     # during glob expansion).  Even if it were fixed, the result of this
5786     # check would be larger than it should be.
5787     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5788     ;;
5789
5790   gnu*)
5791     # Under GNU Hurd, this test is not required because there is
5792     # no limit to the length of command line arguments.
5793     # Libtool will interpret -1 as no limit whatsoever
5794     lt_cv_sys_max_cmd_len=-1;
5795     ;;
5796
5797   cygwin* | mingw*)
5798     # On Win9x/ME, this test blows up -- it succeeds, but takes
5799     # about 5 minutes as the teststring grows exponentially.
5800     # Worse, since 9x/ME are not pre-emptively multitasking,
5801     # you end up with a "frozen" computer, even though with patience
5802     # the test eventually succeeds (with a max line length of 256k).
5803     # Instead, let's just punt: use the minimum linelength reported by
5804     # all of the supported platforms: 8192 (on NT/2K/XP).
5805     lt_cv_sys_max_cmd_len=8192;
5806     ;;
5807
5808   amigaos*)
5809     # On AmigaOS with pdksh, this test takes hours, literally.
5810     # So we just punt and use a minimum line length of 8192.
5811     lt_cv_sys_max_cmd_len=8192;
5812     ;;
5813
5814  *)
5815     # If test is not a shell built-in, we'll probably end up computing a
5816     # maximum length that is only half of the actual maximum length, but
5817     # we can't tell.
5818     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5819                = "XX$teststring") >/dev/null 2>&1 &&
5820             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5821             lt_cv_sys_max_cmd_len=$new_result &&
5822             test $i != 17 # 1/2 MB should be enough
5823     do
5824       i=`expr $i + 1`
5825       teststring=$teststring$teststring
5826     done
5827     teststring=
5828     # Add a significant safety factor because C++ compilers can tack on massive
5829     # amounts of additional arguments before passing them to the linker.
5830     # It appears as though 1/2 is a usable value.
5831     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5832     ;;
5833   esac
5834
5835 fi
5836
5837 if test -n $lt_cv_sys_max_cmd_len ; then
5838   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5839 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5840 else
5841   { echo "$as_me:$LINENO: result: none" >&5
5842 echo "${ECHO_T}none" >&6; }
5843 fi
5844
5845
5846
5847
5848 # Check for command to grab the raw symbol name followed by C symbol from nm.
5849 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5850 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5851 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854
5855 # These are sane defaults that work on at least a few old systems.
5856 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5857
5858 # Character class describing NM global symbol codes.
5859 symcode='[BCDEGRST]'
5860
5861 # Regexp to match symbols that can be accessed directly from C.
5862 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5863
5864 # Transform the above into a raw symbol and a C symbol.
5865 symxfrm='\1 \2\3 \3'
5866
5867 # Transform an extracted symbol line into a proper C declaration
5868 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5869
5870 # Transform an extracted symbol line into symbol name and symbol address
5871 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'"
5872
5873 # Define system-specific variables.
5874 case $host_os in
5875 aix*)
5876   symcode='[BCDT]'
5877   ;;
5878 cygwin* | mingw* | pw32*)
5879   symcode='[ABCDGISTW]'
5880   ;;
5881 hpux*) # Its linker distinguishes data from code symbols
5882   if test "$host_cpu" = ia64; then
5883     symcode='[ABCDEGRST]'
5884   fi
5885   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5886   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'"
5887   ;;
5888 irix* | nonstopux*)
5889   symcode='[BCDEGRST]'
5890   ;;
5891 osf*)
5892   symcode='[BCDEGQRST]'
5893   ;;
5894 solaris* | sysv5*)
5895   symcode='[BDRT]'
5896   ;;
5897 sysv4)
5898   symcode='[DFNSTU]'
5899   ;;
5900 esac
5901
5902 # Handle CRLF in mingw tool chain
5903 opt_cr=
5904 case $build_os in
5905 mingw*)
5906   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5907   ;;
5908 esac
5909
5910 # If we're using GNU nm, then use its standard symbol codes.
5911 case `$NM -V 2>&1` in
5912 *GNU* | *'with BFD'*)
5913   symcode='[ABCDGIRSTW]' ;;
5914 esac
5915
5916 # Try without a prefix undercore, then with it.
5917 for ac_symprfx in "" "_"; do
5918
5919   # Write the raw and C identifiers.
5920   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5921
5922   # Check to see that the pipe works correctly.
5923   pipe_works=no
5924
5925   rm -f conftest*
5926   cat > conftest.$ac_ext <<EOF
5927 #ifdef __cplusplus
5928 extern "C" {
5929 #endif
5930 char nm_test_var;
5931 void nm_test_func(){}
5932 #ifdef __cplusplus
5933 }
5934 #endif
5935 int main(){nm_test_var='a';nm_test_func();return(0);}
5936 EOF
5937
5938   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939   (eval $ac_compile) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; then
5943     # Now try to grab the symbols.
5944     nlist=conftest.nm
5945     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5946   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); } && test -s "$nlist"; then
5950       # Try sorting and uniquifying the output.
5951       if sort "$nlist" | uniq > "$nlist"T; then
5952         mv -f "$nlist"T "$nlist"
5953       else
5954         rm -f "$nlist"T
5955       fi
5956
5957       # Make sure that we snagged all the symbols we need.
5958       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5959         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5960           cat <<EOF > conftest.$ac_ext
5961 #ifdef __cplusplus
5962 extern "C" {
5963 #endif
5964
5965 EOF
5966           # Now generate the symbol file.
5967           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5968
5969           cat <<EOF >> conftest.$ac_ext
5970 #if defined (__STDC__) && __STDC__
5971 # define lt_ptr_t void *
5972 #else
5973 # define lt_ptr_t char *
5974 # define const
5975 #endif
5976
5977 /* The mapping between symbol names and symbols. */
5978 const struct {
5979   const char *name;
5980   lt_ptr_t address;
5981 }
5982 lt_preloaded_symbols[] =
5983 {
5984 EOF
5985           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5986           cat <<\EOF >> conftest.$ac_ext
5987   {0, (lt_ptr_t) 0}
5988 };
5989
5990 #ifdef __cplusplus
5991 }
5992 #endif
5993 EOF
5994           # Now try linking the two files.
5995           mv conftest.$ac_objext conftstm.$ac_objext
5996           lt_save_LIBS="$LIBS"
5997           lt_save_CFLAGS="$CFLAGS"
5998           LIBS="conftstm.$ac_objext"
5999           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6000           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001   (eval $ac_link) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6005             pipe_works=yes
6006           fi
6007           LIBS="$lt_save_LIBS"
6008           CFLAGS="$lt_save_CFLAGS"
6009         else
6010           echo "cannot find nm_test_func in $nlist" >&5
6011         fi
6012       else
6013         echo "cannot find nm_test_var in $nlist" >&5
6014       fi
6015     else
6016       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6017     fi
6018   else
6019     echo "$progname: failed program was:" >&5
6020     cat conftest.$ac_ext >&5
6021   fi
6022   rm -f conftest* conftst*
6023
6024   # Do not use the global_symbol_pipe unless it works.
6025   if test "$pipe_works" = yes; then
6026     break
6027   else
6028     lt_cv_sys_global_symbol_pipe=
6029   fi
6030 done
6031
6032 fi
6033
6034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6035   lt_cv_sys_global_symbol_to_cdecl=
6036 fi
6037 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6038   { echo "$as_me:$LINENO: result: failed" >&5
6039 echo "${ECHO_T}failed" >&6; }
6040 else
6041   { echo "$as_me:$LINENO: result: ok" >&5
6042 echo "${ECHO_T}ok" >&6; }
6043 fi
6044
6045 { echo "$as_me:$LINENO: checking for objdir" >&5
6046 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6047 if test "${lt_cv_objdir+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   rm -f .libs 2>/dev/null
6051 mkdir .libs 2>/dev/null
6052 if test -d .libs; then
6053   lt_cv_objdir=.libs
6054 else
6055   # MS-DOS does not allow filenames that begin with a dot.
6056   lt_cv_objdir=_libs
6057 fi
6058 rmdir .libs 2>/dev/null
6059 fi
6060 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6061 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6062 objdir=$lt_cv_objdir
6063
6064
6065
6066
6067
6068 case $host_os in
6069 aix3*)
6070   # AIX sometimes has problems with the GCC collect2 program.  For some
6071   # reason, if we set the COLLECT_NAMES environment variable, the problems
6072   # vanish in a puff of smoke.
6073   if test "X${COLLECT_NAMES+set}" != Xset; then
6074     COLLECT_NAMES=
6075     export COLLECT_NAMES
6076   fi
6077   ;;
6078 esac
6079
6080 # Sed substitution that helps us do robust quoting.  It backslashifies
6081 # metacharacters that are still active within double-quoted strings.
6082 Xsed='sed -e s/^X//'
6083 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6084
6085 # Same as above, but do not quote variable references.
6086 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6087
6088 # Sed substitution to delay expansion of an escaped shell variable in a
6089 # double_quote_subst'ed string.
6090 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6091
6092 # Sed substitution to avoid accidental globbing in evaled expressions
6093 no_glob_subst='s/\*/\\\*/g'
6094
6095 # Constants:
6096 rm="rm -f"
6097
6098 # Global variables:
6099 default_ofile=libtool
6100 can_build_shared=yes
6101
6102 # All known linkers require a `.a' archive for static linking (except M$VC,
6103 # which needs '.lib').
6104 libext=a
6105 ltmain="$ac_aux_dir/ltmain.sh"
6106 ofile="$default_ofile"
6107 with_gnu_ld="$lt_cv_prog_gnu_ld"
6108
6109 if test -n "$ac_tool_prefix"; then
6110   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ar; ac_word=$2
6112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6114 if test "${ac_cv_prog_AR+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   if test -n "$AR"; then
6118   ac_cv_prog_AR="$AR" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123   IFS=$as_save_IFS
6124   test -z "$as_dir" && as_dir=.
6125   for ac_exec_ext in '' $ac_executable_extensions; do
6126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127     ac_cv_prog_AR="${ac_tool_prefix}ar"
6128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129     break 2
6130   fi
6131 done
6132 done
6133 IFS=$as_save_IFS
6134
6135 fi
6136 fi
6137 AR=$ac_cv_prog_AR
6138 if test -n "$AR"; then
6139   { echo "$as_me:$LINENO: result: $AR" >&5
6140 echo "${ECHO_T}$AR" >&6; }
6141 else
6142   { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6144 fi
6145
6146
6147 fi
6148 if test -z "$ac_cv_prog_AR"; then
6149   ac_ct_AR=$AR
6150   # Extract the first word of "ar", so it can be a program name with args.
6151 set dummy ar; ac_word=$2
6152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157   if test -n "$ac_ct_AR"; then
6158   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165   for ac_exec_ext in '' $ac_executable_extensions; do
6166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167     ac_cv_prog_ac_ct_AR="ar"
6168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172 done
6173 IFS=$as_save_IFS
6174
6175 fi
6176 fi
6177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6178 if test -n "$ac_ct_AR"; then
6179   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6180 echo "${ECHO_T}$ac_ct_AR" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185
6186   if test "x$ac_ct_AR" = x; then
6187     AR="false"
6188   else
6189     case $cross_compiling:$ac_tool_warned in
6190 yes:)
6191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6192 whose name does not start with the host triplet.  If you think this
6193 configuration is useful to you, please write to autoconf@gnu.org." >&5
6194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet.  If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199     AR=$ac_ct_AR
6200   fi
6201 else
6202   AR="$ac_cv_prog_AR"
6203 fi
6204
6205 if test -n "$ac_tool_prefix"; then
6206   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_prog_RANLIB+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   if test -n "$RANLIB"; then
6214   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221   for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 RANLIB=$ac_cv_prog_RANLIB
6234 if test -n "$RANLIB"; then
6235   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6236 echo "${ECHO_T}$RANLIB" >&6; }
6237 else
6238   { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; }
6240 fi
6241
6242
6243 fi
6244 if test -z "$ac_cv_prog_RANLIB"; then
6245   ac_ct_RANLIB=$RANLIB
6246   # Extract the first word of "ranlib", so it can be a program name with args.
6247 set dummy ranlib; ac_word=$2
6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   if test -n "$ac_ct_RANLIB"; then
6254   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261   for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_prog_ac_ct_RANLIB="ranlib"
6264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6274 if test -n "$ac_ct_RANLIB"; then
6275   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6276 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6277 else
6278   { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6280 fi
6281
6282   if test "x$ac_ct_RANLIB" = x; then
6283     RANLIB=":"
6284   else
6285     case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6288 whose name does not start with the host triplet.  If you think this
6289 configuration is useful to you, please write to autoconf@gnu.org." >&5
6290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6291 whose name does not start with the host triplet.  If you think this
6292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295     RANLIB=$ac_ct_RANLIB
6296   fi
6297 else
6298   RANLIB="$ac_cv_prog_RANLIB"
6299 fi
6300
6301 if test -n "$ac_tool_prefix"; then
6302   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}strip; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_prog_STRIP+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   if test -n "$STRIP"; then
6310   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317   for ac_exec_ext in '' $ac_executable_extensions; do
6318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 STRIP=$ac_cv_prog_STRIP
6330 if test -n "$STRIP"; then
6331   { echo "$as_me:$LINENO: result: $STRIP" >&5
6332 echo "${ECHO_T}$STRIP" >&6; }
6333 else
6334   { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6336 fi
6337
6338
6339 fi
6340 if test -z "$ac_cv_prog_STRIP"; then
6341   ac_ct_STRIP=$STRIP
6342   # Extract the first word of "strip", so it can be a program name with args.
6343 set dummy strip; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   if test -n "$ac_ct_STRIP"; then
6350   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357   for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_prog_ac_ct_STRIP="strip"
6360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6370 if test -n "$ac_ct_STRIP"; then
6371   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6372 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6373 else
6374   { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6376 fi
6377
6378   if test "x$ac_ct_STRIP" = x; then
6379     STRIP=":"
6380   else
6381     case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6384 whose name does not start with the host triplet.  If you think this
6385 configuration is useful to you, please write to autoconf@gnu.org." >&5
6386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6387 whose name does not start with the host triplet.  If you think this
6388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391     STRIP=$ac_ct_STRIP
6392   fi
6393 else
6394   STRIP="$ac_cv_prog_STRIP"
6395 fi
6396
6397
6398 old_CC="$CC"
6399 old_CFLAGS="$CFLAGS"
6400
6401 # Set sane defaults for various variables
6402 test -z "$AR" && AR=ar
6403 test -z "$AR_FLAGS" && AR_FLAGS=cru
6404 test -z "$AS" && AS=as
6405 test -z "$CC" && CC=cc
6406 test -z "$LTCC" && LTCC=$CC
6407 test -z "$DLLTOOL" && DLLTOOL=dlltool
6408 test -z "$LD" && LD=ld
6409 test -z "$LN_S" && LN_S="ln -s"
6410 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6411 test -z "$NM" && NM=nm
6412 test -z "$SED" && SED=sed
6413 test -z "$OBJDUMP" && OBJDUMP=objdump
6414 test -z "$RANLIB" && RANLIB=:
6415 test -z "$STRIP" && STRIP=:
6416 test -z "$ac_objext" && ac_objext=o
6417
6418 # Determine commands to create old-style static archives.
6419 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6420 old_postinstall_cmds='chmod 644 $oldlib'
6421 old_postuninstall_cmds=
6422
6423 if test -n "$RANLIB"; then
6424   case $host_os in
6425   openbsd*)
6426     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6427     ;;
6428   *)
6429     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6430     ;;
6431   esac
6432   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6433 fi
6434
6435 # Only perform the check for file, if the check method requires it
6436 case $deplibs_check_method in
6437 file_magic*)
6438   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6439     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6440 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6441 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   case $MAGIC_CMD in
6445 [\\/*] |  ?:[\\/]*)
6446   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6447   ;;
6448 *)
6449   lt_save_MAGIC_CMD="$MAGIC_CMD"
6450   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6451   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6452   for ac_dir in $ac_dummy; do
6453     IFS="$lt_save_ifs"
6454     test -z "$ac_dir" && ac_dir=.
6455     if test -f $ac_dir/${ac_tool_prefix}file; then
6456       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6457       if test -n "$file_magic_test_file"; then
6458         case $deplibs_check_method in
6459         "file_magic "*)
6460           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6461           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6462           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6463             $EGREP "$file_magic_regex" > /dev/null; then
6464             :
6465           else
6466             cat <<EOF 1>&2
6467
6468 *** Warning: the command libtool uses to detect shared libraries,
6469 *** $file_magic_cmd, produces output that libtool cannot recognize.
6470 *** The result is that libtool may fail to recognize shared libraries
6471 *** as such.  This will affect the creation of libtool libraries that
6472 *** depend on shared libraries, but programs linked with such libtool
6473 *** libraries will work regardless of this problem.  Nevertheless, you
6474 *** may want to report the problem to your system manager and/or to
6475 *** bug-libtool@gnu.org
6476
6477 EOF
6478           fi ;;
6479         esac
6480       fi
6481       break
6482     fi
6483   done
6484   IFS="$lt_save_ifs"
6485   MAGIC_CMD="$lt_save_MAGIC_CMD"
6486   ;;
6487 esac
6488 fi
6489
6490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6491 if test -n "$MAGIC_CMD"; then
6492   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6493 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6494 else
6495   { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6497 fi
6498
6499 if test -z "$lt_cv_path_MAGIC_CMD"; then
6500   if test -n "$ac_tool_prefix"; then
6501     { echo "$as_me:$LINENO: checking for file" >&5
6502 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6503 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   case $MAGIC_CMD in
6507 [\\/*] |  ?:[\\/]*)
6508   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6509   ;;
6510 *)
6511   lt_save_MAGIC_CMD="$MAGIC_CMD"
6512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6513   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6514   for ac_dir in $ac_dummy; do
6515     IFS="$lt_save_ifs"
6516     test -z "$ac_dir" && ac_dir=.
6517     if test -f $ac_dir/file; then
6518       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6519       if test -n "$file_magic_test_file"; then
6520         case $deplibs_check_method in
6521         "file_magic "*)
6522           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6523           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6524           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6525             $EGREP "$file_magic_regex" > /dev/null; then
6526             :
6527           else
6528             cat <<EOF 1>&2
6529
6530 *** Warning: the command libtool uses to detect shared libraries,
6531 *** $file_magic_cmd, produces output that libtool cannot recognize.
6532 *** The result is that libtool may fail to recognize shared libraries
6533 *** as such.  This will affect the creation of libtool libraries that
6534 *** depend on shared libraries, but programs linked with such libtool
6535 *** libraries will work regardless of this problem.  Nevertheless, you
6536 *** may want to report the problem to your system manager and/or to
6537 *** bug-libtool@gnu.org
6538
6539 EOF
6540           fi ;;
6541         esac
6542       fi
6543       break
6544     fi
6545   done
6546   IFS="$lt_save_ifs"
6547   MAGIC_CMD="$lt_save_MAGIC_CMD"
6548   ;;
6549 esac
6550 fi
6551
6552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6553 if test -n "$MAGIC_CMD"; then
6554   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6555 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6556 else
6557   { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6559 fi
6560
6561   else
6562     MAGIC_CMD=:
6563   fi
6564 fi
6565
6566   fi
6567   ;;
6568 esac
6569
6570 enable_dlopen=no
6571 enable_win32_dll=no
6572
6573 # Check whether --enable-libtool-lock was given.
6574 if test "${enable_libtool_lock+set}" = set; then
6575   enableval=$enable_libtool_lock;
6576 fi
6577
6578 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6579
6580
6581 # Check whether --with-pic was given.
6582 if test "${with_pic+set}" = set; then
6583   withval=$with_pic; pic_mode="$withval"
6584 else
6585   pic_mode=default
6586 fi
6587
6588 test -z "$pic_mode" && pic_mode=default
6589
6590 # Use C for the default configuration in the libtool script
6591 tagname=
6592 lt_save_CC="$CC"
6593 ac_ext=c
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598
6599
6600 # Source file extension for C test sources.
6601 ac_ext=c
6602
6603 # Object file extension for compiled C test sources.
6604 objext=o
6605 objext=$objext
6606
6607 # Code to be used in simple compile tests
6608 lt_simple_compile_test_code="int some_variable = 0;\n"
6609
6610 # Code to be used in simple link tests
6611 lt_simple_link_test_code='int main(){return(0);}\n'
6612
6613
6614 # If no C compiler was specified, use CC.
6615 LTCC=${LTCC-"$CC"}
6616
6617 # Allow CC to be a program name with arguments.
6618 compiler=$CC
6619
6620
6621 #
6622 # Check for any special shared library compilation flags.
6623 #
6624 lt_prog_cc_shlib=
6625 if test "$GCC" = no; then
6626   case $host_os in
6627   sco3.2v5*)
6628     lt_prog_cc_shlib='-belf'
6629     ;;
6630   esac
6631 fi
6632 if test -n "$lt_prog_cc_shlib"; then
6633   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6634 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6635   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6636   else
6637     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6638 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6639     lt_cv_prog_cc_can_build_shared=no
6640   fi
6641 fi
6642
6643
6644 #
6645 # Check to make sure the static flag actually works.
6646 #
6647 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6648 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6649 if test "${lt_prog_compiler_static_works+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   lt_prog_compiler_static_works=no
6653    save_LDFLAGS="$LDFLAGS"
6654    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6655    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6656    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6657      # The compiler can only warn and ignore the option if not recognized
6658      # So say no if there are warnings
6659      if test -s conftest.err; then
6660        # Append any errors to the config.log.
6661        cat conftest.err 1>&5
6662      else
6663        lt_prog_compiler_static_works=yes
6664      fi
6665    fi
6666    $rm conftest*
6667    LDFLAGS="$save_LDFLAGS"
6668
6669 fi
6670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6671 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6672
6673 if test x"$lt_prog_compiler_static_works" = xyes; then
6674     :
6675 else
6676     lt_prog_compiler_static=
6677 fi
6678
6679
6680
6681 ## CAVEAT EMPTOR:
6682 ## There is no encapsulation within the following macros, do not change
6683 ## the running order or otherwise move them around unless you know exactly
6684 ## what you are doing...
6685
6686 lt_prog_compiler_no_builtin_flag=
6687
6688 if test "$GCC" = yes; then
6689   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6690
6691
6692 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6693 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   lt_cv_prog_compiler_rtti_exceptions=no
6698   ac_outfile=conftest.$ac_objext
6699    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6700    lt_compiler_flag="-fno-rtti -fno-exceptions"
6701    # Insert the option either (1) after the last *FLAGS variable, or
6702    # (2) before a word containing "conftest.", or (3) at the end.
6703    # Note that $ac_compile itself does not contain backslashes and begins
6704    # with a dollar sign (not a hyphen), so the echo should work correctly.
6705    # The option is referenced via a variable to avoid confusing sed.
6706    lt_compile=`echo "$ac_compile" | $SED \
6707    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6709    -e 's:$: $lt_compiler_flag:'`
6710    (eval echo "\"\$as_me:6710: $lt_compile\"" >&5)
6711    (eval "$lt_compile" 2>conftest.err)
6712    ac_status=$?
6713    cat conftest.err >&5
6714    echo "$as_me:6714: \$? = $ac_status" >&5
6715    if (exit $ac_status) && test -s "$ac_outfile"; then
6716      # The compiler can only warn and ignore the option if not recognized
6717      # So say no if there are warnings
6718      if test ! -s conftest.err; then
6719        lt_cv_prog_compiler_rtti_exceptions=yes
6720      fi
6721    fi
6722    $rm conftest*
6723
6724 fi
6725 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6726 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6727
6728 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6729     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6730 else
6731     :
6732 fi
6733
6734 fi
6735
6736 lt_prog_compiler_wl=
6737 lt_prog_compiler_pic=
6738 lt_prog_compiler_static=
6739
6740 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6741 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6742
6743   if test "$GCC" = yes; then
6744     lt_prog_compiler_wl='-Wl,'
6745     lt_prog_compiler_static='-static'
6746
6747     case $host_os in
6748       aix*)
6749       # All AIX code is PIC.
6750       if test "$host_cpu" = ia64; then
6751         # AIX 5 now supports IA64 processor
6752         lt_prog_compiler_static='-Bstatic'
6753       fi
6754       ;;
6755
6756     amigaos*)
6757       # FIXME: we need at least 68020 code to build shared libraries, but
6758       # adding the `-m68020' flag to GCC prevents building anything better,
6759       # like `-m68040'.
6760       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6761       ;;
6762
6763     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6764       # PIC is the default for these OSes.
6765       ;;
6766
6767     mingw* | pw32* | os2*)
6768       # This hack is so that the source file can tell whether it is being
6769       # built for inclusion in a dll (and should export symbols for example).
6770       lt_prog_compiler_pic='-DDLL_EXPORT'
6771       ;;
6772
6773     darwin* | rhapsody*)
6774       # PIC is the default on this platform
6775       # Common symbols not allowed in MH_DYLIB files
6776       lt_prog_compiler_pic='-fno-common'
6777       ;;
6778
6779     msdosdjgpp*)
6780       # Just because we use GCC doesn't mean we suddenly get shared libraries
6781       # on systems that don't support them.
6782       lt_prog_compiler_can_build_shared=no
6783       enable_shared=no
6784       ;;
6785
6786     sysv4*MP*)
6787       if test -d /usr/nec; then
6788         lt_prog_compiler_pic=-Kconform_pic
6789       fi
6790       ;;
6791
6792     hpux*)
6793       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6794       # not for PA HP-UX.
6795       case "$host_cpu" in
6796       hppa*64*|ia64*)
6797         # +Z the default
6798         ;;
6799       *)
6800         lt_prog_compiler_pic='-fPIC'
6801         ;;
6802       esac
6803       ;;
6804
6805     *)
6806       lt_prog_compiler_pic='-fPIC'
6807       ;;
6808     esac
6809   else
6810     # PORTME Check for flag to pass linker flags through the system compiler.
6811     case $host_os in
6812     aix*)
6813       lt_prog_compiler_wl='-Wl,'
6814       if test "$host_cpu" = ia64; then
6815         # AIX 5 now supports IA64 processor
6816         lt_prog_compiler_static='-Bstatic'
6817       else
6818         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6819       fi
6820       ;;
6821
6822     mingw* | pw32* | os2*)
6823       # This hack is so that the source file can tell whether it is being
6824       # built for inclusion in a dll (and should export symbols for example).
6825       lt_prog_compiler_pic='-DDLL_EXPORT'
6826       ;;
6827
6828     hpux9* | hpux10* | hpux11*)
6829       lt_prog_compiler_wl='-Wl,'
6830       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6831       # not for PA HP-UX.
6832       case "$host_cpu" in
6833       hppa*64*|ia64*)
6834         # +Z the default
6835         ;;
6836       *)
6837         lt_prog_compiler_pic='+Z'
6838         ;;
6839       esac
6840       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6841       lt_prog_compiler_static='${wl}-a ${wl}archive'
6842       ;;
6843
6844     irix5* | irix6* | nonstopux*)
6845       lt_prog_compiler_wl='-Wl,'
6846       # PIC (with -KPIC) is the default.
6847       lt_prog_compiler_static='-non_shared'
6848       ;;
6849
6850     newsos6)
6851       lt_prog_compiler_pic='-KPIC'
6852       lt_prog_compiler_static='-Bstatic'
6853       ;;
6854
6855     linux*)
6856       case $CC in
6857       icc* | ecc*)
6858         lt_prog_compiler_wl='-Wl,'
6859         lt_prog_compiler_pic='-KPIC'
6860         lt_prog_compiler_static='-static'
6861         ;;
6862       ccc*)
6863         lt_prog_compiler_wl='-Wl,'
6864         # All Alpha code is PIC.
6865         lt_prog_compiler_static='-non_shared'
6866         ;;
6867       esac
6868       ;;
6869
6870     osf3* | osf4* | osf5*)
6871       lt_prog_compiler_wl='-Wl,'
6872       # All OSF/1 code is PIC.
6873       lt_prog_compiler_static='-non_shared'
6874       ;;
6875
6876     sco3.2v5*)
6877       lt_prog_compiler_pic='-Kpic'
6878       lt_prog_compiler_static='-dn'
6879       ;;
6880
6881     solaris*)
6882       lt_prog_compiler_wl='-Wl,'
6883       lt_prog_compiler_pic='-KPIC'
6884       lt_prog_compiler_static='-Bstatic'
6885       ;;
6886
6887     sunos4*)
6888       lt_prog_compiler_wl='-Qoption ld '
6889       lt_prog_compiler_pic='-PIC'
6890       lt_prog_compiler_static='-Bstatic'
6891       ;;
6892
6893     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6894       lt_prog_compiler_wl='-Wl,'
6895       lt_prog_compiler_pic='-KPIC'
6896       lt_prog_compiler_static='-Bstatic'
6897       ;;
6898
6899     sysv4*MP*)
6900       if test -d /usr/nec ;then
6901         lt_prog_compiler_pic='-Kconform_pic'
6902         lt_prog_compiler_static='-Bstatic'
6903       fi
6904       ;;
6905
6906     uts4*)
6907       lt_prog_compiler_pic='-pic'
6908       lt_prog_compiler_static='-Bstatic'
6909       ;;
6910
6911     *)
6912       lt_prog_compiler_can_build_shared=no
6913       ;;
6914     esac
6915   fi
6916
6917 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6918 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6919
6920 #
6921 # Check to make sure the PIC flag actually works.
6922 #
6923 if test -n "$lt_prog_compiler_pic"; then
6924
6925 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6926 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6927 if test "${lt_prog_compiler_pic_works+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   lt_prog_compiler_pic_works=no
6931   ac_outfile=conftest.$ac_objext
6932    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6933    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6934    # Insert the option either (1) after the last *FLAGS variable, or
6935    # (2) before a word containing "conftest.", or (3) at the end.
6936    # Note that $ac_compile itself does not contain backslashes and begins
6937    # with a dollar sign (not a hyphen), so the echo should work correctly.
6938    # The option is referenced via a variable to avoid confusing sed.
6939    lt_compile=`echo "$ac_compile" | $SED \
6940    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6942    -e 's:$: $lt_compiler_flag:'`
6943    (eval echo "\"\$as_me:6943: $lt_compile\"" >&5)
6944    (eval "$lt_compile" 2>conftest.err)
6945    ac_status=$?
6946    cat conftest.err >&5
6947    echo "$as_me:6947: \$? = $ac_status" >&5
6948    if (exit $ac_status) && test -s "$ac_outfile"; then
6949      # The compiler can only warn and ignore the option if not recognized
6950      # So say no if there are warnings
6951      if test ! -s conftest.err; then
6952        lt_prog_compiler_pic_works=yes
6953      fi
6954    fi
6955    $rm conftest*
6956
6957 fi
6958 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6959 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6960
6961 if test x"$lt_prog_compiler_pic_works" = xyes; then
6962     case $lt_prog_compiler_pic in
6963      "" | " "*) ;;
6964      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6965      esac
6966 else
6967     lt_prog_compiler_pic=
6968      lt_prog_compiler_can_build_shared=no
6969 fi
6970
6971 fi
6972 case "$host_os" in
6973   # For platforms which do not support PIC, -DPIC is meaningless:
6974   *djgpp*)
6975     lt_prog_compiler_pic=
6976     ;;
6977   *)
6978     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6979     ;;
6980 esac
6981
6982 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6983 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6984 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   lt_cv_prog_compiler_c_o=no
6988    $rm -r conftest 2>/dev/null
6989    mkdir conftest
6990    cd conftest
6991    mkdir out
6992    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6993
6994    lt_compiler_flag="-o out/conftest2.$ac_objext"
6995    # Insert the option either (1) after the last *FLAGS variable, or
6996    # (2) before a word containing "conftest.", or (3) at the end.
6997    # Note that $ac_compile itself does not contain backslashes and begins
6998    # with a dollar sign (not a hyphen), so the echo should work correctly.
6999    lt_compile=`echo "$ac_compile" | $SED \
7000    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7001    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7002    -e 's:$: $lt_compiler_flag:'`
7003    (eval echo "\"\$as_me:7003: $lt_compile\"" >&5)
7004    (eval "$lt_compile" 2>out/conftest.err)
7005    ac_status=$?
7006    cat out/conftest.err >&5
7007    echo "$as_me:7007: \$? = $ac_status" >&5
7008    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7009    then
7010      # The compiler can only warn and ignore the option if not recognized
7011      # So say no if there are warnings
7012      if test ! -s out/conftest.err; then
7013        lt_cv_prog_compiler_c_o=yes
7014      fi
7015    fi
7016    chmod u+w .
7017    $rm conftest*
7018    # SGI C++ compiler will create directory out/ii_files/ for
7019    # template instantiation
7020    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7021    $rm out/* && rmdir out
7022    cd ..
7023    rmdir conftest
7024    $rm conftest*
7025
7026 fi
7027 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7028 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7029
7030
7031 hard_links="nottested"
7032 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7033   # do not overwrite the value of need_locks provided by the user
7034   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7035 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7036   hard_links=yes
7037   $rm conftest*
7038   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7039   touch conftest.a
7040   ln conftest.a conftest.b 2>&5 || hard_links=no
7041   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7042   { echo "$as_me:$LINENO: result: $hard_links" >&5
7043 echo "${ECHO_T}$hard_links" >&6; }
7044   if test "$hard_links" = no; then
7045     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7046 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7047     need_locks=warn
7048   fi
7049 else
7050   need_locks=no
7051 fi
7052
7053 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7054 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7055
7056   runpath_var=
7057   allow_undefined_flag=
7058   enable_shared_with_static_runtimes=no
7059   archive_cmds=
7060   archive_expsym_cmds=
7061   old_archive_From_new_cmds=
7062   old_archive_from_expsyms_cmds=
7063   export_dynamic_flag_spec=
7064   whole_archive_flag_spec=
7065   thread_safe_flag_spec=
7066   hardcode_libdir_flag_spec=
7067   hardcode_libdir_flag_spec_ld=
7068   hardcode_libdir_separator=
7069   hardcode_direct=no
7070   hardcode_minus_L=no
7071   hardcode_shlibpath_var=unsupported
7072   link_all_deplibs=unknown
7073   hardcode_automatic=no
7074   module_cmds=
7075   module_expsym_cmds=
7076   always_export_symbols=no
7077   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7078   # include_expsyms should be a list of space-separated symbols to be *always*
7079   # included in the symbol list
7080   include_expsyms=
7081   # exclude_expsyms can be an extended regexp of symbols to exclude
7082   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7083   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7084   # as well as any symbol that contains `d'.
7085   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7086   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7087   # platforms (ab)use it in PIC code, but their linkers get confused if
7088   # the symbol is explicitly referenced.  Since portable code cannot
7089   # rely on this symbol name, it's probably fine to never include it in
7090   # preloaded symbol tables.
7091   extract_expsyms_cmds=
7092
7093   case $host_os in
7094   cygwin* | mingw* | pw32*)
7095     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7096     # When not using gcc, we currently assume that we are using
7097     # Microsoft Visual C++.
7098     if test "$GCC" != yes; then
7099       with_gnu_ld=no
7100     fi
7101     ;;
7102   openbsd*)
7103     with_gnu_ld=no
7104     ;;
7105   esac
7106
7107   ld_shlibs=yes
7108   if test "$with_gnu_ld" = yes; then
7109     # If archive_cmds runs LD, not CC, wlarc should be empty
7110     wlarc='${wl}'
7111
7112     # See if GNU ld supports shared libraries.
7113     case $host_os in
7114     aix3* | aix4* | aix5*)
7115       # On AIX/PPC, the GNU linker is very broken
7116       if test "$host_cpu" != ia64; then
7117         ld_shlibs=no
7118         cat <<EOF 1>&2
7119
7120 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7121 *** to be unable to reliably create shared libraries on AIX.
7122 *** Therefore, libtool is disabling shared libraries support.  If you
7123 *** really care for shared libraries, you may want to modify your PATH
7124 *** so that a non-GNU linker is found, and then restart.
7125
7126 EOF
7127       fi
7128       ;;
7129
7130     amigaos*)
7131       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)'
7132       hardcode_libdir_flag_spec='-L$libdir'
7133       hardcode_minus_L=yes
7134
7135       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7136       # that the semantics of dynamic libraries on AmigaOS, at least up
7137       # to version 4, is to share data among multiple programs linked
7138       # with the same dynamic library.  Since this doesn't match the
7139       # behavior of shared libraries on other platforms, we can't use
7140       # them.
7141       ld_shlibs=no
7142       ;;
7143
7144     beos*)
7145       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7146         allow_undefined_flag=unsupported
7147         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7148         # support --undefined.  This deserves some investigation.  FIXME
7149         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7150       else
7151         ld_shlibs=no
7152       fi
7153       ;;
7154
7155     cygwin* | mingw* | pw32*)
7156       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7157       # as there is no search path for DLLs.
7158       hardcode_libdir_flag_spec='-L$libdir'
7159       allow_undefined_flag=unsupported
7160       always_export_symbols=no
7161       enable_shared_with_static_runtimes=yes
7162       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7163
7164       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7165         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7166         # If the export-symbols file already is a .def file (1st line
7167         # is EXPORTS), use it as is; otherwise, prepend...
7168         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7169           cp $export_symbols $output_objdir/$soname.def;
7170         else
7171           echo EXPORTS > $output_objdir/$soname.def;
7172           cat $export_symbols >> $output_objdir/$soname.def;
7173         fi~
7174         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7175       else
7176         ld_shlibs=no
7177       fi
7178       ;;
7179
7180     netbsd*)
7181       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7182         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7183         wlarc=
7184       else
7185         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7186         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7187       fi
7188       ;;
7189
7190     solaris* | sysv5*)
7191       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7192         ld_shlibs=no
7193         cat <<EOF 1>&2
7194
7195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7196 *** create shared libraries on Solaris systems.  Therefore, libtool
7197 *** is disabling shared libraries support.  We urge you to upgrade GNU
7198 *** binutils to release 2.9.1 or newer.  Another option is to modify
7199 *** your PATH or compiler configuration so that the native linker is
7200 *** used, and then restart.
7201
7202 EOF
7203       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7204         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7205         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7206       else
7207         ld_shlibs=no
7208       fi
7209       ;;
7210
7211     sunos4*)
7212       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7213       wlarc=
7214       hardcode_direct=yes
7215       hardcode_shlibpath_var=no
7216       ;;
7217
7218   linux*)
7219     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7220         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7221         archive_cmds="$tmp_archive_cmds"
7222       supports_anon_versioning=no
7223       case `$LD -v 2>/dev/null` in
7224         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7225         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7226         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7227         *\ 2.11.*) ;; # other 2.11 versions
7228         *) supports_anon_versioning=yes ;;
7229       esac
7230       if test $supports_anon_versioning = yes; then
7231         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7233 $echo "local: *; };" >> $output_objdir/$libname.ver~
7234         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7235       else
7236         archive_expsym_cmds="$tmp_archive_cmds"
7237       fi
7238     else
7239       ld_shlibs=no
7240     fi
7241     ;;
7242
7243     *)
7244       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7245         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7246         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7247       else
7248         ld_shlibs=no
7249       fi
7250       ;;
7251     esac
7252
7253     if test "$ld_shlibs" = yes; then
7254       runpath_var=LD_RUN_PATH
7255       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7256       export_dynamic_flag_spec='${wl}--export-dynamic'
7257       # ancient GNU ld didn't support --whole-archive et. al.
7258       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7259         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7260       else
7261         whole_archive_flag_spec=
7262       fi
7263     fi
7264   else
7265     # PORTME fill in a description of your system's linker (not GNU ld)
7266     case $host_os in
7267     aix3*)
7268       allow_undefined_flag=unsupported
7269       always_export_symbols=yes
7270       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'
7271       # Note: this linker hardcodes the directories in LIBPATH if there
7272       # are no directories specified by -L.
7273       hardcode_minus_L=yes
7274       if test "$GCC" = yes && test -z "$link_static_flag"; then
7275         # Neither direct hardcoding nor static linking is supported with a
7276         # broken collect2.
7277         hardcode_direct=unsupported
7278       fi
7279       ;;
7280
7281     aix4* | aix5*)
7282       if test "$host_cpu" = ia64; then
7283         # On IA64, the linker does run time linking by default, so we don't
7284         # have to do anything special.
7285         aix_use_runtimelinking=no
7286         exp_sym_flag='-Bexport'
7287         no_entry_flag=""
7288       else
7289         # If we're using GNU nm, then we don't want the "-C" option.
7290         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7291         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7292           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'
7293         else
7294           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'
7295         fi
7296         aix_use_runtimelinking=no
7297
7298         # Test if we are trying to use run time linking or normal
7299         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7300         # need to do runtime linking.
7301         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7302           for ld_flag in $LDFLAGS; do
7303           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7304             aix_use_runtimelinking=yes
7305             break
7306           fi
7307           done
7308         esac
7309
7310         exp_sym_flag='-bexport'
7311         no_entry_flag='-bnoentry'
7312       fi
7313
7314       # When large executables or shared objects are built, AIX ld can
7315       # have problems creating the table of contents.  If linking a library
7316       # or program results in "error TOC overflow" add -mminimal-toc to
7317       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7318       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7319
7320       archive_cmds=''
7321       hardcode_direct=yes
7322       hardcode_libdir_separator=':'
7323       link_all_deplibs=yes
7324
7325       if test "$GCC" = yes; then
7326         case $host_os in aix4.012|aix4.012.*)
7327         # We only want to do this on AIX 4.2 and lower, the check
7328         # below for broken collect2 doesn't work under 4.3+
7329           collect2name=`${CC} -print-prog-name=collect2`
7330           if test -f "$collect2name" && \
7331            strings "$collect2name" | grep resolve_lib_name >/dev/null
7332           then
7333           # We have reworked collect2
7334           hardcode_direct=yes
7335           else
7336           # We have old collect2
7337           hardcode_direct=unsupported
7338           # It fails to find uninstalled libraries when the uninstalled
7339           # path is not listed in the libpath.  Setting hardcode_minus_L
7340           # to unsupported forces relinking
7341           hardcode_minus_L=yes
7342           hardcode_libdir_flag_spec='-L$libdir'
7343           hardcode_libdir_separator=
7344           fi
7345         esac
7346         shared_flag='-shared'
7347       else
7348         # not using gcc
7349         if test "$host_cpu" = ia64; then
7350         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7351         # chokes on -Wl,-G. The following line is correct:
7352           shared_flag='-G'
7353         else
7354         if test "$aix_use_runtimelinking" = yes; then
7355             shared_flag='${wl}-G'
7356           else
7357             shared_flag='${wl}-bM:SRE'
7358         fi
7359         fi
7360       fi
7361
7362       # It seems that -bexpall does not export symbols beginning with
7363       # underscore (_), so it is better to generate a list of symbols to export.
7364       always_export_symbols=yes
7365       if test "$aix_use_runtimelinking" = yes; then
7366         # Warning - without using the other runtime loading flags (-brtl),
7367         # -berok will link without error, but may produce a broken library.
7368         allow_undefined_flag='-berok'
7369        # Determine the default libpath from the value encoded in an empty executable.
7370        cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h.  */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h.  */
7376
7377 int
7378 main ()
7379 {
7380
7381   ;
7382   return 0;
7383 }
7384 _ACEOF
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (ac_try="$ac_link"
7387 case "(($ac_try" in
7388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389   *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392   (eval "$ac_link") 2>conftest.er1
7393   ac_status=$?
7394   grep -v '^ *+' conftest.er1 >conftest.err
7395   rm -f conftest.er1
7396   cat conftest.err >&5
7397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); } && {
7399          test -z "$ac_c_werror_flag" ||
7400          test ! -s conftest.err
7401        } && test -s conftest$ac_exeext &&
7402        $as_test_x conftest$ac_exeext; then
7403
7404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7405 }'`
7406 # Check for a 64-bit object if we didn't find anything.
7407 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; }
7408 }'`; fi
7409 else
7410   echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7412
7413
7414 fi
7415
7416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7417       conftest$ac_exeext conftest.$ac_ext
7418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7419
7420        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7421         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"
7422        else
7423         if test "$host_cpu" = ia64; then
7424           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7425           allow_undefined_flag="-z nodefs"
7426           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"
7427         else
7428          # Determine the default libpath from the value encoded in an empty executable.
7429          cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h.  */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h.  */
7435
7436 int
7437 main ()
7438 {
7439
7440   ;
7441   return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (ac_try="$ac_link"
7446 case "(($ac_try" in
7447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448   *) ac_try_echo=$ac_try;;
7449 esac
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451   (eval "$ac_link") 2>conftest.er1
7452   ac_status=$?
7453   grep -v '^ *+' conftest.er1 >conftest.err
7454   rm -f conftest.er1
7455   cat conftest.err >&5
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); } && {
7458          test -z "$ac_c_werror_flag" ||
7459          test ! -s conftest.err
7460        } && test -s conftest$ac_exeext &&
7461        $as_test_x conftest$ac_exeext; then
7462
7463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7464 }'`
7465 # Check for a 64-bit object if we didn't find anything.
7466 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; }
7467 }'`; fi
7468 else
7469   echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7471
7472
7473 fi
7474
7475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7476       conftest$ac_exeext conftest.$ac_ext
7477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7478
7479          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7480           # Warning - without using the other run time loading flags,
7481           # -berok will link without error, but may produce a broken library.
7482           no_undefined_flag=' ${wl}-bernotok'
7483           allow_undefined_flag=' ${wl}-berok'
7484           # -bexpall does not export symbols beginning with underscore (_)
7485           always_export_symbols=yes
7486           # Exported symbols can be pulled into shared objects from archives
7487           whole_archive_flag_spec=' '
7488           archive_cmds_need_lc=yes
7489           # This is similar to how AIX traditionally builds it's shared libraries.
7490           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'
7491         fi
7492       fi
7493       ;;
7494
7495     amigaos*)
7496       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)'
7497       hardcode_libdir_flag_spec='-L$libdir'
7498       hardcode_minus_L=yes
7499       # see comment about different semantics on the GNU ld section
7500       ld_shlibs=no
7501       ;;
7502
7503     bsdi4*)
7504       export_dynamic_flag_spec=-rdynamic
7505       ;;
7506
7507     cygwin* | mingw* | pw32*)
7508       # When not using gcc, we currently assume that we are using
7509       # Microsoft Visual C++.
7510       # hardcode_libdir_flag_spec is actually meaningless, as there is
7511       # no search path for DLLs.
7512       hardcode_libdir_flag_spec=' '
7513       allow_undefined_flag=unsupported
7514       # Tell ltmain to make .lib files, not .a files.
7515       libext=lib
7516       # Tell ltmain to make .dll files, not .so files.
7517       shrext_cmds=".dll"
7518       # FIXME: Setting linknames here is a bad hack.
7519       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7520       # The linker will automatically build a .lib file if we build a DLL.
7521       old_archive_From_new_cmds='true'
7522       # FIXME: Should let the user specify the lib program.
7523       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7524       fix_srcfile_path='`cygpath -w "$srcfile"`'
7525       enable_shared_with_static_runtimes=yes
7526       ;;
7527
7528     darwin* | rhapsody*)
7529     if test "$GXX" = yes ; then
7530       archive_cmds_need_lc=no
7531       case "$host_os" in
7532       rhapsody* | darwin1.[012])
7533         allow_undefined_flag='-undefined suppress'
7534         ;;
7535       *) # Darwin 1.3 on
7536       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7537         allow_undefined_flag='-flat_namespace -undefined suppress'
7538       else
7539         case ${MACOSX_DEPLOYMENT_TARGET} in
7540           10.[012])
7541             allow_undefined_flag='-flat_namespace -undefined suppress'
7542             ;;
7543           10.*)
7544             allow_undefined_flag='-undefined dynamic_lookup'
7545             ;;
7546         esac
7547       fi
7548         ;;
7549       esac
7550         lt_int_apple_cc_single_mod=no
7551         output_verbose_link_cmd='echo'
7552         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7553           lt_int_apple_cc_single_mod=yes
7554         fi
7555         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7556           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7557         else
7558         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'
7559       fi
7560       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7561       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7562         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7563           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}'
7564         else
7565           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}'
7566         fi
7567           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}'
7568       hardcode_direct=no
7569       hardcode_automatic=yes
7570       hardcode_shlibpath_var=unsupported
7571       whole_archive_flag_spec='-all_load $convenience'
7572       link_all_deplibs=yes
7573     else
7574       ld_shlibs=no
7575     fi
7576       ;;
7577
7578     dgux*)
7579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580       hardcode_libdir_flag_spec='-L$libdir'
7581       hardcode_shlibpath_var=no
7582       ;;
7583
7584     freebsd1*)
7585       ld_shlibs=no
7586       ;;
7587
7588     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7589     # support.  Future versions do this automatically, but an explicit c++rt0.o
7590     # does not break anything, and helps significantly (at the cost of a little
7591     # extra space).
7592     freebsd2.2*)
7593       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7594       hardcode_libdir_flag_spec='-R$libdir'
7595       hardcode_direct=yes
7596       hardcode_shlibpath_var=no
7597       ;;
7598
7599     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7600     freebsd2*)
7601       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7602       hardcode_direct=yes
7603       hardcode_minus_L=yes
7604       hardcode_shlibpath_var=no
7605       ;;
7606
7607     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7608     freebsd* | kfreebsd*-gnu)
7609       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7610       hardcode_libdir_flag_spec='-R$libdir'
7611       hardcode_direct=yes
7612       hardcode_shlibpath_var=no
7613       ;;
7614
7615     hpux9*)
7616       if test "$GCC" = yes; then
7617         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'
7618       else
7619         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'
7620       fi
7621       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7622       hardcode_libdir_separator=:
7623       hardcode_direct=yes
7624
7625       # hardcode_minus_L: Not really in the search PATH,
7626       # but as the default location of the library.
7627       hardcode_minus_L=yes
7628       export_dynamic_flag_spec='${wl}-E'
7629       ;;
7630
7631     hpux10* | hpux11*)
7632       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7633         case "$host_cpu" in
7634         hppa*64*|ia64*)
7635           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7636           ;;
7637         *)
7638           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7639           ;;
7640         esac
7641       else
7642         case "$host_cpu" in
7643         hppa*64*|ia64*)
7644           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7645           ;;
7646         *)
7647           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7648           ;;
7649         esac
7650       fi
7651       if test "$with_gnu_ld" = no; then
7652         case "$host_cpu" in
7653         hppa*64*)
7654           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7655           hardcode_libdir_flag_spec_ld='+b $libdir'
7656           hardcode_libdir_separator=:
7657           hardcode_direct=no
7658           hardcode_shlibpath_var=no
7659           ;;
7660         ia64*)
7661           hardcode_libdir_flag_spec='-L$libdir'
7662           hardcode_direct=no
7663           hardcode_shlibpath_var=no
7664
7665           # hardcode_minus_L: Not really in the search PATH,
7666           # but as the default location of the library.
7667           hardcode_minus_L=yes
7668           ;;
7669         *)
7670           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7671           hardcode_libdir_separator=:
7672           hardcode_direct=yes
7673           export_dynamic_flag_spec='${wl}-E'
7674
7675           # hardcode_minus_L: Not really in the search PATH,
7676           # but as the default location of the library.
7677           hardcode_minus_L=yes
7678           ;;
7679         esac
7680       fi
7681       ;;
7682
7683     irix5* | irix6* | nonstopux*)
7684       if test "$GCC" = yes; then
7685         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'
7686       else
7687         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'
7688         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7689       fi
7690       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691       hardcode_libdir_separator=:
7692       link_all_deplibs=yes
7693       ;;
7694
7695     netbsd*)
7696       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7697         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7698       else
7699         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7700       fi
7701       hardcode_libdir_flag_spec='-R$libdir'
7702       hardcode_direct=yes
7703       hardcode_shlibpath_var=no
7704       ;;
7705
7706     newsos6)
7707       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7708       hardcode_direct=yes
7709       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7710       hardcode_libdir_separator=:
7711       hardcode_shlibpath_var=no
7712       ;;
7713
7714     openbsd*)
7715       hardcode_direct=yes
7716       hardcode_shlibpath_var=no
7717       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7718         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7719         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7720         export_dynamic_flag_spec='${wl}-E'
7721       else
7722        case $host_os in
7723          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7724            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7725            hardcode_libdir_flag_spec='-R$libdir'
7726            ;;
7727          *)
7728            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7729            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7730            ;;
7731        esac
7732       fi
7733       ;;
7734
7735     os2*)
7736       hardcode_libdir_flag_spec='-L$libdir'
7737       hardcode_minus_L=yes
7738       allow_undefined_flag=unsupported
7739       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'
7740       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7741       ;;
7742
7743     osf3*)
7744       if test "$GCC" = yes; then
7745         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7746         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'
7747       else
7748         allow_undefined_flag=' -expect_unresolved \*'
7749         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'
7750       fi
7751       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7752       hardcode_libdir_separator=:
7753       ;;
7754
7755     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7756       if test "$GCC" = yes; then
7757         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7758         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'
7759         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7760       else
7761         allow_undefined_flag=' -expect_unresolved \*'
7762         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'
7763         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7764         $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'
7765
7766         # Both c and cxx compiler support -rpath directly
7767         hardcode_libdir_flag_spec='-rpath $libdir'
7768       fi
7769       hardcode_libdir_separator=:
7770       ;;
7771
7772     sco3.2v5*)
7773       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7774       hardcode_shlibpath_var=no
7775       export_dynamic_flag_spec='${wl}-Bexport'
7776       runpath_var=LD_RUN_PATH
7777       hardcode_runpath_var=yes
7778       ;;
7779
7780     solaris*)
7781       no_undefined_flag=' -z text'
7782       if test "$GCC" = yes; then
7783         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7784         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7785           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7786       else
7787         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7788         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7789         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7790       fi
7791       hardcode_libdir_flag_spec='-R$libdir'
7792       hardcode_shlibpath_var=no
7793       case $host_os in
7794       solaris2.[0-5] | solaris2.[0-5].*) ;;
7795       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7796         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7797       esac
7798       link_all_deplibs=yes
7799       ;;
7800
7801     sunos4*)
7802       if test "x$host_vendor" = xsequent; then
7803         # Use $CC to link under sequent, because it throws in some extra .o
7804         # files that make .init and .fini sections work.
7805         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7806       else
7807         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7808       fi
7809       hardcode_libdir_flag_spec='-L$libdir'
7810       hardcode_direct=yes
7811       hardcode_minus_L=yes
7812       hardcode_shlibpath_var=no
7813       ;;
7814
7815     sysv4)
7816       case $host_vendor in
7817         sni)
7818           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7819           hardcode_direct=yes # is this really true???
7820         ;;
7821         siemens)
7822           ## LD is ld it makes a PLAMLIB
7823           ## CC just makes a GrossModule.
7824           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7825           reload_cmds='$CC -r -o $output$reload_objs'
7826           hardcode_direct=no
7827         ;;
7828         motorola)
7829           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7831         ;;
7832       esac
7833       runpath_var='LD_RUN_PATH'
7834       hardcode_shlibpath_var=no
7835       ;;
7836
7837     sysv4.3*)
7838       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7839       hardcode_shlibpath_var=no
7840       export_dynamic_flag_spec='-Bexport'
7841       ;;
7842
7843     sysv4*MP*)
7844       if test -d /usr/nec; then
7845         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7846         hardcode_shlibpath_var=no
7847         runpath_var=LD_RUN_PATH
7848         hardcode_runpath_var=yes
7849         ld_shlibs=yes
7850       fi
7851       ;;
7852
7853     sysv4.2uw2*)
7854       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7855       hardcode_direct=yes
7856       hardcode_minus_L=no
7857       hardcode_shlibpath_var=no
7858       hardcode_runpath_var=yes
7859       runpath_var=LD_RUN_PATH
7860       ;;
7861
7862    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7863       no_undefined_flag='${wl}-z ${wl}text'
7864       if test "$GCC" = yes; then
7865         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7866       else
7867         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7868       fi
7869       runpath_var='LD_RUN_PATH'
7870       hardcode_shlibpath_var=no
7871       ;;
7872
7873     sysv5*)
7874       no_undefined_flag=' -z text'
7875       # $CC -shared without GNU ld will not create a library from C++
7876       # object files and a static libstdc++, better avoid it by now
7877       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7878       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7879                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7880       hardcode_libdir_flag_spec=
7881       hardcode_shlibpath_var=no
7882       runpath_var='LD_RUN_PATH'
7883       ;;
7884
7885     uts4*)
7886       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7887       hardcode_libdir_flag_spec='-L$libdir'
7888       hardcode_shlibpath_var=no
7889       ;;
7890
7891     *)
7892       ld_shlibs=no
7893       ;;
7894     esac
7895   fi
7896
7897 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7898 echo "${ECHO_T}$ld_shlibs" >&6; }
7899 test "$ld_shlibs" = no && can_build_shared=no
7900
7901 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7902 if test "$GCC" = yes; then
7903   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7904 fi
7905
7906 #
7907 # Do we need to explicitly link libc?
7908 #
7909 case "x$archive_cmds_need_lc" in
7910 x|xyes)
7911   # Assume -lc should be added
7912   archive_cmds_need_lc=yes
7913
7914   if test "$enable_shared" = yes && test "$GCC" = yes; then
7915     case $archive_cmds in
7916     *'~'*)
7917       # FIXME: we may have to deal with multi-command sequences.
7918       ;;
7919     '$CC '*)
7920       # Test whether the compiler implicitly links with -lc since on some
7921       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7922       # to ld, don't add -lc before -lgcc.
7923       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7924 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7925       $rm conftest*
7926       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7927
7928       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929   (eval $ac_compile) 2>&5
7930   ac_status=$?
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } 2>conftest.err; then
7933         soname=conftest
7934         lib=conftest
7935         libobjs=conftest.$ac_objext
7936         deplibs=
7937         wl=$lt_prog_compiler_wl
7938         compiler_flags=-v
7939         linker_flags=-v
7940         verstring=
7941         output_objdir=.
7942         libname=conftest
7943         lt_save_allow_undefined_flag=$allow_undefined_flag
7944         allow_undefined_flag=
7945         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7946   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }
7950         then
7951           archive_cmds_need_lc=no
7952         else
7953           archive_cmds_need_lc=yes
7954         fi
7955         allow_undefined_flag=$lt_save_allow_undefined_flag
7956       else
7957         cat conftest.err 1>&5
7958       fi
7959       $rm conftest*
7960       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7961 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7962       ;;
7963     esac
7964   fi
7965   ;;
7966 esac
7967
7968 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7969 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7970 library_names_spec=
7971 libname_spec='lib$name'
7972 soname_spec=
7973 shrext_cmds=".so"
7974 postinstall_cmds=
7975 postuninstall_cmds=
7976 finish_cmds=
7977 finish_eval=
7978 shlibpath_var=
7979 shlibpath_overrides_runpath=unknown
7980 version_type=none
7981 dynamic_linker="$host_os ld.so"
7982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7983 if test "$GCC" = yes; then
7984   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7985   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7986     # if the path contains ";" then we assume it to be the separator
7987     # otherwise default to the standard path separator (i.e. ":") - it is
7988     # assumed that no part of a normal pathname contains ";" but that should
7989     # okay in the real world where ";" in dirpaths is itself problematic.
7990     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7991   else
7992     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7993   fi
7994 else
7995   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7996 fi
7997 need_lib_prefix=unknown
7998 hardcode_into_libs=no
7999
8000 # when you set need_version to no, make sure it does not cause -set_version
8001 # flags to be left without arguments
8002 need_version=unknown
8003
8004 case $host_os in
8005 aix3*)
8006   version_type=linux
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8008   shlibpath_var=LIBPATH
8009
8010   # AIX 3 has no versioning support, so we append a major version to the name.
8011   soname_spec='${libname}${release}${shared_ext}$major'
8012   ;;
8013
8014 aix4* | aix5*)
8015   version_type=linux
8016   need_lib_prefix=no
8017   need_version=no
8018   hardcode_into_libs=yes
8019   if test "$host_cpu" = ia64; then
8020     # AIX 5 supports IA64
8021     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8022     shlibpath_var=LD_LIBRARY_PATH
8023   else
8024     # With GCC up to 2.95.x, collect2 would create an import file
8025     # for dependence libraries.  The import file would start with
8026     # the line `#! .'.  This would cause the generated library to
8027     # depend on `.', always an invalid library.  This was fixed in
8028     # development snapshots of GCC prior to 3.0.
8029     case $host_os in
8030       aix4 | aix4.[01] | aix4.[01].*)
8031       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8032            echo ' yes '
8033            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8034         :
8035       else
8036         can_build_shared=no
8037       fi
8038       ;;
8039     esac
8040     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8041     # soname into executable. Probably we can add versioning support to
8042     # collect2, so additional links can be useful in future.
8043     if test "$aix_use_runtimelinking" = yes; then
8044       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8045       # instead of lib<name>.a to let people know that these are not
8046       # typical AIX shared libraries.
8047       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048     else
8049       # We preserve .a as extension for shared libraries through AIX4.2
8050       # and later when we are not doing run time linking.
8051       library_names_spec='${libname}${release}.a $libname.a'
8052       soname_spec='${libname}${release}${shared_ext}$major'
8053     fi
8054     shlibpath_var=LIBPATH
8055   fi
8056   ;;
8057
8058 amigaos*)
8059   library_names_spec='$libname.ixlibrary $libname.a'
8060   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8061   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'
8062   ;;
8063
8064 beos*)
8065   library_names_spec='${libname}${shared_ext}'
8066   dynamic_linker="$host_os ld.so"
8067   shlibpath_var=LIBRARY_PATH
8068   ;;
8069
8070 bsdi4*)
8071   version_type=linux
8072   need_version=no
8073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8074   soname_spec='${libname}${release}${shared_ext}$major'
8075   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8076   shlibpath_var=LD_LIBRARY_PATH
8077   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8078   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8079   # the default ld.so.conf also contains /usr/contrib/lib and
8080   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8081   # libtool to hard-code these into programs
8082   ;;
8083
8084 cygwin* | mingw* | pw32*)
8085   version_type=windows
8086   shrext_cmds=".dll"
8087   need_version=no
8088   need_lib_prefix=no
8089
8090   case $GCC,$host_os in
8091   yes,cygwin* | yes,mingw* | yes,pw32*)
8092     library_names_spec='$libname.dll.a'
8093     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8094     postinstall_cmds='base_file=`basename \${file}`~
8095       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8096       dldir=$destdir/`dirname \$dlpath`~
8097       test -d \$dldir || mkdir -p \$dldir~
8098       $install_prog $dir/$dlname \$dldir/$dlname'
8099     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8100       dlpath=$dir/\$dldll~
8101        $rm \$dlpath'
8102     shlibpath_overrides_runpath=yes
8103
8104     case $host_os in
8105     cygwin*)
8106       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8107       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8108       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8109       ;;
8110     mingw*)
8111       # MinGW DLLs use traditional 'lib' prefix
8112       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8113       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8114       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8115         # It is most probably a Windows format PATH printed by
8116         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8117         # path with ; separators, and with drive letters. We can handle the
8118         # drive letters (cygwin fileutils understands them), so leave them,
8119         # especially as we might pass files found there to a mingw objdump,
8120         # which wouldn't understand a cygwinified path. Ahh.
8121         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8122       else
8123         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8124       fi
8125       ;;
8126     pw32*)
8127       # pw32 DLLs use 'pw' prefix rather than 'lib'
8128       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8129       ;;
8130     esac
8131     ;;
8132
8133   *)
8134     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8135     ;;
8136   esac
8137   dynamic_linker='Win32 ld.exe'
8138   # FIXME: first we should search . and the directory the executable is in
8139   shlibpath_var=PATH
8140   ;;
8141
8142 darwin* | rhapsody*)
8143   dynamic_linker="$host_os dyld"
8144   version_type=darwin
8145   need_lib_prefix=no
8146   need_version=no
8147   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8148   soname_spec='${libname}${release}${major}$shared_ext'
8149   shlibpath_overrides_runpath=yes
8150   shlibpath_var=DYLD_LIBRARY_PATH
8151   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8152   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8153   if test "$GCC" = yes; then
8154     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"`
8155   else
8156     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8157   fi
8158   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8159   ;;
8160
8161 dgux*)
8162   version_type=linux
8163   need_lib_prefix=no
8164   need_version=no
8165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8166   soname_spec='${libname}${release}${shared_ext}$major'
8167   shlibpath_var=LD_LIBRARY_PATH
8168   ;;
8169
8170 freebsd1*)
8171   dynamic_linker=no
8172   ;;
8173
8174 kfreebsd*-gnu)
8175   version_type=linux
8176   need_lib_prefix=no
8177   need_version=no
8178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8179   soname_spec='${libname}${release}${shared_ext}$major'
8180   shlibpath_var=LD_LIBRARY_PATH
8181   shlibpath_overrides_runpath=no
8182   hardcode_into_libs=yes
8183   dynamic_linker='GNU ld.so'
8184   ;;
8185
8186 freebsd*)
8187   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8188   version_type=freebsd-$objformat
8189   case $version_type in
8190     freebsd-elf*)
8191       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8192       need_version=no
8193       need_lib_prefix=no
8194       ;;
8195     freebsd-*)
8196       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8197       need_version=yes
8198       ;;
8199   esac
8200   shlibpath_var=LD_LIBRARY_PATH
8201   case $host_os in
8202   freebsd2*)
8203     shlibpath_overrides_runpath=yes
8204     ;;
8205   freebsd3.01* | freebsdelf3.01*)
8206     shlibpath_overrides_runpath=yes
8207     hardcode_into_libs=yes
8208     ;;
8209   *) # from 3.2 on
8210     shlibpath_overrides_runpath=no
8211     hardcode_into_libs=yes
8212     ;;
8213   esac
8214   ;;
8215
8216 gnu*)
8217   version_type=linux
8218   need_lib_prefix=no
8219   need_version=no
8220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8221   soname_spec='${libname}${release}${shared_ext}$major'
8222   shlibpath_var=LD_LIBRARY_PATH
8223   hardcode_into_libs=yes
8224   ;;
8225
8226 hpux9* | hpux10* | hpux11*)
8227   # Give a soname corresponding to the major version so that dld.sl refuses to
8228   # link against other versions.
8229   version_type=sunos
8230   need_lib_prefix=no
8231   need_version=no
8232   case "$host_cpu" in
8233   ia64*)
8234     shrext_cmds='.so'
8235     hardcode_into_libs=yes
8236     dynamic_linker="$host_os dld.so"
8237     shlibpath_var=LD_LIBRARY_PATH
8238     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240     soname_spec='${libname}${release}${shared_ext}$major'
8241     if test "X$HPUX_IA64_MODE" = X32; then
8242       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8243     else
8244       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8245     fi
8246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8247     ;;
8248    hppa*64*)
8249      shrext_cmds='.sl'
8250      hardcode_into_libs=yes
8251      dynamic_linker="$host_os dld.sl"
8252      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8253      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8254      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8255      soname_spec='${libname}${release}${shared_ext}$major'
8256      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8257      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8258      ;;
8259    *)
8260     shrext_cmds='.sl'
8261     dynamic_linker="$host_os dld.sl"
8262     shlibpath_var=SHLIB_PATH
8263     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8265     soname_spec='${libname}${release}${shared_ext}$major'
8266     ;;
8267   esac
8268   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8269   postinstall_cmds='chmod 555 $lib'
8270   ;;
8271
8272 irix5* | irix6* | nonstopux*)
8273   case $host_os in
8274     nonstopux*) version_type=nonstopux ;;
8275     *)
8276         if test "$lt_cv_prog_gnu_ld" = yes; then
8277                 version_type=linux
8278         else
8279                 version_type=irix
8280         fi ;;
8281   esac
8282   need_lib_prefix=no
8283   need_version=no
8284   soname_spec='${libname}${release}${shared_ext}$major'
8285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8286   case $host_os in
8287   irix5* | nonstopux*)
8288     libsuff= shlibsuff=
8289     ;;
8290   *)
8291     case $LD in # libtool.m4 will add one of these switches to LD
8292     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8293       libsuff= shlibsuff= libmagic=32-bit;;
8294     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8295       libsuff=32 shlibsuff=N32 libmagic=N32;;
8296     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8297       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8298     *) libsuff= shlibsuff= libmagic=never-match;;
8299     esac
8300     ;;
8301   esac
8302   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8303   shlibpath_overrides_runpath=no
8304   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8305   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8306   hardcode_into_libs=yes
8307   ;;
8308
8309 # No shared lib support for Linux oldld, aout, or coff.
8310 linux*oldld* | linux*aout* | linux*coff*)
8311   dynamic_linker=no
8312   ;;
8313
8314 # This must be Linux ELF.
8315 linux*)
8316   version_type=linux
8317   need_lib_prefix=no
8318   need_version=no
8319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320   soname_spec='${libname}${release}${shared_ext}$major'
8321   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8322   shlibpath_var=LD_LIBRARY_PATH
8323   shlibpath_overrides_runpath=no
8324   # This implies no fast_install, which is unacceptable.
8325   # Some rework will be needed to allow for fast_install
8326   # before this can be enabled.
8327   hardcode_into_libs=yes
8328
8329   # find out which ABI we are using
8330   libsuff=
8331   case "$host_cpu" in
8332   x86_64*|s390x*|powerpc64*)
8333     echo '#line 8333 "configure"' > conftest.$ac_ext
8334     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8335   (eval $ac_compile) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; then
8339       case `/usr/bin/file conftest.$ac_objext` in
8340       *64-bit*)
8341         libsuff=64
8342         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8343         ;;
8344       esac
8345     fi
8346     rm -rf conftest*
8347     ;;
8348   esac
8349
8350   # Append ld.so.conf contents to the search path
8351   if test -f /etc/ld.so.conf; then
8352     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8353     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8354   fi
8355
8356   # We used to test for /lib/ld.so.1 and disable shared libraries on
8357   # powerpc, because MkLinux only supported shared libraries with the
8358   # GNU dynamic linker.  Since this was broken with cross compilers,
8359   # most powerpc-linux boxes support dynamic linking these days and
8360   # people can always --disable-shared, the test was removed, and we
8361   # assume the GNU/Linux dynamic linker is in use.
8362   dynamic_linker='GNU/Linux ld.so'
8363   ;;
8364
8365 knetbsd*-gnu)
8366   version_type=linux
8367   need_lib_prefix=no
8368   need_version=no
8369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8370   soname_spec='${libname}${release}${shared_ext}$major'
8371   shlibpath_var=LD_LIBRARY_PATH
8372   shlibpath_overrides_runpath=no
8373   hardcode_into_libs=yes
8374   dynamic_linker='GNU ld.so'
8375   ;;
8376
8377 netbsd*)
8378   version_type=sunos
8379   need_lib_prefix=no
8380   need_version=no
8381   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8383     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8384     dynamic_linker='NetBSD (a.out) ld.so'
8385   else
8386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8387     soname_spec='${libname}${release}${shared_ext}$major'
8388     dynamic_linker='NetBSD ld.elf_so'
8389   fi
8390   shlibpath_var=LD_LIBRARY_PATH
8391   shlibpath_overrides_runpath=yes
8392   hardcode_into_libs=yes
8393   ;;
8394
8395 newsos6)
8396   version_type=linux
8397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398   shlibpath_var=LD_LIBRARY_PATH
8399   shlibpath_overrides_runpath=yes
8400   ;;
8401
8402 nto-qnx*)
8403   version_type=linux
8404   need_lib_prefix=no
8405   need_version=no
8406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8407   soname_spec='${libname}${release}${shared_ext}$major'
8408   shlibpath_var=LD_LIBRARY_PATH
8409   shlibpath_overrides_runpath=yes
8410   ;;
8411
8412 openbsd*)
8413   version_type=sunos
8414   need_lib_prefix=no
8415   need_version=yes
8416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8418   shlibpath_var=LD_LIBRARY_PATH
8419   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8420     case $host_os in
8421       openbsd2.[89] | openbsd2.[89].*)
8422         shlibpath_overrides_runpath=no
8423         ;;
8424       *)
8425         shlibpath_overrides_runpath=yes
8426         ;;
8427       esac
8428   else
8429     shlibpath_overrides_runpath=yes
8430   fi
8431   ;;
8432
8433 os2*)
8434   libname_spec='$name'
8435   shrext_cmds=".dll"
8436   need_lib_prefix=no
8437   library_names_spec='$libname${shared_ext} $libname.a'
8438   dynamic_linker='OS/2 ld.exe'
8439   shlibpath_var=LIBPATH
8440   ;;
8441
8442 osf3* | osf4* | osf5*)
8443   version_type=osf
8444   need_lib_prefix=no
8445   need_version=no
8446   soname_spec='${libname}${release}${shared_ext}$major'
8447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448   shlibpath_var=LD_LIBRARY_PATH
8449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8451   ;;
8452
8453 sco3.2v5*)
8454   version_type=osf
8455   soname_spec='${libname}${release}${shared_ext}$major'
8456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8457   shlibpath_var=LD_LIBRARY_PATH
8458   ;;
8459
8460 solaris*)
8461   version_type=linux
8462   need_lib_prefix=no
8463   need_version=no
8464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465   soname_spec='${libname}${release}${shared_ext}$major'
8466   shlibpath_var=LD_LIBRARY_PATH
8467   shlibpath_overrides_runpath=yes
8468   hardcode_into_libs=yes
8469   # ldd complains unless libraries are executable
8470   postinstall_cmds='chmod +x $lib'
8471   ;;
8472
8473 sunos4*)
8474   version_type=sunos
8475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8477   shlibpath_var=LD_LIBRARY_PATH
8478   shlibpath_overrides_runpath=yes
8479   if test "$with_gnu_ld" = yes; then
8480     need_lib_prefix=no
8481   fi
8482   need_version=yes
8483   ;;
8484
8485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8486   version_type=linux
8487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488   soname_spec='${libname}${release}${shared_ext}$major'
8489   shlibpath_var=LD_LIBRARY_PATH
8490   case $host_vendor in
8491     sni)
8492       shlibpath_overrides_runpath=no
8493       need_lib_prefix=no
8494       export_dynamic_flag_spec='${wl}-Blargedynsym'
8495       runpath_var=LD_RUN_PATH
8496       ;;
8497     siemens)
8498       need_lib_prefix=no
8499       ;;
8500     motorola)
8501       need_lib_prefix=no
8502       need_version=no
8503       shlibpath_overrides_runpath=no
8504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8505       ;;
8506   esac
8507   ;;
8508
8509 sysv4*MP*)
8510   if test -d /usr/nec ;then
8511     version_type=linux
8512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8513     soname_spec='$libname${shared_ext}.$major'
8514     shlibpath_var=LD_LIBRARY_PATH
8515   fi
8516   ;;
8517
8518 uts4*)
8519   version_type=linux
8520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8521   soname_spec='${libname}${release}${shared_ext}$major'
8522   shlibpath_var=LD_LIBRARY_PATH
8523   ;;
8524
8525 *)
8526   dynamic_linker=no
8527   ;;
8528 esac
8529 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8530 echo "${ECHO_T}$dynamic_linker" >&6; }
8531 test "$dynamic_linker" = no && can_build_shared=no
8532
8533 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8535 hardcode_action=
8536 if test -n "$hardcode_libdir_flag_spec" || \
8537    test -n "$runpath_var " || \
8538    test "X$hardcode_automatic"="Xyes" ; then
8539
8540   # We can hardcode non-existant directories.
8541   if test "$hardcode_direct" != no &&
8542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8543      # have to relink, otherwise we might link with an installed library
8544      # when we should be linking with a yet-to-be-installed one
8545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8546      test "$hardcode_minus_L" != no; then
8547     # Linking always hardcodes the temporary library directory.
8548     hardcode_action=relink
8549   else
8550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8551     hardcode_action=immediate
8552   fi
8553 else
8554   # We cannot hardcode anything, or else we can only hardcode existing
8555   # directories.
8556   hardcode_action=unsupported
8557 fi
8558 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8559 echo "${ECHO_T}$hardcode_action" >&6; }
8560
8561 if test "$hardcode_action" = relink; then
8562   # Fast installation is not supported
8563   enable_fast_install=no
8564 elif test "$shlibpath_overrides_runpath" = yes ||
8565      test "$enable_shared" = no; then
8566   # Fast installation is not necessary
8567   enable_fast_install=needless
8568 fi
8569
8570 striplib=
8571 old_striplib=
8572 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8575   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8576   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8577   { echo "$as_me:$LINENO: result: yes" >&5
8578 echo "${ECHO_T}yes" >&6; }
8579 else
8580 # FIXME - insert some real tests, host_os isn't really good enough
8581   case $host_os in
8582    darwin*)
8583        if test -n "$STRIP" ; then
8584          striplib="$STRIP -x"
8585          { echo "$as_me:$LINENO: result: yes" >&5
8586 echo "${ECHO_T}yes" >&6; }
8587        else
8588   { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8590 fi
8591        ;;
8592    *)
8593   { echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6; }
8595     ;;
8596   esac
8597 fi
8598
8599 if test "x$enable_dlopen" != xyes; then
8600   enable_dlopen=unknown
8601   enable_dlopen_self=unknown
8602   enable_dlopen_self_static=unknown
8603 else
8604   lt_cv_dlopen=no
8605   lt_cv_dlopen_libs=
8606
8607   case $host_os in
8608   beos*)
8609     lt_cv_dlopen="load_add_on"
8610     lt_cv_dlopen_libs=
8611     lt_cv_dlopen_self=yes
8612     ;;
8613
8614   mingw* | pw32*)
8615     lt_cv_dlopen="LoadLibrary"
8616     lt_cv_dlopen_libs=
8617    ;;
8618
8619   cygwin*)
8620     lt_cv_dlopen="dlopen"
8621     lt_cv_dlopen_libs=
8622    ;;
8623
8624   darwin*)
8625   # if libdl is installed we need to link against it
8626     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631   ac_check_lib_save_LIBS=$LIBS
8632 LIBS="-ldl  $LIBS"
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639
8640 /* Override any GCC internal prototype to avoid an error.
8641    Use char because int might match the return type of a GCC
8642    builtin and then its argument prototype would still apply.  */
8643 #ifdef __cplusplus
8644 extern "C"
8645 #endif
8646 char dlopen ();
8647 int
8648 main ()
8649 {
8650 return dlopen ();
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (ac_try="$ac_link"
8657 case "(($ac_try" in
8658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659   *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662   (eval "$ac_link") 2>conftest.er1
8663   ac_status=$?
8664   grep -v '^ *+' conftest.er1 >conftest.err
8665   rm -f conftest.er1
8666   cat conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } && {
8669          test -z "$ac_c_werror_flag" ||
8670          test ! -s conftest.err
8671        } && test -s conftest$ac_exeext &&
8672        $as_test_x conftest$ac_exeext; then
8673   ac_cv_lib_dl_dlopen=yes
8674 else
8675   echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678         ac_cv_lib_dl_dlopen=no
8679 fi
8680
8681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8682       conftest$ac_exeext conftest.$ac_ext
8683 LIBS=$ac_check_lib_save_LIBS
8684 fi
8685 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8687 if test $ac_cv_lib_dl_dlopen = yes; then
8688   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8689 else
8690
8691     lt_cv_dlopen="dyld"
8692     lt_cv_dlopen_libs=
8693     lt_cv_dlopen_self=yes
8694
8695 fi
8696
8697    ;;
8698
8699   *)
8700     { echo "$as_me:$LINENO: checking for shl_load" >&5
8701 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8702 if test "${ac_cv_func_shl_load+set}" = set; then
8703   echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705   cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8713 #define shl_load innocuous_shl_load
8714
8715 /* System header to define __stub macros and hopefully few prototypes,
8716     which can conflict with char shl_load (); below.
8717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718     <limits.h> exists even on freestanding compilers.  */
8719
8720 #ifdef __STDC__
8721 # include <limits.h>
8722 #else
8723 # include <assert.h>
8724 #endif
8725
8726 #undef shl_load
8727
8728 /* Override any GCC internal prototype to avoid an error.
8729    Use char because int might match the return type of a GCC
8730    builtin and then its argument prototype would still apply.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 #endif
8734 char shl_load ();
8735 /* The GNU C library defines this for functions which it implements
8736     to always fail with ENOSYS.  Some functions are actually named
8737     something starting with __ and the normal name is an alias.  */
8738 #if defined __stub_shl_load || defined __stub___shl_load
8739 choke me
8740 #endif
8741
8742 int
8743 main ()
8744 {
8745 return shl_load ();
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (ac_try="$ac_link"
8752 case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_link") 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } && {
8764          test -z "$ac_c_werror_flag" ||
8765          test ! -s conftest.err
8766        } && test -s conftest$ac_exeext &&
8767        $as_test_x conftest$ac_exeext; then
8768   ac_cv_func_shl_load=yes
8769 else
8770   echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773         ac_cv_func_shl_load=no
8774 fi
8775
8776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8777       conftest$ac_exeext conftest.$ac_ext
8778 fi
8779 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8780 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8781 if test $ac_cv_func_shl_load = yes; then
8782   lt_cv_dlopen="shl_load"
8783 else
8784   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8785 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789   ac_check_lib_save_LIBS=$LIBS
8790 LIBS="-ldld  $LIBS"
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h.  */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h.  */
8797
8798 /* Override any GCC internal prototype to avoid an error.
8799    Use char because int might match the return type of a GCC
8800    builtin and then its argument prototype would still apply.  */
8801 #ifdef __cplusplus
8802 extern "C"
8803 #endif
8804 char shl_load ();
8805 int
8806 main ()
8807 {
8808 return shl_load ();
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 rm -f conftest.$ac_objext conftest$ac_exeext
8814 if { (ac_try="$ac_link"
8815 case "(($ac_try" in
8816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817   *) ac_try_echo=$ac_try;;
8818 esac
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820   (eval "$ac_link") 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } && {
8827          test -z "$ac_c_werror_flag" ||
8828          test ! -s conftest.err
8829        } && test -s conftest$ac_exeext &&
8830        $as_test_x conftest$ac_exeext; then
8831   ac_cv_lib_dld_shl_load=yes
8832 else
8833   echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836         ac_cv_lib_dld_shl_load=no
8837 fi
8838
8839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8840       conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8842 fi
8843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8844 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8845 if test $ac_cv_lib_dld_shl_load = yes; then
8846   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8847 else
8848   { echo "$as_me:$LINENO: checking for dlopen" >&5
8849 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8850 if test "${ac_cv_func_dlopen+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8861 #define dlopen innocuous_dlopen
8862
8863 /* System header to define __stub macros and hopefully few prototypes,
8864     which can conflict with char dlopen (); below.
8865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8866     <limits.h> exists even on freestanding compilers.  */
8867
8868 #ifdef __STDC__
8869 # include <limits.h>
8870 #else
8871 # include <assert.h>
8872 #endif
8873
8874 #undef dlopen
8875
8876 /* Override any GCC internal prototype to avoid an error.
8877    Use char because int might match the return type of a GCC
8878    builtin and then its argument prototype would still apply.  */
8879 #ifdef __cplusplus
8880 extern "C"
8881 #endif
8882 char dlopen ();
8883 /* The GNU C library defines this for functions which it implements
8884     to always fail with ENOSYS.  Some functions are actually named
8885     something starting with __ and the normal name is an alias.  */
8886 #if defined __stub_dlopen || defined __stub___dlopen
8887 choke me
8888 #endif
8889
8890 int
8891 main ()
8892 {
8893 return dlopen ();
8894   ;
8895   return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext conftest$ac_exeext
8899 if { (ac_try="$ac_link"
8900 case "(($ac_try" in
8901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902   *) ac_try_echo=$ac_try;;
8903 esac
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905   (eval "$ac_link") 2>conftest.er1
8906   ac_status=$?
8907   grep -v '^ *+' conftest.er1 >conftest.err
8908   rm -f conftest.er1
8909   cat conftest.err >&5
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); } && {
8912          test -z "$ac_c_werror_flag" ||
8913          test ! -s conftest.err
8914        } && test -s conftest$ac_exeext &&
8915        $as_test_x conftest$ac_exeext; then
8916   ac_cv_func_dlopen=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921         ac_cv_func_dlopen=no
8922 fi
8923
8924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8925       conftest$ac_exeext conftest.$ac_ext
8926 fi
8927 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8928 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8929 if test $ac_cv_func_dlopen = yes; then
8930   lt_cv_dlopen="dlopen"
8931 else
8932   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8933 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8934 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8935   echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937   ac_check_lib_save_LIBS=$LIBS
8938 LIBS="-ldl  $LIBS"
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h.  */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h.  */
8945
8946 /* Override any GCC internal prototype to avoid an error.
8947    Use char because int might match the return type of a GCC
8948    builtin and then its argument prototype would still apply.  */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 char dlopen ();
8953 int
8954 main ()
8955 {
8956 return dlopen ();
8957   ;
8958   return 0;
8959 }
8960 _ACEOF
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (ac_try="$ac_link"
8963 case "(($ac_try" in
8964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965   *) ac_try_echo=$ac_try;;
8966 esac
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968   (eval "$ac_link") 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } && {
8975          test -z "$ac_c_werror_flag" ||
8976          test ! -s conftest.err
8977        } && test -s conftest$ac_exeext &&
8978        $as_test_x conftest$ac_exeext; then
8979   ac_cv_lib_dl_dlopen=yes
8980 else
8981   echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984         ac_cv_lib_dl_dlopen=no
8985 fi
8986
8987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8988       conftest$ac_exeext conftest.$ac_ext
8989 LIBS=$ac_check_lib_save_LIBS
8990 fi
8991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8992 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8993 if test $ac_cv_lib_dl_dlopen = yes; then
8994   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8995 else
8996   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8997 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001   ac_check_lib_save_LIBS=$LIBS
9002 LIBS="-lsvld  $LIBS"
9003 cat >conftest.$ac_ext <<_ACEOF
9004 /* confdefs.h.  */
9005 _ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h.  */
9009
9010 /* Override any GCC internal prototype to avoid an error.
9011    Use char because int might match the return type of a GCC
9012    builtin and then its argument prototype would still apply.  */
9013 #ifdef __cplusplus
9014 extern "C"
9015 #endif
9016 char dlopen ();
9017 int
9018 main ()
9019 {
9020 return dlopen ();
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (ac_try="$ac_link"
9027 case "(($ac_try" in
9028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029   *) ac_try_echo=$ac_try;;
9030 esac
9031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9032   (eval "$ac_link") 2>conftest.er1
9033   ac_status=$?
9034   grep -v '^ *+' conftest.er1 >conftest.err
9035   rm -f conftest.er1
9036   cat conftest.err >&5
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } && {
9039          test -z "$ac_c_werror_flag" ||
9040          test ! -s conftest.err
9041        } && test -s conftest$ac_exeext &&
9042        $as_test_x conftest$ac_exeext; then
9043   ac_cv_lib_svld_dlopen=yes
9044 else
9045   echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9047
9048         ac_cv_lib_svld_dlopen=no
9049 fi
9050
9051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9052       conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9054 fi
9055 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9056 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9057 if test $ac_cv_lib_svld_dlopen = yes; then
9058   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9059 else
9060   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9061 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9062 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9063   echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065   ac_check_lib_save_LIBS=$LIBS
9066 LIBS="-ldld  $LIBS"
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h.  */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h.  */
9073
9074 /* Override any GCC internal prototype to avoid an error.
9075    Use char because int might match the return type of a GCC
9076    builtin and then its argument prototype would still apply.  */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char dld_link ();
9081 int
9082 main ()
9083 {
9084 return dld_link ();
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (ac_try="$ac_link"
9091 case "(($ac_try" in
9092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093   *) ac_try_echo=$ac_try;;
9094 esac
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096   (eval "$ac_link") 2>conftest.er1
9097   ac_status=$?
9098   grep -v '^ *+' conftest.er1 >conftest.err
9099   rm -f conftest.er1
9100   cat conftest.err >&5
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); } && {
9103          test -z "$ac_c_werror_flag" ||
9104          test ! -s conftest.err
9105        } && test -s conftest$ac_exeext &&
9106        $as_test_x conftest$ac_exeext; then
9107   ac_cv_lib_dld_dld_link=yes
9108 else
9109   echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9111
9112         ac_cv_lib_dld_dld_link=no
9113 fi
9114
9115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9116       conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9118 fi
9119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9120 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9121 if test $ac_cv_lib_dld_dld_link = yes; then
9122   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9123 fi
9124
9125
9126 fi
9127
9128
9129 fi
9130
9131
9132 fi
9133
9134
9135 fi
9136
9137
9138 fi
9139
9140     ;;
9141   esac
9142
9143   if test "x$lt_cv_dlopen" != xno; then
9144     enable_dlopen=yes
9145   else
9146     enable_dlopen=no
9147   fi
9148
9149   case $lt_cv_dlopen in
9150   dlopen)
9151     save_CPPFLAGS="$CPPFLAGS"
9152     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9153
9154     save_LDFLAGS="$LDFLAGS"
9155     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9156
9157     save_LIBS="$LIBS"
9158     LIBS="$lt_cv_dlopen_libs $LIBS"
9159
9160     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9161 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9162 if test "${lt_cv_dlopen_self+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165           if test "$cross_compiling" = yes; then :
9166   lt_cv_dlopen_self=cross
9167 else
9168   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9169   lt_status=$lt_dlunknown
9170   cat > conftest.$ac_ext <<EOF
9171 #line 9171 "configure"
9172 #include "confdefs.h"
9173
9174 #if HAVE_DLFCN_H
9175 #include <dlfcn.h>
9176 #endif
9177
9178 #include <stdio.h>
9179
9180 #ifdef RTLD_GLOBAL
9181 #  define LT_DLGLOBAL           RTLD_GLOBAL
9182 #else
9183 #  ifdef DL_GLOBAL
9184 #    define LT_DLGLOBAL         DL_GLOBAL
9185 #  else
9186 #    define LT_DLGLOBAL         0
9187 #  endif
9188 #endif
9189
9190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9191    find out it does not work in some platform. */
9192 #ifndef LT_DLLAZY_OR_NOW
9193 #  ifdef RTLD_LAZY
9194 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9195 #  else
9196 #    ifdef DL_LAZY
9197 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9198 #    else
9199 #      ifdef RTLD_NOW
9200 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9201 #      else
9202 #        ifdef DL_NOW
9203 #          define LT_DLLAZY_OR_NOW      DL_NOW
9204 #        else
9205 #          define LT_DLLAZY_OR_NOW      0
9206 #        endif
9207 #      endif
9208 #    endif
9209 #  endif
9210 #endif
9211
9212 #ifdef __cplusplus
9213 extern "C" void exit (int);
9214 #endif
9215
9216 void fnord() { int i=42;}
9217 int main ()
9218 {
9219   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9220   int status = $lt_dlunknown;
9221
9222   if (self)
9223     {
9224       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9225       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9226       /* dlclose (self); */
9227     }
9228
9229     exit (status);
9230 }
9231 EOF
9232   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233   (eval $ac_link) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9237     (./conftest; exit; ) 2>/dev/null
9238     lt_status=$?
9239     case x$lt_status in
9240       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9241       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9242       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9243     esac
9244   else :
9245     # compilation failed
9246     lt_cv_dlopen_self=no
9247   fi
9248 fi
9249 rm -fr conftest*
9250
9251
9252 fi
9253 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9254 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9255
9256     if test "x$lt_cv_dlopen_self" = xyes; then
9257       LDFLAGS="$LDFLAGS $link_static_flag"
9258       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9259 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9260 if test "${lt_cv_dlopen_self_static+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263           if test "$cross_compiling" = yes; then :
9264   lt_cv_dlopen_self_static=cross
9265 else
9266   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9267   lt_status=$lt_dlunknown
9268   cat > conftest.$ac_ext <<EOF
9269 #line 9269 "configure"
9270 #include "confdefs.h"
9271
9272 #if HAVE_DLFCN_H
9273 #include <dlfcn.h>
9274 #endif
9275
9276 #include <stdio.h>
9277
9278 #ifdef RTLD_GLOBAL
9279 #  define LT_DLGLOBAL           RTLD_GLOBAL
9280 #else
9281 #  ifdef DL_GLOBAL
9282 #    define LT_DLGLOBAL         DL_GLOBAL
9283 #  else
9284 #    define LT_DLGLOBAL         0
9285 #  endif
9286 #endif
9287
9288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9289    find out it does not work in some platform. */
9290 #ifndef LT_DLLAZY_OR_NOW
9291 #  ifdef RTLD_LAZY
9292 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9293 #  else
9294 #    ifdef DL_LAZY
9295 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9296 #    else
9297 #      ifdef RTLD_NOW
9298 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9299 #      else
9300 #        ifdef DL_NOW
9301 #          define LT_DLLAZY_OR_NOW      DL_NOW
9302 #        else
9303 #          define LT_DLLAZY_OR_NOW      0
9304 #        endif
9305 #      endif
9306 #    endif
9307 #  endif
9308 #endif
9309
9310 #ifdef __cplusplus
9311 extern "C" void exit (int);
9312 #endif
9313
9314 void fnord() { int i=42;}
9315 int main ()
9316 {
9317   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9318   int status = $lt_dlunknown;
9319
9320   if (self)
9321     {
9322       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9323       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9324       /* dlclose (self); */
9325     }
9326
9327     exit (status);
9328 }
9329 EOF
9330   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331   (eval $ac_link) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9335     (./conftest; exit; ) 2>/dev/null
9336     lt_status=$?
9337     case x$lt_status in
9338       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9339       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9340       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9341     esac
9342   else :
9343     # compilation failed
9344     lt_cv_dlopen_self_static=no
9345   fi
9346 fi
9347 rm -fr conftest*
9348
9349
9350 fi
9351 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9352 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9353     fi
9354
9355     CPPFLAGS="$save_CPPFLAGS"
9356     LDFLAGS="$save_LDFLAGS"
9357     LIBS="$save_LIBS"
9358     ;;
9359   esac
9360
9361   case $lt_cv_dlopen_self in
9362   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9363   *) enable_dlopen_self=unknown ;;
9364   esac
9365
9366   case $lt_cv_dlopen_self_static in
9367   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9368   *) enable_dlopen_self_static=unknown ;;
9369   esac
9370 fi
9371
9372
9373 # Report which librarie types wil actually be built
9374 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9375 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9376 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9377 echo "${ECHO_T}$can_build_shared" >&6; }
9378
9379 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9380 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9381 test "$can_build_shared" = "no" && enable_shared=no
9382
9383 # On AIX, shared libraries and static libraries use the same namespace, and
9384 # are all built from PIC.
9385 case "$host_os" in
9386 aix3*)
9387   test "$enable_shared" = yes && enable_static=no
9388   if test -n "$RANLIB"; then
9389     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9390     postinstall_cmds='$RANLIB $lib'
9391   fi
9392   ;;
9393
9394 aix4* | aix5*)
9395   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9396     test "$enable_shared" = yes && enable_static=no
9397   fi
9398   ;;
9399   darwin* | rhapsody*)
9400   if test "$GCC" = yes; then
9401     archive_cmds_need_lc=no
9402     case "$host_os" in
9403     rhapsody* | darwin1.[012])
9404       allow_undefined_flag='-undefined suppress'
9405       ;;
9406     *) # Darwin 1.3 on
9407       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9408         allow_undefined_flag='-flat_namespace -undefined suppress'
9409       else
9410         case ${MACOSX_DEPLOYMENT_TARGET} in
9411           10.[012])
9412             allow_undefined_flag='-flat_namespace -undefined suppress'
9413             ;;
9414           10.*)
9415             allow_undefined_flag='-undefined dynamic_lookup'
9416             ;;
9417         esac
9418       fi
9419       ;;
9420     esac
9421     output_verbose_link_cmd='echo'
9422     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9423     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9424     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9425     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}'
9426     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}'
9427     hardcode_direct=no
9428     hardcode_automatic=yes
9429     hardcode_shlibpath_var=unsupported
9430     whole_archive_flag_spec='-all_load $convenience'
9431     link_all_deplibs=yes
9432   else
9433     ld_shlibs=no
9434   fi
9435     ;;
9436 esac
9437 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9438 echo "${ECHO_T}$enable_shared" >&6; }
9439
9440 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9441 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9442 # Make sure either enable_shared or enable_static is yes.
9443 test "$enable_shared" = yes || enable_static=yes
9444 { echo "$as_me:$LINENO: result: $enable_static" >&5
9445 echo "${ECHO_T}$enable_static" >&6; }
9446
9447 # The else clause should only fire when bootstrapping the
9448 # libtool distribution, otherwise you forgot to ship ltmain.sh
9449 # with your package, and you will get complaints that there are
9450 # no rules to generate ltmain.sh.
9451 if test -f "$ltmain"; then
9452   # See if we are running on zsh, and set the options which allow our commands through
9453   # without removal of \ escapes.
9454   if test -n "${ZSH_VERSION+set}" ; then
9455     setopt NO_GLOB_SUBST
9456   fi
9457   # Now quote all the things that may contain metacharacters while being
9458   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9459   # variables and quote the copies for generation of the libtool script.
9460   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9461     SED SHELL STRIP \
9462     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9463     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9464     deplibs_check_method reload_flag reload_cmds need_locks \
9465     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9466     lt_cv_sys_global_symbol_to_c_name_address \
9467     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9468     old_postinstall_cmds old_postuninstall_cmds \
9469     compiler \
9470     CC \
9471     LD \
9472     lt_prog_compiler_wl \
9473     lt_prog_compiler_pic \
9474     lt_prog_compiler_static \
9475     lt_prog_compiler_no_builtin_flag \
9476     export_dynamic_flag_spec \
9477     thread_safe_flag_spec \
9478     whole_archive_flag_spec \
9479     enable_shared_with_static_runtimes \
9480     old_archive_cmds \
9481     old_archive_from_new_cmds \
9482     predep_objects \
9483     postdep_objects \
9484     predeps \
9485     postdeps \
9486     compiler_lib_search_path \
9487     archive_cmds \
9488     archive_expsym_cmds \
9489     postinstall_cmds \
9490     postuninstall_cmds \
9491     old_archive_from_expsyms_cmds \
9492     allow_undefined_flag \
9493     no_undefined_flag \
9494     export_symbols_cmds \
9495     hardcode_libdir_flag_spec \
9496     hardcode_libdir_flag_spec_ld \
9497     hardcode_libdir_separator \
9498     hardcode_automatic \
9499     module_cmds \
9500     module_expsym_cmds \
9501     lt_cv_prog_compiler_c_o \
9502     exclude_expsyms \
9503     include_expsyms; do
9504
9505     case $var in
9506     old_archive_cmds | \
9507     old_archive_from_new_cmds | \
9508     archive_cmds | \
9509     archive_expsym_cmds | \
9510     module_cmds | \
9511     module_expsym_cmds | \
9512     old_archive_from_expsyms_cmds | \
9513     export_symbols_cmds | \
9514     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9515     postinstall_cmds | postuninstall_cmds | \
9516     old_postinstall_cmds | old_postuninstall_cmds | \
9517     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9518       # Double-quote double-evaled strings.
9519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9520       ;;
9521     *)
9522       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9523       ;;
9524     esac
9525   done
9526
9527   case $lt_echo in
9528   *'\$0 --fallback-echo"')
9529     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9530     ;;
9531   esac
9532
9533 cfgfile="${ofile}T"
9534   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9535   $rm -f "$cfgfile"
9536   { echo "$as_me:$LINENO: creating $ofile" >&5
9537 echo "$as_me: creating $ofile" >&6;}
9538
9539   cat <<__EOF__ >> "$cfgfile"
9540 #! $SHELL
9541
9542 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9543 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9545 #
9546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9547 # Free Software Foundation, Inc.
9548 #
9549 # This file is part of GNU Libtool:
9550 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9551 #
9552 # This program is free software; you can redistribute it and/or modify
9553 # it under the terms of the GNU General Public License as published by
9554 # the Free Software Foundation; either version 2 of the License, or
9555 # (at your option) any later version.
9556 #
9557 # This program is distributed in the hope that it will be useful, but
9558 # WITHOUT ANY WARRANTY; without even the implied warranty of
9559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9560 # General Public License for more details.
9561 #
9562 # You should have received a copy of the GNU General Public License
9563 # along with this program; if not, write to the Free Software
9564 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9565 #
9566 # As a special exception to the GNU General Public License, if you
9567 # distribute this file as part of a program that contains a
9568 # configuration script generated by Autoconf, you may include it under
9569 # the same distribution terms that you use for the rest of that program.
9570
9571 # A sed program that does not truncate output.
9572 SED=$lt_SED
9573
9574 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9575 Xsed="$SED -e s/^X//"
9576
9577 # The HP-UX ksh and POSIX shell print the target directory to stdout
9578 # if CDPATH is set.
9579 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9580
9581 # The names of the tagged configurations supported by this script.
9582 available_tags=
9583
9584 # ### BEGIN LIBTOOL CONFIG
9585
9586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9587
9588 # Shell to use when invoking shell scripts.
9589 SHELL=$lt_SHELL
9590
9591 # Whether or not to build shared libraries.
9592 build_libtool_libs=$enable_shared
9593
9594 # Whether or not to build static libraries.
9595 build_old_libs=$enable_static
9596
9597 # Whether or not to add -lc for building shared libraries.
9598 build_libtool_need_lc=$archive_cmds_need_lc
9599
9600 # Whether or not to disallow shared libs when runtime libs are static
9601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9602
9603 # Whether or not to optimize for fast installation.
9604 fast_install=$enable_fast_install
9605
9606 # The host system.
9607 host_alias=$host_alias
9608 host=$host
9609
9610 # An echo program that does not interpret backslashes.
9611 echo=$lt_echo
9612
9613 # The archiver.
9614 AR=$lt_AR
9615 AR_FLAGS=$lt_AR_FLAGS
9616
9617 # A C compiler.
9618 LTCC=$lt_LTCC
9619
9620 # A language-specific compiler.
9621 CC=$lt_compiler
9622
9623 # Is the compiler the GNU C compiler?
9624 with_gcc=$GCC
9625
9626 # An ERE matcher.
9627 EGREP=$lt_EGREP
9628
9629 # The linker used to build libraries.
9630 LD=$lt_LD
9631
9632 # Whether we need hard or soft links.
9633 LN_S=$lt_LN_S
9634
9635 # A BSD-compatible nm program.
9636 NM=$lt_NM
9637
9638 # A symbol stripping program
9639 STRIP=$lt_STRIP
9640
9641 # Used to examine libraries when file_magic_cmd begins "file"
9642 MAGIC_CMD=$MAGIC_CMD
9643
9644 # Used on cygwin: DLL creation program.
9645 DLLTOOL="$DLLTOOL"
9646
9647 # Used on cygwin: object dumper.
9648 OBJDUMP="$OBJDUMP"
9649
9650 # Used on cygwin: assembler.
9651 AS="$AS"
9652
9653 # The name of the directory that contains temporary libtool files.
9654 objdir=$objdir
9655
9656 # How to create reloadable object files.
9657 reload_flag=$lt_reload_flag
9658 reload_cmds=$lt_reload_cmds
9659
9660 # How to pass a linker flag through the compiler.
9661 wl=$lt_lt_prog_compiler_wl
9662
9663 # Object file suffix (normally "o").
9664 objext="$ac_objext"
9665
9666 # Old archive suffix (normally "a").
9667 libext="$libext"
9668
9669 # Shared library suffix (normally ".so").
9670 shrext_cmds='$shrext_cmds'
9671
9672 # Executable file suffix (normally "").
9673 exeext="$exeext"
9674
9675 # Additional compiler flags for building library objects.
9676 pic_flag=$lt_lt_prog_compiler_pic
9677 pic_mode=$pic_mode
9678
9679 # What is the maximum length of a command?
9680 max_cmd_len=$lt_cv_sys_max_cmd_len
9681
9682 # Does compiler simultaneously support -c and -o options?
9683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9684
9685 # Must we lock files when doing compilation ?
9686 need_locks=$lt_need_locks
9687
9688 # Do we need the lib prefix for modules?
9689 need_lib_prefix=$need_lib_prefix
9690
9691 # Do we need a version for libraries?
9692 need_version=$need_version
9693
9694 # Whether dlopen is supported.
9695 dlopen_support=$enable_dlopen
9696
9697 # Whether dlopen of programs is supported.
9698 dlopen_self=$enable_dlopen_self
9699
9700 # Whether dlopen of statically linked programs is supported.
9701 dlopen_self_static=$enable_dlopen_self_static
9702
9703 # Compiler flag to prevent dynamic linking.
9704 link_static_flag=$lt_lt_prog_compiler_static
9705
9706 # Compiler flag to turn off builtin functions.
9707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9708
9709 # Compiler flag to allow reflexive dlopens.
9710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9711
9712 # Compiler flag to generate shared objects directly from archives.
9713 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9714
9715 # Compiler flag to generate thread-safe objects.
9716 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9717
9718 # Library versioning type.
9719 version_type=$version_type
9720
9721 # Format of library name prefix.
9722 libname_spec=$lt_libname_spec
9723
9724 # List of archive names.  First name is the real one, the rest are links.
9725 # The last name is the one that the linker finds with -lNAME.
9726 library_names_spec=$lt_library_names_spec
9727
9728 # The coded name of the library, if different from the real name.
9729 soname_spec=$lt_soname_spec
9730
9731 # Commands used to build and install an old-style archive.
9732 RANLIB=$lt_RANLIB
9733 old_archive_cmds=$lt_old_archive_cmds
9734 old_postinstall_cmds=$lt_old_postinstall_cmds
9735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9736
9737 # Create an old-style archive from a shared archive.
9738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9739
9740 # Create a temporary old-style archive to link instead of a shared archive.
9741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9742
9743 # Commands used to build and install a shared archive.
9744 archive_cmds=$lt_archive_cmds
9745 archive_expsym_cmds=$lt_archive_expsym_cmds
9746 postinstall_cmds=$lt_postinstall_cmds
9747 postuninstall_cmds=$lt_postuninstall_cmds
9748
9749 # Commands used to build a loadable module (assumed same as above if empty)
9750 module_cmds=$lt_module_cmds
9751 module_expsym_cmds=$lt_module_expsym_cmds
9752
9753 # Commands to strip libraries.
9754 old_striplib=$lt_old_striplib
9755 striplib=$lt_striplib
9756
9757 # Dependencies to place before the objects being linked to create a
9758 # shared library.
9759 predep_objects=$lt_predep_objects
9760
9761 # Dependencies to place after the objects being linked to create a
9762 # shared library.
9763 postdep_objects=$lt_postdep_objects
9764
9765 # Dependencies to place before the objects being linked to create a
9766 # shared library.
9767 predeps=$lt_predeps
9768
9769 # Dependencies to place after the objects being linked to create a
9770 # shared library.
9771 postdeps=$lt_postdeps
9772
9773 # The library search path used internally by the compiler when linking
9774 # a shared library.
9775 compiler_lib_search_path=$lt_compiler_lib_search_path
9776
9777 # Method to check whether dependent libraries are shared objects.
9778 deplibs_check_method=$lt_deplibs_check_method
9779
9780 # Command to use when deplibs_check_method == file_magic.
9781 file_magic_cmd=$lt_file_magic_cmd
9782
9783 # Flag that allows shared libraries with undefined symbols to be built.
9784 allow_undefined_flag=$lt_allow_undefined_flag
9785
9786 # Flag that forces no undefined symbols.
9787 no_undefined_flag=$lt_no_undefined_flag
9788
9789 # Commands used to finish a libtool library installation in a directory.
9790 finish_cmds=$lt_finish_cmds
9791
9792 # Same as above, but a single script fragment to be evaled but not shown.
9793 finish_eval=$lt_finish_eval
9794
9795 # Take the output of nm and produce a listing of raw symbols and C names.
9796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9797
9798 # Transform the output of nm in a proper C declaration
9799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9800
9801 # Transform the output of nm in a C name address pair
9802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9803
9804 # This is the shared library runtime path variable.
9805 runpath_var=$runpath_var
9806
9807 # This is the shared library path variable.
9808 shlibpath_var=$shlibpath_var
9809
9810 # Is shlibpath searched before the hard-coded library search path?
9811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9812
9813 # How to hardcode a shared library path into an executable.
9814 hardcode_action=$hardcode_action
9815
9816 # Whether we should hardcode library paths into libraries.
9817 hardcode_into_libs=$hardcode_into_libs
9818
9819 # Flag to hardcode \$libdir into a binary during linking.
9820 # This must work even if \$libdir does not exist.
9821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9822
9823 # If ld is used when linking, flag to hardcode \$libdir into
9824 # a binary during linking. This must work even if \$libdir does
9825 # not exist.
9826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9827
9828 # Whether we need a single -rpath flag with a separated argument.
9829 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9830
9831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9832 # resulting binary.
9833 hardcode_direct=$hardcode_direct
9834
9835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9836 # resulting binary.
9837 hardcode_minus_L=$hardcode_minus_L
9838
9839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9840 # the resulting binary.
9841 hardcode_shlibpath_var=$hardcode_shlibpath_var
9842
9843 # Set to yes if building a shared library automatically hardcodes DIR into the library
9844 # and all subsequent libraries and executables linked against it.
9845 hardcode_automatic=$hardcode_automatic
9846
9847 # Variables whose values should be saved in libtool wrapper scripts and
9848 # restored at relink time.
9849 variables_saved_for_relink="$variables_saved_for_relink"
9850
9851 # Whether libtool must link a program against all its dependency libraries.
9852 link_all_deplibs=$link_all_deplibs
9853
9854 # Compile-time system search path for libraries
9855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9856
9857 # Run-time system search path for libraries
9858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9859
9860 # Fix the shell variable \$srcfile for the compiler.
9861 fix_srcfile_path="$fix_srcfile_path"
9862
9863 # Set to yes if exported symbols are required.
9864 always_export_symbols=$always_export_symbols
9865
9866 # The commands to list exported symbols.
9867 export_symbols_cmds=$lt_export_symbols_cmds
9868
9869 # The commands to extract the exported symbol list from a shared archive.
9870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9871
9872 # Symbols that should not be listed in the preloaded symbols.
9873 exclude_expsyms=$lt_exclude_expsyms
9874
9875 # Symbols that must always be exported.
9876 include_expsyms=$lt_include_expsyms
9877
9878 # ### END LIBTOOL CONFIG
9879
9880 __EOF__
9881
9882
9883   case $host_os in
9884   aix3*)
9885     cat <<\EOF >> "$cfgfile"
9886
9887 # AIX sometimes has problems with the GCC collect2 program.  For some
9888 # reason, if we set the COLLECT_NAMES environment variable, the problems
9889 # vanish in a puff of smoke.
9890 if test "X${COLLECT_NAMES+set}" != Xset; then
9891   COLLECT_NAMES=
9892   export COLLECT_NAMES
9893 fi
9894 EOF
9895     ;;
9896   esac
9897
9898   # We use sed instead of cat because bash on DJGPP gets confused if
9899   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9900   # text mode, it properly converts lines to CR/LF.  This bash problem
9901   # is reportedly fixed, but why not run on old versions too?
9902   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9903
9904   mv -f "$cfgfile" "$ofile" || \
9905     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9906   chmod +x "$ofile"
9907
9908 else
9909   # If there is no Makefile yet, we rely on a make rule to execute
9910   # `config.status --recheck' to rerun these tests and create the
9911   # libtool script then.
9912   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9913   if test -f "$ltmain_in"; then
9914     test -f Makefile && make "$ltmain"
9915   fi
9916 fi
9917
9918
9919 ac_ext=c
9920 ac_cpp='$CPP $CPPFLAGS'
9921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9924
9925 CC="$lt_save_CC"
9926
9927
9928 # Check whether --with-tags was given.
9929 if test "${with_tags+set}" = set; then
9930   withval=$with_tags; tagnames="$withval"
9931 fi
9932
9933
9934 if test -f "$ltmain" && test -n "$tagnames"; then
9935   if test ! -f "${ofile}"; then
9936     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9937 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9938   fi
9939
9940   if test -z "$LTCC"; then
9941     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9942     if test -z "$LTCC"; then
9943       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9944 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9945     else
9946       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9947 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9948     fi
9949   fi
9950
9951   # Extract list of available tagged configurations in $ofile.
9952   # Note that this assumes the entire list is on one line.
9953   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9954
9955   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9956   for tagname in $tagnames; do
9957     IFS="$lt_save_ifs"
9958     # Check whether tagname contains only valid characters
9959     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9960     "") ;;
9961     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9962 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9963    { (exit 1); exit 1; }; }
9964         ;;
9965     esac
9966
9967     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9968     then
9969       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9970 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9971    { (exit 1); exit 1; }; }
9972     fi
9973
9974     # Update the list of available tags.
9975     if test -n "$tagname"; then
9976       echo appending configuration tag \"$tagname\" to $ofile
9977
9978       case $tagname in
9979       CXX)
9980         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9981           ac_ext=cpp
9982 ac_cpp='$CXXCPP $CPPFLAGS'
9983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9986
9987
9988
9989
9990 archive_cmds_need_lc_CXX=no
9991 allow_undefined_flag_CXX=
9992 always_export_symbols_CXX=no
9993 archive_expsym_cmds_CXX=
9994 export_dynamic_flag_spec_CXX=
9995 hardcode_direct_CXX=no
9996 hardcode_libdir_flag_spec_CXX=
9997 hardcode_libdir_flag_spec_ld_CXX=
9998 hardcode_libdir_separator_CXX=
9999 hardcode_minus_L_CXX=no
10000 hardcode_automatic_CXX=no
10001 module_cmds_CXX=
10002 module_expsym_cmds_CXX=
10003 link_all_deplibs_CXX=unknown
10004 old_archive_cmds_CXX=$old_archive_cmds
10005 no_undefined_flag_CXX=
10006 whole_archive_flag_spec_CXX=
10007 enable_shared_with_static_runtimes_CXX=no
10008
10009 # Dependencies to place before and after the object being linked:
10010 predep_objects_CXX=
10011 postdep_objects_CXX=
10012 predeps_CXX=
10013 postdeps_CXX=
10014 compiler_lib_search_path_CXX=
10015
10016 # Source file extension for C++ test sources.
10017 ac_ext=cc
10018
10019 # Object file extension for compiled C++ test sources.
10020 objext=o
10021 objext_CXX=$objext
10022
10023 # Code to be used in simple compile tests
10024 lt_simple_compile_test_code="int some_variable = 0;\n"
10025
10026 # Code to be used in simple link tests
10027 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10028
10029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10030
10031 # If no C compiler was specified, use CC.
10032 LTCC=${LTCC-"$CC"}
10033
10034 # Allow CC to be a program name with arguments.
10035 compiler=$CC
10036
10037
10038 # Allow CC to be a program name with arguments.
10039 lt_save_CC=$CC
10040 lt_save_LD=$LD
10041 lt_save_GCC=$GCC
10042 GCC=$GXX
10043 lt_save_with_gnu_ld=$with_gnu_ld
10044 lt_save_path_LD=$lt_cv_path_LD
10045 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10046   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10047 else
10048   unset lt_cv_prog_gnu_ld
10049 fi
10050 if test -n "${lt_cv_path_LDCXX+set}"; then
10051   lt_cv_path_LD=$lt_cv_path_LDCXX
10052 else
10053   unset lt_cv_path_LD
10054 fi
10055 test -z "${LDCXX+set}" || LD=$LDCXX
10056 CC=${CXX-"c++"}
10057 compiler=$CC
10058 compiler_CXX=$CC
10059 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10060
10061 # We don't want -fno-exception wen compiling C++ code, so set the
10062 # no_builtin_flag separately
10063 if test "$GXX" = yes; then
10064   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10065 else
10066   lt_prog_compiler_no_builtin_flag_CXX=
10067 fi
10068
10069 if test "$GXX" = yes; then
10070   # Set up default GNU C++ configuration
10071
10072
10073 # Check whether --with-gnu-ld was given.
10074 if test "${with_gnu_ld+set}" = set; then
10075   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10076 else
10077   with_gnu_ld=no
10078 fi
10079
10080 ac_prog=ld
10081 if test "$GCC" = yes; then
10082   # Check if gcc -print-prog-name=ld gives a path.
10083   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10084 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10085   case $host in
10086   *-*-mingw*)
10087     # gcc leaves a trailing carriage return which upsets mingw
10088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10089   *)
10090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10091   esac
10092   case $ac_prog in
10093     # Accept absolute paths.
10094     [\\/]* | ?:[\\/]*)
10095       re_direlt='/[^/][^/]*/\.\./'
10096       # Canonicalize the pathname of ld
10097       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10098       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10099         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10100       done
10101       test -z "$LD" && LD="$ac_prog"
10102       ;;
10103   "")
10104     # If it fails, then pretend we aren't using GCC.
10105     ac_prog=ld
10106     ;;
10107   *)
10108     # If it is relative, then search for the first ld in PATH.
10109     with_gnu_ld=unknown
10110     ;;
10111   esac
10112 elif test "$with_gnu_ld" = yes; then
10113   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10115 else
10116   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10118 fi
10119 if test "${lt_cv_path_LD+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   if test -z "$LD"; then
10123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10124   for ac_dir in $PATH; do
10125     IFS="$lt_save_ifs"
10126     test -z "$ac_dir" && ac_dir=.
10127     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10128       lt_cv_path_LD="$ac_dir/$ac_prog"
10129       # Check to see if the program is GNU ld.  I'd rather use --version,
10130       # but apparently some GNU ld's only accept -v.
10131       # Break only if it was the GNU/non-GNU ld that we prefer.
10132       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10133       *GNU* | *'with BFD'*)
10134         test "$with_gnu_ld" != no && break
10135         ;;
10136       *)
10137         test "$with_gnu_ld" != yes && break
10138         ;;
10139       esac
10140     fi
10141   done
10142   IFS="$lt_save_ifs"
10143 else
10144   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10145 fi
10146 fi
10147
10148 LD="$lt_cv_path_LD"
10149 if test -n "$LD"; then
10150   { echo "$as_me:$LINENO: result: $LD" >&5
10151 echo "${ECHO_T}$LD" >&6; }
10152 else
10153   { echo "$as_me:$LINENO: result: no" >&5
10154 echo "${ECHO_T}no" >&6; }
10155 fi
10156 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10157 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10158    { (exit 1); exit 1; }; }
10159 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10160 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10161 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10165 case `$LD -v 2>&1 </dev/null` in
10166 *GNU* | *'with BFD'*)
10167   lt_cv_prog_gnu_ld=yes
10168   ;;
10169 *)
10170   lt_cv_prog_gnu_ld=no
10171   ;;
10172 esac
10173 fi
10174 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10175 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10176 with_gnu_ld=$lt_cv_prog_gnu_ld
10177
10178
10179
10180   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10181   # archiving commands below assume that GNU ld is being used.
10182   if test "$with_gnu_ld" = yes; then
10183     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184     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'
10185
10186     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10187     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10188
10189     # If archive_cmds runs LD, not CC, wlarc should be empty
10190     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10191     #     investigate it a little bit more. (MM)
10192     wlarc='${wl}'
10193
10194     # ancient GNU ld didn't support --whole-archive et. al.
10195     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10196         grep 'no-whole-archive' > /dev/null; then
10197       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10198     else
10199       whole_archive_flag_spec_CXX=
10200     fi
10201   else
10202     with_gnu_ld=no
10203     wlarc=
10204
10205     # A generic and very simple default shared library creation
10206     # command for GNU C++ for the case where it uses the native
10207     # linker, instead of GNU ld.  If possible, this setting should
10208     # overridden to take advantage of the native linker features on
10209     # the platform it is being used on.
10210     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10211   fi
10212
10213   # Commands to make compiler produce verbose output that lists
10214   # what "hidden" libraries, object files and flags are used when
10215   # linking a shared library.
10216   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10217
10218 else
10219   GXX=no
10220   with_gnu_ld=no
10221   wlarc=
10222 fi
10223
10224 # PORTME: fill in a description of your system's C++ link characteristics
10225 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10226 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10227 ld_shlibs_CXX=yes
10228 case $host_os in
10229   aix3*)
10230     # FIXME: insert proper C++ library support
10231     ld_shlibs_CXX=no
10232     ;;
10233   aix4* | aix5*)
10234     if test "$host_cpu" = ia64; then
10235       # On IA64, the linker does run time linking by default, so we don't
10236       # have to do anything special.
10237       aix_use_runtimelinking=no
10238       exp_sym_flag='-Bexport'
10239       no_entry_flag=""
10240     else
10241       aix_use_runtimelinking=no
10242
10243       # Test if we are trying to use run time linking or normal
10244       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10245       # need to do runtime linking.
10246       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10247         for ld_flag in $LDFLAGS; do
10248           case $ld_flag in
10249           *-brtl*)
10250             aix_use_runtimelinking=yes
10251             break
10252             ;;
10253           esac
10254         done
10255       esac
10256
10257       exp_sym_flag='-bexport'
10258       no_entry_flag='-bnoentry'
10259     fi
10260
10261     # When large executables or shared objects are built, AIX ld can
10262     # have problems creating the table of contents.  If linking a library
10263     # or program results in "error TOC overflow" add -mminimal-toc to
10264     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10265     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10266
10267     archive_cmds_CXX=''
10268     hardcode_direct_CXX=yes
10269     hardcode_libdir_separator_CXX=':'
10270     link_all_deplibs_CXX=yes
10271
10272     if test "$GXX" = yes; then
10273       case $host_os in aix4.012|aix4.012.*)
10274       # We only want to do this on AIX 4.2 and lower, the check
10275       # below for broken collect2 doesn't work under 4.3+
10276         collect2name=`${CC} -print-prog-name=collect2`
10277         if test -f "$collect2name" && \
10278            strings "$collect2name" | grep resolve_lib_name >/dev/null
10279         then
10280           # We have reworked collect2
10281           hardcode_direct_CXX=yes
10282         else
10283           # We have old collect2
10284           hardcode_direct_CXX=unsupported
10285           # It fails to find uninstalled libraries when the uninstalled
10286           # path is not listed in the libpath.  Setting hardcode_minus_L
10287           # to unsupported forces relinking
10288           hardcode_minus_L_CXX=yes
10289           hardcode_libdir_flag_spec_CXX='-L$libdir'
10290           hardcode_libdir_separator_CXX=
10291         fi
10292       esac
10293       shared_flag='-shared'
10294     else
10295       # not using gcc
10296       if test "$host_cpu" = ia64; then
10297         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10298         # chokes on -Wl,-G. The following line is correct:
10299         shared_flag='-G'
10300       else
10301         if test "$aix_use_runtimelinking" = yes; then
10302           shared_flag='${wl}-G'
10303         else
10304           shared_flag='${wl}-bM:SRE'
10305         fi
10306       fi
10307     fi
10308
10309     # It seems that -bexpall does not export symbols beginning with
10310     # underscore (_), so it is better to generate a list of symbols to export.
10311     always_export_symbols_CXX=yes
10312     if test "$aix_use_runtimelinking" = yes; then
10313       # Warning - without using the other runtime loading flags (-brtl),
10314       # -berok will link without error, but may produce a broken library.
10315       allow_undefined_flag_CXX='-berok'
10316       # Determine the default libpath from the value encoded in an empty executable.
10317       cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h.  */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h.  */
10323
10324 int
10325 main ()
10326 {
10327
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336   *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339   (eval "$ac_link") 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } && {
10346          test -z "$ac_cxx_werror_flag" ||
10347          test ! -s conftest.err
10348        } && test -s conftest$ac_exeext &&
10349        $as_test_x conftest$ac_exeext; then
10350
10351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10352 }'`
10353 # Check for a 64-bit object if we didn't find anything.
10354 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; }
10355 }'`; fi
10356 else
10357   echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10359
10360
10361 fi
10362
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364       conftest$ac_exeext conftest.$ac_ext
10365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10366
10367       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10368
10369       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"
10370      else
10371       if test "$host_cpu" = ia64; then
10372         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10373         allow_undefined_flag_CXX="-z nodefs"
10374         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"
10375       else
10376         # Determine the default libpath from the value encoded in an empty executable.
10377         cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h.  */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h.  */
10383
10384 int
10385 main ()
10386 {
10387
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396   *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399   (eval "$ac_link") 2>conftest.er1
10400   ac_status=$?
10401   grep -v '^ *+' conftest.er1 >conftest.err
10402   rm -f conftest.er1
10403   cat conftest.err >&5
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } && {
10406          test -z "$ac_cxx_werror_flag" ||
10407          test ! -s conftest.err
10408        } && test -s conftest$ac_exeext &&
10409        $as_test_x conftest$ac_exeext; then
10410
10411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10412 }'`
10413 # Check for a 64-bit object if we didn't find anything.
10414 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; }
10415 }'`; fi
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420
10421 fi
10422
10423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10424       conftest$ac_exeext conftest.$ac_ext
10425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10426
10427         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10428         # Warning - without using the other run time loading flags,
10429         # -berok will link without error, but may produce a broken library.
10430         no_undefined_flag_CXX=' ${wl}-bernotok'
10431         allow_undefined_flag_CXX=' ${wl}-berok'
10432         # -bexpall does not export symbols beginning with underscore (_)
10433         always_export_symbols_CXX=yes
10434         # Exported symbols can be pulled into shared objects from archives
10435         whole_archive_flag_spec_CXX=' '
10436         archive_cmds_need_lc_CXX=yes
10437         # This is similar to how AIX traditionally builds it's shared libraries.
10438         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'
10439       fi
10440     fi
10441     ;;
10442   chorus*)
10443     case $cc_basename in
10444       *)
10445         # FIXME: insert proper C++ library support
10446         ld_shlibs_CXX=no
10447         ;;
10448     esac
10449     ;;
10450
10451   cygwin* | mingw* | pw32*)
10452     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10453     # as there is no search path for DLLs.
10454     hardcode_libdir_flag_spec_CXX='-L$libdir'
10455     allow_undefined_flag_CXX=unsupported
10456     always_export_symbols_CXX=no
10457     enable_shared_with_static_runtimes_CXX=yes
10458
10459     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10460       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'
10461       # If the export-symbols file already is a .def file (1st line
10462       # is EXPORTS), use it as is; otherwise, prepend...
10463       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10464         cp $export_symbols $output_objdir/$soname.def;
10465       else
10466         echo EXPORTS > $output_objdir/$soname.def;
10467         cat $export_symbols >> $output_objdir/$soname.def;
10468       fi~
10469       $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'
10470     else
10471       ld_shlibs_CXX=no
10472     fi
10473   ;;
10474
10475   darwin* | rhapsody*)
10476   if test "$GXX" = yes; then
10477     archive_cmds_need_lc_CXX=no
10478     case "$host_os" in
10479     rhapsody* | darwin1.[012])
10480       allow_undefined_flag_CXX='-undefined suppress'
10481       ;;
10482     *) # Darwin 1.3 on
10483       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10484         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10485       else
10486         case ${MACOSX_DEPLOYMENT_TARGET} in
10487           10.[012])
10488             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10489             ;;
10490           10.*)
10491             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10492             ;;
10493         esac
10494       fi
10495       ;;
10496     esac
10497     lt_int_apple_cc_single_mod=no
10498     output_verbose_link_cmd='echo'
10499     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10500       lt_int_apple_cc_single_mod=yes
10501     fi
10502     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10503       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10504     else
10505       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'
10506     fi
10507     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10508
10509     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10510     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10511       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}'
10512     else
10513       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}'
10514     fi
10515     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}'
10516     hardcode_direct_CXX=no
10517     hardcode_automatic_CXX=yes
10518     hardcode_shlibpath_var_CXX=unsupported
10519     whole_archive_flag_spec_CXX='-all_load $convenience'
10520     link_all_deplibs_CXX=yes
10521   else
10522     ld_shlibs_CXX=no
10523   fi
10524     ;;
10525
10526   dgux*)
10527     case $cc_basename in
10528       ec++)
10529         # FIXME: insert proper C++ library support
10530         ld_shlibs_CXX=no
10531         ;;
10532       ghcx)
10533         # Green Hills C++ Compiler
10534         # FIXME: insert proper C++ library support
10535         ld_shlibs_CXX=no
10536         ;;
10537       *)
10538         # FIXME: insert proper C++ library support
10539         ld_shlibs_CXX=no
10540         ;;
10541     esac
10542     ;;
10543   freebsd12*)
10544     # C++ shared libraries reported to be fairly broken before switch to ELF
10545     ld_shlibs_CXX=no
10546     ;;
10547   freebsd-elf*)
10548     archive_cmds_need_lc_CXX=no
10549     ;;
10550   freebsd* | kfreebsd*-gnu)
10551     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10552     # conventions
10553     ld_shlibs_CXX=yes
10554     ;;
10555   gnu*)
10556     ;;
10557   hpux9*)
10558     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10559     hardcode_libdir_separator_CXX=:
10560     export_dynamic_flag_spec_CXX='${wl}-E'
10561     hardcode_direct_CXX=yes
10562     hardcode_minus_L_CXX=yes # Not in the search PATH,
10563                                 # but as the default
10564                                 # location of the library.
10565
10566     case $cc_basename in
10567     CC)
10568       # FIXME: insert proper C++ library support
10569       ld_shlibs_CXX=no
10570       ;;
10571     aCC)
10572       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'
10573       # Commands to make compiler produce verbose output that lists
10574       # what "hidden" libraries, object files and flags are used when
10575       # linking a shared library.
10576       #
10577       # There doesn't appear to be a way to prevent this compiler from
10578       # explicitly linking system object files so we need to strip them
10579       # from the output so that they don't get included in the library
10580       # dependencies.
10581       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'
10582       ;;
10583     *)
10584       if test "$GXX" = yes; then
10585         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'
10586       else
10587         # FIXME: insert proper C++ library support
10588         ld_shlibs_CXX=no
10589       fi
10590       ;;
10591     esac
10592     ;;
10593   hpux10*|hpux11*)
10594     if test $with_gnu_ld = no; then
10595       case "$host_cpu" in
10596       hppa*64*)
10597         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10598         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10599         hardcode_libdir_separator_CXX=:
10600         ;;
10601       ia64*)
10602         hardcode_libdir_flag_spec_CXX='-L$libdir'
10603         ;;
10604       *)
10605         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10606         hardcode_libdir_separator_CXX=:
10607         export_dynamic_flag_spec_CXX='${wl}-E'
10608         ;;
10609       esac
10610     fi
10611     case "$host_cpu" in
10612     hppa*64*)
10613       hardcode_direct_CXX=no
10614       hardcode_shlibpath_var_CXX=no
10615       ;;
10616     ia64*)
10617       hardcode_direct_CXX=no
10618       hardcode_shlibpath_var_CXX=no
10619       hardcode_minus_L_CXX=yes # Not in the search PATH,
10620                                               # but as the default
10621                                               # location of the library.
10622       ;;
10623     *)
10624       hardcode_direct_CXX=yes
10625       hardcode_minus_L_CXX=yes # Not in the search PATH,
10626                                               # but as the default
10627                                               # location of the library.
10628       ;;
10629     esac
10630
10631     case $cc_basename in
10632       CC)
10633         # FIXME: insert proper C++ library support
10634         ld_shlibs_CXX=no
10635         ;;
10636       aCC)
10637         case "$host_cpu" in
10638         hppa*64*|ia64*)
10639           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10640           ;;
10641         *)
10642           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10643           ;;
10644         esac
10645         # Commands to make compiler produce verbose output that lists
10646         # what "hidden" libraries, object files and flags are used when
10647         # linking a shared library.
10648         #
10649         # There doesn't appear to be a way to prevent this compiler from
10650         # explicitly linking system object files so we need to strip them
10651         # from the output so that they don't get included in the library
10652         # dependencies.
10653         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'
10654         ;;
10655       *)
10656         if test "$GXX" = yes; then
10657           if test $with_gnu_ld = no; then
10658             case "$host_cpu" in
10659             ia64*|hppa*64*)
10660               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10661               ;;
10662             *)
10663               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'
10664               ;;
10665             esac
10666           fi
10667         else
10668           # FIXME: insert proper C++ library support
10669           ld_shlibs_CXX=no
10670         fi
10671         ;;
10672     esac
10673     ;;
10674   irix5* | irix6*)
10675     case $cc_basename in
10676       CC)
10677         # SGI C++
10678         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'
10679
10680         # Archives containing C++ object files must be created using
10681         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10682         # necessary to make sure instantiated templates are included
10683         # in the archive.
10684         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10685         ;;
10686       *)
10687         if test "$GXX" = yes; then
10688           if test "$with_gnu_ld" = no; then
10689             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'
10690           else
10691             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'
10692           fi
10693         fi
10694         link_all_deplibs_CXX=yes
10695         ;;
10696     esac
10697     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10698     hardcode_libdir_separator_CXX=:
10699     ;;
10700   linux*)
10701     case $cc_basename in
10702       KCC)
10703         # Kuck and Associates, Inc. (KAI) C++ Compiler
10704
10705         # KCC will only create a shared library if the output file
10706         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10707         # to its proper name (with version) after linking.
10708         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'
10709         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'
10710         # Commands to make compiler produce verbose output that lists
10711         # what "hidden" libraries, object files and flags are used when
10712         # linking a shared library.
10713         #
10714         # There doesn't appear to be a way to prevent this compiler from
10715         # explicitly linking system object files so we need to strip them
10716         # from the output so that they don't get included in the library
10717         # dependencies.
10718         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'
10719
10720         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10721         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10722
10723         # Archives containing C++ object files must be created using
10724         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10725         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10726         ;;
10727       icpc)
10728         # Intel C++
10729         with_gnu_ld=yes
10730         archive_cmds_need_lc_CXX=no
10731         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10732         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'
10733         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10734         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10735         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10736         ;;
10737       cxx)
10738         # Compaq C++
10739         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10740         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'
10741
10742         runpath_var=LD_RUN_PATH
10743         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10744         hardcode_libdir_separator_CXX=:
10745
10746         # Commands to make compiler produce verbose output that lists
10747         # what "hidden" libraries, object files and flags are used when
10748         # linking a shared library.
10749         #
10750         # There doesn't appear to be a way to prevent this compiler from
10751         # explicitly linking system object files so we need to strip them
10752         # from the output so that they don't get included in the library
10753         # dependencies.
10754         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'
10755         ;;
10756     esac
10757     ;;
10758   lynxos*)
10759     # FIXME: insert proper C++ library support
10760     ld_shlibs_CXX=no
10761     ;;
10762   m88k*)
10763     # FIXME: insert proper C++ library support
10764     ld_shlibs_CXX=no
10765     ;;
10766   mvs*)
10767     case $cc_basename in
10768       cxx)
10769         # FIXME: insert proper C++ library support
10770         ld_shlibs_CXX=no
10771         ;;
10772       *)
10773         # FIXME: insert proper C++ library support
10774         ld_shlibs_CXX=no
10775         ;;
10776     esac
10777     ;;
10778   netbsd*)
10779     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10780       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10781       wlarc=
10782       hardcode_libdir_flag_spec_CXX='-R$libdir'
10783       hardcode_direct_CXX=yes
10784       hardcode_shlibpath_var_CXX=no
10785     fi
10786     # Workaround some broken pre-1.5 toolchains
10787     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10788     ;;
10789   osf3*)
10790     case $cc_basename in
10791       KCC)
10792         # Kuck and Associates, Inc. (KAI) C++ Compiler
10793
10794         # KCC will only create a shared library if the output file
10795         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10796         # to its proper name (with version) after linking.
10797         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'
10798
10799         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10800         hardcode_libdir_separator_CXX=:
10801
10802         # Archives containing C++ object files must be created using
10803         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10804         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10805
10806         ;;
10807       RCC)
10808         # Rational C++ 2.4.1
10809         # FIXME: insert proper C++ library support
10810         ld_shlibs_CXX=no
10811         ;;
10812       cxx)
10813         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10814         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'
10815
10816         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10817         hardcode_libdir_separator_CXX=:
10818
10819         # Commands to make compiler produce verbose output that lists
10820         # what "hidden" libraries, object files and flags are used when
10821         # linking a shared library.
10822         #
10823         # There doesn't appear to be a way to prevent this compiler from
10824         # explicitly linking system object files so we need to strip them
10825         # from the output so that they don't get included in the library
10826         # dependencies.
10827         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'
10828         ;;
10829       *)
10830         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10831           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10832           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'
10833
10834           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10835           hardcode_libdir_separator_CXX=:
10836
10837           # Commands to make compiler produce verbose output that lists
10838           # what "hidden" libraries, object files and flags are used when
10839           # linking a shared library.
10840           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10841
10842         else
10843           # FIXME: insert proper C++ library support
10844           ld_shlibs_CXX=no
10845         fi
10846         ;;
10847     esac
10848     ;;
10849   osf4* | osf5*)
10850     case $cc_basename in
10851       KCC)
10852         # Kuck and Associates, Inc. (KAI) C++ Compiler
10853
10854         # KCC will only create a shared library if the output file
10855         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10856         # to its proper name (with version) after linking.
10857         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'
10858
10859         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10860         hardcode_libdir_separator_CXX=:
10861
10862         # Archives containing C++ object files must be created using
10863         # the KAI C++ compiler.
10864         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10865         ;;
10866       RCC)
10867         # Rational C++ 2.4.1
10868         # FIXME: insert proper C++ library support
10869         ld_shlibs_CXX=no
10870         ;;
10871       cxx)
10872         allow_undefined_flag_CXX=' -expect_unresolved \*'
10873         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'
10874         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10875           echo "-hidden">> $lib.exp~
10876           $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~
10877           $rm $lib.exp'
10878
10879         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10880         hardcode_libdir_separator_CXX=:
10881
10882         # Commands to make compiler produce verbose output that lists
10883         # what "hidden" libraries, object files and flags are used when
10884         # linking a shared library.
10885         #
10886         # There doesn't appear to be a way to prevent this compiler from
10887         # explicitly linking system object files so we need to strip them
10888         # from the output so that they don't get included in the library
10889         # dependencies.
10890         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'
10891         ;;
10892       *)
10893         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10894           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10895          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'
10896
10897           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10898           hardcode_libdir_separator_CXX=:
10899
10900           # Commands to make compiler produce verbose output that lists
10901           # what "hidden" libraries, object files and flags are used when
10902           # linking a shared library.
10903           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10904
10905         else
10906           # FIXME: insert proper C++ library support
10907           ld_shlibs_CXX=no
10908         fi
10909         ;;
10910     esac
10911     ;;
10912   psos*)
10913     # FIXME: insert proper C++ library support
10914     ld_shlibs_CXX=no
10915     ;;
10916   sco*)
10917     archive_cmds_need_lc_CXX=no
10918     case $cc_basename in
10919       CC)
10920         # FIXME: insert proper C++ library support
10921         ld_shlibs_CXX=no
10922         ;;
10923       *)
10924         # FIXME: insert proper C++ library support
10925         ld_shlibs_CXX=no
10926         ;;
10927     esac
10928     ;;
10929   sunos4*)
10930     case $cc_basename in
10931       CC)
10932         # Sun C++ 4.x
10933         # FIXME: insert proper C++ library support
10934         ld_shlibs_CXX=no
10935         ;;
10936       lcc)
10937         # Lucid
10938         # FIXME: insert proper C++ library support
10939         ld_shlibs_CXX=no
10940         ;;
10941       *)
10942         # FIXME: insert proper C++ library support
10943         ld_shlibs_CXX=no
10944         ;;
10945     esac
10946     ;;
10947   solaris*)
10948     case $cc_basename in
10949       CC)
10950         # Sun C++ 4.2, 5.x and Centerline C++
10951         no_undefined_flag_CXX=' -zdefs'
10952         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10953         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10954         $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'
10955
10956         hardcode_libdir_flag_spec_CXX='-R$libdir'
10957         hardcode_shlibpath_var_CXX=no
10958         case $host_os in
10959           solaris2.0-5 | solaris2.0-5.*) ;;
10960           *)
10961             # The C++ compiler is used as linker so we must use $wl
10962             # flag to pass the commands to the underlying system
10963             # linker.
10964             # Supported since Solaris 2.6 (maybe 2.5.1?)
10965             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10966             ;;
10967         esac
10968         link_all_deplibs_CXX=yes
10969
10970         # Commands to make compiler produce verbose output that lists
10971         # what "hidden" libraries, object files and flags are used when
10972         # linking a shared library.
10973         #
10974         # There doesn't appear to be a way to prevent this compiler from
10975         # explicitly linking system object files so we need to strip them
10976         # from the output so that they don't get included in the library
10977         # dependencies.
10978         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'
10979
10980         # Archives containing C++ object files must be created using
10981         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10982         # necessary to make sure instantiated templates are included
10983         # in the archive.
10984         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10985         ;;
10986       gcx)
10987         # Green Hills C++ Compiler
10988         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10989
10990         # The C++ compiler must be used to create the archive.
10991         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10992         ;;
10993       *)
10994         # GNU C++ compiler with Solaris linker
10995         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10996           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10997           if $CC --version | grep -v '^2\.7' > /dev/null; then
10998             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10999             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11000                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11001
11002             # Commands to make compiler produce verbose output that lists
11003             # what "hidden" libraries, object files and flags are used when
11004             # linking a shared library.
11005             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11006           else
11007             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11008             # platform.
11009             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11010             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11011                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11012
11013             # Commands to make compiler produce verbose output that lists
11014             # what "hidden" libraries, object files and flags are used when
11015             # linking a shared library.
11016             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11017           fi
11018
11019           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11020         fi
11021         ;;
11022     esac
11023     ;;
11024   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11025     archive_cmds_need_lc_CXX=no
11026     ;;
11027   tandem*)
11028     case $cc_basename in
11029       NCC)
11030         # NonStop-UX NCC 3.20
11031         # FIXME: insert proper C++ library support
11032         ld_shlibs_CXX=no
11033         ;;
11034       *)
11035         # FIXME: insert proper C++ library support
11036         ld_shlibs_CXX=no
11037         ;;
11038     esac
11039     ;;
11040   vxworks*)
11041     # FIXME: insert proper C++ library support
11042     ld_shlibs_CXX=no
11043     ;;
11044   *)
11045     # FIXME: insert proper C++ library support
11046     ld_shlibs_CXX=no
11047     ;;
11048 esac
11049 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11050 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11051 test "$ld_shlibs_CXX" = no && can_build_shared=no
11052
11053 GCC_CXX="$GXX"
11054 LD_CXX="$LD"
11055
11056 ## CAVEAT EMPTOR:
11057 ## There is no encapsulation within the following macros, do not change
11058 ## the running order or otherwise move them around unless you know exactly
11059 ## what you are doing...
11060
11061 cat > conftest.$ac_ext <<EOF
11062 class Foo
11063 {
11064 public:
11065   Foo (void) { a = 0; }
11066 private:
11067   int a;
11068 };
11069 EOF
11070
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072   (eval $ac_compile) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; then
11076   # Parse the compiler output and extract the necessary
11077   # objects, libraries and library flags.
11078
11079   # Sentinel used to keep track of whether or not we are before
11080   # the conftest object file.
11081   pre_test_object_deps_done=no
11082
11083   # The `*' in the case matches for architectures that use `case' in
11084   # $output_verbose_cmd can trigger glob expansion during the loop
11085   # eval without this substitution.
11086   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11087
11088   for p in `eval $output_verbose_link_cmd`; do
11089     case $p in
11090
11091     -L* | -R* | -l*)
11092        # Some compilers place space between "-{L,R}" and the path.
11093        # Remove the space.
11094        if test $p = "-L" \
11095           || test $p = "-R"; then
11096          prev=$p
11097          continue
11098        else
11099          prev=
11100        fi
11101
11102        if test "$pre_test_object_deps_done" = no; then
11103          case $p in
11104          -L* | -R*)
11105            # Internal compiler library paths should come after those
11106            # provided the user.  The postdeps already come after the
11107            # user supplied libs so there is no need to process them.
11108            if test -z "$compiler_lib_search_path_CXX"; then
11109              compiler_lib_search_path_CXX="${prev}${p}"
11110            else
11111              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11112            fi
11113            ;;
11114          # The "-l" case would never come before the object being
11115          # linked, so don't bother handling this case.
11116          esac
11117        else
11118          if test -z "$postdeps_CXX"; then
11119            postdeps_CXX="${prev}${p}"
11120          else
11121            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11122          fi
11123        fi
11124        ;;
11125
11126     *.$objext)
11127        # This assumes that the test object file only shows up
11128        # once in the compiler output.
11129        if test "$p" = "conftest.$objext"; then
11130          pre_test_object_deps_done=yes
11131          continue
11132        fi
11133
11134        if test "$pre_test_object_deps_done" = no; then
11135          if test -z "$predep_objects_CXX"; then
11136            predep_objects_CXX="$p"
11137          else
11138            predep_objects_CXX="$predep_objects_CXX $p"
11139          fi
11140        else
11141          if test -z "$postdep_objects_CXX"; then
11142            postdep_objects_CXX="$p"
11143          else
11144            postdep_objects_CXX="$postdep_objects_CXX $p"
11145          fi
11146        fi
11147        ;;
11148
11149     *) ;; # Ignore the rest.
11150
11151     esac
11152   done
11153
11154   # Clean up.
11155   rm -f a.out a.exe
11156 else
11157   echo "libtool.m4: error: problem compiling CXX test program"
11158 fi
11159
11160 $rm -f confest.$objext
11161
11162 case " $postdeps_CXX " in
11163 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11164 esac
11165
11166 lt_prog_compiler_wl_CXX=
11167 lt_prog_compiler_pic_CXX=
11168 lt_prog_compiler_static_CXX=
11169
11170 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11171 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11172
11173   # C++ specific cases for pic, static, wl, etc.
11174   if test "$GXX" = yes; then
11175     lt_prog_compiler_wl_CXX='-Wl,'
11176     lt_prog_compiler_static_CXX='-static'
11177
11178     case $host_os in
11179     aix*)
11180       # All AIX code is PIC.
11181       if test "$host_cpu" = ia64; then
11182         # AIX 5 now supports IA64 processor
11183         lt_prog_compiler_static_CXX='-Bstatic'
11184       fi
11185       ;;
11186     amigaos*)
11187       # FIXME: we need at least 68020 code to build shared libraries, but
11188       # adding the `-m68020' flag to GCC prevents building anything better,
11189       # like `-m68040'.
11190       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11191       ;;
11192     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11193       # PIC is the default for these OSes.
11194       ;;
11195     mingw* | os2* | pw32*)
11196       # This hack is so that the source file can tell whether it is being
11197       # built for inclusion in a dll (and should export symbols for example).
11198       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11199       ;;
11200     darwin* | rhapsody*)
11201       # PIC is the default on this platform
11202       # Common symbols not allowed in MH_DYLIB files
11203       lt_prog_compiler_pic_CXX='-fno-common'
11204       ;;
11205     *djgpp*)
11206       # DJGPP does not support shared libraries at all
11207       lt_prog_compiler_pic_CXX=
11208       ;;
11209     sysv4*MP*)
11210       if test -d /usr/nec; then
11211         lt_prog_compiler_pic_CXX=-Kconform_pic
11212       fi
11213       ;;
11214     hpux*)
11215       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11216       # not for PA HP-UX.
11217       case "$host_cpu" in
11218       hppa*64*|ia64*)
11219         ;;
11220       *)
11221         lt_prog_compiler_pic_CXX='-fPIC'
11222         ;;
11223       esac
11224       ;;
11225     *)
11226       lt_prog_compiler_pic_CXX='-fPIC'
11227       ;;
11228     esac
11229   else
11230     case $host_os in
11231       aix4* | aix5*)
11232         # All AIX code is PIC.
11233         if test "$host_cpu" = ia64; then
11234           # AIX 5 now supports IA64 processor
11235           lt_prog_compiler_static_CXX='-Bstatic'
11236         else
11237           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11238         fi
11239         ;;
11240       chorus*)
11241         case $cc_basename in
11242         cxch68)
11243           # Green Hills C++ Compiler
11244           # _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"
11245           ;;
11246         esac
11247         ;;
11248       dgux*)
11249         case $cc_basename in
11250           ec++)
11251             lt_prog_compiler_pic_CXX='-KPIC'
11252             ;;
11253           ghcx)
11254             # Green Hills C++ Compiler
11255             lt_prog_compiler_pic_CXX='-pic'
11256             ;;
11257           *)
11258             ;;
11259         esac
11260         ;;
11261       freebsd* | kfreebsd*-gnu)
11262         # FreeBSD uses GNU C++
11263         ;;
11264       hpux9* | hpux10* | hpux11*)
11265         case $cc_basename in
11266           CC)
11267             lt_prog_compiler_wl_CXX='-Wl,'
11268             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11269             if test "$host_cpu" != ia64; then
11270               lt_prog_compiler_pic_CXX='+Z'
11271             fi
11272             ;;
11273           aCC)
11274             lt_prog_compiler_wl_CXX='-Wl,'
11275             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11276             case "$host_cpu" in
11277             hppa*64*|ia64*)
11278               # +Z the default
11279               ;;
11280             *)
11281               lt_prog_compiler_pic_CXX='+Z'
11282               ;;
11283             esac
11284             ;;
11285           *)
11286             ;;
11287         esac
11288         ;;
11289       irix5* | irix6* | nonstopux*)
11290         case $cc_basename in
11291           CC)
11292             lt_prog_compiler_wl_CXX='-Wl,'
11293             lt_prog_compiler_static_CXX='-non_shared'
11294             # CC pic flag -KPIC is the default.
11295             ;;
11296           *)
11297             ;;
11298         esac
11299         ;;
11300       linux*)
11301         case $cc_basename in
11302           KCC)
11303             # KAI C++ Compiler
11304             lt_prog_compiler_wl_CXX='--backend -Wl,'
11305             lt_prog_compiler_pic_CXX='-fPIC'
11306             ;;
11307           icpc)
11308             # Intel C++
11309             lt_prog_compiler_wl_CXX='-Wl,'
11310             lt_prog_compiler_pic_CXX='-KPIC'
11311             lt_prog_compiler_static_CXX='-static'
11312             ;;
11313           cxx)
11314             # Compaq C++
11315             # Make sure the PIC flag is empty.  It appears that all Alpha
11316             # Linux and Compaq Tru64 Unix objects are PIC.
11317             lt_prog_compiler_pic_CXX=
11318             lt_prog_compiler_static_CXX='-non_shared'
11319             ;;
11320           *)
11321             ;;
11322         esac
11323         ;;
11324       lynxos*)
11325         ;;
11326       m88k*)
11327         ;;
11328       mvs*)
11329         case $cc_basename in
11330           cxx)
11331             lt_prog_compiler_pic_CXX='-W c,exportall'
11332             ;;
11333           *)
11334             ;;
11335         esac
11336         ;;
11337       netbsd*)
11338         ;;
11339       osf3* | osf4* | osf5*)
11340         case $cc_basename in
11341           KCC)
11342             lt_prog_compiler_wl_CXX='--backend -Wl,'
11343             ;;
11344           RCC)
11345             # Rational C++ 2.4.1
11346             lt_prog_compiler_pic_CXX='-pic'
11347             ;;
11348           cxx)
11349             # Digital/Compaq C++
11350             lt_prog_compiler_wl_CXX='-Wl,'
11351             # Make sure the PIC flag is empty.  It appears that all Alpha
11352             # Linux and Compaq Tru64 Unix objects are PIC.
11353             lt_prog_compiler_pic_CXX=
11354             lt_prog_compiler_static_CXX='-non_shared'
11355             ;;
11356           *)
11357             ;;
11358         esac
11359         ;;
11360       psos*)
11361         ;;
11362       sco*)
11363         case $cc_basename in
11364           CC)
11365             lt_prog_compiler_pic_CXX='-fPIC'
11366             ;;
11367           *)
11368             ;;
11369         esac
11370         ;;
11371       solaris*)
11372         case $cc_basename in
11373           CC)
11374             # Sun C++ 4.2, 5.x and Centerline C++
11375             lt_prog_compiler_pic_CXX='-KPIC'
11376             lt_prog_compiler_static_CXX='-Bstatic'
11377             lt_prog_compiler_wl_CXX='-Qoption ld '
11378             ;;
11379           gcx)
11380             # Green Hills C++ Compiler
11381             lt_prog_compiler_pic_CXX='-PIC'
11382             ;;
11383           *)
11384             ;;
11385         esac
11386         ;;
11387       sunos4*)
11388         case $cc_basename in
11389           CC)
11390             # Sun C++ 4.x
11391             lt_prog_compiler_pic_CXX='-pic'
11392             lt_prog_compiler_static_CXX='-Bstatic'
11393             ;;
11394           lcc)
11395             # Lucid
11396             lt_prog_compiler_pic_CXX='-pic'
11397             ;;
11398           *)
11399             ;;
11400         esac
11401         ;;
11402       tandem*)
11403         case $cc_basename in
11404           NCC)
11405             # NonStop-UX NCC 3.20
11406             lt_prog_compiler_pic_CXX='-KPIC'
11407             ;;
11408           *)
11409             ;;
11410         esac
11411         ;;
11412       unixware*)
11413         ;;
11414       vxworks*)
11415         ;;
11416       *)
11417         lt_prog_compiler_can_build_shared_CXX=no
11418         ;;
11419     esac
11420   fi
11421
11422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11423 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11424
11425 #
11426 # Check to make sure the PIC flag actually works.
11427 #
11428 if test -n "$lt_prog_compiler_pic_CXX"; then
11429
11430 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11431 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11432 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11433   echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435   lt_prog_compiler_pic_works_CXX=no
11436   ac_outfile=conftest.$ac_objext
11437    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11438    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11439    # Insert the option either (1) after the last *FLAGS variable, or
11440    # (2) before a word containing "conftest.", or (3) at the end.
11441    # Note that $ac_compile itself does not contain backslashes and begins
11442    # with a dollar sign (not a hyphen), so the echo should work correctly.
11443    # The option is referenced via a variable to avoid confusing sed.
11444    lt_compile=`echo "$ac_compile" | $SED \
11445    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11447    -e 's:$: $lt_compiler_flag:'`
11448    (eval echo "\"\$as_me:11448: $lt_compile\"" >&5)
11449    (eval "$lt_compile" 2>conftest.err)
11450    ac_status=$?
11451    cat conftest.err >&5
11452    echo "$as_me:11452: \$? = $ac_status" >&5
11453    if (exit $ac_status) && test -s "$ac_outfile"; then
11454      # The compiler can only warn and ignore the option if not recognized
11455      # So say no if there are warnings
11456      if test ! -s conftest.err; then
11457        lt_prog_compiler_pic_works_CXX=yes
11458      fi
11459    fi
11460    $rm conftest*
11461
11462 fi
11463 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11464 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11465
11466 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11467     case $lt_prog_compiler_pic_CXX in
11468      "" | " "*) ;;
11469      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11470      esac
11471 else
11472     lt_prog_compiler_pic_CXX=
11473      lt_prog_compiler_can_build_shared_CXX=no
11474 fi
11475
11476 fi
11477 case "$host_os" in
11478   # For platforms which do not support PIC, -DPIC is meaningless:
11479   *djgpp*)
11480     lt_prog_compiler_pic_CXX=
11481     ;;
11482   *)
11483     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11484     ;;
11485 esac
11486
11487 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11488 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11489 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   lt_cv_prog_compiler_c_o_CXX=no
11493    $rm -r conftest 2>/dev/null
11494    mkdir conftest
11495    cd conftest
11496    mkdir out
11497    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11498
11499    lt_compiler_flag="-o out/conftest2.$ac_objext"
11500    # Insert the option either (1) after the last *FLAGS variable, or
11501    # (2) before a word containing "conftest.", or (3) at the end.
11502    # Note that $ac_compile itself does not contain backslashes and begins
11503    # with a dollar sign (not a hyphen), so the echo should work correctly.
11504    lt_compile=`echo "$ac_compile" | $SED \
11505    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11507    -e 's:$: $lt_compiler_flag:'`
11508    (eval echo "\"\$as_me:11508: $lt_compile\"" >&5)
11509    (eval "$lt_compile" 2>out/conftest.err)
11510    ac_status=$?
11511    cat out/conftest.err >&5
11512    echo "$as_me:11512: \$? = $ac_status" >&5
11513    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11514    then
11515      # The compiler can only warn and ignore the option if not recognized
11516      # So say no if there are warnings
11517      if test ! -s out/conftest.err; then
11518        lt_cv_prog_compiler_c_o_CXX=yes
11519      fi
11520    fi
11521    chmod u+w .
11522    $rm conftest*
11523    # SGI C++ compiler will create directory out/ii_files/ for
11524    # template instantiation
11525    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11526    $rm out/* && rmdir out
11527    cd ..
11528    rmdir conftest
11529    $rm conftest*
11530
11531 fi
11532 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11533 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11534
11535
11536 hard_links="nottested"
11537 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11538   # do not overwrite the value of need_locks provided by the user
11539   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11540 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11541   hard_links=yes
11542   $rm conftest*
11543   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11544   touch conftest.a
11545   ln conftest.a conftest.b 2>&5 || hard_links=no
11546   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11547   { echo "$as_me:$LINENO: result: $hard_links" >&5
11548 echo "${ECHO_T}$hard_links" >&6; }
11549   if test "$hard_links" = no; then
11550     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11551 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11552     need_locks=warn
11553   fi
11554 else
11555   need_locks=no
11556 fi
11557
11558 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11559 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11560
11561   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11562   case $host_os in
11563   aix4* | aix5*)
11564     # If we're using GNU nm, then we don't want the "-C" option.
11565     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11566     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11567       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'
11568     else
11569       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'
11570     fi
11571     ;;
11572   pw32*)
11573     export_symbols_cmds_CXX="$ltdll_cmds"
11574   ;;
11575   cygwin* | mingw*)
11576     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11577   ;;
11578   *)
11579     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11580   ;;
11581   esac
11582
11583 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11584 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11585 test "$ld_shlibs_CXX" = no && can_build_shared=no
11586
11587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11588 if test "$GCC" = yes; then
11589   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11590 fi
11591
11592 #
11593 # Do we need to explicitly link libc?
11594 #
11595 case "x$archive_cmds_need_lc_CXX" in
11596 x|xyes)
11597   # Assume -lc should be added
11598   archive_cmds_need_lc_CXX=yes
11599
11600   if test "$enable_shared" = yes && test "$GCC" = yes; then
11601     case $archive_cmds_CXX in
11602     *'~'*)
11603       # FIXME: we may have to deal with multi-command sequences.
11604       ;;
11605     '$CC '*)
11606       # Test whether the compiler implicitly links with -lc since on some
11607       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11608       # to ld, don't add -lc before -lgcc.
11609       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11610 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11611       $rm conftest*
11612       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11613
11614       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615   (eval $ac_compile) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } 2>conftest.err; then
11619         soname=conftest
11620         lib=conftest
11621         libobjs=conftest.$ac_objext
11622         deplibs=
11623         wl=$lt_prog_compiler_wl_CXX
11624         compiler_flags=-v
11625         linker_flags=-v
11626         verstring=
11627         output_objdir=.
11628         libname=conftest
11629         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11630         allow_undefined_flag_CXX=
11631         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11632   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }
11636         then
11637           archive_cmds_need_lc_CXX=no
11638         else
11639           archive_cmds_need_lc_CXX=yes
11640         fi
11641         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11642       else
11643         cat conftest.err 1>&5
11644       fi
11645       $rm conftest*
11646       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11647 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11648       ;;
11649     esac
11650   fi
11651   ;;
11652 esac
11653
11654 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11655 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11656 library_names_spec=
11657 libname_spec='lib$name'
11658 soname_spec=
11659 shrext_cmds=".so"
11660 postinstall_cmds=
11661 postuninstall_cmds=
11662 finish_cmds=
11663 finish_eval=
11664 shlibpath_var=
11665 shlibpath_overrides_runpath=unknown
11666 version_type=none
11667 dynamic_linker="$host_os ld.so"
11668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11669 if test "$GCC" = yes; then
11670   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11671   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11672     # if the path contains ";" then we assume it to be the separator
11673     # otherwise default to the standard path separator (i.e. ":") - it is
11674     # assumed that no part of a normal pathname contains ";" but that should
11675     # okay in the real world where ";" in dirpaths is itself problematic.
11676     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11677   else
11678     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11679   fi
11680 else
11681   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11682 fi
11683 need_lib_prefix=unknown
11684 hardcode_into_libs=no
11685
11686 # when you set need_version to no, make sure it does not cause -set_version
11687 # flags to be left without arguments
11688 need_version=unknown
11689
11690 case $host_os in
11691 aix3*)
11692   version_type=linux
11693   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11694   shlibpath_var=LIBPATH
11695
11696   # AIX 3 has no versioning support, so we append a major version to the name.
11697   soname_spec='${libname}${release}${shared_ext}$major'
11698   ;;
11699
11700 aix4* | aix5*)
11701   version_type=linux
11702   need_lib_prefix=no
11703   need_version=no
11704   hardcode_into_libs=yes
11705   if test "$host_cpu" = ia64; then
11706     # AIX 5 supports IA64
11707     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11708     shlibpath_var=LD_LIBRARY_PATH
11709   else
11710     # With GCC up to 2.95.x, collect2 would create an import file
11711     # for dependence libraries.  The import file would start with
11712     # the line `#! .'.  This would cause the generated library to
11713     # depend on `.', always an invalid library.  This was fixed in
11714     # development snapshots of GCC prior to 3.0.
11715     case $host_os in
11716       aix4 | aix4.[01] | aix4.[01].*)
11717       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11718            echo ' yes '
11719            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11720         :
11721       else
11722         can_build_shared=no
11723       fi
11724       ;;
11725     esac
11726     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11727     # soname into executable. Probably we can add versioning support to
11728     # collect2, so additional links can be useful in future.
11729     if test "$aix_use_runtimelinking" = yes; then
11730       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11731       # instead of lib<name>.a to let people know that these are not
11732       # typical AIX shared libraries.
11733       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11734     else
11735       # We preserve .a as extension for shared libraries through AIX4.2
11736       # and later when we are not doing run time linking.
11737       library_names_spec='${libname}${release}.a $libname.a'
11738       soname_spec='${libname}${release}${shared_ext}$major'
11739     fi
11740     shlibpath_var=LIBPATH
11741   fi
11742   ;;
11743
11744 amigaos*)
11745   library_names_spec='$libname.ixlibrary $libname.a'
11746   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11747   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'
11748   ;;
11749
11750 beos*)
11751   library_names_spec='${libname}${shared_ext}'
11752   dynamic_linker="$host_os ld.so"
11753   shlibpath_var=LIBRARY_PATH
11754   ;;
11755
11756 bsdi4*)
11757   version_type=linux
11758   need_version=no
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11762   shlibpath_var=LD_LIBRARY_PATH
11763   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11764   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11765   # the default ld.so.conf also contains /usr/contrib/lib and
11766   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11767   # libtool to hard-code these into programs
11768   ;;
11769
11770 cygwin* | mingw* | pw32*)
11771   version_type=windows
11772   shrext_cmds=".dll"
11773   need_version=no
11774   need_lib_prefix=no
11775
11776   case $GCC,$host_os in
11777   yes,cygwin* | yes,mingw* | yes,pw32*)
11778     library_names_spec='$libname.dll.a'
11779     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11780     postinstall_cmds='base_file=`basename \${file}`~
11781       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11782       dldir=$destdir/`dirname \$dlpath`~
11783       test -d \$dldir || mkdir -p \$dldir~
11784       $install_prog $dir/$dlname \$dldir/$dlname'
11785     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11786       dlpath=$dir/\$dldll~
11787        $rm \$dlpath'
11788     shlibpath_overrides_runpath=yes
11789
11790     case $host_os in
11791     cygwin*)
11792       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11793       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11794       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11795       ;;
11796     mingw*)
11797       # MinGW DLLs use traditional 'lib' prefix
11798       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11799       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11800       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11801         # It is most probably a Windows format PATH printed by
11802         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11803         # path with ; separators, and with drive letters. We can handle the
11804         # drive letters (cygwin fileutils understands them), so leave them,
11805         # especially as we might pass files found there to a mingw objdump,
11806         # which wouldn't understand a cygwinified path. Ahh.
11807         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11808       else
11809         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11810       fi
11811       ;;
11812     pw32*)
11813       # pw32 DLLs use 'pw' prefix rather than 'lib'
11814       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11815       ;;
11816     esac
11817     ;;
11818
11819   *)
11820     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11821     ;;
11822   esac
11823   dynamic_linker='Win32 ld.exe'
11824   # FIXME: first we should search . and the directory the executable is in
11825   shlibpath_var=PATH
11826   ;;
11827
11828 darwin* | rhapsody*)
11829   dynamic_linker="$host_os dyld"
11830   version_type=darwin
11831   need_lib_prefix=no
11832   need_version=no
11833   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11834   soname_spec='${libname}${release}${major}$shared_ext'
11835   shlibpath_overrides_runpath=yes
11836   shlibpath_var=DYLD_LIBRARY_PATH
11837   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11838   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11839   if test "$GCC" = yes; then
11840     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"`
11841   else
11842     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11843   fi
11844   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11845   ;;
11846
11847 dgux*)
11848   version_type=linux
11849   need_lib_prefix=no
11850   need_version=no
11851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11852   soname_spec='${libname}${release}${shared_ext}$major'
11853   shlibpath_var=LD_LIBRARY_PATH
11854   ;;
11855
11856 freebsd1*)
11857   dynamic_linker=no
11858   ;;
11859
11860 kfreebsd*-gnu)
11861   version_type=linux
11862   need_lib_prefix=no
11863   need_version=no
11864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11865   soname_spec='${libname}${release}${shared_ext}$major'
11866   shlibpath_var=LD_LIBRARY_PATH
11867   shlibpath_overrides_runpath=no
11868   hardcode_into_libs=yes
11869   dynamic_linker='GNU ld.so'
11870   ;;
11871
11872 freebsd*)
11873   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11874   version_type=freebsd-$objformat
11875   case $version_type in
11876     freebsd-elf*)
11877       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11878       need_version=no
11879       need_lib_prefix=no
11880       ;;
11881     freebsd-*)
11882       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11883       need_version=yes
11884       ;;
11885   esac
11886   shlibpath_var=LD_LIBRARY_PATH
11887   case $host_os in
11888   freebsd2*)
11889     shlibpath_overrides_runpath=yes
11890     ;;
11891   freebsd3.01* | freebsdelf3.01*)
11892     shlibpath_overrides_runpath=yes
11893     hardcode_into_libs=yes
11894     ;;
11895   *) # from 3.2 on
11896     shlibpath_overrides_runpath=no
11897     hardcode_into_libs=yes
11898     ;;
11899   esac
11900   ;;
11901
11902 gnu*)
11903   version_type=linux
11904   need_lib_prefix=no
11905   need_version=no
11906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11907   soname_spec='${libname}${release}${shared_ext}$major'
11908   shlibpath_var=LD_LIBRARY_PATH
11909   hardcode_into_libs=yes
11910   ;;
11911
11912 hpux9* | hpux10* | hpux11*)
11913   # Give a soname corresponding to the major version so that dld.sl refuses to
11914   # link against other versions.
11915   version_type=sunos
11916   need_lib_prefix=no
11917   need_version=no
11918   case "$host_cpu" in
11919   ia64*)
11920     shrext_cmds='.so'
11921     hardcode_into_libs=yes
11922     dynamic_linker="$host_os dld.so"
11923     shlibpath_var=LD_LIBRARY_PATH
11924     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11926     soname_spec='${libname}${release}${shared_ext}$major'
11927     if test "X$HPUX_IA64_MODE" = X32; then
11928       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11929     else
11930       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11931     fi
11932     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11933     ;;
11934    hppa*64*)
11935      shrext_cmds='.sl'
11936      hardcode_into_libs=yes
11937      dynamic_linker="$host_os dld.sl"
11938      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11939      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11940      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941      soname_spec='${libname}${release}${shared_ext}$major'
11942      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11943      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11944      ;;
11945    *)
11946     shrext_cmds='.sl'
11947     dynamic_linker="$host_os dld.sl"
11948     shlibpath_var=SHLIB_PATH
11949     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951     soname_spec='${libname}${release}${shared_ext}$major'
11952     ;;
11953   esac
11954   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11955   postinstall_cmds='chmod 555 $lib'
11956   ;;
11957
11958 irix5* | irix6* | nonstopux*)
11959   case $host_os in
11960     nonstopux*) version_type=nonstopux ;;
11961     *)
11962         if test "$lt_cv_prog_gnu_ld" = yes; then
11963                 version_type=linux
11964         else
11965                 version_type=irix
11966         fi ;;
11967   esac
11968   need_lib_prefix=no
11969   need_version=no
11970   soname_spec='${libname}${release}${shared_ext}$major'
11971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11972   case $host_os in
11973   irix5* | nonstopux*)
11974     libsuff= shlibsuff=
11975     ;;
11976   *)
11977     case $LD in # libtool.m4 will add one of these switches to LD
11978     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11979       libsuff= shlibsuff= libmagic=32-bit;;
11980     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11981       libsuff=32 shlibsuff=N32 libmagic=N32;;
11982     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11983       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11984     *) libsuff= shlibsuff= libmagic=never-match;;
11985     esac
11986     ;;
11987   esac
11988   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11989   shlibpath_overrides_runpath=no
11990   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11991   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11992   hardcode_into_libs=yes
11993   ;;
11994
11995 # No shared lib support for Linux oldld, aout, or coff.
11996 linux*oldld* | linux*aout* | linux*coff*)
11997   dynamic_linker=no
11998   ;;
11999
12000 # This must be Linux ELF.
12001 linux*)
12002   version_type=linux
12003   need_lib_prefix=no
12004   need_version=no
12005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006   soname_spec='${libname}${release}${shared_ext}$major'
12007   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12008   shlibpath_var=LD_LIBRARY_PATH
12009   shlibpath_overrides_runpath=no
12010   # This implies no fast_install, which is unacceptable.
12011   # Some rework will be needed to allow for fast_install
12012   # before this can be enabled.
12013   hardcode_into_libs=yes
12014
12015   # find out which ABI we are using
12016   libsuff=
12017   case "$host_cpu" in
12018   x86_64*|s390x*|powerpc64*)
12019     echo '#line 12019 "configure"' > conftest.$ac_ext
12020     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021   (eval $ac_compile) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; then
12025       case `/usr/bin/file conftest.$ac_objext` in
12026       *64-bit*)
12027         libsuff=64
12028         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12029         ;;
12030       esac
12031     fi
12032     rm -rf conftest*
12033     ;;
12034   esac
12035
12036   # Append ld.so.conf contents to the search path
12037   if test -f /etc/ld.so.conf; then
12038     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12039     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12040   fi
12041
12042   # We used to test for /lib/ld.so.1 and disable shared libraries on
12043   # powerpc, because MkLinux only supported shared libraries with the
12044   # GNU dynamic linker.  Since this was broken with cross compilers,
12045   # most powerpc-linux boxes support dynamic linking these days and
12046   # people can always --disable-shared, the test was removed, and we
12047   # assume the GNU/Linux dynamic linker is in use.
12048   dynamic_linker='GNU/Linux ld.so'
12049   ;;
12050
12051 knetbsd*-gnu)
12052   version_type=linux
12053   need_lib_prefix=no
12054   need_version=no
12055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12056   soname_spec='${libname}${release}${shared_ext}$major'
12057   shlibpath_var=LD_LIBRARY_PATH
12058   shlibpath_overrides_runpath=no
12059   hardcode_into_libs=yes
12060   dynamic_linker='GNU ld.so'
12061   ;;
12062
12063 netbsd*)
12064   version_type=sunos
12065   need_lib_prefix=no
12066   need_version=no
12067   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12069     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12070     dynamic_linker='NetBSD (a.out) ld.so'
12071   else
12072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12073     soname_spec='${libname}${release}${shared_ext}$major'
12074     dynamic_linker='NetBSD ld.elf_so'
12075   fi
12076   shlibpath_var=LD_LIBRARY_PATH
12077   shlibpath_overrides_runpath=yes
12078   hardcode_into_libs=yes
12079   ;;
12080
12081 newsos6)
12082   version_type=linux
12083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12084   shlibpath_var=LD_LIBRARY_PATH
12085   shlibpath_overrides_runpath=yes
12086   ;;
12087
12088 nto-qnx*)
12089   version_type=linux
12090   need_lib_prefix=no
12091   need_version=no
12092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093   soname_spec='${libname}${release}${shared_ext}$major'
12094   shlibpath_var=LD_LIBRARY_PATH
12095   shlibpath_overrides_runpath=yes
12096   ;;
12097
12098 openbsd*)
12099   version_type=sunos
12100   need_lib_prefix=no
12101   need_version=yes
12102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12103   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12104   shlibpath_var=LD_LIBRARY_PATH
12105   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12106     case $host_os in
12107       openbsd2.[89] | openbsd2.[89].*)
12108         shlibpath_overrides_runpath=no
12109         ;;
12110       *)
12111         shlibpath_overrides_runpath=yes
12112         ;;
12113       esac
12114   else
12115     shlibpath_overrides_runpath=yes
12116   fi
12117   ;;
12118
12119 os2*)
12120   libname_spec='$name'
12121   shrext_cmds=".dll"
12122   need_lib_prefix=no
12123   library_names_spec='$libname${shared_ext} $libname.a'
12124   dynamic_linker='OS/2 ld.exe'
12125   shlibpath_var=LIBPATH
12126   ;;
12127
12128 osf3* | osf4* | osf5*)
12129   version_type=osf
12130   need_lib_prefix=no
12131   need_version=no
12132   soname_spec='${libname}${release}${shared_ext}$major'
12133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134   shlibpath_var=LD_LIBRARY_PATH
12135   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12136   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12137   ;;
12138
12139 sco3.2v5*)
12140   version_type=osf
12141   soname_spec='${libname}${release}${shared_ext}$major'
12142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143   shlibpath_var=LD_LIBRARY_PATH
12144   ;;
12145
12146 solaris*)
12147   version_type=linux
12148   need_lib_prefix=no
12149   need_version=no
12150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151   soname_spec='${libname}${release}${shared_ext}$major'
12152   shlibpath_var=LD_LIBRARY_PATH
12153   shlibpath_overrides_runpath=yes
12154   hardcode_into_libs=yes
12155   # ldd complains unless libraries are executable
12156   postinstall_cmds='chmod +x $lib'
12157   ;;
12158
12159 sunos4*)
12160   version_type=sunos
12161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12162   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12163   shlibpath_var=LD_LIBRARY_PATH
12164   shlibpath_overrides_runpath=yes
12165   if test "$with_gnu_ld" = yes; then
12166     need_lib_prefix=no
12167   fi
12168   need_version=yes
12169   ;;
12170
12171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12172   version_type=linux
12173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174   soname_spec='${libname}${release}${shared_ext}$major'
12175   shlibpath_var=LD_LIBRARY_PATH
12176   case $host_vendor in
12177     sni)
12178       shlibpath_overrides_runpath=no
12179       need_lib_prefix=no
12180       export_dynamic_flag_spec='${wl}-Blargedynsym'
12181       runpath_var=LD_RUN_PATH
12182       ;;
12183     siemens)
12184       need_lib_prefix=no
12185       ;;
12186     motorola)
12187       need_lib_prefix=no
12188       need_version=no
12189       shlibpath_overrides_runpath=no
12190       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12191       ;;
12192   esac
12193   ;;
12194
12195 sysv4*MP*)
12196   if test -d /usr/nec ;then
12197     version_type=linux
12198     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12199     soname_spec='$libname${shared_ext}.$major'
12200     shlibpath_var=LD_LIBRARY_PATH
12201   fi
12202   ;;
12203
12204 uts4*)
12205   version_type=linux
12206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12207   soname_spec='${libname}${release}${shared_ext}$major'
12208   shlibpath_var=LD_LIBRARY_PATH
12209   ;;
12210
12211 *)
12212   dynamic_linker=no
12213   ;;
12214 esac
12215 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12216 echo "${ECHO_T}$dynamic_linker" >&6; }
12217 test "$dynamic_linker" = no && can_build_shared=no
12218
12219 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12221 hardcode_action_CXX=
12222 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12223    test -n "$runpath_var CXX" || \
12224    test "X$hardcode_automatic_CXX"="Xyes" ; then
12225
12226   # We can hardcode non-existant directories.
12227   if test "$hardcode_direct_CXX" != no &&
12228      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12229      # have to relink, otherwise we might link with an installed library
12230      # when we should be linking with a yet-to-be-installed one
12231      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12232      test "$hardcode_minus_L_CXX" != no; then
12233     # Linking always hardcodes the temporary library directory.
12234     hardcode_action_CXX=relink
12235   else
12236     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12237     hardcode_action_CXX=immediate
12238   fi
12239 else
12240   # We cannot hardcode anything, or else we can only hardcode existing
12241   # directories.
12242   hardcode_action_CXX=unsupported
12243 fi
12244 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12245 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12246
12247 if test "$hardcode_action_CXX" = relink; then
12248   # Fast installation is not supported
12249   enable_fast_install=no
12250 elif test "$shlibpath_overrides_runpath" = yes ||
12251      test "$enable_shared" = no; then
12252   # Fast installation is not necessary
12253   enable_fast_install=needless
12254 fi
12255
12256 striplib=
12257 old_striplib=
12258 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12259 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12260 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12261   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12262   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12263   { echo "$as_me:$LINENO: result: yes" >&5
12264 echo "${ECHO_T}yes" >&6; }
12265 else
12266 # FIXME - insert some real tests, host_os isn't really good enough
12267   case $host_os in
12268    darwin*)
12269        if test -n "$STRIP" ; then
12270          striplib="$STRIP -x"
12271          { echo "$as_me:$LINENO: result: yes" >&5
12272 echo "${ECHO_T}yes" >&6; }
12273        else
12274   { echo "$as_me:$LINENO: result: no" >&5
12275 echo "${ECHO_T}no" >&6; }
12276 fi
12277        ;;
12278    *)
12279   { echo "$as_me:$LINENO: result: no" >&5
12280 echo "${ECHO_T}no" >&6; }
12281     ;;
12282   esac
12283 fi
12284
12285 if test "x$enable_dlopen" != xyes; then
12286   enable_dlopen=unknown
12287   enable_dlopen_self=unknown
12288   enable_dlopen_self_static=unknown
12289 else
12290   lt_cv_dlopen=no
12291   lt_cv_dlopen_libs=
12292
12293   case $host_os in
12294   beos*)
12295     lt_cv_dlopen="load_add_on"
12296     lt_cv_dlopen_libs=
12297     lt_cv_dlopen_self=yes
12298     ;;
12299
12300   mingw* | pw32*)
12301     lt_cv_dlopen="LoadLibrary"
12302     lt_cv_dlopen_libs=
12303    ;;
12304
12305   cygwin*)
12306     lt_cv_dlopen="dlopen"
12307     lt_cv_dlopen_libs=
12308    ;;
12309
12310   darwin*)
12311   # if libdl is installed we need to link against it
12312     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12313 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-ldl  $LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h.  */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h.  */
12325
12326 /* Override any GCC internal prototype to avoid an error.
12327    Use char because int might match the return type of a GCC
12328    builtin and then its argument prototype would still apply.  */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 char dlopen ();
12333 int
12334 main ()
12335 {
12336 return dlopen ();
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_link") 2>conftest.er1
12349   ac_status=$?
12350   grep -v '^ *+' conftest.er1 >conftest.err
12351   rm -f conftest.er1
12352   cat conftest.err >&5
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } && {
12355          test -z "$ac_cxx_werror_flag" ||
12356          test ! -s conftest.err
12357        } && test -s conftest$ac_exeext &&
12358        $as_test_x conftest$ac_exeext; then
12359   ac_cv_lib_dl_dlopen=yes
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364         ac_cv_lib_dl_dlopen=no
12365 fi
12366
12367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12368       conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12370 fi
12371 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12373 if test $ac_cv_lib_dl_dlopen = yes; then
12374   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12375 else
12376
12377     lt_cv_dlopen="dyld"
12378     lt_cv_dlopen_libs=
12379     lt_cv_dlopen_self=yes
12380
12381 fi
12382
12383    ;;
12384
12385   *)
12386     { echo "$as_me:$LINENO: checking for shl_load" >&5
12387 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12388 if test "${ac_cv_func_shl_load+set}" = set; then
12389   echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391   cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h.  */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h.  */
12397 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12399 #define shl_load innocuous_shl_load
12400
12401 /* System header to define __stub macros and hopefully few prototypes,
12402     which can conflict with char shl_load (); below.
12403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404     <limits.h> exists even on freestanding compilers.  */
12405
12406 #ifdef __STDC__
12407 # include <limits.h>
12408 #else
12409 # include <assert.h>
12410 #endif
12411
12412 #undef shl_load
12413
12414 /* Override any GCC internal prototype to avoid an error.
12415    Use char because int might match the return type of a GCC
12416    builtin and then its argument prototype would still apply.  */
12417 #ifdef __cplusplus
12418 extern "C"
12419 #endif
12420 char shl_load ();
12421 /* The GNU C library defines this for functions which it implements
12422     to always fail with ENOSYS.  Some functions are actually named
12423     something starting with __ and the normal name is an alias.  */
12424 #if defined __stub_shl_load || defined __stub___shl_load
12425 choke me
12426 #endif
12427
12428 int
12429 main ()
12430 {
12431 return shl_load ();
12432   ;
12433   return 0;
12434 }
12435 _ACEOF
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (ac_try="$ac_link"
12438 case "(($ac_try" in
12439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440   *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443   (eval "$ac_link") 2>conftest.er1
12444   ac_status=$?
12445   grep -v '^ *+' conftest.er1 >conftest.err
12446   rm -f conftest.er1
12447   cat conftest.err >&5
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); } && {
12450          test -z "$ac_cxx_werror_flag" ||
12451          test ! -s conftest.err
12452        } && test -s conftest$ac_exeext &&
12453        $as_test_x conftest$ac_exeext; then
12454   ac_cv_func_shl_load=yes
12455 else
12456   echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459         ac_cv_func_shl_load=no
12460 fi
12461
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12463       conftest$ac_exeext conftest.$ac_ext
12464 fi
12465 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12466 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12467 if test $ac_cv_func_shl_load = yes; then
12468   lt_cv_dlopen="shl_load"
12469 else
12470   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12471 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12472 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-ldld  $LIBS"
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485    Use char because int might match the return type of a GCC
12486    builtin and then its argument prototype would still apply.  */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char shl_load ();
12491 int
12492 main ()
12493 {
12494 return shl_load ();
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (ac_try="$ac_link"
12501 case "(($ac_try" in
12502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503   *) ac_try_echo=$ac_try;;
12504 esac
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506   (eval "$ac_link") 2>conftest.er1
12507   ac_status=$?
12508   grep -v '^ *+' conftest.er1 >conftest.err
12509   rm -f conftest.er1
12510   cat conftest.err >&5
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); } && {
12513          test -z "$ac_cxx_werror_flag" ||
12514          test ! -s conftest.err
12515        } && test -s conftest$ac_exeext &&
12516        $as_test_x conftest$ac_exeext; then
12517   ac_cv_lib_dld_shl_load=yes
12518 else
12519   echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522         ac_cv_lib_dld_shl_load=no
12523 fi
12524
12525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12526       conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12528 fi
12529 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12530 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12531 if test $ac_cv_lib_dld_shl_load = yes; then
12532   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12533 else
12534   { echo "$as_me:$LINENO: checking for dlopen" >&5
12535 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12536 if test "${ac_cv_func_dlopen+set}" = set; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12547 #define dlopen innocuous_dlopen
12548
12549 /* System header to define __stub macros and hopefully few prototypes,
12550     which can conflict with char dlopen (); below.
12551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12552     <limits.h> exists even on freestanding compilers.  */
12553
12554 #ifdef __STDC__
12555 # include <limits.h>
12556 #else
12557 # include <assert.h>
12558 #endif
12559
12560 #undef dlopen
12561
12562 /* Override any GCC internal prototype to avoid an error.
12563    Use char because int might match the return type of a GCC
12564    builtin and then its argument prototype would still apply.  */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 char dlopen ();
12569 /* The GNU C library defines this for functions which it implements
12570     to always fail with ENOSYS.  Some functions are actually named
12571     something starting with __ and the normal name is an alias.  */
12572 #if defined __stub_dlopen || defined __stub___dlopen
12573 choke me
12574 #endif
12575
12576 int
12577 main ()
12578 {
12579 return dlopen ();
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (ac_try="$ac_link"
12586 case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_link") 2>conftest.er1
12592   ac_status=$?
12593   grep -v '^ *+' conftest.er1 >conftest.err
12594   rm -f conftest.er1
12595   cat conftest.err >&5
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); } && {
12598          test -z "$ac_cxx_werror_flag" ||
12599          test ! -s conftest.err
12600        } && test -s conftest$ac_exeext &&
12601        $as_test_x conftest$ac_exeext; then
12602   ac_cv_func_dlopen=yes
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12606
12607         ac_cv_func_dlopen=no
12608 fi
12609
12610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12611       conftest$ac_exeext conftest.$ac_ext
12612 fi
12613 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12615 if test $ac_cv_func_dlopen = yes; then
12616   lt_cv_dlopen="dlopen"
12617 else
12618   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12621   echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623   ac_check_lib_save_LIBS=$LIBS
12624 LIBS="-ldl  $LIBS"
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h.  */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h.  */
12631
12632 /* Override any GCC internal prototype to avoid an error.
12633    Use char because int might match the return type of a GCC
12634    builtin and then its argument prototype would still apply.  */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 char dlopen ();
12639 int
12640 main ()
12641 {
12642 return dlopen ();
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (ac_try="$ac_link"
12649 case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654   (eval "$ac_link") 2>conftest.er1
12655   ac_status=$?
12656   grep -v '^ *+' conftest.er1 >conftest.err
12657   rm -f conftest.er1
12658   cat conftest.err >&5
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } && {
12661          test -z "$ac_cxx_werror_flag" ||
12662          test ! -s conftest.err
12663        } && test -s conftest$ac_exeext &&
12664        $as_test_x conftest$ac_exeext; then
12665   ac_cv_lib_dl_dlopen=yes
12666 else
12667   echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670         ac_cv_lib_dl_dlopen=no
12671 fi
12672
12673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12674       conftest$ac_exeext conftest.$ac_ext
12675 LIBS=$ac_check_lib_save_LIBS
12676 fi
12677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12679 if test $ac_cv_lib_dl_dlopen = yes; then
12680   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12681 else
12682   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12683 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12684 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   ac_check_lib_save_LIBS=$LIBS
12688 LIBS="-lsvld  $LIBS"
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695
12696 /* Override any GCC internal prototype to avoid an error.
12697    Use char because int might match the return type of a GCC
12698    builtin and then its argument prototype would still apply.  */
12699 #ifdef __cplusplus
12700 extern "C"
12701 #endif
12702 char dlopen ();
12703 int
12704 main ()
12705 {
12706 return dlopen ();
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (ac_try="$ac_link"
12713 case "(($ac_try" in
12714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715   *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718   (eval "$ac_link") 2>conftest.er1
12719   ac_status=$?
12720   grep -v '^ *+' conftest.er1 >conftest.err
12721   rm -f conftest.er1
12722   cat conftest.err >&5
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); } && {
12725          test -z "$ac_cxx_werror_flag" ||
12726          test ! -s conftest.err
12727        } && test -s conftest$ac_exeext &&
12728        $as_test_x conftest$ac_exeext; then
12729   ac_cv_lib_svld_dlopen=yes
12730 else
12731   echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734         ac_cv_lib_svld_dlopen=no
12735 fi
12736
12737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12738       conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_lib_save_LIBS
12740 fi
12741 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12742 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12743 if test $ac_cv_lib_svld_dlopen = yes; then
12744   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12745 else
12746   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12747 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12748 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12749   echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751   ac_check_lib_save_LIBS=$LIBS
12752 LIBS="-ldld  $LIBS"
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h.  */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h.  */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761    Use char because int might match the return type of a GCC
12762    builtin and then its argument prototype would still apply.  */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char dld_link ();
12767 int
12768 main ()
12769 {
12770 return dld_link ();
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779   *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782   (eval "$ac_link") 2>conftest.er1
12783   ac_status=$?
12784   grep -v '^ *+' conftest.er1 >conftest.err
12785   rm -f conftest.er1
12786   cat conftest.err >&5
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } && {
12789          test -z "$ac_cxx_werror_flag" ||
12790          test ! -s conftest.err
12791        } && test -s conftest$ac_exeext &&
12792        $as_test_x conftest$ac_exeext; then
12793   ac_cv_lib_dld_dld_link=yes
12794 else
12795   echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798         ac_cv_lib_dld_dld_link=no
12799 fi
12800
12801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12802       conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12804 fi
12805 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12806 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12807 if test $ac_cv_lib_dld_dld_link = yes; then
12808   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12809 fi
12810
12811
12812 fi
12813
12814
12815 fi
12816
12817
12818 fi
12819
12820
12821 fi
12822
12823
12824 fi
12825
12826     ;;
12827   esac
12828
12829   if test "x$lt_cv_dlopen" != xno; then
12830     enable_dlopen=yes
12831   else
12832     enable_dlopen=no
12833   fi
12834
12835   case $lt_cv_dlopen in
12836   dlopen)
12837     save_CPPFLAGS="$CPPFLAGS"
12838     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12839
12840     save_LDFLAGS="$LDFLAGS"
12841     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12842
12843     save_LIBS="$LIBS"
12844     LIBS="$lt_cv_dlopen_libs $LIBS"
12845
12846     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12847 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12848 if test "${lt_cv_dlopen_self+set}" = set; then
12849   echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851           if test "$cross_compiling" = yes; then :
12852   lt_cv_dlopen_self=cross
12853 else
12854   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12855   lt_status=$lt_dlunknown
12856   cat > conftest.$ac_ext <<EOF
12857 #line 12857 "configure"
12858 #include "confdefs.h"
12859
12860 #if HAVE_DLFCN_H
12861 #include <dlfcn.h>
12862 #endif
12863
12864 #include <stdio.h>
12865
12866 #ifdef RTLD_GLOBAL
12867 #  define LT_DLGLOBAL           RTLD_GLOBAL
12868 #else
12869 #  ifdef DL_GLOBAL
12870 #    define LT_DLGLOBAL         DL_GLOBAL
12871 #  else
12872 #    define LT_DLGLOBAL         0
12873 #  endif
12874 #endif
12875
12876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12877    find out it does not work in some platform. */
12878 #ifndef LT_DLLAZY_OR_NOW
12879 #  ifdef RTLD_LAZY
12880 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12881 #  else
12882 #    ifdef DL_LAZY
12883 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12884 #    else
12885 #      ifdef RTLD_NOW
12886 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12887 #      else
12888 #        ifdef DL_NOW
12889 #          define LT_DLLAZY_OR_NOW      DL_NOW
12890 #        else
12891 #          define LT_DLLAZY_OR_NOW      0
12892 #        endif
12893 #      endif
12894 #    endif
12895 #  endif
12896 #endif
12897
12898 #ifdef __cplusplus
12899 extern "C" void exit (int);
12900 #endif
12901
12902 void fnord() { int i=42;}
12903 int main ()
12904 {
12905   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12906   int status = $lt_dlunknown;
12907
12908   if (self)
12909     {
12910       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12911       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12912       /* dlclose (self); */
12913     }
12914
12915     exit (status);
12916 }
12917 EOF
12918   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12919   (eval $ac_link) 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12923     (./conftest; exit; ) 2>/dev/null
12924     lt_status=$?
12925     case x$lt_status in
12926       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12927       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12928       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12929     esac
12930   else :
12931     # compilation failed
12932     lt_cv_dlopen_self=no
12933   fi
12934 fi
12935 rm -fr conftest*
12936
12937
12938 fi
12939 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12940 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12941
12942     if test "x$lt_cv_dlopen_self" = xyes; then
12943       LDFLAGS="$LDFLAGS $link_static_flag"
12944       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12945 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12946 if test "${lt_cv_dlopen_self_static+set}" = set; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949           if test "$cross_compiling" = yes; then :
12950   lt_cv_dlopen_self_static=cross
12951 else
12952   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12953   lt_status=$lt_dlunknown
12954   cat > conftest.$ac_ext <<EOF
12955 #line 12955 "configure"
12956 #include "confdefs.h"
12957
12958 #if HAVE_DLFCN_H
12959 #include <dlfcn.h>
12960 #endif
12961
12962 #include <stdio.h>
12963
12964 #ifdef RTLD_GLOBAL
12965 #  define LT_DLGLOBAL           RTLD_GLOBAL
12966 #else
12967 #  ifdef DL_GLOBAL
12968 #    define LT_DLGLOBAL         DL_GLOBAL
12969 #  else
12970 #    define LT_DLGLOBAL         0
12971 #  endif
12972 #endif
12973
12974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12975    find out it does not work in some platform. */
12976 #ifndef LT_DLLAZY_OR_NOW
12977 #  ifdef RTLD_LAZY
12978 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12979 #  else
12980 #    ifdef DL_LAZY
12981 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12982 #    else
12983 #      ifdef RTLD_NOW
12984 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12985 #      else
12986 #        ifdef DL_NOW
12987 #          define LT_DLLAZY_OR_NOW      DL_NOW
12988 #        else
12989 #          define LT_DLLAZY_OR_NOW      0
12990 #        endif
12991 #      endif
12992 #    endif
12993 #  endif
12994 #endif
12995
12996 #ifdef __cplusplus
12997 extern "C" void exit (int);
12998 #endif
12999
13000 void fnord() { int i=42;}
13001 int main ()
13002 {
13003   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13004   int status = $lt_dlunknown;
13005
13006   if (self)
13007     {
13008       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13009       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13010       /* dlclose (self); */
13011     }
13012
13013     exit (status);
13014 }
13015 EOF
13016   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017   (eval $ac_link) 2>&5
13018   ac_status=$?
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13021     (./conftest; exit; ) 2>/dev/null
13022     lt_status=$?
13023     case x$lt_status in
13024       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13025       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13026       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13027     esac
13028   else :
13029     # compilation failed
13030     lt_cv_dlopen_self_static=no
13031   fi
13032 fi
13033 rm -fr conftest*
13034
13035
13036 fi
13037 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13038 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13039     fi
13040
13041     CPPFLAGS="$save_CPPFLAGS"
13042     LDFLAGS="$save_LDFLAGS"
13043     LIBS="$save_LIBS"
13044     ;;
13045   esac
13046
13047   case $lt_cv_dlopen_self in
13048   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13049   *) enable_dlopen_self=unknown ;;
13050   esac
13051
13052   case $lt_cv_dlopen_self_static in
13053   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13054   *) enable_dlopen_self_static=unknown ;;
13055   esac
13056 fi
13057
13058
13059 # The else clause should only fire when bootstrapping the
13060 # libtool distribution, otherwise you forgot to ship ltmain.sh
13061 # with your package, and you will get complaints that there are
13062 # no rules to generate ltmain.sh.
13063 if test -f "$ltmain"; then
13064   # See if we are running on zsh, and set the options which allow our commands through
13065   # without removal of \ escapes.
13066   if test -n "${ZSH_VERSION+set}" ; then
13067     setopt NO_GLOB_SUBST
13068   fi
13069   # Now quote all the things that may contain metacharacters while being
13070   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13071   # variables and quote the copies for generation of the libtool script.
13072   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13073     SED SHELL STRIP \
13074     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13075     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13076     deplibs_check_method reload_flag reload_cmds need_locks \
13077     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13078     lt_cv_sys_global_symbol_to_c_name_address \
13079     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13080     old_postinstall_cmds old_postuninstall_cmds \
13081     compiler_CXX \
13082     CC_CXX \
13083     LD_CXX \
13084     lt_prog_compiler_wl_CXX \
13085     lt_prog_compiler_pic_CXX \
13086     lt_prog_compiler_static_CXX \
13087     lt_prog_compiler_no_builtin_flag_CXX \
13088     export_dynamic_flag_spec_CXX \
13089     thread_safe_flag_spec_CXX \
13090     whole_archive_flag_spec_CXX \
13091     enable_shared_with_static_runtimes_CXX \
13092     old_archive_cmds_CXX \
13093     old_archive_from_new_cmds_CXX \
13094     predep_objects_CXX \
13095     postdep_objects_CXX \
13096     predeps_CXX \
13097     postdeps_CXX \
13098     compiler_lib_search_path_CXX \
13099     archive_cmds_CXX \
13100     archive_expsym_cmds_CXX \
13101     postinstall_cmds_CXX \
13102     postuninstall_cmds_CXX \
13103     old_archive_from_expsyms_cmds_CXX \
13104     allow_undefined_flag_CXX \
13105     no_undefined_flag_CXX \
13106     export_symbols_cmds_CXX \
13107     hardcode_libdir_flag_spec_CXX \
13108     hardcode_libdir_flag_spec_ld_CXX \
13109     hardcode_libdir_separator_CXX \
13110     hardcode_automatic_CXX \
13111     module_cmds_CXX \
13112     module_expsym_cmds_CXX \
13113     lt_cv_prog_compiler_c_o_CXX \
13114     exclude_expsyms_CXX \
13115     include_expsyms_CXX; do
13116
13117     case $var in
13118     old_archive_cmds_CXX | \
13119     old_archive_from_new_cmds_CXX | \
13120     archive_cmds_CXX | \
13121     archive_expsym_cmds_CXX | \
13122     module_cmds_CXX | \
13123     module_expsym_cmds_CXX | \
13124     old_archive_from_expsyms_cmds_CXX | \
13125     export_symbols_cmds_CXX | \
13126     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13127     postinstall_cmds | postuninstall_cmds | \
13128     old_postinstall_cmds | old_postuninstall_cmds | \
13129     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13130       # Double-quote double-evaled strings.
13131       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13132       ;;
13133     *)
13134       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13135       ;;
13136     esac
13137   done
13138
13139   case $lt_echo in
13140   *'\$0 --fallback-echo"')
13141     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13142     ;;
13143   esac
13144
13145 cfgfile="$ofile"
13146
13147   cat <<__EOF__ >> "$cfgfile"
13148 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13149
13150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13151
13152 # Shell to use when invoking shell scripts.
13153 SHELL=$lt_SHELL
13154
13155 # Whether or not to build shared libraries.
13156 build_libtool_libs=$enable_shared
13157
13158 # Whether or not to build static libraries.
13159 build_old_libs=$enable_static
13160
13161 # Whether or not to add -lc for building shared libraries.
13162 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13163
13164 # Whether or not to disallow shared libs when runtime libs are static
13165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13166
13167 # Whether or not to optimize for fast installation.
13168 fast_install=$enable_fast_install
13169
13170 # The host system.
13171 host_alias=$host_alias
13172 host=$host
13173
13174 # An echo program that does not interpret backslashes.
13175 echo=$lt_echo
13176
13177 # The archiver.
13178 AR=$lt_AR
13179 AR_FLAGS=$lt_AR_FLAGS
13180
13181 # A C compiler.
13182 LTCC=$lt_LTCC
13183
13184 # A language-specific compiler.
13185 CC=$lt_compiler_CXX
13186
13187 # Is the compiler the GNU C compiler?
13188 with_gcc=$GCC_CXX
13189
13190 # An ERE matcher.
13191 EGREP=$lt_EGREP
13192
13193 # The linker used to build libraries.
13194 LD=$lt_LD_CXX
13195
13196 # Whether we need hard or soft links.
13197 LN_S=$lt_LN_S
13198
13199 # A BSD-compatible nm program.
13200 NM=$lt_NM
13201
13202 # A symbol stripping program
13203 STRIP=$lt_STRIP
13204
13205 # Used to examine libraries when file_magic_cmd begins "file"
13206 MAGIC_CMD=$MAGIC_CMD
13207
13208 # Used on cygwin: DLL creation program.
13209 DLLTOOL="$DLLTOOL"
13210
13211 # Used on cygwin: object dumper.
13212 OBJDUMP="$OBJDUMP"
13213
13214 # Used on cygwin: assembler.
13215 AS="$AS"
13216
13217 # The name of the directory that contains temporary libtool files.
13218 objdir=$objdir
13219
13220 # How to create reloadable object files.
13221 reload_flag=$lt_reload_flag
13222 reload_cmds=$lt_reload_cmds
13223
13224 # How to pass a linker flag through the compiler.
13225 wl=$lt_lt_prog_compiler_wl_CXX
13226
13227 # Object file suffix (normally "o").
13228 objext="$ac_objext"
13229
13230 # Old archive suffix (normally "a").
13231 libext="$libext"
13232
13233 # Shared library suffix (normally ".so").
13234 shrext_cmds='$shrext_cmds'
13235
13236 # Executable file suffix (normally "").
13237 exeext="$exeext"
13238
13239 # Additional compiler flags for building library objects.
13240 pic_flag=$lt_lt_prog_compiler_pic_CXX
13241 pic_mode=$pic_mode
13242
13243 # What is the maximum length of a command?
13244 max_cmd_len=$lt_cv_sys_max_cmd_len
13245
13246 # Does compiler simultaneously support -c and -o options?
13247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13248
13249 # Must we lock files when doing compilation ?
13250 need_locks=$lt_need_locks
13251
13252 # Do we need the lib prefix for modules?
13253 need_lib_prefix=$need_lib_prefix
13254
13255 # Do we need a version for libraries?
13256 need_version=$need_version
13257
13258 # Whether dlopen is supported.
13259 dlopen_support=$enable_dlopen
13260
13261 # Whether dlopen of programs is supported.
13262 dlopen_self=$enable_dlopen_self
13263
13264 # Whether dlopen of statically linked programs is supported.
13265 dlopen_self_static=$enable_dlopen_self_static
13266
13267 # Compiler flag to prevent dynamic linking.
13268 link_static_flag=$lt_lt_prog_compiler_static_CXX
13269
13270 # Compiler flag to turn off builtin functions.
13271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13272
13273 # Compiler flag to allow reflexive dlopens.
13274 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13275
13276 # Compiler flag to generate shared objects directly from archives.
13277 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13278
13279 # Compiler flag to generate thread-safe objects.
13280 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13281
13282 # Library versioning type.
13283 version_type=$version_type
13284
13285 # Format of library name prefix.
13286 libname_spec=$lt_libname_spec
13287
13288 # List of archive names.  First name is the real one, the rest are links.
13289 # The last name is the one that the linker finds with -lNAME.
13290 library_names_spec=$lt_library_names_spec
13291
13292 # The coded name of the library, if different from the real name.
13293 soname_spec=$lt_soname_spec
13294
13295 # Commands used to build and install an old-style archive.
13296 RANLIB=$lt_RANLIB
13297 old_archive_cmds=$lt_old_archive_cmds_CXX
13298 old_postinstall_cmds=$lt_old_postinstall_cmds
13299 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13300
13301 # Create an old-style archive from a shared archive.
13302 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13303
13304 # Create a temporary old-style archive to link instead of a shared archive.
13305 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13306
13307 # Commands used to build and install a shared archive.
13308 archive_cmds=$lt_archive_cmds_CXX
13309 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13310 postinstall_cmds=$lt_postinstall_cmds
13311 postuninstall_cmds=$lt_postuninstall_cmds
13312
13313 # Commands used to build a loadable module (assumed same as above if empty)
13314 module_cmds=$lt_module_cmds_CXX
13315 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13316
13317 # Commands to strip libraries.
13318 old_striplib=$lt_old_striplib
13319 striplib=$lt_striplib
13320
13321 # Dependencies to place before the objects being linked to create a
13322 # shared library.
13323 predep_objects=$lt_predep_objects_CXX
13324
13325 # Dependencies to place after the objects being linked to create a
13326 # shared library.
13327 postdep_objects=$lt_postdep_objects_CXX
13328
13329 # Dependencies to place before the objects being linked to create a
13330 # shared library.
13331 predeps=$lt_predeps_CXX
13332
13333 # Dependencies to place after the objects being linked to create a
13334 # shared library.
13335 postdeps=$lt_postdeps_CXX
13336
13337 # The library search path used internally by the compiler when linking
13338 # a shared library.
13339 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13340
13341 # Method to check whether dependent libraries are shared objects.
13342 deplibs_check_method=$lt_deplibs_check_method
13343
13344 # Command to use when deplibs_check_method == file_magic.
13345 file_magic_cmd=$lt_file_magic_cmd
13346
13347 # Flag that allows shared libraries with undefined symbols to be built.
13348 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13349
13350 # Flag that forces no undefined symbols.
13351 no_undefined_flag=$lt_no_undefined_flag_CXX
13352
13353 # Commands used to finish a libtool library installation in a directory.
13354 finish_cmds=$lt_finish_cmds
13355
13356 # Same as above, but a single script fragment to be evaled but not shown.
13357 finish_eval=$lt_finish_eval
13358
13359 # Take the output of nm and produce a listing of raw symbols and C names.
13360 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13361
13362 # Transform the output of nm in a proper C declaration
13363 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13364
13365 # Transform the output of nm in a C name address pair
13366 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13367
13368 # This is the shared library runtime path variable.
13369 runpath_var=$runpath_var
13370
13371 # This is the shared library path variable.
13372 shlibpath_var=$shlibpath_var
13373
13374 # Is shlibpath searched before the hard-coded library search path?
13375 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13376
13377 # How to hardcode a shared library path into an executable.
13378 hardcode_action=$hardcode_action_CXX
13379
13380 # Whether we should hardcode library paths into libraries.
13381 hardcode_into_libs=$hardcode_into_libs
13382
13383 # Flag to hardcode \$libdir into a binary during linking.
13384 # This must work even if \$libdir does not exist.
13385 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13386
13387 # If ld is used when linking, flag to hardcode \$libdir into
13388 # a binary during linking. This must work even if \$libdir does
13389 # not exist.
13390 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13391
13392 # Whether we need a single -rpath flag with a separated argument.
13393 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13394
13395 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13396 # resulting binary.
13397 hardcode_direct=$hardcode_direct_CXX
13398
13399 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13400 # resulting binary.
13401 hardcode_minus_L=$hardcode_minus_L_CXX
13402
13403 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13404 # the resulting binary.
13405 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13406
13407 # Set to yes if building a shared library automatically hardcodes DIR into the library
13408 # and all subsequent libraries and executables linked against it.
13409 hardcode_automatic=$hardcode_automatic_CXX
13410
13411 # Variables whose values should be saved in libtool wrapper scripts and
13412 # restored at relink time.
13413 variables_saved_for_relink="$variables_saved_for_relink"
13414
13415 # Whether libtool must link a program against all its dependency libraries.
13416 link_all_deplibs=$link_all_deplibs_CXX
13417
13418 # Compile-time system search path for libraries
13419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13420
13421 # Run-time system search path for libraries
13422 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13423
13424 # Fix the shell variable \$srcfile for the compiler.
13425 fix_srcfile_path="$fix_srcfile_path_CXX"
13426
13427 # Set to yes if exported symbols are required.
13428 always_export_symbols=$always_export_symbols_CXX
13429
13430 # The commands to list exported symbols.
13431 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13432
13433 # The commands to extract the exported symbol list from a shared archive.
13434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13435
13436 # Symbols that should not be listed in the preloaded symbols.
13437 exclude_expsyms=$lt_exclude_expsyms_CXX
13438
13439 # Symbols that must always be exported.
13440 include_expsyms=$lt_include_expsyms_CXX
13441
13442 # ### END LIBTOOL TAG CONFIG: $tagname
13443
13444 __EOF__
13445
13446
13447 else
13448   # If there is no Makefile yet, we rely on a make rule to execute
13449   # `config.status --recheck' to rerun these tests and create the
13450   # libtool script then.
13451   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13452   if test -f "$ltmain_in"; then
13453     test -f Makefile && make "$ltmain"
13454   fi
13455 fi
13456
13457
13458 ac_ext=c
13459 ac_cpp='$CPP $CPPFLAGS'
13460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13463
13464 CC=$lt_save_CC
13465 LDCXX=$LD
13466 LD=$lt_save_LD
13467 GCC=$lt_save_GCC
13468 with_gnu_ldcxx=$with_gnu_ld
13469 with_gnu_ld=$lt_save_with_gnu_ld
13470 lt_cv_path_LDCXX=$lt_cv_path_LD
13471 lt_cv_path_LD=$lt_save_path_LD
13472 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13473 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13474
13475         else
13476           tagname=""
13477         fi
13478         ;;
13479
13480       F77)
13481         if test -n "$F77" && test "X$F77" != "Xno"; then
13482
13483 ac_ext=f
13484 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13485 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13486 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13487
13488
13489 archive_cmds_need_lc_F77=no
13490 allow_undefined_flag_F77=
13491 always_export_symbols_F77=no
13492 archive_expsym_cmds_F77=
13493 export_dynamic_flag_spec_F77=
13494 hardcode_direct_F77=no
13495 hardcode_libdir_flag_spec_F77=
13496 hardcode_libdir_flag_spec_ld_F77=
13497 hardcode_libdir_separator_F77=
13498 hardcode_minus_L_F77=no
13499 hardcode_automatic_F77=no
13500 module_cmds_F77=
13501 module_expsym_cmds_F77=
13502 link_all_deplibs_F77=unknown
13503 old_archive_cmds_F77=$old_archive_cmds
13504 no_undefined_flag_F77=
13505 whole_archive_flag_spec_F77=
13506 enable_shared_with_static_runtimes_F77=no
13507
13508 # Source file extension for f77 test sources.
13509 ac_ext=f
13510
13511 # Object file extension for compiled f77 test sources.
13512 objext=o
13513 objext_F77=$objext
13514
13515 # Code to be used in simple compile tests
13516 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13517
13518 # Code to be used in simple link tests
13519 lt_simple_link_test_code="      program t\n      end\n"
13520
13521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13522
13523 # If no C compiler was specified, use CC.
13524 LTCC=${LTCC-"$CC"}
13525
13526 # Allow CC to be a program name with arguments.
13527 compiler=$CC
13528
13529
13530 # Allow CC to be a program name with arguments.
13531 lt_save_CC="$CC"
13532 CC=${F77-"f77"}
13533 compiler=$CC
13534 compiler_F77=$CC
13535 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13536
13537 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13538 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13539 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13540 echo "${ECHO_T}$can_build_shared" >&6; }
13541
13542 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13543 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13544 test "$can_build_shared" = "no" && enable_shared=no
13545
13546 # On AIX, shared libraries and static libraries use the same namespace, and
13547 # are all built from PIC.
13548 case "$host_os" in
13549 aix3*)
13550   test "$enable_shared" = yes && enable_static=no
13551   if test -n "$RANLIB"; then
13552     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13553     postinstall_cmds='$RANLIB $lib'
13554   fi
13555   ;;
13556 aix4* | aix5*)
13557   test "$enable_shared" = yes && enable_static=no
13558   ;;
13559 esac
13560 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13561 echo "${ECHO_T}$enable_shared" >&6; }
13562
13563 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13564 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13565 # Make sure either enable_shared or enable_static is yes.
13566 test "$enable_shared" = yes || enable_static=yes
13567 { echo "$as_me:$LINENO: result: $enable_static" >&5
13568 echo "${ECHO_T}$enable_static" >&6; }
13569
13570 test "$ld_shlibs_F77" = no && can_build_shared=no
13571
13572 GCC_F77="$G77"
13573 LD_F77="$LD"
13574
13575 lt_prog_compiler_wl_F77=
13576 lt_prog_compiler_pic_F77=
13577 lt_prog_compiler_static_F77=
13578
13579 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13581
13582   if test "$GCC" = yes; then
13583     lt_prog_compiler_wl_F77='-Wl,'
13584     lt_prog_compiler_static_F77='-static'
13585
13586     case $host_os in
13587       aix*)
13588       # All AIX code is PIC.
13589       if test "$host_cpu" = ia64; then
13590         # AIX 5 now supports IA64 processor
13591         lt_prog_compiler_static_F77='-Bstatic'
13592       fi
13593       ;;
13594
13595     amigaos*)
13596       # FIXME: we need at least 68020 code to build shared libraries, but
13597       # adding the `-m68020' flag to GCC prevents building anything better,
13598       # like `-m68040'.
13599       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13600       ;;
13601
13602     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13603       # PIC is the default for these OSes.
13604       ;;
13605
13606     mingw* | pw32* | os2*)
13607       # This hack is so that the source file can tell whether it is being
13608       # built for inclusion in a dll (and should export symbols for example).
13609       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13610       ;;
13611
13612     darwin* | rhapsody*)
13613       # PIC is the default on this platform
13614       # Common symbols not allowed in MH_DYLIB files
13615       lt_prog_compiler_pic_F77='-fno-common'
13616       ;;
13617
13618     msdosdjgpp*)
13619       # Just because we use GCC doesn't mean we suddenly get shared libraries
13620       # on systems that don't support them.
13621       lt_prog_compiler_can_build_shared_F77=no
13622       enable_shared=no
13623       ;;
13624
13625     sysv4*MP*)
13626       if test -d /usr/nec; then
13627         lt_prog_compiler_pic_F77=-Kconform_pic
13628       fi
13629       ;;
13630
13631     hpux*)
13632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13633       # not for PA HP-UX.
13634       case "$host_cpu" in
13635       hppa*64*|ia64*)
13636         # +Z the default
13637         ;;
13638       *)
13639         lt_prog_compiler_pic_F77='-fPIC'
13640         ;;
13641       esac
13642       ;;
13643
13644     *)
13645       lt_prog_compiler_pic_F77='-fPIC'
13646       ;;
13647     esac
13648   else
13649     # PORTME Check for flag to pass linker flags through the system compiler.
13650     case $host_os in
13651     aix*)
13652       lt_prog_compiler_wl_F77='-Wl,'
13653       if test "$host_cpu" = ia64; then
13654         # AIX 5 now supports IA64 processor
13655         lt_prog_compiler_static_F77='-Bstatic'
13656       else
13657         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13658       fi
13659       ;;
13660
13661     mingw* | pw32* | os2*)
13662       # This hack is so that the source file can tell whether it is being
13663       # built for inclusion in a dll (and should export symbols for example).
13664       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13665       ;;
13666
13667     hpux9* | hpux10* | hpux11*)
13668       lt_prog_compiler_wl_F77='-Wl,'
13669       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13670       # not for PA HP-UX.
13671       case "$host_cpu" in
13672       hppa*64*|ia64*)
13673         # +Z the default
13674         ;;
13675       *)
13676         lt_prog_compiler_pic_F77='+Z'
13677         ;;
13678       esac
13679       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13680       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13681       ;;
13682
13683     irix5* | irix6* | nonstopux*)
13684       lt_prog_compiler_wl_F77='-Wl,'
13685       # PIC (with -KPIC) is the default.
13686       lt_prog_compiler_static_F77='-non_shared'
13687       ;;
13688
13689     newsos6)
13690       lt_prog_compiler_pic_F77='-KPIC'
13691       lt_prog_compiler_static_F77='-Bstatic'
13692       ;;
13693
13694     linux*)
13695       case $CC in
13696       icc* | ecc*)
13697         lt_prog_compiler_wl_F77='-Wl,'
13698         lt_prog_compiler_pic_F77='-KPIC'
13699         lt_prog_compiler_static_F77='-static'
13700         ;;
13701       ccc*)
13702         lt_prog_compiler_wl_F77='-Wl,'
13703         # All Alpha code is PIC.
13704         lt_prog_compiler_static_F77='-non_shared'
13705         ;;
13706       esac
13707       ;;
13708
13709     osf3* | osf4* | osf5*)
13710       lt_prog_compiler_wl_F77='-Wl,'
13711       # All OSF/1 code is PIC.
13712       lt_prog_compiler_static_F77='-non_shared'
13713       ;;
13714
13715     sco3.2v5*)
13716       lt_prog_compiler_pic_F77='-Kpic'
13717       lt_prog_compiler_static_F77='-dn'
13718       ;;
13719
13720     solaris*)
13721       lt_prog_compiler_wl_F77='-Wl,'
13722       lt_prog_compiler_pic_F77='-KPIC'
13723       lt_prog_compiler_static_F77='-Bstatic'
13724       ;;
13725
13726     sunos4*)
13727       lt_prog_compiler_wl_F77='-Qoption ld '
13728       lt_prog_compiler_pic_F77='-PIC'
13729       lt_prog_compiler_static_F77='-Bstatic'
13730       ;;
13731
13732     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13733       lt_prog_compiler_wl_F77='-Wl,'
13734       lt_prog_compiler_pic_F77='-KPIC'
13735       lt_prog_compiler_static_F77='-Bstatic'
13736       ;;
13737
13738     sysv4*MP*)
13739       if test -d /usr/nec ;then
13740         lt_prog_compiler_pic_F77='-Kconform_pic'
13741         lt_prog_compiler_static_F77='-Bstatic'
13742       fi
13743       ;;
13744
13745     uts4*)
13746       lt_prog_compiler_pic_F77='-pic'
13747       lt_prog_compiler_static_F77='-Bstatic'
13748       ;;
13749
13750     *)
13751       lt_prog_compiler_can_build_shared_F77=no
13752       ;;
13753     esac
13754   fi
13755
13756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13757 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13758
13759 #
13760 # Check to make sure the PIC flag actually works.
13761 #
13762 if test -n "$lt_prog_compiler_pic_F77"; then
13763
13764 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13766 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   lt_prog_compiler_pic_works_F77=no
13770   ac_outfile=conftest.$ac_objext
13771    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13772    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13773    # Insert the option either (1) after the last *FLAGS variable, or
13774    # (2) before a word containing "conftest.", or (3) at the end.
13775    # Note that $ac_compile itself does not contain backslashes and begins
13776    # with a dollar sign (not a hyphen), so the echo should work correctly.
13777    # The option is referenced via a variable to avoid confusing sed.
13778    lt_compile=`echo "$ac_compile" | $SED \
13779    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13781    -e 's:$: $lt_compiler_flag:'`
13782    (eval echo "\"\$as_me:13782: $lt_compile\"" >&5)
13783    (eval "$lt_compile" 2>conftest.err)
13784    ac_status=$?
13785    cat conftest.err >&5
13786    echo "$as_me:13786: \$? = $ac_status" >&5
13787    if (exit $ac_status) && test -s "$ac_outfile"; then
13788      # The compiler can only warn and ignore the option if not recognized
13789      # So say no if there are warnings
13790      if test ! -s conftest.err; then
13791        lt_prog_compiler_pic_works_F77=yes
13792      fi
13793    fi
13794    $rm conftest*
13795
13796 fi
13797 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13798 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13799
13800 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13801     case $lt_prog_compiler_pic_F77 in
13802      "" | " "*) ;;
13803      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13804      esac
13805 else
13806     lt_prog_compiler_pic_F77=
13807      lt_prog_compiler_can_build_shared_F77=no
13808 fi
13809
13810 fi
13811 case "$host_os" in
13812   # For platforms which do not support PIC, -DPIC is meaningless:
13813   *djgpp*)
13814     lt_prog_compiler_pic_F77=
13815     ;;
13816   *)
13817     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13818     ;;
13819 esac
13820
13821 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13823 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13824   echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826   lt_cv_prog_compiler_c_o_F77=no
13827    $rm -r conftest 2>/dev/null
13828    mkdir conftest
13829    cd conftest
13830    mkdir out
13831    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13832
13833    lt_compiler_flag="-o out/conftest2.$ac_objext"
13834    # Insert the option either (1) after the last *FLAGS variable, or
13835    # (2) before a word containing "conftest.", or (3) at the end.
13836    # Note that $ac_compile itself does not contain backslashes and begins
13837    # with a dollar sign (not a hyphen), so the echo should work correctly.
13838    lt_compile=`echo "$ac_compile" | $SED \
13839    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13841    -e 's:$: $lt_compiler_flag:'`
13842    (eval echo "\"\$as_me:13842: $lt_compile\"" >&5)
13843    (eval "$lt_compile" 2>out/conftest.err)
13844    ac_status=$?
13845    cat out/conftest.err >&5
13846    echo "$as_me:13846: \$? = $ac_status" >&5
13847    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13848    then
13849      # The compiler can only warn and ignore the option if not recognized
13850      # So say no if there are warnings
13851      if test ! -s out/conftest.err; then
13852        lt_cv_prog_compiler_c_o_F77=yes
13853      fi
13854    fi
13855    chmod u+w .
13856    $rm conftest*
13857    # SGI C++ compiler will create directory out/ii_files/ for
13858    # template instantiation
13859    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13860    $rm out/* && rmdir out
13861    cd ..
13862    rmdir conftest
13863    $rm conftest*
13864
13865 fi
13866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13868
13869
13870 hard_links="nottested"
13871 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13872   # do not overwrite the value of need_locks provided by the user
13873   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13875   hard_links=yes
13876   $rm conftest*
13877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13878   touch conftest.a
13879   ln conftest.a conftest.b 2>&5 || hard_links=no
13880   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13881   { echo "$as_me:$LINENO: result: $hard_links" >&5
13882 echo "${ECHO_T}$hard_links" >&6; }
13883   if test "$hard_links" = no; then
13884     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13886     need_locks=warn
13887   fi
13888 else
13889   need_locks=no
13890 fi
13891
13892 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13894
13895   runpath_var=
13896   allow_undefined_flag_F77=
13897   enable_shared_with_static_runtimes_F77=no
13898   archive_cmds_F77=
13899   archive_expsym_cmds_F77=
13900   old_archive_From_new_cmds_F77=
13901   old_archive_from_expsyms_cmds_F77=
13902   export_dynamic_flag_spec_F77=
13903   whole_archive_flag_spec_F77=
13904   thread_safe_flag_spec_F77=
13905   hardcode_libdir_flag_spec_F77=
13906   hardcode_libdir_flag_spec_ld_F77=
13907   hardcode_libdir_separator_F77=
13908   hardcode_direct_F77=no
13909   hardcode_minus_L_F77=no
13910   hardcode_shlibpath_var_F77=unsupported
13911   link_all_deplibs_F77=unknown
13912   hardcode_automatic_F77=no
13913   module_cmds_F77=
13914   module_expsym_cmds_F77=
13915   always_export_symbols_F77=no
13916   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13917   # include_expsyms should be a list of space-separated symbols to be *always*
13918   # included in the symbol list
13919   include_expsyms_F77=
13920   # exclude_expsyms can be an extended regexp of symbols to exclude
13921   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13922   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13923   # as well as any symbol that contains `d'.
13924   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13925   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13926   # platforms (ab)use it in PIC code, but their linkers get confused if
13927   # the symbol is explicitly referenced.  Since portable code cannot
13928   # rely on this symbol name, it's probably fine to never include it in
13929   # preloaded symbol tables.
13930   extract_expsyms_cmds=
13931
13932   case $host_os in
13933   cygwin* | mingw* | pw32*)
13934     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13935     # When not using gcc, we currently assume that we are using
13936     # Microsoft Visual C++.
13937     if test "$GCC" != yes; then
13938       with_gnu_ld=no
13939     fi
13940     ;;
13941   openbsd*)
13942     with_gnu_ld=no
13943     ;;
13944   esac
13945
13946   ld_shlibs_F77=yes
13947   if test "$with_gnu_ld" = yes; then
13948     # If archive_cmds runs LD, not CC, wlarc should be empty
13949     wlarc='${wl}'
13950
13951     # See if GNU ld supports shared libraries.
13952     case $host_os in
13953     aix3* | aix4* | aix5*)
13954       # On AIX/PPC, the GNU linker is very broken
13955       if test "$host_cpu" != ia64; then
13956         ld_shlibs_F77=no
13957         cat <<EOF 1>&2
13958
13959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13960 *** to be unable to reliably create shared libraries on AIX.
13961 *** Therefore, libtool is disabling shared libraries support.  If you
13962 *** really care for shared libraries, you may want to modify your PATH
13963 *** so that a non-GNU linker is found, and then restart.
13964
13965 EOF
13966       fi
13967       ;;
13968
13969     amigaos*)
13970       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)'
13971       hardcode_libdir_flag_spec_F77='-L$libdir'
13972       hardcode_minus_L_F77=yes
13973
13974       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13975       # that the semantics of dynamic libraries on AmigaOS, at least up
13976       # to version 4, is to share data among multiple programs linked
13977       # with the same dynamic library.  Since this doesn't match the
13978       # behavior of shared libraries on other platforms, we can't use
13979       # them.
13980       ld_shlibs_F77=no
13981       ;;
13982
13983     beos*)
13984       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13985         allow_undefined_flag_F77=unsupported
13986         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13987         # support --undefined.  This deserves some investigation.  FIXME
13988         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13989       else
13990         ld_shlibs_F77=no
13991       fi
13992       ;;
13993
13994     cygwin* | mingw* | pw32*)
13995       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13996       # as there is no search path for DLLs.
13997       hardcode_libdir_flag_spec_F77='-L$libdir'
13998       allow_undefined_flag_F77=unsupported
13999       always_export_symbols_F77=no
14000       enable_shared_with_static_runtimes_F77=yes
14001       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14002
14003       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14004         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14005         # If the export-symbols file already is a .def file (1st line
14006         # is EXPORTS), use it as is; otherwise, prepend...
14007         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14008           cp $export_symbols $output_objdir/$soname.def;
14009         else
14010           echo EXPORTS > $output_objdir/$soname.def;
14011           cat $export_symbols >> $output_objdir/$soname.def;
14012         fi~
14013         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14014       else
14015         ld_shlibs=no
14016       fi
14017       ;;
14018
14019     netbsd*)
14020       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14021         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14022         wlarc=
14023       else
14024         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14025         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14026       fi
14027       ;;
14028
14029     solaris* | sysv5*)
14030       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14031         ld_shlibs_F77=no
14032         cat <<EOF 1>&2
14033
14034 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14035 *** create shared libraries on Solaris systems.  Therefore, libtool
14036 *** is disabling shared libraries support.  We urge you to upgrade GNU
14037 *** binutils to release 2.9.1 or newer.  Another option is to modify
14038 *** your PATH or compiler configuration so that the native linker is
14039 *** used, and then restart.
14040
14041 EOF
14042       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14043         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14044         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14045       else
14046         ld_shlibs_F77=no
14047       fi
14048       ;;
14049
14050     sunos4*)
14051       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14052       wlarc=
14053       hardcode_direct_F77=yes
14054       hardcode_shlibpath_var_F77=no
14055       ;;
14056
14057   linux*)
14058     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14059         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14060         archive_cmds_F77="$tmp_archive_cmds"
14061       supports_anon_versioning=no
14062       case `$LD -v 2>/dev/null` in
14063         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14064         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14065         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14066         *\ 2.11.*) ;; # other 2.11 versions
14067         *) supports_anon_versioning=yes ;;
14068       esac
14069       if test $supports_anon_versioning = yes; then
14070         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14072 $echo "local: *; };" >> $output_objdir/$libname.ver~
14073         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14074       else
14075         archive_expsym_cmds_F77="$tmp_archive_cmds"
14076       fi
14077     else
14078       ld_shlibs_F77=no
14079     fi
14080     ;;
14081
14082     *)
14083       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14084         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14085         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14086       else
14087         ld_shlibs_F77=no
14088       fi
14089       ;;
14090     esac
14091
14092     if test "$ld_shlibs_F77" = yes; then
14093       runpath_var=LD_RUN_PATH
14094       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14095       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14096       # ancient GNU ld didn't support --whole-archive et. al.
14097       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14098         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14099       else
14100         whole_archive_flag_spec_F77=
14101       fi
14102     fi
14103   else
14104     # PORTME fill in a description of your system's linker (not GNU ld)
14105     case $host_os in
14106     aix3*)
14107       allow_undefined_flag_F77=unsupported
14108       always_export_symbols_F77=yes
14109       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'
14110       # Note: this linker hardcodes the directories in LIBPATH if there
14111       # are no directories specified by -L.
14112       hardcode_minus_L_F77=yes
14113       if test "$GCC" = yes && test -z "$link_static_flag"; then
14114         # Neither direct hardcoding nor static linking is supported with a
14115         # broken collect2.
14116         hardcode_direct_F77=unsupported
14117       fi
14118       ;;
14119
14120     aix4* | aix5*)
14121       if test "$host_cpu" = ia64; then
14122         # On IA64, the linker does run time linking by default, so we don't
14123         # have to do anything special.
14124         aix_use_runtimelinking=no
14125         exp_sym_flag='-Bexport'
14126         no_entry_flag=""
14127       else
14128         # If we're using GNU nm, then we don't want the "-C" option.
14129         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14130         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14131           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'
14132         else
14133           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'
14134         fi
14135         aix_use_runtimelinking=no
14136
14137         # Test if we are trying to use run time linking or normal
14138         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14139         # need to do runtime linking.
14140         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14141           for ld_flag in $LDFLAGS; do
14142           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14143             aix_use_runtimelinking=yes
14144             break
14145           fi
14146           done
14147         esac
14148
14149         exp_sym_flag='-bexport'
14150         no_entry_flag='-bnoentry'
14151       fi
14152
14153       # When large executables or shared objects are built, AIX ld can
14154       # have problems creating the table of contents.  If linking a library
14155       # or program results in "error TOC overflow" add -mminimal-toc to
14156       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14157       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14158
14159       archive_cmds_F77=''
14160       hardcode_direct_F77=yes
14161       hardcode_libdir_separator_F77=':'
14162       link_all_deplibs_F77=yes
14163
14164       if test "$GCC" = yes; then
14165         case $host_os in aix4.012|aix4.012.*)
14166         # We only want to do this on AIX 4.2 and lower, the check
14167         # below for broken collect2 doesn't work under 4.3+
14168           collect2name=`${CC} -print-prog-name=collect2`
14169           if test -f "$collect2name" && \
14170            strings "$collect2name" | grep resolve_lib_name >/dev/null
14171           then
14172           # We have reworked collect2
14173           hardcode_direct_F77=yes
14174           else
14175           # We have old collect2
14176           hardcode_direct_F77=unsupported
14177           # It fails to find uninstalled libraries when the uninstalled
14178           # path is not listed in the libpath.  Setting hardcode_minus_L
14179           # to unsupported forces relinking
14180           hardcode_minus_L_F77=yes
14181           hardcode_libdir_flag_spec_F77='-L$libdir'
14182           hardcode_libdir_separator_F77=
14183           fi
14184         esac
14185         shared_flag='-shared'
14186       else
14187         # not using gcc
14188         if test "$host_cpu" = ia64; then
14189         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14190         # chokes on -Wl,-G. The following line is correct:
14191           shared_flag='-G'
14192         else
14193         if test "$aix_use_runtimelinking" = yes; then
14194             shared_flag='${wl}-G'
14195           else
14196             shared_flag='${wl}-bM:SRE'
14197         fi
14198         fi
14199       fi
14200
14201       # It seems that -bexpall does not export symbols beginning with
14202       # underscore (_), so it is better to generate a list of symbols to export.
14203       always_export_symbols_F77=yes
14204       if test "$aix_use_runtimelinking" = yes; then
14205         # Warning - without using the other runtime loading flags (-brtl),
14206         # -berok will link without error, but may produce a broken library.
14207         allow_undefined_flag_F77='-berok'
14208        # Determine the default libpath from the value encoded in an empty executable.
14209        cat >conftest.$ac_ext <<_ACEOF
14210       program main
14211
14212       end
14213 _ACEOF
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (ac_try="$ac_link"
14216 case "(($ac_try" in
14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218   *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221   (eval "$ac_link") 2>conftest.er1
14222   ac_status=$?
14223   grep -v '^ *+' conftest.er1 >conftest.err
14224   rm -f conftest.er1
14225   cat conftest.err >&5
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); } && {
14228          test -z "$ac_f77_werror_flag" ||
14229          test ! -s conftest.err
14230        } && test -s conftest$ac_exeext &&
14231        $as_test_x conftest$ac_exeext; then
14232
14233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14234 }'`
14235 # Check for a 64-bit object if we didn't find anything.
14236 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; }
14237 }'`; fi
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14241
14242
14243 fi
14244
14245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14246       conftest$ac_exeext conftest.$ac_ext
14247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14248
14249        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14250         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"
14251        else
14252         if test "$host_cpu" = ia64; then
14253           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14254           allow_undefined_flag_F77="-z nodefs"
14255           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"
14256         else
14257          # Determine the default libpath from the value encoded in an empty executable.
14258          cat >conftest.$ac_ext <<_ACEOF
14259       program main
14260
14261       end
14262 _ACEOF
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (ac_try="$ac_link"
14265 case "(($ac_try" in
14266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267   *) ac_try_echo=$ac_try;;
14268 esac
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270   (eval "$ac_link") 2>conftest.er1
14271   ac_status=$?
14272   grep -v '^ *+' conftest.er1 >conftest.err
14273   rm -f conftest.er1
14274   cat conftest.err >&5
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } && {
14277          test -z "$ac_f77_werror_flag" ||
14278          test ! -s conftest.err
14279        } && test -s conftest$ac_exeext &&
14280        $as_test_x conftest$ac_exeext; then
14281
14282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14283 }'`
14284 # Check for a 64-bit object if we didn't find anything.
14285 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; }
14286 }'`; fi
14287 else
14288   echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14290
14291
14292 fi
14293
14294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14295       conftest$ac_exeext conftest.$ac_ext
14296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14297
14298          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14299           # Warning - without using the other run time loading flags,
14300           # -berok will link without error, but may produce a broken library.
14301           no_undefined_flag_F77=' ${wl}-bernotok'
14302           allow_undefined_flag_F77=' ${wl}-berok'
14303           # -bexpall does not export symbols beginning with underscore (_)
14304           always_export_symbols_F77=yes
14305           # Exported symbols can be pulled into shared objects from archives
14306           whole_archive_flag_spec_F77=' '
14307           archive_cmds_need_lc_F77=yes
14308           # This is similar to how AIX traditionally builds it's shared libraries.
14309           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'
14310         fi
14311       fi
14312       ;;
14313
14314     amigaos*)
14315       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)'
14316       hardcode_libdir_flag_spec_F77='-L$libdir'
14317       hardcode_minus_L_F77=yes
14318       # see comment about different semantics on the GNU ld section
14319       ld_shlibs_F77=no
14320       ;;
14321
14322     bsdi4*)
14323       export_dynamic_flag_spec_F77=-rdynamic
14324       ;;
14325
14326     cygwin* | mingw* | pw32*)
14327       # When not using gcc, we currently assume that we are using
14328       # Microsoft Visual C++.
14329       # hardcode_libdir_flag_spec is actually meaningless, as there is
14330       # no search path for DLLs.
14331       hardcode_libdir_flag_spec_F77=' '
14332       allow_undefined_flag_F77=unsupported
14333       # Tell ltmain to make .lib files, not .a files.
14334       libext=lib
14335       # Tell ltmain to make .dll files, not .so files.
14336       shrext_cmds=".dll"
14337       # FIXME: Setting linknames here is a bad hack.
14338       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14339       # The linker will automatically build a .lib file if we build a DLL.
14340       old_archive_From_new_cmds_F77='true'
14341       # FIXME: Should let the user specify the lib program.
14342       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14343       fix_srcfile_path='`cygpath -w "$srcfile"`'
14344       enable_shared_with_static_runtimes_F77=yes
14345       ;;
14346
14347     darwin* | rhapsody*)
14348     if test "$GXX" = yes ; then
14349       archive_cmds_need_lc_F77=no
14350       case "$host_os" in
14351       rhapsody* | darwin1.[012])
14352         allow_undefined_flag_F77='-undefined suppress'
14353         ;;
14354       *) # Darwin 1.3 on
14355       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14356         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14357       else
14358         case ${MACOSX_DEPLOYMENT_TARGET} in
14359           10.[012])
14360             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14361             ;;
14362           10.*)
14363             allow_undefined_flag_F77='-undefined dynamic_lookup'
14364             ;;
14365         esac
14366       fi
14367         ;;
14368       esac
14369         lt_int_apple_cc_single_mod=no
14370         output_verbose_link_cmd='echo'
14371         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14372           lt_int_apple_cc_single_mod=yes
14373         fi
14374         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14375           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14376         else
14377         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'
14378       fi
14379       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14380       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14381         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14382           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}'
14383         else
14384           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}'
14385         fi
14386           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}'
14387       hardcode_direct_F77=no
14388       hardcode_automatic_F77=yes
14389       hardcode_shlibpath_var_F77=unsupported
14390       whole_archive_flag_spec_F77='-all_load $convenience'
14391       link_all_deplibs_F77=yes
14392     else
14393       ld_shlibs_F77=no
14394     fi
14395       ;;
14396
14397     dgux*)
14398       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14399       hardcode_libdir_flag_spec_F77='-L$libdir'
14400       hardcode_shlibpath_var_F77=no
14401       ;;
14402
14403     freebsd1*)
14404       ld_shlibs_F77=no
14405       ;;
14406
14407     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14408     # support.  Future versions do this automatically, but an explicit c++rt0.o
14409     # does not break anything, and helps significantly (at the cost of a little
14410     # extra space).
14411     freebsd2.2*)
14412       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14413       hardcode_libdir_flag_spec_F77='-R$libdir'
14414       hardcode_direct_F77=yes
14415       hardcode_shlibpath_var_F77=no
14416       ;;
14417
14418     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14419     freebsd2*)
14420       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14421       hardcode_direct_F77=yes
14422       hardcode_minus_L_F77=yes
14423       hardcode_shlibpath_var_F77=no
14424       ;;
14425
14426     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14427     freebsd* | kfreebsd*-gnu)
14428       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14429       hardcode_libdir_flag_spec_F77='-R$libdir'
14430       hardcode_direct_F77=yes
14431       hardcode_shlibpath_var_F77=no
14432       ;;
14433
14434     hpux9*)
14435       if test "$GCC" = yes; then
14436         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'
14437       else
14438         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'
14439       fi
14440       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14441       hardcode_libdir_separator_F77=:
14442       hardcode_direct_F77=yes
14443
14444       # hardcode_minus_L: Not really in the search PATH,
14445       # but as the default location of the library.
14446       hardcode_minus_L_F77=yes
14447       export_dynamic_flag_spec_F77='${wl}-E'
14448       ;;
14449
14450     hpux10* | hpux11*)
14451       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14452         case "$host_cpu" in
14453         hppa*64*|ia64*)
14454           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14455           ;;
14456         *)
14457           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14458           ;;
14459         esac
14460       else
14461         case "$host_cpu" in
14462         hppa*64*|ia64*)
14463           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14464           ;;
14465         *)
14466           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14467           ;;
14468         esac
14469       fi
14470       if test "$with_gnu_ld" = no; then
14471         case "$host_cpu" in
14472         hppa*64*)
14473           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14474           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14475           hardcode_libdir_separator_F77=:
14476           hardcode_direct_F77=no
14477           hardcode_shlibpath_var_F77=no
14478           ;;
14479         ia64*)
14480           hardcode_libdir_flag_spec_F77='-L$libdir'
14481           hardcode_direct_F77=no
14482           hardcode_shlibpath_var_F77=no
14483
14484           # hardcode_minus_L: Not really in the search PATH,
14485           # but as the default location of the library.
14486           hardcode_minus_L_F77=yes
14487           ;;
14488         *)
14489           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14490           hardcode_libdir_separator_F77=:
14491           hardcode_direct_F77=yes
14492           export_dynamic_flag_spec_F77='${wl}-E'
14493
14494           # hardcode_minus_L: Not really in the search PATH,
14495           # but as the default location of the library.
14496           hardcode_minus_L_F77=yes
14497           ;;
14498         esac
14499       fi
14500       ;;
14501
14502     irix5* | irix6* | nonstopux*)
14503       if test "$GCC" = yes; then
14504         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'
14505       else
14506         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'
14507         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14508       fi
14509       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14510       hardcode_libdir_separator_F77=:
14511       link_all_deplibs_F77=yes
14512       ;;
14513
14514     netbsd*)
14515       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14516         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14517       else
14518         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14519       fi
14520       hardcode_libdir_flag_spec_F77='-R$libdir'
14521       hardcode_direct_F77=yes
14522       hardcode_shlibpath_var_F77=no
14523       ;;
14524
14525     newsos6)
14526       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14527       hardcode_direct_F77=yes
14528       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14529       hardcode_libdir_separator_F77=:
14530       hardcode_shlibpath_var_F77=no
14531       ;;
14532
14533     openbsd*)
14534       hardcode_direct_F77=yes
14535       hardcode_shlibpath_var_F77=no
14536       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14537         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14538         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14539         export_dynamic_flag_spec_F77='${wl}-E'
14540       else
14541        case $host_os in
14542          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14543            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14544            hardcode_libdir_flag_spec_F77='-R$libdir'
14545            ;;
14546          *)
14547            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14548            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14549            ;;
14550        esac
14551       fi
14552       ;;
14553
14554     os2*)
14555       hardcode_libdir_flag_spec_F77='-L$libdir'
14556       hardcode_minus_L_F77=yes
14557       allow_undefined_flag_F77=unsupported
14558       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'
14559       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14560       ;;
14561
14562     osf3*)
14563       if test "$GCC" = yes; then
14564         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14565         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'
14566       else
14567         allow_undefined_flag_F77=' -expect_unresolved \*'
14568         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'
14569       fi
14570       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14571       hardcode_libdir_separator_F77=:
14572       ;;
14573
14574     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14575       if test "$GCC" = yes; then
14576         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14577         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'
14578         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14579       else
14580         allow_undefined_flag_F77=' -expect_unresolved \*'
14581         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'
14582         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~
14583         $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'
14584
14585         # Both c and cxx compiler support -rpath directly
14586         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14587       fi
14588       hardcode_libdir_separator_F77=:
14589       ;;
14590
14591     sco3.2v5*)
14592       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14593       hardcode_shlibpath_var_F77=no
14594       export_dynamic_flag_spec_F77='${wl}-Bexport'
14595       runpath_var=LD_RUN_PATH
14596       hardcode_runpath_var=yes
14597       ;;
14598
14599     solaris*)
14600       no_undefined_flag_F77=' -z text'
14601       if test "$GCC" = yes; then
14602         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14603         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14604           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14605       else
14606         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14607         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14608         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14609       fi
14610       hardcode_libdir_flag_spec_F77='-R$libdir'
14611       hardcode_shlibpath_var_F77=no
14612       case $host_os in
14613       solaris2.[0-5] | solaris2.[0-5].*) ;;
14614       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14615         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14616       esac
14617       link_all_deplibs_F77=yes
14618       ;;
14619
14620     sunos4*)
14621       if test "x$host_vendor" = xsequent; then
14622         # Use $CC to link under sequent, because it throws in some extra .o
14623         # files that make .init and .fini sections work.
14624         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14625       else
14626         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14627       fi
14628       hardcode_libdir_flag_spec_F77='-L$libdir'
14629       hardcode_direct_F77=yes
14630       hardcode_minus_L_F77=yes
14631       hardcode_shlibpath_var_F77=no
14632       ;;
14633
14634     sysv4)
14635       case $host_vendor in
14636         sni)
14637           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14638           hardcode_direct_F77=yes # is this really true???
14639         ;;
14640         siemens)
14641           ## LD is ld it makes a PLAMLIB
14642           ## CC just makes a GrossModule.
14643           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14644           reload_cmds_F77='$CC -r -o $output$reload_objs'
14645           hardcode_direct_F77=no
14646         ;;
14647         motorola)
14648           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14649           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14650         ;;
14651       esac
14652       runpath_var='LD_RUN_PATH'
14653       hardcode_shlibpath_var_F77=no
14654       ;;
14655
14656     sysv4.3*)
14657       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14658       hardcode_shlibpath_var_F77=no
14659       export_dynamic_flag_spec_F77='-Bexport'
14660       ;;
14661
14662     sysv4*MP*)
14663       if test -d /usr/nec; then
14664         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14665         hardcode_shlibpath_var_F77=no
14666         runpath_var=LD_RUN_PATH
14667         hardcode_runpath_var=yes
14668         ld_shlibs_F77=yes
14669       fi
14670       ;;
14671
14672     sysv4.2uw2*)
14673       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14674       hardcode_direct_F77=yes
14675       hardcode_minus_L_F77=no
14676       hardcode_shlibpath_var_F77=no
14677       hardcode_runpath_var=yes
14678       runpath_var=LD_RUN_PATH
14679       ;;
14680
14681    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14682       no_undefined_flag_F77='${wl}-z ${wl}text'
14683       if test "$GCC" = yes; then
14684         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14685       else
14686         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14687       fi
14688       runpath_var='LD_RUN_PATH'
14689       hardcode_shlibpath_var_F77=no
14690       ;;
14691
14692     sysv5*)
14693       no_undefined_flag_F77=' -z text'
14694       # $CC -shared without GNU ld will not create a library from C++
14695       # object files and a static libstdc++, better avoid it by now
14696       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14697       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14698                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14699       hardcode_libdir_flag_spec_F77=
14700       hardcode_shlibpath_var_F77=no
14701       runpath_var='LD_RUN_PATH'
14702       ;;
14703
14704     uts4*)
14705       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14706       hardcode_libdir_flag_spec_F77='-L$libdir'
14707       hardcode_shlibpath_var_F77=no
14708       ;;
14709
14710     *)
14711       ld_shlibs_F77=no
14712       ;;
14713     esac
14714   fi
14715
14716 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14717 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14718 test "$ld_shlibs_F77" = no && can_build_shared=no
14719
14720 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14721 if test "$GCC" = yes; then
14722   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14723 fi
14724
14725 #
14726 # Do we need to explicitly link libc?
14727 #
14728 case "x$archive_cmds_need_lc_F77" in
14729 x|xyes)
14730   # Assume -lc should be added
14731   archive_cmds_need_lc_F77=yes
14732
14733   if test "$enable_shared" = yes && test "$GCC" = yes; then
14734     case $archive_cmds_F77 in
14735     *'~'*)
14736       # FIXME: we may have to deal with multi-command sequences.
14737       ;;
14738     '$CC '*)
14739       # Test whether the compiler implicitly links with -lc since on some
14740       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14741       # to ld, don't add -lc before -lgcc.
14742       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14743 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14744       $rm conftest*
14745       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14746
14747       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748   (eval $ac_compile) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } 2>conftest.err; then
14752         soname=conftest
14753         lib=conftest
14754         libobjs=conftest.$ac_objext
14755         deplibs=
14756         wl=$lt_prog_compiler_wl_F77
14757         compiler_flags=-v
14758         linker_flags=-v
14759         verstring=
14760         output_objdir=.
14761         libname=conftest
14762         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14763         allow_undefined_flag_F77=
14764         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14765   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }
14769         then
14770           archive_cmds_need_lc_F77=no
14771         else
14772           archive_cmds_need_lc_F77=yes
14773         fi
14774         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14775       else
14776         cat conftest.err 1>&5
14777       fi
14778       $rm conftest*
14779       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14780 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14781       ;;
14782     esac
14783   fi
14784   ;;
14785 esac
14786
14787 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14788 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14789 library_names_spec=
14790 libname_spec='lib$name'
14791 soname_spec=
14792 shrext_cmds=".so"
14793 postinstall_cmds=
14794 postuninstall_cmds=
14795 finish_cmds=
14796 finish_eval=
14797 shlibpath_var=
14798 shlibpath_overrides_runpath=unknown
14799 version_type=none
14800 dynamic_linker="$host_os ld.so"
14801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14802 if test "$GCC" = yes; then
14803   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14804   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14805     # if the path contains ";" then we assume it to be the separator
14806     # otherwise default to the standard path separator (i.e. ":") - it is
14807     # assumed that no part of a normal pathname contains ";" but that should
14808     # okay in the real world where ";" in dirpaths is itself problematic.
14809     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14810   else
14811     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14812   fi
14813 else
14814   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14815 fi
14816 need_lib_prefix=unknown
14817 hardcode_into_libs=no
14818
14819 # when you set need_version to no, make sure it does not cause -set_version
14820 # flags to be left without arguments
14821 need_version=unknown
14822
14823 case $host_os in
14824 aix3*)
14825   version_type=linux
14826   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14827   shlibpath_var=LIBPATH
14828
14829   # AIX 3 has no versioning support, so we append a major version to the name.
14830   soname_spec='${libname}${release}${shared_ext}$major'
14831   ;;
14832
14833 aix4* | aix5*)
14834   version_type=linux
14835   need_lib_prefix=no
14836   need_version=no
14837   hardcode_into_libs=yes
14838   if test "$host_cpu" = ia64; then
14839     # AIX 5 supports IA64
14840     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14841     shlibpath_var=LD_LIBRARY_PATH
14842   else
14843     # With GCC up to 2.95.x, collect2 would create an import file
14844     # for dependence libraries.  The import file would start with
14845     # the line `#! .'.  This would cause the generated library to
14846     # depend on `.', always an invalid library.  This was fixed in
14847     # development snapshots of GCC prior to 3.0.
14848     case $host_os in
14849       aix4 | aix4.[01] | aix4.[01].*)
14850       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14851            echo ' yes '
14852            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14853         :
14854       else
14855         can_build_shared=no
14856       fi
14857       ;;
14858     esac
14859     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14860     # soname into executable. Probably we can add versioning support to
14861     # collect2, so additional links can be useful in future.
14862     if test "$aix_use_runtimelinking" = yes; then
14863       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14864       # instead of lib<name>.a to let people know that these are not
14865       # typical AIX shared libraries.
14866       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867     else
14868       # We preserve .a as extension for shared libraries through AIX4.2
14869       # and later when we are not doing run time linking.
14870       library_names_spec='${libname}${release}.a $libname.a'
14871       soname_spec='${libname}${release}${shared_ext}$major'
14872     fi
14873     shlibpath_var=LIBPATH
14874   fi
14875   ;;
14876
14877 amigaos*)
14878   library_names_spec='$libname.ixlibrary $libname.a'
14879   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14880   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'
14881   ;;
14882
14883 beos*)
14884   library_names_spec='${libname}${shared_ext}'
14885   dynamic_linker="$host_os ld.so"
14886   shlibpath_var=LIBRARY_PATH
14887   ;;
14888
14889 bsdi4*)
14890   version_type=linux
14891   need_version=no
14892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893   soname_spec='${libname}${release}${shared_ext}$major'
14894   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14895   shlibpath_var=LD_LIBRARY_PATH
14896   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14897   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14898   # the default ld.so.conf also contains /usr/contrib/lib and
14899   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14900   # libtool to hard-code these into programs
14901   ;;
14902
14903 cygwin* | mingw* | pw32*)
14904   version_type=windows
14905   shrext_cmds=".dll"
14906   need_version=no
14907   need_lib_prefix=no
14908
14909   case $GCC,$host_os in
14910   yes,cygwin* | yes,mingw* | yes,pw32*)
14911     library_names_spec='$libname.dll.a'
14912     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14913     postinstall_cmds='base_file=`basename \${file}`~
14914       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14915       dldir=$destdir/`dirname \$dlpath`~
14916       test -d \$dldir || mkdir -p \$dldir~
14917       $install_prog $dir/$dlname \$dldir/$dlname'
14918     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14919       dlpath=$dir/\$dldll~
14920        $rm \$dlpath'
14921     shlibpath_overrides_runpath=yes
14922
14923     case $host_os in
14924     cygwin*)
14925       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14926       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14927       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14928       ;;
14929     mingw*)
14930       # MinGW DLLs use traditional 'lib' prefix
14931       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14932       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14933       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14934         # It is most probably a Windows format PATH printed by
14935         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14936         # path with ; separators, and with drive letters. We can handle the
14937         # drive letters (cygwin fileutils understands them), so leave them,
14938         # especially as we might pass files found there to a mingw objdump,
14939         # which wouldn't understand a cygwinified path. Ahh.
14940         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14941       else
14942         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14943       fi
14944       ;;
14945     pw32*)
14946       # pw32 DLLs use 'pw' prefix rather than 'lib'
14947       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14948       ;;
14949     esac
14950     ;;
14951
14952   *)
14953     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14954     ;;
14955   esac
14956   dynamic_linker='Win32 ld.exe'
14957   # FIXME: first we should search . and the directory the executable is in
14958   shlibpath_var=PATH
14959   ;;
14960
14961 darwin* | rhapsody*)
14962   dynamic_linker="$host_os dyld"
14963   version_type=darwin
14964   need_lib_prefix=no
14965   need_version=no
14966   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14967   soname_spec='${libname}${release}${major}$shared_ext'
14968   shlibpath_overrides_runpath=yes
14969   shlibpath_var=DYLD_LIBRARY_PATH
14970   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14971   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14972   if test "$GCC" = yes; then
14973     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"`
14974   else
14975     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14976   fi
14977   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14978   ;;
14979
14980 dgux*)
14981   version_type=linux
14982   need_lib_prefix=no
14983   need_version=no
14984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14985   soname_spec='${libname}${release}${shared_ext}$major'
14986   shlibpath_var=LD_LIBRARY_PATH
14987   ;;
14988
14989 freebsd1*)
14990   dynamic_linker=no
14991   ;;
14992
14993 kfreebsd*-gnu)
14994   version_type=linux
14995   need_lib_prefix=no
14996   need_version=no
14997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14998   soname_spec='${libname}${release}${shared_ext}$major'
14999   shlibpath_var=LD_LIBRARY_PATH
15000   shlibpath_overrides_runpath=no
15001   hardcode_into_libs=yes
15002   dynamic_linker='GNU ld.so'
15003   ;;
15004
15005 freebsd*)
15006   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15007   version_type=freebsd-$objformat
15008   case $version_type in
15009     freebsd-elf*)
15010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15011       need_version=no
15012       need_lib_prefix=no
15013       ;;
15014     freebsd-*)
15015       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15016       need_version=yes
15017       ;;
15018   esac
15019   shlibpath_var=LD_LIBRARY_PATH
15020   case $host_os in
15021   freebsd2*)
15022     shlibpath_overrides_runpath=yes
15023     ;;
15024   freebsd3.01* | freebsdelf3.01*)
15025     shlibpath_overrides_runpath=yes
15026     hardcode_into_libs=yes
15027     ;;
15028   *) # from 3.2 on
15029     shlibpath_overrides_runpath=no
15030     hardcode_into_libs=yes
15031     ;;
15032   esac
15033   ;;
15034
15035 gnu*)
15036   version_type=linux
15037   need_lib_prefix=no
15038   need_version=no
15039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15040   soname_spec='${libname}${release}${shared_ext}$major'
15041   shlibpath_var=LD_LIBRARY_PATH
15042   hardcode_into_libs=yes
15043   ;;
15044
15045 hpux9* | hpux10* | hpux11*)
15046   # Give a soname corresponding to the major version so that dld.sl refuses to
15047   # link against other versions.
15048   version_type=sunos
15049   need_lib_prefix=no
15050   need_version=no
15051   case "$host_cpu" in
15052   ia64*)
15053     shrext_cmds='.so'
15054     hardcode_into_libs=yes
15055     dynamic_linker="$host_os dld.so"
15056     shlibpath_var=LD_LIBRARY_PATH
15057     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059     soname_spec='${libname}${release}${shared_ext}$major'
15060     if test "X$HPUX_IA64_MODE" = X32; then
15061       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15062     else
15063       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15064     fi
15065     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15066     ;;
15067    hppa*64*)
15068      shrext_cmds='.sl'
15069      hardcode_into_libs=yes
15070      dynamic_linker="$host_os dld.sl"
15071      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15072      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15073      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074      soname_spec='${libname}${release}${shared_ext}$major'
15075      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15076      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15077      ;;
15078    *)
15079     shrext_cmds='.sl'
15080     dynamic_linker="$host_os dld.sl"
15081     shlibpath_var=SHLIB_PATH
15082     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084     soname_spec='${libname}${release}${shared_ext}$major'
15085     ;;
15086   esac
15087   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15088   postinstall_cmds='chmod 555 $lib'
15089   ;;
15090
15091 irix5* | irix6* | nonstopux*)
15092   case $host_os in
15093     nonstopux*) version_type=nonstopux ;;
15094     *)
15095         if test "$lt_cv_prog_gnu_ld" = yes; then
15096                 version_type=linux
15097         else
15098                 version_type=irix
15099         fi ;;
15100   esac
15101   need_lib_prefix=no
15102   need_version=no
15103   soname_spec='${libname}${release}${shared_ext}$major'
15104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15105   case $host_os in
15106   irix5* | nonstopux*)
15107     libsuff= shlibsuff=
15108     ;;
15109   *)
15110     case $LD in # libtool.m4 will add one of these switches to LD
15111     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15112       libsuff= shlibsuff= libmagic=32-bit;;
15113     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15114       libsuff=32 shlibsuff=N32 libmagic=N32;;
15115     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15116       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15117     *) libsuff= shlibsuff= libmagic=never-match;;
15118     esac
15119     ;;
15120   esac
15121   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15122   shlibpath_overrides_runpath=no
15123   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15124   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15125   hardcode_into_libs=yes
15126   ;;
15127
15128 # No shared lib support for Linux oldld, aout, or coff.
15129 linux*oldld* | linux*aout* | linux*coff*)
15130   dynamic_linker=no
15131   ;;
15132
15133 # This must be Linux ELF.
15134 linux*)
15135   version_type=linux
15136   need_lib_prefix=no
15137   need_version=no
15138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139   soname_spec='${libname}${release}${shared_ext}$major'
15140   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15141   shlibpath_var=LD_LIBRARY_PATH
15142   shlibpath_overrides_runpath=no
15143   # This implies no fast_install, which is unacceptable.
15144   # Some rework will be needed to allow for fast_install
15145   # before this can be enabled.
15146   hardcode_into_libs=yes
15147
15148   # find out which ABI we are using
15149   libsuff=
15150   case "$host_cpu" in
15151   x86_64*|s390x*|powerpc64*)
15152     echo '#line 15152 "configure"' > conftest.$ac_ext
15153     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154   (eval $ac_compile) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; then
15158       case `/usr/bin/file conftest.$ac_objext` in
15159       *64-bit*)
15160         libsuff=64
15161         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15162         ;;
15163       esac
15164     fi
15165     rm -rf conftest*
15166     ;;
15167   esac
15168
15169   # Append ld.so.conf contents to the search path
15170   if test -f /etc/ld.so.conf; then
15171     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15172     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15173   fi
15174
15175   # We used to test for /lib/ld.so.1 and disable shared libraries on
15176   # powerpc, because MkLinux only supported shared libraries with the
15177   # GNU dynamic linker.  Since this was broken with cross compilers,
15178   # most powerpc-linux boxes support dynamic linking these days and
15179   # people can always --disable-shared, the test was removed, and we
15180   # assume the GNU/Linux dynamic linker is in use.
15181   dynamic_linker='GNU/Linux ld.so'
15182   ;;
15183
15184 knetbsd*-gnu)
15185   version_type=linux
15186   need_lib_prefix=no
15187   need_version=no
15188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15189   soname_spec='${libname}${release}${shared_ext}$major'
15190   shlibpath_var=LD_LIBRARY_PATH
15191   shlibpath_overrides_runpath=no
15192   hardcode_into_libs=yes
15193   dynamic_linker='GNU ld.so'
15194   ;;
15195
15196 netbsd*)
15197   version_type=sunos
15198   need_lib_prefix=no
15199   need_version=no
15200   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15202     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15203     dynamic_linker='NetBSD (a.out) ld.so'
15204   else
15205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206     soname_spec='${libname}${release}${shared_ext}$major'
15207     dynamic_linker='NetBSD ld.elf_so'
15208   fi
15209   shlibpath_var=LD_LIBRARY_PATH
15210   shlibpath_overrides_runpath=yes
15211   hardcode_into_libs=yes
15212   ;;
15213
15214 newsos6)
15215   version_type=linux
15216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217   shlibpath_var=LD_LIBRARY_PATH
15218   shlibpath_overrides_runpath=yes
15219   ;;
15220
15221 nto-qnx*)
15222   version_type=linux
15223   need_lib_prefix=no
15224   need_version=no
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226   soname_spec='${libname}${release}${shared_ext}$major'
15227   shlibpath_var=LD_LIBRARY_PATH
15228   shlibpath_overrides_runpath=yes
15229   ;;
15230
15231 openbsd*)
15232   version_type=sunos
15233   need_lib_prefix=no
15234   need_version=yes
15235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15236   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15237   shlibpath_var=LD_LIBRARY_PATH
15238   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15239     case $host_os in
15240       openbsd2.[89] | openbsd2.[89].*)
15241         shlibpath_overrides_runpath=no
15242         ;;
15243       *)
15244         shlibpath_overrides_runpath=yes
15245         ;;
15246       esac
15247   else
15248     shlibpath_overrides_runpath=yes
15249   fi
15250   ;;
15251
15252 os2*)
15253   libname_spec='$name'
15254   shrext_cmds=".dll"
15255   need_lib_prefix=no
15256   library_names_spec='$libname${shared_ext} $libname.a'
15257   dynamic_linker='OS/2 ld.exe'
15258   shlibpath_var=LIBPATH
15259   ;;
15260
15261 osf3* | osf4* | osf5*)
15262   version_type=osf
15263   need_lib_prefix=no
15264   need_version=no
15265   soname_spec='${libname}${release}${shared_ext}$major'
15266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267   shlibpath_var=LD_LIBRARY_PATH
15268   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15269   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15270   ;;
15271
15272 sco3.2v5*)
15273   version_type=osf
15274   soname_spec='${libname}${release}${shared_ext}$major'
15275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276   shlibpath_var=LD_LIBRARY_PATH
15277   ;;
15278
15279 solaris*)
15280   version_type=linux
15281   need_lib_prefix=no
15282   need_version=no
15283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284   soname_spec='${libname}${release}${shared_ext}$major'
15285   shlibpath_var=LD_LIBRARY_PATH
15286   shlibpath_overrides_runpath=yes
15287   hardcode_into_libs=yes
15288   # ldd complains unless libraries are executable
15289   postinstall_cmds='chmod +x $lib'
15290   ;;
15291
15292 sunos4*)
15293   version_type=sunos
15294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15295   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15296   shlibpath_var=LD_LIBRARY_PATH
15297   shlibpath_overrides_runpath=yes
15298   if test "$with_gnu_ld" = yes; then
15299     need_lib_prefix=no
15300   fi
15301   need_version=yes
15302   ;;
15303
15304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15305   version_type=linux
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307   soname_spec='${libname}${release}${shared_ext}$major'
15308   shlibpath_var=LD_LIBRARY_PATH
15309   case $host_vendor in
15310     sni)
15311       shlibpath_overrides_runpath=no
15312       need_lib_prefix=no
15313       export_dynamic_flag_spec='${wl}-Blargedynsym'
15314       runpath_var=LD_RUN_PATH
15315       ;;
15316     siemens)
15317       need_lib_prefix=no
15318       ;;
15319     motorola)
15320       need_lib_prefix=no
15321       need_version=no
15322       shlibpath_overrides_runpath=no
15323       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15324       ;;
15325   esac
15326   ;;
15327
15328 sysv4*MP*)
15329   if test -d /usr/nec ;then
15330     version_type=linux
15331     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15332     soname_spec='$libname${shared_ext}.$major'
15333     shlibpath_var=LD_LIBRARY_PATH
15334   fi
15335   ;;
15336
15337 uts4*)
15338   version_type=linux
15339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340   soname_spec='${libname}${release}${shared_ext}$major'
15341   shlibpath_var=LD_LIBRARY_PATH
15342   ;;
15343
15344 *)
15345   dynamic_linker=no
15346   ;;
15347 esac
15348 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15349 echo "${ECHO_T}$dynamic_linker" >&6; }
15350 test "$dynamic_linker" = no && can_build_shared=no
15351
15352 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15353 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15354 hardcode_action_F77=
15355 if test -n "$hardcode_libdir_flag_spec_F77" || \
15356    test -n "$runpath_var F77" || \
15357    test "X$hardcode_automatic_F77"="Xyes" ; then
15358
15359   # We can hardcode non-existant directories.
15360   if test "$hardcode_direct_F77" != no &&
15361      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15362      # have to relink, otherwise we might link with an installed library
15363      # when we should be linking with a yet-to-be-installed one
15364      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15365      test "$hardcode_minus_L_F77" != no; then
15366     # Linking always hardcodes the temporary library directory.
15367     hardcode_action_F77=relink
15368   else
15369     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15370     hardcode_action_F77=immediate
15371   fi
15372 else
15373   # We cannot hardcode anything, or else we can only hardcode existing
15374   # directories.
15375   hardcode_action_F77=unsupported
15376 fi
15377 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15378 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15379
15380 if test "$hardcode_action_F77" = relink; then
15381   # Fast installation is not supported
15382   enable_fast_install=no
15383 elif test "$shlibpath_overrides_runpath" = yes ||
15384      test "$enable_shared" = no; then
15385   # Fast installation is not necessary
15386   enable_fast_install=needless
15387 fi
15388
15389 striplib=
15390 old_striplib=
15391 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15392 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15393 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15394   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15395   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15396   { echo "$as_me:$LINENO: result: yes" >&5
15397 echo "${ECHO_T}yes" >&6; }
15398 else
15399 # FIXME - insert some real tests, host_os isn't really good enough
15400   case $host_os in
15401    darwin*)
15402        if test -n "$STRIP" ; then
15403          striplib="$STRIP -x"
15404          { echo "$as_me:$LINENO: result: yes" >&5
15405 echo "${ECHO_T}yes" >&6; }
15406        else
15407   { echo "$as_me:$LINENO: result: no" >&5
15408 echo "${ECHO_T}no" >&6; }
15409 fi
15410        ;;
15411    *)
15412   { echo "$as_me:$LINENO: result: no" >&5
15413 echo "${ECHO_T}no" >&6; }
15414     ;;
15415   esac
15416 fi
15417
15418
15419
15420 # The else clause should only fire when bootstrapping the
15421 # libtool distribution, otherwise you forgot to ship ltmain.sh
15422 # with your package, and you will get complaints that there are
15423 # no rules to generate ltmain.sh.
15424 if test -f "$ltmain"; then
15425   # See if we are running on zsh, and set the options which allow our commands through
15426   # without removal of \ escapes.
15427   if test -n "${ZSH_VERSION+set}" ; then
15428     setopt NO_GLOB_SUBST
15429   fi
15430   # Now quote all the things that may contain metacharacters while being
15431   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15432   # variables and quote the copies for generation of the libtool script.
15433   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15434     SED SHELL STRIP \
15435     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15436     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15437     deplibs_check_method reload_flag reload_cmds need_locks \
15438     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15439     lt_cv_sys_global_symbol_to_c_name_address \
15440     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15441     old_postinstall_cmds old_postuninstall_cmds \
15442     compiler_F77 \
15443     CC_F77 \
15444     LD_F77 \
15445     lt_prog_compiler_wl_F77 \
15446     lt_prog_compiler_pic_F77 \
15447     lt_prog_compiler_static_F77 \
15448     lt_prog_compiler_no_builtin_flag_F77 \
15449     export_dynamic_flag_spec_F77 \
15450     thread_safe_flag_spec_F77 \
15451     whole_archive_flag_spec_F77 \
15452     enable_shared_with_static_runtimes_F77 \
15453     old_archive_cmds_F77 \
15454     old_archive_from_new_cmds_F77 \
15455     predep_objects_F77 \
15456     postdep_objects_F77 \
15457     predeps_F77 \
15458     postdeps_F77 \
15459     compiler_lib_search_path_F77 \
15460     archive_cmds_F77 \
15461     archive_expsym_cmds_F77 \
15462     postinstall_cmds_F77 \
15463     postuninstall_cmds_F77 \
15464     old_archive_from_expsyms_cmds_F77 \
15465     allow_undefined_flag_F77 \
15466     no_undefined_flag_F77 \
15467     export_symbols_cmds_F77 \
15468     hardcode_libdir_flag_spec_F77 \
15469     hardcode_libdir_flag_spec_ld_F77 \
15470     hardcode_libdir_separator_F77 \
15471     hardcode_automatic_F77 \
15472     module_cmds_F77 \
15473     module_expsym_cmds_F77 \
15474     lt_cv_prog_compiler_c_o_F77 \
15475     exclude_expsyms_F77 \
15476     include_expsyms_F77; do
15477
15478     case $var in
15479     old_archive_cmds_F77 | \
15480     old_archive_from_new_cmds_F77 | \
15481     archive_cmds_F77 | \
15482     archive_expsym_cmds_F77 | \
15483     module_cmds_F77 | \
15484     module_expsym_cmds_F77 | \
15485     old_archive_from_expsyms_cmds_F77 | \
15486     export_symbols_cmds_F77 | \
15487     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15488     postinstall_cmds | postuninstall_cmds | \
15489     old_postinstall_cmds | old_postuninstall_cmds | \
15490     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15491       # Double-quote double-evaled strings.
15492       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15493       ;;
15494     *)
15495       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15496       ;;
15497     esac
15498   done
15499
15500   case $lt_echo in
15501   *'\$0 --fallback-echo"')
15502     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15503     ;;
15504   esac
15505
15506 cfgfile="$ofile"
15507
15508   cat <<__EOF__ >> "$cfgfile"
15509 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15510
15511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15512
15513 # Shell to use when invoking shell scripts.
15514 SHELL=$lt_SHELL
15515
15516 # Whether or not to build shared libraries.
15517 build_libtool_libs=$enable_shared
15518
15519 # Whether or not to build static libraries.
15520 build_old_libs=$enable_static
15521
15522 # Whether or not to add -lc for building shared libraries.
15523 build_libtool_need_lc=$archive_cmds_need_lc_F77
15524
15525 # Whether or not to disallow shared libs when runtime libs are static
15526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15527
15528 # Whether or not to optimize for fast installation.
15529 fast_install=$enable_fast_install
15530
15531 # The host system.
15532 host_alias=$host_alias
15533 host=$host
15534
15535 # An echo program that does not interpret backslashes.
15536 echo=$lt_echo
15537
15538 # The archiver.
15539 AR=$lt_AR
15540 AR_FLAGS=$lt_AR_FLAGS
15541
15542 # A C compiler.
15543 LTCC=$lt_LTCC
15544
15545 # A language-specific compiler.
15546 CC=$lt_compiler_F77
15547
15548 # Is the compiler the GNU C compiler?
15549 with_gcc=$GCC_F77
15550
15551 # An ERE matcher.
15552 EGREP=$lt_EGREP
15553
15554 # The linker used to build libraries.
15555 LD=$lt_LD_F77
15556
15557 # Whether we need hard or soft links.
15558 LN_S=$lt_LN_S
15559
15560 # A BSD-compatible nm program.
15561 NM=$lt_NM
15562
15563 # A symbol stripping program
15564 STRIP=$lt_STRIP
15565
15566 # Used to examine libraries when file_magic_cmd begins "file"
15567 MAGIC_CMD=$MAGIC_CMD
15568
15569 # Used on cygwin: DLL creation program.
15570 DLLTOOL="$DLLTOOL"
15571
15572 # Used on cygwin: object dumper.
15573 OBJDUMP="$OBJDUMP"
15574
15575 # Used on cygwin: assembler.
15576 AS="$AS"
15577
15578 # The name of the directory that contains temporary libtool files.
15579 objdir=$objdir
15580
15581 # How to create reloadable object files.
15582 reload_flag=$lt_reload_flag
15583 reload_cmds=$lt_reload_cmds
15584
15585 # How to pass a linker flag through the compiler.
15586 wl=$lt_lt_prog_compiler_wl_F77
15587
15588 # Object file suffix (normally "o").
15589 objext="$ac_objext"
15590
15591 # Old archive suffix (normally "a").
15592 libext="$libext"
15593
15594 # Shared library suffix (normally ".so").
15595 shrext_cmds='$shrext_cmds'
15596
15597 # Executable file suffix (normally "").
15598 exeext="$exeext"
15599
15600 # Additional compiler flags for building library objects.
15601 pic_flag=$lt_lt_prog_compiler_pic_F77
15602 pic_mode=$pic_mode
15603
15604 # What is the maximum length of a command?
15605 max_cmd_len=$lt_cv_sys_max_cmd_len
15606
15607 # Does compiler simultaneously support -c and -o options?
15608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15609
15610 # Must we lock files when doing compilation ?
15611 need_locks=$lt_need_locks
15612
15613 # Do we need the lib prefix for modules?
15614 need_lib_prefix=$need_lib_prefix
15615
15616 # Do we need a version for libraries?
15617 need_version=$need_version
15618
15619 # Whether dlopen is supported.
15620 dlopen_support=$enable_dlopen
15621
15622 # Whether dlopen of programs is supported.
15623 dlopen_self=$enable_dlopen_self
15624
15625 # Whether dlopen of statically linked programs is supported.
15626 dlopen_self_static=$enable_dlopen_self_static
15627
15628 # Compiler flag to prevent dynamic linking.
15629 link_static_flag=$lt_lt_prog_compiler_static_F77
15630
15631 # Compiler flag to turn off builtin functions.
15632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15633
15634 # Compiler flag to allow reflexive dlopens.
15635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15636
15637 # Compiler flag to generate shared objects directly from archives.
15638 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15639
15640 # Compiler flag to generate thread-safe objects.
15641 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15642
15643 # Library versioning type.
15644 version_type=$version_type
15645
15646 # Format of library name prefix.
15647 libname_spec=$lt_libname_spec
15648
15649 # List of archive names.  First name is the real one, the rest are links.
15650 # The last name is the one that the linker finds with -lNAME.
15651 library_names_spec=$lt_library_names_spec
15652
15653 # The coded name of the library, if different from the real name.
15654 soname_spec=$lt_soname_spec
15655
15656 # Commands used to build and install an old-style archive.
15657 RANLIB=$lt_RANLIB
15658 old_archive_cmds=$lt_old_archive_cmds_F77
15659 old_postinstall_cmds=$lt_old_postinstall_cmds
15660 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15661
15662 # Create an old-style archive from a shared archive.
15663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15664
15665 # Create a temporary old-style archive to link instead of a shared archive.
15666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15667
15668 # Commands used to build and install a shared archive.
15669 archive_cmds=$lt_archive_cmds_F77
15670 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15671 postinstall_cmds=$lt_postinstall_cmds
15672 postuninstall_cmds=$lt_postuninstall_cmds
15673
15674 # Commands used to build a loadable module (assumed same as above if empty)
15675 module_cmds=$lt_module_cmds_F77
15676 module_expsym_cmds=$lt_module_expsym_cmds_F77
15677
15678 # Commands to strip libraries.
15679 old_striplib=$lt_old_striplib
15680 striplib=$lt_striplib
15681
15682 # Dependencies to place before the objects being linked to create a
15683 # shared library.
15684 predep_objects=$lt_predep_objects_F77
15685
15686 # Dependencies to place after the objects being linked to create a
15687 # shared library.
15688 postdep_objects=$lt_postdep_objects_F77
15689
15690 # Dependencies to place before the objects being linked to create a
15691 # shared library.
15692 predeps=$lt_predeps_F77
15693
15694 # Dependencies to place after the objects being linked to create a
15695 # shared library.
15696 postdeps=$lt_postdeps_F77
15697
15698 # The library search path used internally by the compiler when linking
15699 # a shared library.
15700 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15701
15702 # Method to check whether dependent libraries are shared objects.
15703 deplibs_check_method=$lt_deplibs_check_method
15704
15705 # Command to use when deplibs_check_method == file_magic.
15706 file_magic_cmd=$lt_file_magic_cmd
15707
15708 # Flag that allows shared libraries with undefined symbols to be built.
15709 allow_undefined_flag=$lt_allow_undefined_flag_F77
15710
15711 # Flag that forces no undefined symbols.
15712 no_undefined_flag=$lt_no_undefined_flag_F77
15713
15714 # Commands used to finish a libtool library installation in a directory.
15715 finish_cmds=$lt_finish_cmds
15716
15717 # Same as above, but a single script fragment to be evaled but not shown.
15718 finish_eval=$lt_finish_eval
15719
15720 # Take the output of nm and produce a listing of raw symbols and C names.
15721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15722
15723 # Transform the output of nm in a proper C declaration
15724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15725
15726 # Transform the output of nm in a C name address pair
15727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15728
15729 # This is the shared library runtime path variable.
15730 runpath_var=$runpath_var
15731
15732 # This is the shared library path variable.
15733 shlibpath_var=$shlibpath_var
15734
15735 # Is shlibpath searched before the hard-coded library search path?
15736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15737
15738 # How to hardcode a shared library path into an executable.
15739 hardcode_action=$hardcode_action_F77
15740
15741 # Whether we should hardcode library paths into libraries.
15742 hardcode_into_libs=$hardcode_into_libs
15743
15744 # Flag to hardcode \$libdir into a binary during linking.
15745 # This must work even if \$libdir does not exist.
15746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15747
15748 # If ld is used when linking, flag to hardcode \$libdir into
15749 # a binary during linking. This must work even if \$libdir does
15750 # not exist.
15751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15752
15753 # Whether we need a single -rpath flag with a separated argument.
15754 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15755
15756 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15757 # resulting binary.
15758 hardcode_direct=$hardcode_direct_F77
15759
15760 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15761 # resulting binary.
15762 hardcode_minus_L=$hardcode_minus_L_F77
15763
15764 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15765 # the resulting binary.
15766 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15767
15768 # Set to yes if building a shared library automatically hardcodes DIR into the library
15769 # and all subsequent libraries and executables linked against it.
15770 hardcode_automatic=$hardcode_automatic_F77
15771
15772 # Variables whose values should be saved in libtool wrapper scripts and
15773 # restored at relink time.
15774 variables_saved_for_relink="$variables_saved_for_relink"
15775
15776 # Whether libtool must link a program against all its dependency libraries.
15777 link_all_deplibs=$link_all_deplibs_F77
15778
15779 # Compile-time system search path for libraries
15780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15781
15782 # Run-time system search path for libraries
15783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15784
15785 # Fix the shell variable \$srcfile for the compiler.
15786 fix_srcfile_path="$fix_srcfile_path_F77"
15787
15788 # Set to yes if exported symbols are required.
15789 always_export_symbols=$always_export_symbols_F77
15790
15791 # The commands to list exported symbols.
15792 export_symbols_cmds=$lt_export_symbols_cmds_F77
15793
15794 # The commands to extract the exported symbol list from a shared archive.
15795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15796
15797 # Symbols that should not be listed in the preloaded symbols.
15798 exclude_expsyms=$lt_exclude_expsyms_F77
15799
15800 # Symbols that must always be exported.
15801 include_expsyms=$lt_include_expsyms_F77
15802
15803 # ### END LIBTOOL TAG CONFIG: $tagname
15804
15805 __EOF__
15806
15807
15808 else
15809   # If there is no Makefile yet, we rely on a make rule to execute
15810   # `config.status --recheck' to rerun these tests and create the
15811   # libtool script then.
15812   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15813   if test -f "$ltmain_in"; then
15814     test -f Makefile && make "$ltmain"
15815   fi
15816 fi
15817
15818
15819 ac_ext=c
15820 ac_cpp='$CPP $CPPFLAGS'
15821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15824
15825 CC="$lt_save_CC"
15826
15827         else
15828           tagname=""
15829         fi
15830         ;;
15831
15832       GCJ)
15833         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15834
15835
15836 # Source file extension for Java test sources.
15837 ac_ext=java
15838
15839 # Object file extension for compiled Java test sources.
15840 objext=o
15841 objext_GCJ=$objext
15842
15843 # Code to be used in simple compile tests
15844 lt_simple_compile_test_code="class foo {}\n"
15845
15846 # Code to be used in simple link tests
15847 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15848
15849 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15850
15851 # If no C compiler was specified, use CC.
15852 LTCC=${LTCC-"$CC"}
15853
15854 # Allow CC to be a program name with arguments.
15855 compiler=$CC
15856
15857
15858 # Allow CC to be a program name with arguments.
15859 lt_save_CC="$CC"
15860 CC=${GCJ-"gcj"}
15861 compiler=$CC
15862 compiler_GCJ=$CC
15863
15864 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15865 archive_cmds_need_lc_GCJ=no
15866
15867 ## CAVEAT EMPTOR:
15868 ## There is no encapsulation within the following macros, do not change
15869 ## the running order or otherwise move them around unless you know exactly
15870 ## what you are doing...
15871
15872 lt_prog_compiler_no_builtin_flag_GCJ=
15873
15874 if test "$GCC" = yes; then
15875   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15876
15877
15878 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15879 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15880 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15881   echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883   lt_cv_prog_compiler_rtti_exceptions=no
15884   ac_outfile=conftest.$ac_objext
15885    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15886    lt_compiler_flag="-fno-rtti -fno-exceptions"
15887    # Insert the option either (1) after the last *FLAGS variable, or
15888    # (2) before a word containing "conftest.", or (3) at the end.
15889    # Note that $ac_compile itself does not contain backslashes and begins
15890    # with a dollar sign (not a hyphen), so the echo should work correctly.
15891    # The option is referenced via a variable to avoid confusing sed.
15892    lt_compile=`echo "$ac_compile" | $SED \
15893    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15895    -e 's:$: $lt_compiler_flag:'`
15896    (eval echo "\"\$as_me:15896: $lt_compile\"" >&5)
15897    (eval "$lt_compile" 2>conftest.err)
15898    ac_status=$?
15899    cat conftest.err >&5
15900    echo "$as_me:15900: \$? = $ac_status" >&5
15901    if (exit $ac_status) && test -s "$ac_outfile"; then
15902      # The compiler can only warn and ignore the option if not recognized
15903      # So say no if there are warnings
15904      if test ! -s conftest.err; then
15905        lt_cv_prog_compiler_rtti_exceptions=yes
15906      fi
15907    fi
15908    $rm conftest*
15909
15910 fi
15911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15912 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15913
15914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15915     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15916 else
15917     :
15918 fi
15919
15920 fi
15921
15922 lt_prog_compiler_wl_GCJ=
15923 lt_prog_compiler_pic_GCJ=
15924 lt_prog_compiler_static_GCJ=
15925
15926 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15928
15929   if test "$GCC" = yes; then
15930     lt_prog_compiler_wl_GCJ='-Wl,'
15931     lt_prog_compiler_static_GCJ='-static'
15932
15933     case $host_os in
15934       aix*)
15935       # All AIX code is PIC.
15936       if test "$host_cpu" = ia64; then
15937         # AIX 5 now supports IA64 processor
15938         lt_prog_compiler_static_GCJ='-Bstatic'
15939       fi
15940       ;;
15941
15942     amigaos*)
15943       # FIXME: we need at least 68020 code to build shared libraries, but
15944       # adding the `-m68020' flag to GCC prevents building anything better,
15945       # like `-m68040'.
15946       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15947       ;;
15948
15949     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15950       # PIC is the default for these OSes.
15951       ;;
15952
15953     mingw* | pw32* | os2*)
15954       # This hack is so that the source file can tell whether it is being
15955       # built for inclusion in a dll (and should export symbols for example).
15956       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15957       ;;
15958
15959     darwin* | rhapsody*)
15960       # PIC is the default on this platform
15961       # Common symbols not allowed in MH_DYLIB files
15962       lt_prog_compiler_pic_GCJ='-fno-common'
15963       ;;
15964
15965     msdosdjgpp*)
15966       # Just because we use GCC doesn't mean we suddenly get shared libraries
15967       # on systems that don't support them.
15968       lt_prog_compiler_can_build_shared_GCJ=no
15969       enable_shared=no
15970       ;;
15971
15972     sysv4*MP*)
15973       if test -d /usr/nec; then
15974         lt_prog_compiler_pic_GCJ=-Kconform_pic
15975       fi
15976       ;;
15977
15978     hpux*)
15979       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15980       # not for PA HP-UX.
15981       case "$host_cpu" in
15982       hppa*64*|ia64*)
15983         # +Z the default
15984         ;;
15985       *)
15986         lt_prog_compiler_pic_GCJ='-fPIC'
15987         ;;
15988       esac
15989       ;;
15990
15991     *)
15992       lt_prog_compiler_pic_GCJ='-fPIC'
15993       ;;
15994     esac
15995   else
15996     # PORTME Check for flag to pass linker flags through the system compiler.
15997     case $host_os in
15998     aix*)
15999       lt_prog_compiler_wl_GCJ='-Wl,'
16000       if test "$host_cpu" = ia64; then
16001         # AIX 5 now supports IA64 processor
16002         lt_prog_compiler_static_GCJ='-Bstatic'
16003       else
16004         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16005       fi
16006       ;;
16007
16008     mingw* | pw32* | os2*)
16009       # This hack is so that the source file can tell whether it is being
16010       # built for inclusion in a dll (and should export symbols for example).
16011       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16012       ;;
16013
16014     hpux9* | hpux10* | hpux11*)
16015       lt_prog_compiler_wl_GCJ='-Wl,'
16016       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16017       # not for PA HP-UX.
16018       case "$host_cpu" in
16019       hppa*64*|ia64*)
16020         # +Z the default
16021         ;;
16022       *)
16023         lt_prog_compiler_pic_GCJ='+Z'
16024         ;;
16025       esac
16026       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16027       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16028       ;;
16029
16030     irix5* | irix6* | nonstopux*)
16031       lt_prog_compiler_wl_GCJ='-Wl,'
16032       # PIC (with -KPIC) is the default.
16033       lt_prog_compiler_static_GCJ='-non_shared'
16034       ;;
16035
16036     newsos6)
16037       lt_prog_compiler_pic_GCJ='-KPIC'
16038       lt_prog_compiler_static_GCJ='-Bstatic'
16039       ;;
16040
16041     linux*)
16042       case $CC in
16043       icc* | ecc*)
16044         lt_prog_compiler_wl_GCJ='-Wl,'
16045         lt_prog_compiler_pic_GCJ='-KPIC'
16046         lt_prog_compiler_static_GCJ='-static'
16047         ;;
16048       ccc*)
16049         lt_prog_compiler_wl_GCJ='-Wl,'
16050         # All Alpha code is PIC.
16051         lt_prog_compiler_static_GCJ='-non_shared'
16052         ;;
16053       esac
16054       ;;
16055
16056     osf3* | osf4* | osf5*)
16057       lt_prog_compiler_wl_GCJ='-Wl,'
16058       # All OSF/1 code is PIC.
16059       lt_prog_compiler_static_GCJ='-non_shared'
16060       ;;
16061
16062     sco3.2v5*)
16063       lt_prog_compiler_pic_GCJ='-Kpic'
16064       lt_prog_compiler_static_GCJ='-dn'
16065       ;;
16066
16067     solaris*)
16068       lt_prog_compiler_wl_GCJ='-Wl,'
16069       lt_prog_compiler_pic_GCJ='-KPIC'
16070       lt_prog_compiler_static_GCJ='-Bstatic'
16071       ;;
16072
16073     sunos4*)
16074       lt_prog_compiler_wl_GCJ='-Qoption ld '
16075       lt_prog_compiler_pic_GCJ='-PIC'
16076       lt_prog_compiler_static_GCJ='-Bstatic'
16077       ;;
16078
16079     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16080       lt_prog_compiler_wl_GCJ='-Wl,'
16081       lt_prog_compiler_pic_GCJ='-KPIC'
16082       lt_prog_compiler_static_GCJ='-Bstatic'
16083       ;;
16084
16085     sysv4*MP*)
16086       if test -d /usr/nec ;then
16087         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16088         lt_prog_compiler_static_GCJ='-Bstatic'
16089       fi
16090       ;;
16091
16092     uts4*)
16093       lt_prog_compiler_pic_GCJ='-pic'
16094       lt_prog_compiler_static_GCJ='-Bstatic'
16095       ;;
16096
16097     *)
16098       lt_prog_compiler_can_build_shared_GCJ=no
16099       ;;
16100     esac
16101   fi
16102
16103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16104 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16105
16106 #
16107 # Check to make sure the PIC flag actually works.
16108 #
16109 if test -n "$lt_prog_compiler_pic_GCJ"; then
16110
16111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16113 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   lt_prog_compiler_pic_works_GCJ=no
16117   ac_outfile=conftest.$ac_objext
16118    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16119    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16120    # Insert the option either (1) after the last *FLAGS variable, or
16121    # (2) before a word containing "conftest.", or (3) at the end.
16122    # Note that $ac_compile itself does not contain backslashes and begins
16123    # with a dollar sign (not a hyphen), so the echo should work correctly.
16124    # The option is referenced via a variable to avoid confusing sed.
16125    lt_compile=`echo "$ac_compile" | $SED \
16126    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16128    -e 's:$: $lt_compiler_flag:'`
16129    (eval echo "\"\$as_me:16129: $lt_compile\"" >&5)
16130    (eval "$lt_compile" 2>conftest.err)
16131    ac_status=$?
16132    cat conftest.err >&5
16133    echo "$as_me:16133: \$? = $ac_status" >&5
16134    if (exit $ac_status) && test -s "$ac_outfile"; then
16135      # The compiler can only warn and ignore the option if not recognized
16136      # So say no if there are warnings
16137      if test ! -s conftest.err; then
16138        lt_prog_compiler_pic_works_GCJ=yes
16139      fi
16140    fi
16141    $rm conftest*
16142
16143 fi
16144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16145 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16146
16147 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16148     case $lt_prog_compiler_pic_GCJ in
16149      "" | " "*) ;;
16150      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16151      esac
16152 else
16153     lt_prog_compiler_pic_GCJ=
16154      lt_prog_compiler_can_build_shared_GCJ=no
16155 fi
16156
16157 fi
16158 case "$host_os" in
16159   # For platforms which do not support PIC, -DPIC is meaningless:
16160   *djgpp*)
16161     lt_prog_compiler_pic_GCJ=
16162     ;;
16163   *)
16164     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16165     ;;
16166 esac
16167
16168 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16170 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16171   echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173   lt_cv_prog_compiler_c_o_GCJ=no
16174    $rm -r conftest 2>/dev/null
16175    mkdir conftest
16176    cd conftest
16177    mkdir out
16178    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16179
16180    lt_compiler_flag="-o out/conftest2.$ac_objext"
16181    # Insert the option either (1) after the last *FLAGS variable, or
16182    # (2) before a word containing "conftest.", or (3) at the end.
16183    # Note that $ac_compile itself does not contain backslashes and begins
16184    # with a dollar sign (not a hyphen), so the echo should work correctly.
16185    lt_compile=`echo "$ac_compile" | $SED \
16186    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16188    -e 's:$: $lt_compiler_flag:'`
16189    (eval echo "\"\$as_me:16189: $lt_compile\"" >&5)
16190    (eval "$lt_compile" 2>out/conftest.err)
16191    ac_status=$?
16192    cat out/conftest.err >&5
16193    echo "$as_me:16193: \$? = $ac_status" >&5
16194    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16195    then
16196      # The compiler can only warn and ignore the option if not recognized
16197      # So say no if there are warnings
16198      if test ! -s out/conftest.err; then
16199        lt_cv_prog_compiler_c_o_GCJ=yes
16200      fi
16201    fi
16202    chmod u+w .
16203    $rm conftest*
16204    # SGI C++ compiler will create directory out/ii_files/ for
16205    # template instantiation
16206    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16207    $rm out/* && rmdir out
16208    cd ..
16209    rmdir conftest
16210    $rm conftest*
16211
16212 fi
16213 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16215
16216
16217 hard_links="nottested"
16218 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16219   # do not overwrite the value of need_locks provided by the user
16220   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16222   hard_links=yes
16223   $rm conftest*
16224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16225   touch conftest.a
16226   ln conftest.a conftest.b 2>&5 || hard_links=no
16227   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16228   { echo "$as_me:$LINENO: result: $hard_links" >&5
16229 echo "${ECHO_T}$hard_links" >&6; }
16230   if test "$hard_links" = no; then
16231     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16233     need_locks=warn
16234   fi
16235 else
16236   need_locks=no
16237 fi
16238
16239 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16241
16242   runpath_var=
16243   allow_undefined_flag_GCJ=
16244   enable_shared_with_static_runtimes_GCJ=no
16245   archive_cmds_GCJ=
16246   archive_expsym_cmds_GCJ=
16247   old_archive_From_new_cmds_GCJ=
16248   old_archive_from_expsyms_cmds_GCJ=
16249   export_dynamic_flag_spec_GCJ=
16250   whole_archive_flag_spec_GCJ=
16251   thread_safe_flag_spec_GCJ=
16252   hardcode_libdir_flag_spec_GCJ=
16253   hardcode_libdir_flag_spec_ld_GCJ=
16254   hardcode_libdir_separator_GCJ=
16255   hardcode_direct_GCJ=no
16256   hardcode_minus_L_GCJ=no
16257   hardcode_shlibpath_var_GCJ=unsupported
16258   link_all_deplibs_GCJ=unknown
16259   hardcode_automatic_GCJ=no
16260   module_cmds_GCJ=
16261   module_expsym_cmds_GCJ=
16262   always_export_symbols_GCJ=no
16263   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16264   # include_expsyms should be a list of space-separated symbols to be *always*
16265   # included in the symbol list
16266   include_expsyms_GCJ=
16267   # exclude_expsyms can be an extended regexp of symbols to exclude
16268   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16269   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16270   # as well as any symbol that contains `d'.
16271   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16272   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16273   # platforms (ab)use it in PIC code, but their linkers get confused if
16274   # the symbol is explicitly referenced.  Since portable code cannot
16275   # rely on this symbol name, it's probably fine to never include it in
16276   # preloaded symbol tables.
16277   extract_expsyms_cmds=
16278
16279   case $host_os in
16280   cygwin* | mingw* | pw32*)
16281     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16282     # When not using gcc, we currently assume that we are using
16283     # Microsoft Visual C++.
16284     if test "$GCC" != yes; then
16285       with_gnu_ld=no
16286     fi
16287     ;;
16288   openbsd*)
16289     with_gnu_ld=no
16290     ;;
16291   esac
16292
16293   ld_shlibs_GCJ=yes
16294   if test "$with_gnu_ld" = yes; then
16295     # If archive_cmds runs LD, not CC, wlarc should be empty
16296     wlarc='${wl}'
16297
16298     # See if GNU ld supports shared libraries.
16299     case $host_os in
16300     aix3* | aix4* | aix5*)
16301       # On AIX/PPC, the GNU linker is very broken
16302       if test "$host_cpu" != ia64; then
16303         ld_shlibs_GCJ=no
16304         cat <<EOF 1>&2
16305
16306 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16307 *** to be unable to reliably create shared libraries on AIX.
16308 *** Therefore, libtool is disabling shared libraries support.  If you
16309 *** really care for shared libraries, you may want to modify your PATH
16310 *** so that a non-GNU linker is found, and then restart.
16311
16312 EOF
16313       fi
16314       ;;
16315
16316     amigaos*)
16317       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)'
16318       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16319       hardcode_minus_L_GCJ=yes
16320
16321       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16322       # that the semantics of dynamic libraries on AmigaOS, at least up
16323       # to version 4, is to share data among multiple programs linked
16324       # with the same dynamic library.  Since this doesn't match the
16325       # behavior of shared libraries on other platforms, we can't use
16326       # them.
16327       ld_shlibs_GCJ=no
16328       ;;
16329
16330     beos*)
16331       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16332         allow_undefined_flag_GCJ=unsupported
16333         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16334         # support --undefined.  This deserves some investigation.  FIXME
16335         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336       else
16337         ld_shlibs_GCJ=no
16338       fi
16339       ;;
16340
16341     cygwin* | mingw* | pw32*)
16342       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16343       # as there is no search path for DLLs.
16344       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16345       allow_undefined_flag_GCJ=unsupported
16346       always_export_symbols_GCJ=no
16347       enable_shared_with_static_runtimes_GCJ=yes
16348       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16349
16350       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16351         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16352         # If the export-symbols file already is a .def file (1st line
16353         # is EXPORTS), use it as is; otherwise, prepend...
16354         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16355           cp $export_symbols $output_objdir/$soname.def;
16356         else
16357           echo EXPORTS > $output_objdir/$soname.def;
16358           cat $export_symbols >> $output_objdir/$soname.def;
16359         fi~
16360         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16361       else
16362         ld_shlibs=no
16363       fi
16364       ;;
16365
16366     netbsd*)
16367       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16368         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16369         wlarc=
16370       else
16371         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16372         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16373       fi
16374       ;;
16375
16376     solaris* | sysv5*)
16377       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16378         ld_shlibs_GCJ=no
16379         cat <<EOF 1>&2
16380
16381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16382 *** create shared libraries on Solaris systems.  Therefore, libtool
16383 *** is disabling shared libraries support.  We urge you to upgrade GNU
16384 *** binutils to release 2.9.1 or newer.  Another option is to modify
16385 *** your PATH or compiler configuration so that the native linker is
16386 *** used, and then restart.
16387
16388 EOF
16389       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16390         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16392       else
16393         ld_shlibs_GCJ=no
16394       fi
16395       ;;
16396
16397     sunos4*)
16398       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16399       wlarc=
16400       hardcode_direct_GCJ=yes
16401       hardcode_shlibpath_var_GCJ=no
16402       ;;
16403
16404   linux*)
16405     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16406         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16407         archive_cmds_GCJ="$tmp_archive_cmds"
16408       supports_anon_versioning=no
16409       case `$LD -v 2>/dev/null` in
16410         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16411         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16412         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16413         *\ 2.11.*) ;; # other 2.11 versions
16414         *) supports_anon_versioning=yes ;;
16415       esac
16416       if test $supports_anon_versioning = yes; then
16417         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16419 $echo "local: *; };" >> $output_objdir/$libname.ver~
16420         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16421       else
16422         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16423       fi
16424     else
16425       ld_shlibs_GCJ=no
16426     fi
16427     ;;
16428
16429     *)
16430       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16431         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16432         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16433       else
16434         ld_shlibs_GCJ=no
16435       fi
16436       ;;
16437     esac
16438
16439     if test "$ld_shlibs_GCJ" = yes; then
16440       runpath_var=LD_RUN_PATH
16441       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16442       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16443       # ancient GNU ld didn't support --whole-archive et. al.
16444       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16445         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16446       else
16447         whole_archive_flag_spec_GCJ=
16448       fi
16449     fi
16450   else
16451     # PORTME fill in a description of your system's linker (not GNU ld)
16452     case $host_os in
16453     aix3*)
16454       allow_undefined_flag_GCJ=unsupported
16455       always_export_symbols_GCJ=yes
16456       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'
16457       # Note: this linker hardcodes the directories in LIBPATH if there
16458       # are no directories specified by -L.
16459       hardcode_minus_L_GCJ=yes
16460       if test "$GCC" = yes && test -z "$link_static_flag"; then
16461         # Neither direct hardcoding nor static linking is supported with a
16462         # broken collect2.
16463         hardcode_direct_GCJ=unsupported
16464       fi
16465       ;;
16466
16467     aix4* | aix5*)
16468       if test "$host_cpu" = ia64; then
16469         # On IA64, the linker does run time linking by default, so we don't
16470         # have to do anything special.
16471         aix_use_runtimelinking=no
16472         exp_sym_flag='-Bexport'
16473         no_entry_flag=""
16474       else
16475         # If we're using GNU nm, then we don't want the "-C" option.
16476         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16477         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16478           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'
16479         else
16480           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'
16481         fi
16482         aix_use_runtimelinking=no
16483
16484         # Test if we are trying to use run time linking or normal
16485         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16486         # need to do runtime linking.
16487         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16488           for ld_flag in $LDFLAGS; do
16489           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16490             aix_use_runtimelinking=yes
16491             break
16492           fi
16493           done
16494         esac
16495
16496         exp_sym_flag='-bexport'
16497         no_entry_flag='-bnoentry'
16498       fi
16499
16500       # When large executables or shared objects are built, AIX ld can
16501       # have problems creating the table of contents.  If linking a library
16502       # or program results in "error TOC overflow" add -mminimal-toc to
16503       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16504       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16505
16506       archive_cmds_GCJ=''
16507       hardcode_direct_GCJ=yes
16508       hardcode_libdir_separator_GCJ=':'
16509       link_all_deplibs_GCJ=yes
16510
16511       if test "$GCC" = yes; then
16512         case $host_os in aix4.012|aix4.012.*)
16513         # We only want to do this on AIX 4.2 and lower, the check
16514         # below for broken collect2 doesn't work under 4.3+
16515           collect2name=`${CC} -print-prog-name=collect2`
16516           if test -f "$collect2name" && \
16517            strings "$collect2name" | grep resolve_lib_name >/dev/null
16518           then
16519           # We have reworked collect2
16520           hardcode_direct_GCJ=yes
16521           else
16522           # We have old collect2
16523           hardcode_direct_GCJ=unsupported
16524           # It fails to find uninstalled libraries when the uninstalled
16525           # path is not listed in the libpath.  Setting hardcode_minus_L
16526           # to unsupported forces relinking
16527           hardcode_minus_L_GCJ=yes
16528           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16529           hardcode_libdir_separator_GCJ=
16530           fi
16531         esac
16532         shared_flag='-shared'
16533       else
16534         # not using gcc
16535         if test "$host_cpu" = ia64; then
16536         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16537         # chokes on -Wl,-G. The following line is correct:
16538           shared_flag='-G'
16539         else
16540         if test "$aix_use_runtimelinking" = yes; then
16541             shared_flag='${wl}-G'
16542           else
16543             shared_flag='${wl}-bM:SRE'
16544         fi
16545         fi
16546       fi
16547
16548       # It seems that -bexpall does not export symbols beginning with
16549       # underscore (_), so it is better to generate a list of symbols to export.
16550       always_export_symbols_GCJ=yes
16551       if test "$aix_use_runtimelinking" = yes; then
16552         # Warning - without using the other runtime loading flags (-brtl),
16553         # -berok will link without error, but may produce a broken library.
16554         allow_undefined_flag_GCJ='-berok'
16555        # Determine the default libpath from the value encoded in an empty executable.
16556        cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h.  */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h.  */
16562
16563 int
16564 main ()
16565 {
16566
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (ac_try="$ac_link"
16573 case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578   (eval "$ac_link") 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } && {
16585          test -z "$ac_c_werror_flag" ||
16586          test ! -s conftest.err
16587        } && test -s conftest$ac_exeext &&
16588        $as_test_x conftest$ac_exeext; then
16589
16590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16591 }'`
16592 # Check for a 64-bit object if we didn't find anything.
16593 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; }
16594 }'`; fi
16595 else
16596   echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16598
16599
16600 fi
16601
16602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16603       conftest$ac_exeext conftest.$ac_ext
16604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16605
16606        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16607         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"
16608        else
16609         if test "$host_cpu" = ia64; then
16610           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16611           allow_undefined_flag_GCJ="-z nodefs"
16612           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"
16613         else
16614          # Determine the default libpath from the value encoded in an empty executable.
16615          cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621
16622 int
16623 main ()
16624 {
16625
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_link") 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } && {
16644          test -z "$ac_c_werror_flag" ||
16645          test ! -s conftest.err
16646        } && test -s conftest$ac_exeext &&
16647        $as_test_x conftest$ac_exeext; then
16648
16649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16650 }'`
16651 # Check for a 64-bit object if we didn't find anything.
16652 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; }
16653 }'`; fi
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658
16659 fi
16660
16661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16662       conftest$ac_exeext conftest.$ac_ext
16663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16664
16665          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16666           # Warning - without using the other run time loading flags,
16667           # -berok will link without error, but may produce a broken library.
16668           no_undefined_flag_GCJ=' ${wl}-bernotok'
16669           allow_undefined_flag_GCJ=' ${wl}-berok'
16670           # -bexpall does not export symbols beginning with underscore (_)
16671           always_export_symbols_GCJ=yes
16672           # Exported symbols can be pulled into shared objects from archives
16673           whole_archive_flag_spec_GCJ=' '
16674           archive_cmds_need_lc_GCJ=yes
16675           # This is similar to how AIX traditionally builds it's shared libraries.
16676           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'
16677         fi
16678       fi
16679       ;;
16680
16681     amigaos*)
16682       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)'
16683       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16684       hardcode_minus_L_GCJ=yes
16685       # see comment about different semantics on the GNU ld section
16686       ld_shlibs_GCJ=no
16687       ;;
16688
16689     bsdi4*)
16690       export_dynamic_flag_spec_GCJ=-rdynamic
16691       ;;
16692
16693     cygwin* | mingw* | pw32*)
16694       # When not using gcc, we currently assume that we are using
16695       # Microsoft Visual C++.
16696       # hardcode_libdir_flag_spec is actually meaningless, as there is
16697       # no search path for DLLs.
16698       hardcode_libdir_flag_spec_GCJ=' '
16699       allow_undefined_flag_GCJ=unsupported
16700       # Tell ltmain to make .lib files, not .a files.
16701       libext=lib
16702       # Tell ltmain to make .dll files, not .so files.
16703       shrext_cmds=".dll"
16704       # FIXME: Setting linknames here is a bad hack.
16705       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16706       # The linker will automatically build a .lib file if we build a DLL.
16707       old_archive_From_new_cmds_GCJ='true'
16708       # FIXME: Should let the user specify the lib program.
16709       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16710       fix_srcfile_path='`cygpath -w "$srcfile"`'
16711       enable_shared_with_static_runtimes_GCJ=yes
16712       ;;
16713
16714     darwin* | rhapsody*)
16715     if test "$GXX" = yes ; then
16716       archive_cmds_need_lc_GCJ=no
16717       case "$host_os" in
16718       rhapsody* | darwin1.[012])
16719         allow_undefined_flag_GCJ='-undefined suppress'
16720         ;;
16721       *) # Darwin 1.3 on
16722       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16723         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16724       else
16725         case ${MACOSX_DEPLOYMENT_TARGET} in
16726           10.[012])
16727             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16728             ;;
16729           10.*)
16730             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16731             ;;
16732         esac
16733       fi
16734         ;;
16735       esac
16736         lt_int_apple_cc_single_mod=no
16737         output_verbose_link_cmd='echo'
16738         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16739           lt_int_apple_cc_single_mod=yes
16740         fi
16741         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16742           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16743         else
16744         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'
16745       fi
16746       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16747       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16748         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16749           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}'
16750         else
16751           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}'
16752         fi
16753           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}'
16754       hardcode_direct_GCJ=no
16755       hardcode_automatic_GCJ=yes
16756       hardcode_shlibpath_var_GCJ=unsupported
16757       whole_archive_flag_spec_GCJ='-all_load $convenience'
16758       link_all_deplibs_GCJ=yes
16759     else
16760       ld_shlibs_GCJ=no
16761     fi
16762       ;;
16763
16764     dgux*)
16765       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16766       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16767       hardcode_shlibpath_var_GCJ=no
16768       ;;
16769
16770     freebsd1*)
16771       ld_shlibs_GCJ=no
16772       ;;
16773
16774     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16775     # support.  Future versions do this automatically, but an explicit c++rt0.o
16776     # does not break anything, and helps significantly (at the cost of a little
16777     # extra space).
16778     freebsd2.2*)
16779       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16780       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16781       hardcode_direct_GCJ=yes
16782       hardcode_shlibpath_var_GCJ=no
16783       ;;
16784
16785     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16786     freebsd2*)
16787       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16788       hardcode_direct_GCJ=yes
16789       hardcode_minus_L_GCJ=yes
16790       hardcode_shlibpath_var_GCJ=no
16791       ;;
16792
16793     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16794     freebsd* | kfreebsd*-gnu)
16795       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16796       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16797       hardcode_direct_GCJ=yes
16798       hardcode_shlibpath_var_GCJ=no
16799       ;;
16800
16801     hpux9*)
16802       if test "$GCC" = yes; then
16803         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'
16804       else
16805         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'
16806       fi
16807       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16808       hardcode_libdir_separator_GCJ=:
16809       hardcode_direct_GCJ=yes
16810
16811       # hardcode_minus_L: Not really in the search PATH,
16812       # but as the default location of the library.
16813       hardcode_minus_L_GCJ=yes
16814       export_dynamic_flag_spec_GCJ='${wl}-E'
16815       ;;
16816
16817     hpux10* | hpux11*)
16818       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16819         case "$host_cpu" in
16820         hppa*64*|ia64*)
16821           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16822           ;;
16823         *)
16824           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16825           ;;
16826         esac
16827       else
16828         case "$host_cpu" in
16829         hppa*64*|ia64*)
16830           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16831           ;;
16832         *)
16833           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16834           ;;
16835         esac
16836       fi
16837       if test "$with_gnu_ld" = no; then
16838         case "$host_cpu" in
16839         hppa*64*)
16840           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16841           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16842           hardcode_libdir_separator_GCJ=:
16843           hardcode_direct_GCJ=no
16844           hardcode_shlibpath_var_GCJ=no
16845           ;;
16846         ia64*)
16847           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16848           hardcode_direct_GCJ=no
16849           hardcode_shlibpath_var_GCJ=no
16850
16851           # hardcode_minus_L: Not really in the search PATH,
16852           # but as the default location of the library.
16853           hardcode_minus_L_GCJ=yes
16854           ;;
16855         *)
16856           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16857           hardcode_libdir_separator_GCJ=:
16858           hardcode_direct_GCJ=yes
16859           export_dynamic_flag_spec_GCJ='${wl}-E'
16860
16861           # hardcode_minus_L: Not really in the search PATH,
16862           # but as the default location of the library.
16863           hardcode_minus_L_GCJ=yes
16864           ;;
16865         esac
16866       fi
16867       ;;
16868
16869     irix5* | irix6* | nonstopux*)
16870       if test "$GCC" = yes; then
16871         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'
16872       else
16873         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'
16874         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16875       fi
16876       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16877       hardcode_libdir_separator_GCJ=:
16878       link_all_deplibs_GCJ=yes
16879       ;;
16880
16881     netbsd*)
16882       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16883         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16884       else
16885         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16886       fi
16887       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16888       hardcode_direct_GCJ=yes
16889       hardcode_shlibpath_var_GCJ=no
16890       ;;
16891
16892     newsos6)
16893       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894       hardcode_direct_GCJ=yes
16895       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16896       hardcode_libdir_separator_GCJ=:
16897       hardcode_shlibpath_var_GCJ=no
16898       ;;
16899
16900     openbsd*)
16901       hardcode_direct_GCJ=yes
16902       hardcode_shlibpath_var_GCJ=no
16903       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16904         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16905         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16906         export_dynamic_flag_spec_GCJ='${wl}-E'
16907       else
16908        case $host_os in
16909          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16910            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16911            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16912            ;;
16913          *)
16914            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16915            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16916            ;;
16917        esac
16918       fi
16919       ;;
16920
16921     os2*)
16922       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16923       hardcode_minus_L_GCJ=yes
16924       allow_undefined_flag_GCJ=unsupported
16925       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'
16926       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16927       ;;
16928
16929     osf3*)
16930       if test "$GCC" = yes; then
16931         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16932         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'
16933       else
16934         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16935         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'
16936       fi
16937       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16938       hardcode_libdir_separator_GCJ=:
16939       ;;
16940
16941     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16942       if test "$GCC" = yes; then
16943         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16944         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'
16945         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16946       else
16947         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16948         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'
16949         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~
16950         $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'
16951
16952         # Both c and cxx compiler support -rpath directly
16953         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16954       fi
16955       hardcode_libdir_separator_GCJ=:
16956       ;;
16957
16958     sco3.2v5*)
16959       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16960       hardcode_shlibpath_var_GCJ=no
16961       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16962       runpath_var=LD_RUN_PATH
16963       hardcode_runpath_var=yes
16964       ;;
16965
16966     solaris*)
16967       no_undefined_flag_GCJ=' -z text'
16968       if test "$GCC" = yes; then
16969         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16970         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16971           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16972       else
16973         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16975         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16976       fi
16977       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16978       hardcode_shlibpath_var_GCJ=no
16979       case $host_os in
16980       solaris2.[0-5] | solaris2.[0-5].*) ;;
16981       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16982         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16983       esac
16984       link_all_deplibs_GCJ=yes
16985       ;;
16986
16987     sunos4*)
16988       if test "x$host_vendor" = xsequent; then
16989         # Use $CC to link under sequent, because it throws in some extra .o
16990         # files that make .init and .fini sections work.
16991         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16992       else
16993         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16994       fi
16995       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16996       hardcode_direct_GCJ=yes
16997       hardcode_minus_L_GCJ=yes
16998       hardcode_shlibpath_var_GCJ=no
16999       ;;
17000
17001     sysv4)
17002       case $host_vendor in
17003         sni)
17004           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005           hardcode_direct_GCJ=yes # is this really true???
17006         ;;
17007         siemens)
17008           ## LD is ld it makes a PLAMLIB
17009           ## CC just makes a GrossModule.
17010           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17011           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17012           hardcode_direct_GCJ=no
17013         ;;
17014         motorola)
17015           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17017         ;;
17018       esac
17019       runpath_var='LD_RUN_PATH'
17020       hardcode_shlibpath_var_GCJ=no
17021       ;;
17022
17023     sysv4.3*)
17024       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025       hardcode_shlibpath_var_GCJ=no
17026       export_dynamic_flag_spec_GCJ='-Bexport'
17027       ;;
17028
17029     sysv4*MP*)
17030       if test -d /usr/nec; then
17031         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032         hardcode_shlibpath_var_GCJ=no
17033         runpath_var=LD_RUN_PATH
17034         hardcode_runpath_var=yes
17035         ld_shlibs_GCJ=yes
17036       fi
17037       ;;
17038
17039     sysv4.2uw2*)
17040       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17041       hardcode_direct_GCJ=yes
17042       hardcode_minus_L_GCJ=no
17043       hardcode_shlibpath_var_GCJ=no
17044       hardcode_runpath_var=yes
17045       runpath_var=LD_RUN_PATH
17046       ;;
17047
17048    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17049       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17050       if test "$GCC" = yes; then
17051         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17052       else
17053         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17054       fi
17055       runpath_var='LD_RUN_PATH'
17056       hardcode_shlibpath_var_GCJ=no
17057       ;;
17058
17059     sysv5*)
17060       no_undefined_flag_GCJ=' -z text'
17061       # $CC -shared without GNU ld will not create a library from C++
17062       # object files and a static libstdc++, better avoid it by now
17063       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17064       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17065                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17066       hardcode_libdir_flag_spec_GCJ=
17067       hardcode_shlibpath_var_GCJ=no
17068       runpath_var='LD_RUN_PATH'
17069       ;;
17070
17071     uts4*)
17072       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17074       hardcode_shlibpath_var_GCJ=no
17075       ;;
17076
17077     *)
17078       ld_shlibs_GCJ=no
17079       ;;
17080     esac
17081   fi
17082
17083 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17084 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17085 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17086
17087 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17088 if test "$GCC" = yes; then
17089   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17090 fi
17091
17092 #
17093 # Do we need to explicitly link libc?
17094 #
17095 case "x$archive_cmds_need_lc_GCJ" in
17096 x|xyes)
17097   # Assume -lc should be added
17098   archive_cmds_need_lc_GCJ=yes
17099
17100   if test "$enable_shared" = yes && test "$GCC" = yes; then
17101     case $archive_cmds_GCJ in
17102     *'~'*)
17103       # FIXME: we may have to deal with multi-command sequences.
17104       ;;
17105     '$CC '*)
17106       # Test whether the compiler implicitly links with -lc since on some
17107       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17108       # to ld, don't add -lc before -lgcc.
17109       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17110 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17111       $rm conftest*
17112       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17113
17114       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115   (eval $ac_compile) 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); } 2>conftest.err; then
17119         soname=conftest
17120         lib=conftest
17121         libobjs=conftest.$ac_objext
17122         deplibs=
17123         wl=$lt_prog_compiler_wl_GCJ
17124         compiler_flags=-v
17125         linker_flags=-v
17126         verstring=
17127         output_objdir=.
17128         libname=conftest
17129         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17130         allow_undefined_flag_GCJ=
17131         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17132   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }
17136         then
17137           archive_cmds_need_lc_GCJ=no
17138         else
17139           archive_cmds_need_lc_GCJ=yes
17140         fi
17141         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17142       else
17143         cat conftest.err 1>&5
17144       fi
17145       $rm conftest*
17146       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17147 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17148       ;;
17149     esac
17150   fi
17151   ;;
17152 esac
17153
17154 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17155 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17156 library_names_spec=
17157 libname_spec='lib$name'
17158 soname_spec=
17159 shrext_cmds=".so"
17160 postinstall_cmds=
17161 postuninstall_cmds=
17162 finish_cmds=
17163 finish_eval=
17164 shlibpath_var=
17165 shlibpath_overrides_runpath=unknown
17166 version_type=none
17167 dynamic_linker="$host_os ld.so"
17168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17169 if test "$GCC" = yes; then
17170   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17171   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17172     # if the path contains ";" then we assume it to be the separator
17173     # otherwise default to the standard path separator (i.e. ":") - it is
17174     # assumed that no part of a normal pathname contains ";" but that should
17175     # okay in the real world where ";" in dirpaths is itself problematic.
17176     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17177   else
17178     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17179   fi
17180 else
17181   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17182 fi
17183 need_lib_prefix=unknown
17184 hardcode_into_libs=no
17185
17186 # when you set need_version to no, make sure it does not cause -set_version
17187 # flags to be left without arguments
17188 need_version=unknown
17189
17190 case $host_os in
17191 aix3*)
17192   version_type=linux
17193   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17194   shlibpath_var=LIBPATH
17195
17196   # AIX 3 has no versioning support, so we append a major version to the name.
17197   soname_spec='${libname}${release}${shared_ext}$major'
17198   ;;
17199
17200 aix4* | aix5*)
17201   version_type=linux
17202   need_lib_prefix=no
17203   need_version=no
17204   hardcode_into_libs=yes
17205   if test "$host_cpu" = ia64; then
17206     # AIX 5 supports IA64
17207     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17208     shlibpath_var=LD_LIBRARY_PATH
17209   else
17210     # With GCC up to 2.95.x, collect2 would create an import file
17211     # for dependence libraries.  The import file would start with
17212     # the line `#! .'.  This would cause the generated library to
17213     # depend on `.', always an invalid library.  This was fixed in
17214     # development snapshots of GCC prior to 3.0.
17215     case $host_os in
17216       aix4 | aix4.[01] | aix4.[01].*)
17217       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17218            echo ' yes '
17219            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17220         :
17221       else
17222         can_build_shared=no
17223       fi
17224       ;;
17225     esac
17226     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17227     # soname into executable. Probably we can add versioning support to
17228     # collect2, so additional links can be useful in future.
17229     if test "$aix_use_runtimelinking" = yes; then
17230       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17231       # instead of lib<name>.a to let people know that these are not
17232       # typical AIX shared libraries.
17233       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234     else
17235       # We preserve .a as extension for shared libraries through AIX4.2
17236       # and later when we are not doing run time linking.
17237       library_names_spec='${libname}${release}.a $libname.a'
17238       soname_spec='${libname}${release}${shared_ext}$major'
17239     fi
17240     shlibpath_var=LIBPATH
17241   fi
17242   ;;
17243
17244 amigaos*)
17245   library_names_spec='$libname.ixlibrary $libname.a'
17246   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17247   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'
17248   ;;
17249
17250 beos*)
17251   library_names_spec='${libname}${shared_ext}'
17252   dynamic_linker="$host_os ld.so"
17253   shlibpath_var=LIBRARY_PATH
17254   ;;
17255
17256 bsdi4*)
17257   version_type=linux
17258   need_version=no
17259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260   soname_spec='${libname}${release}${shared_ext}$major'
17261   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17262   shlibpath_var=LD_LIBRARY_PATH
17263   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17264   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17265   # the default ld.so.conf also contains /usr/contrib/lib and
17266   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17267   # libtool to hard-code these into programs
17268   ;;
17269
17270 cygwin* | mingw* | pw32*)
17271   version_type=windows
17272   shrext_cmds=".dll"
17273   need_version=no
17274   need_lib_prefix=no
17275
17276   case $GCC,$host_os in
17277   yes,cygwin* | yes,mingw* | yes,pw32*)
17278     library_names_spec='$libname.dll.a'
17279     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17280     postinstall_cmds='base_file=`basename \${file}`~
17281       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17282       dldir=$destdir/`dirname \$dlpath`~
17283       test -d \$dldir || mkdir -p \$dldir~
17284       $install_prog $dir/$dlname \$dldir/$dlname'
17285     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17286       dlpath=$dir/\$dldll~
17287        $rm \$dlpath'
17288     shlibpath_overrides_runpath=yes
17289
17290     case $host_os in
17291     cygwin*)
17292       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17293       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17294       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17295       ;;
17296     mingw*)
17297       # MinGW DLLs use traditional 'lib' prefix
17298       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17299       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17300       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17301         # It is most probably a Windows format PATH printed by
17302         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17303         # path with ; separators, and with drive letters. We can handle the
17304         # drive letters (cygwin fileutils understands them), so leave them,
17305         # especially as we might pass files found there to a mingw objdump,
17306         # which wouldn't understand a cygwinified path. Ahh.
17307         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17308       else
17309         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17310       fi
17311       ;;
17312     pw32*)
17313       # pw32 DLLs use 'pw' prefix rather than 'lib'
17314       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17315       ;;
17316     esac
17317     ;;
17318
17319   *)
17320     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17321     ;;
17322   esac
17323   dynamic_linker='Win32 ld.exe'
17324   # FIXME: first we should search . and the directory the executable is in
17325   shlibpath_var=PATH
17326   ;;
17327
17328 darwin* | rhapsody*)
17329   dynamic_linker="$host_os dyld"
17330   version_type=darwin
17331   need_lib_prefix=no
17332   need_version=no
17333   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17334   soname_spec='${libname}${release}${major}$shared_ext'
17335   shlibpath_overrides_runpath=yes
17336   shlibpath_var=DYLD_LIBRARY_PATH
17337   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17338   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17339   if test "$GCC" = yes; then
17340     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"`
17341   else
17342     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17343   fi
17344   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17345   ;;
17346
17347 dgux*)
17348   version_type=linux
17349   need_lib_prefix=no
17350   need_version=no
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17352   soname_spec='${libname}${release}${shared_ext}$major'
17353   shlibpath_var=LD_LIBRARY_PATH
17354   ;;
17355
17356 freebsd1*)
17357   dynamic_linker=no
17358   ;;
17359
17360 kfreebsd*-gnu)
17361   version_type=linux
17362   need_lib_prefix=no
17363   need_version=no
17364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17365   soname_spec='${libname}${release}${shared_ext}$major'
17366   shlibpath_var=LD_LIBRARY_PATH
17367   shlibpath_overrides_runpath=no
17368   hardcode_into_libs=yes
17369   dynamic_linker='GNU ld.so'
17370   ;;
17371
17372 freebsd*)
17373   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17374   version_type=freebsd-$objformat
17375   case $version_type in
17376     freebsd-elf*)
17377       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17378       need_version=no
17379       need_lib_prefix=no
17380       ;;
17381     freebsd-*)
17382       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17383       need_version=yes
17384       ;;
17385   esac
17386   shlibpath_var=LD_LIBRARY_PATH
17387   case $host_os in
17388   freebsd2*)
17389     shlibpath_overrides_runpath=yes
17390     ;;
17391   freebsd3.01* | freebsdelf3.01*)
17392     shlibpath_overrides_runpath=yes
17393     hardcode_into_libs=yes
17394     ;;
17395   *) # from 3.2 on
17396     shlibpath_overrides_runpath=no
17397     hardcode_into_libs=yes
17398     ;;
17399   esac
17400   ;;
17401
17402 gnu*)
17403   version_type=linux
17404   need_lib_prefix=no
17405   need_version=no
17406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17407   soname_spec='${libname}${release}${shared_ext}$major'
17408   shlibpath_var=LD_LIBRARY_PATH
17409   hardcode_into_libs=yes
17410   ;;
17411
17412 hpux9* | hpux10* | hpux11*)
17413   # Give a soname corresponding to the major version so that dld.sl refuses to
17414   # link against other versions.
17415   version_type=sunos
17416   need_lib_prefix=no
17417   need_version=no
17418   case "$host_cpu" in
17419   ia64*)
17420     shrext_cmds='.so'
17421     hardcode_into_libs=yes
17422     dynamic_linker="$host_os dld.so"
17423     shlibpath_var=LD_LIBRARY_PATH
17424     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426     soname_spec='${libname}${release}${shared_ext}$major'
17427     if test "X$HPUX_IA64_MODE" = X32; then
17428       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17429     else
17430       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17431     fi
17432     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17433     ;;
17434    hppa*64*)
17435      shrext_cmds='.sl'
17436      hardcode_into_libs=yes
17437      dynamic_linker="$host_os dld.sl"
17438      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17439      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17440      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441      soname_spec='${libname}${release}${shared_ext}$major'
17442      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17443      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17444      ;;
17445    *)
17446     shrext_cmds='.sl'
17447     dynamic_linker="$host_os dld.sl"
17448     shlibpath_var=SHLIB_PATH
17449     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451     soname_spec='${libname}${release}${shared_ext}$major'
17452     ;;
17453   esac
17454   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17455   postinstall_cmds='chmod 555 $lib'
17456   ;;
17457
17458 irix5* | irix6* | nonstopux*)
17459   case $host_os in
17460     nonstopux*) version_type=nonstopux ;;
17461     *)
17462         if test "$lt_cv_prog_gnu_ld" = yes; then
17463                 version_type=linux
17464         else
17465                 version_type=irix
17466         fi ;;
17467   esac
17468   need_lib_prefix=no
17469   need_version=no
17470   soname_spec='${libname}${release}${shared_ext}$major'
17471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17472   case $host_os in
17473   irix5* | nonstopux*)
17474     libsuff= shlibsuff=
17475     ;;
17476   *)
17477     case $LD in # libtool.m4 will add one of these switches to LD
17478     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17479       libsuff= shlibsuff= libmagic=32-bit;;
17480     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17481       libsuff=32 shlibsuff=N32 libmagic=N32;;
17482     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17483       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17484     *) libsuff= shlibsuff= libmagic=never-match;;
17485     esac
17486     ;;
17487   esac
17488   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17489   shlibpath_overrides_runpath=no
17490   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17491   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17492   hardcode_into_libs=yes
17493   ;;
17494
17495 # No shared lib support for Linux oldld, aout, or coff.
17496 linux*oldld* | linux*aout* | linux*coff*)
17497   dynamic_linker=no
17498   ;;
17499
17500 # This must be Linux ELF.
17501 linux*)
17502   version_type=linux
17503   need_lib_prefix=no
17504   need_version=no
17505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506   soname_spec='${libname}${release}${shared_ext}$major'
17507   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17508   shlibpath_var=LD_LIBRARY_PATH
17509   shlibpath_overrides_runpath=no
17510   # This implies no fast_install, which is unacceptable.
17511   # Some rework will be needed to allow for fast_install
17512   # before this can be enabled.
17513   hardcode_into_libs=yes
17514
17515   # find out which ABI we are using
17516   libsuff=
17517   case "$host_cpu" in
17518   x86_64*|s390x*|powerpc64*)
17519     echo '#line 17519 "configure"' > conftest.$ac_ext
17520     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17521   (eval $ac_compile) 2>&5
17522   ac_status=$?
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); }; then
17525       case `/usr/bin/file conftest.$ac_objext` in
17526       *64-bit*)
17527         libsuff=64
17528         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17529         ;;
17530       esac
17531     fi
17532     rm -rf conftest*
17533     ;;
17534   esac
17535
17536   # Append ld.so.conf contents to the search path
17537   if test -f /etc/ld.so.conf; then
17538     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17539     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17540   fi
17541
17542   # We used to test for /lib/ld.so.1 and disable shared libraries on
17543   # powerpc, because MkLinux only supported shared libraries with the
17544   # GNU dynamic linker.  Since this was broken with cross compilers,
17545   # most powerpc-linux boxes support dynamic linking these days and
17546   # people can always --disable-shared, the test was removed, and we
17547   # assume the GNU/Linux dynamic linker is in use.
17548   dynamic_linker='GNU/Linux ld.so'
17549   ;;
17550
17551 knetbsd*-gnu)
17552   version_type=linux
17553   need_lib_prefix=no
17554   need_version=no
17555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17556   soname_spec='${libname}${release}${shared_ext}$major'
17557   shlibpath_var=LD_LIBRARY_PATH
17558   shlibpath_overrides_runpath=no
17559   hardcode_into_libs=yes
17560   dynamic_linker='GNU ld.so'
17561   ;;
17562
17563 netbsd*)
17564   version_type=sunos
17565   need_lib_prefix=no
17566   need_version=no
17567   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17569     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17570     dynamic_linker='NetBSD (a.out) ld.so'
17571   else
17572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17573     soname_spec='${libname}${release}${shared_ext}$major'
17574     dynamic_linker='NetBSD ld.elf_so'
17575   fi
17576   shlibpath_var=LD_LIBRARY_PATH
17577   shlibpath_overrides_runpath=yes
17578   hardcode_into_libs=yes
17579   ;;
17580
17581 newsos6)
17582   version_type=linux
17583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584   shlibpath_var=LD_LIBRARY_PATH
17585   shlibpath_overrides_runpath=yes
17586   ;;
17587
17588 nto-qnx*)
17589   version_type=linux
17590   need_lib_prefix=no
17591   need_version=no
17592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17593   soname_spec='${libname}${release}${shared_ext}$major'
17594   shlibpath_var=LD_LIBRARY_PATH
17595   shlibpath_overrides_runpath=yes
17596   ;;
17597
17598 openbsd*)
17599   version_type=sunos
17600   need_lib_prefix=no
17601   need_version=yes
17602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17603   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17604   shlibpath_var=LD_LIBRARY_PATH
17605   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17606     case $host_os in
17607       openbsd2.[89] | openbsd2.[89].*)
17608         shlibpath_overrides_runpath=no
17609         ;;
17610       *)
17611         shlibpath_overrides_runpath=yes
17612         ;;
17613       esac
17614   else
17615     shlibpath_overrides_runpath=yes
17616   fi
17617   ;;
17618
17619 os2*)
17620   libname_spec='$name'
17621   shrext_cmds=".dll"
17622   need_lib_prefix=no
17623   library_names_spec='$libname${shared_ext} $libname.a'
17624   dynamic_linker='OS/2 ld.exe'
17625   shlibpath_var=LIBPATH
17626   ;;
17627
17628 osf3* | osf4* | osf5*)
17629   version_type=osf
17630   need_lib_prefix=no
17631   need_version=no
17632   soname_spec='${libname}${release}${shared_ext}$major'
17633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17634   shlibpath_var=LD_LIBRARY_PATH
17635   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17636   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17637   ;;
17638
17639 sco3.2v5*)
17640   version_type=osf
17641   soname_spec='${libname}${release}${shared_ext}$major'
17642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643   shlibpath_var=LD_LIBRARY_PATH
17644   ;;
17645
17646 solaris*)
17647   version_type=linux
17648   need_lib_prefix=no
17649   need_version=no
17650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651   soname_spec='${libname}${release}${shared_ext}$major'
17652   shlibpath_var=LD_LIBRARY_PATH
17653   shlibpath_overrides_runpath=yes
17654   hardcode_into_libs=yes
17655   # ldd complains unless libraries are executable
17656   postinstall_cmds='chmod +x $lib'
17657   ;;
17658
17659 sunos4*)
17660   version_type=sunos
17661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17662   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17663   shlibpath_var=LD_LIBRARY_PATH
17664   shlibpath_overrides_runpath=yes
17665   if test "$with_gnu_ld" = yes; then
17666     need_lib_prefix=no
17667   fi
17668   need_version=yes
17669   ;;
17670
17671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17672   version_type=linux
17673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674   soname_spec='${libname}${release}${shared_ext}$major'
17675   shlibpath_var=LD_LIBRARY_PATH
17676   case $host_vendor in
17677     sni)
17678       shlibpath_overrides_runpath=no
17679       need_lib_prefix=no
17680       export_dynamic_flag_spec='${wl}-Blargedynsym'
17681       runpath_var=LD_RUN_PATH
17682       ;;
17683     siemens)
17684       need_lib_prefix=no
17685       ;;
17686     motorola)
17687       need_lib_prefix=no
17688       need_version=no
17689       shlibpath_overrides_runpath=no
17690       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17691       ;;
17692   esac
17693   ;;
17694
17695 sysv4*MP*)
17696   if test -d /usr/nec ;then
17697     version_type=linux
17698     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17699     soname_spec='$libname${shared_ext}.$major'
17700     shlibpath_var=LD_LIBRARY_PATH
17701   fi
17702   ;;
17703
17704 uts4*)
17705   version_type=linux
17706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707   soname_spec='${libname}${release}${shared_ext}$major'
17708   shlibpath_var=LD_LIBRARY_PATH
17709   ;;
17710
17711 *)
17712   dynamic_linker=no
17713   ;;
17714 esac
17715 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17716 echo "${ECHO_T}$dynamic_linker" >&6; }
17717 test "$dynamic_linker" = no && can_build_shared=no
17718
17719 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17720 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17721 hardcode_action_GCJ=
17722 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17723    test -n "$runpath_var GCJ" || \
17724    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17725
17726   # We can hardcode non-existant directories.
17727   if test "$hardcode_direct_GCJ" != no &&
17728      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17729      # have to relink, otherwise we might link with an installed library
17730      # when we should be linking with a yet-to-be-installed one
17731      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17732      test "$hardcode_minus_L_GCJ" != no; then
17733     # Linking always hardcodes the temporary library directory.
17734     hardcode_action_GCJ=relink
17735   else
17736     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17737     hardcode_action_GCJ=immediate
17738   fi
17739 else
17740   # We cannot hardcode anything, or else we can only hardcode existing
17741   # directories.
17742   hardcode_action_GCJ=unsupported
17743 fi
17744 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17745 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17746
17747 if test "$hardcode_action_GCJ" = relink; then
17748   # Fast installation is not supported
17749   enable_fast_install=no
17750 elif test "$shlibpath_overrides_runpath" = yes ||
17751      test "$enable_shared" = no; then
17752   # Fast installation is not necessary
17753   enable_fast_install=needless
17754 fi
17755
17756 striplib=
17757 old_striplib=
17758 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17759 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17760 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17761   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17762   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17763   { echo "$as_me:$LINENO: result: yes" >&5
17764 echo "${ECHO_T}yes" >&6; }
17765 else
17766 # FIXME - insert some real tests, host_os isn't really good enough
17767   case $host_os in
17768    darwin*)
17769        if test -n "$STRIP" ; then
17770          striplib="$STRIP -x"
17771          { echo "$as_me:$LINENO: result: yes" >&5
17772 echo "${ECHO_T}yes" >&6; }
17773        else
17774   { echo "$as_me:$LINENO: result: no" >&5
17775 echo "${ECHO_T}no" >&6; }
17776 fi
17777        ;;
17778    *)
17779   { echo "$as_me:$LINENO: result: no" >&5
17780 echo "${ECHO_T}no" >&6; }
17781     ;;
17782   esac
17783 fi
17784
17785 if test "x$enable_dlopen" != xyes; then
17786   enable_dlopen=unknown
17787   enable_dlopen_self=unknown
17788   enable_dlopen_self_static=unknown
17789 else
17790   lt_cv_dlopen=no
17791   lt_cv_dlopen_libs=
17792
17793   case $host_os in
17794   beos*)
17795     lt_cv_dlopen="load_add_on"
17796     lt_cv_dlopen_libs=
17797     lt_cv_dlopen_self=yes
17798     ;;
17799
17800   mingw* | pw32*)
17801     lt_cv_dlopen="LoadLibrary"
17802     lt_cv_dlopen_libs=
17803    ;;
17804
17805   cygwin*)
17806     lt_cv_dlopen="dlopen"
17807     lt_cv_dlopen_libs=
17808    ;;
17809
17810   darwin*)
17811   # if libdl is installed we need to link against it
17812     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17813 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-ldl  $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825
17826 /* Override any GCC internal prototype to avoid an error.
17827    Use char because int might match the return type of a GCC
17828    builtin and then its argument prototype would still apply.  */
17829 #ifdef __cplusplus
17830 extern "C"
17831 #endif
17832 char dlopen ();
17833 int
17834 main ()
17835 {
17836 return dlopen ();
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_link") 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } && {
17855          test -z "$ac_c_werror_flag" ||
17856          test ! -s conftest.err
17857        } && test -s conftest$ac_exeext &&
17858        $as_test_x conftest$ac_exeext; then
17859   ac_cv_lib_dl_dlopen=yes
17860 else
17861   echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864         ac_cv_lib_dl_dlopen=no
17865 fi
17866
17867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17868       conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17870 fi
17871 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17872 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17873 if test $ac_cv_lib_dl_dlopen = yes; then
17874   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17875 else
17876
17877     lt_cv_dlopen="dyld"
17878     lt_cv_dlopen_libs=
17879     lt_cv_dlopen_self=yes
17880
17881 fi
17882
17883    ;;
17884
17885   *)
17886     { echo "$as_me:$LINENO: checking for shl_load" >&5
17887 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17888 if test "${ac_cv_func_shl_load+set}" = set; then
17889   echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891   cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17899 #define shl_load innocuous_shl_load
17900
17901 /* System header to define __stub macros and hopefully few prototypes,
17902     which can conflict with char shl_load (); below.
17903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17904     <limits.h> exists even on freestanding compilers.  */
17905
17906 #ifdef __STDC__
17907 # include <limits.h>
17908 #else
17909 # include <assert.h>
17910 #endif
17911
17912 #undef shl_load
17913
17914 /* Override any GCC internal prototype to avoid an error.
17915    Use char because int might match the return type of a GCC
17916    builtin and then its argument prototype would still apply.  */
17917 #ifdef __cplusplus
17918 extern "C"
17919 #endif
17920 char shl_load ();
17921 /* The GNU C library defines this for functions which it implements
17922     to always fail with ENOSYS.  Some functions are actually named
17923     something starting with __ and the normal name is an alias.  */
17924 #if defined __stub_shl_load || defined __stub___shl_load
17925 choke me
17926 #endif
17927
17928 int
17929 main ()
17930 {
17931 return shl_load ();
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (ac_try="$ac_link"
17938 case "(($ac_try" in
17939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940   *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943   (eval "$ac_link") 2>conftest.er1
17944   ac_status=$?
17945   grep -v '^ *+' conftest.er1 >conftest.err
17946   rm -f conftest.er1
17947   cat conftest.err >&5
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); } && {
17950          test -z "$ac_c_werror_flag" ||
17951          test ! -s conftest.err
17952        } && test -s conftest$ac_exeext &&
17953        $as_test_x conftest$ac_exeext; then
17954   ac_cv_func_shl_load=yes
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959         ac_cv_func_shl_load=no
17960 fi
17961
17962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17963       conftest$ac_exeext conftest.$ac_ext
17964 fi
17965 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17966 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17967 if test $ac_cv_func_shl_load = yes; then
17968   lt_cv_dlopen="shl_load"
17969 else
17970   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17971 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17972 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17973   echo $ECHO_N "(cached) $ECHO_C" >&6
17974 else
17975   ac_check_lib_save_LIBS=$LIBS
17976 LIBS="-ldld  $LIBS"
17977 cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h.  */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h.  */
17983
17984 /* Override any GCC internal prototype to avoid an error.
17985    Use char because int might match the return type of a GCC
17986    builtin and then its argument prototype would still apply.  */
17987 #ifdef __cplusplus
17988 extern "C"
17989 #endif
17990 char shl_load ();
17991 int
17992 main ()
17993 {
17994 return shl_load ();
17995   ;
17996   return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
18001 case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006   (eval "$ac_link") 2>conftest.er1
18007   ac_status=$?
18008   grep -v '^ *+' conftest.er1 >conftest.err
18009   rm -f conftest.er1
18010   cat conftest.err >&5
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } && {
18013          test -z "$ac_c_werror_flag" ||
18014          test ! -s conftest.err
18015        } && test -s conftest$ac_exeext &&
18016        $as_test_x conftest$ac_exeext; then
18017   ac_cv_lib_dld_shl_load=yes
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022         ac_cv_lib_dld_shl_load=no
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18026       conftest$ac_exeext conftest.$ac_ext
18027 LIBS=$ac_check_lib_save_LIBS
18028 fi
18029 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18030 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18031 if test $ac_cv_lib_dld_shl_load = yes; then
18032   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18033 else
18034   { echo "$as_me:$LINENO: checking for dlopen" >&5
18035 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18036 if test "${ac_cv_func_dlopen+set}" = set; then
18037   echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039   cat >conftest.$ac_ext <<_ACEOF
18040 /* confdefs.h.  */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h.  */
18045 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18047 #define dlopen innocuous_dlopen
18048
18049 /* System header to define __stub macros and hopefully few prototypes,
18050     which can conflict with char dlopen (); below.
18051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18052     <limits.h> exists even on freestanding compilers.  */
18053
18054 #ifdef __STDC__
18055 # include <limits.h>
18056 #else
18057 # include <assert.h>
18058 #endif
18059
18060 #undef dlopen
18061
18062 /* Override any GCC internal prototype to avoid an error.
18063    Use char because int might match the return type of a GCC
18064    builtin and then its argument prototype would still apply.  */
18065 #ifdef __cplusplus
18066 extern "C"
18067 #endif
18068 char dlopen ();
18069 /* The GNU C library defines this for functions which it implements
18070     to always fail with ENOSYS.  Some functions are actually named
18071     something starting with __ and the normal name is an alias.  */
18072 #if defined __stub_dlopen || defined __stub___dlopen
18073 choke me
18074 #endif
18075
18076 int
18077 main ()
18078 {
18079 return dlopen ();
18080   ;
18081   return 0;
18082 }
18083 _ACEOF
18084 rm -f conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088   *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091   (eval "$ac_link") 2>conftest.er1
18092   ac_status=$?
18093   grep -v '^ *+' conftest.er1 >conftest.err
18094   rm -f conftest.er1
18095   cat conftest.err >&5
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); } && {
18098          test -z "$ac_c_werror_flag" ||
18099          test ! -s conftest.err
18100        } && test -s conftest$ac_exeext &&
18101        $as_test_x conftest$ac_exeext; then
18102   ac_cv_func_dlopen=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107         ac_cv_func_dlopen=no
18108 fi
18109
18110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18111       conftest$ac_exeext conftest.$ac_ext
18112 fi
18113 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18114 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18115 if test $ac_cv_func_dlopen = yes; then
18116   lt_cv_dlopen="dlopen"
18117 else
18118   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18119 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18121   echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123   ac_check_lib_save_LIBS=$LIBS
18124 LIBS="-ldl  $LIBS"
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h.  */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h.  */
18131
18132 /* Override any GCC internal prototype to avoid an error.
18133    Use char because int might match the return type of a GCC
18134    builtin and then its argument prototype would still apply.  */
18135 #ifdef __cplusplus
18136 extern "C"
18137 #endif
18138 char dlopen ();
18139 int
18140 main ()
18141 {
18142 return dlopen ();
18143   ;
18144   return 0;
18145 }
18146 _ACEOF
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (ac_try="$ac_link"
18149 case "(($ac_try" in
18150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151   *) ac_try_echo=$ac_try;;
18152 esac
18153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154   (eval "$ac_link") 2>conftest.er1
18155   ac_status=$?
18156   grep -v '^ *+' conftest.er1 >conftest.err
18157   rm -f conftest.er1
18158   cat conftest.err >&5
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); } && {
18161          test -z "$ac_c_werror_flag" ||
18162          test ! -s conftest.err
18163        } && test -s conftest$ac_exeext &&
18164        $as_test_x conftest$ac_exeext; then
18165   ac_cv_lib_dl_dlopen=yes
18166 else
18167   echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170         ac_cv_lib_dl_dlopen=no
18171 fi
18172
18173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18174       conftest$ac_exeext conftest.$ac_ext
18175 LIBS=$ac_check_lib_save_LIBS
18176 fi
18177 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18178 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18179 if test $ac_cv_lib_dl_dlopen = yes; then
18180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18181 else
18182   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18183 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18184 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18185   echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187   ac_check_lib_save_LIBS=$LIBS
18188 LIBS="-lsvld  $LIBS"
18189 cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h.  */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h.  */
18195
18196 /* Override any GCC internal prototype to avoid an error.
18197    Use char because int might match the return type of a GCC
18198    builtin and then its argument prototype would still apply.  */
18199 #ifdef __cplusplus
18200 extern "C"
18201 #endif
18202 char dlopen ();
18203 int
18204 main ()
18205 {
18206 return dlopen ();
18207   ;
18208   return 0;
18209 }
18210 _ACEOF
18211 rm -f conftest.$ac_objext conftest$ac_exeext
18212 if { (ac_try="$ac_link"
18213 case "(($ac_try" in
18214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215   *) ac_try_echo=$ac_try;;
18216 esac
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218   (eval "$ac_link") 2>conftest.er1
18219   ac_status=$?
18220   grep -v '^ *+' conftest.er1 >conftest.err
18221   rm -f conftest.er1
18222   cat conftest.err >&5
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); } && {
18225          test -z "$ac_c_werror_flag" ||
18226          test ! -s conftest.err
18227        } && test -s conftest$ac_exeext &&
18228        $as_test_x conftest$ac_exeext; then
18229   ac_cv_lib_svld_dlopen=yes
18230 else
18231   echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234         ac_cv_lib_svld_dlopen=no
18235 fi
18236
18237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18238       conftest$ac_exeext conftest.$ac_ext
18239 LIBS=$ac_check_lib_save_LIBS
18240 fi
18241 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18242 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18243 if test $ac_cv_lib_svld_dlopen = yes; then
18244   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18245 else
18246   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18247 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18248 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251   ac_check_lib_save_LIBS=$LIBS
18252 LIBS="-ldld  $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h.  */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h.  */
18259
18260 /* Override any GCC internal prototype to avoid an error.
18261    Use char because int might match the return type of a GCC
18262    builtin and then its argument prototype would still apply.  */
18263 #ifdef __cplusplus
18264 extern "C"
18265 #endif
18266 char dld_link ();
18267 int
18268 main ()
18269 {
18270 return dld_link ();
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_link") 2>conftest.er1
18283   ac_status=$?
18284   grep -v '^ *+' conftest.er1 >conftest.err
18285   rm -f conftest.er1
18286   cat conftest.err >&5
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); } && {
18289          test -z "$ac_c_werror_flag" ||
18290          test ! -s conftest.err
18291        } && test -s conftest$ac_exeext &&
18292        $as_test_x conftest$ac_exeext; then
18293   ac_cv_lib_dld_dld_link=yes
18294 else
18295   echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18297
18298         ac_cv_lib_dld_dld_link=no
18299 fi
18300
18301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18302       conftest$ac_exeext conftest.$ac_ext
18303 LIBS=$ac_check_lib_save_LIBS
18304 fi
18305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18306 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18307 if test $ac_cv_lib_dld_dld_link = yes; then
18308   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18309 fi
18310
18311
18312 fi
18313
18314
18315 fi
18316
18317
18318 fi
18319
18320
18321 fi
18322
18323
18324 fi
18325
18326     ;;
18327   esac
18328
18329   if test "x$lt_cv_dlopen" != xno; then
18330     enable_dlopen=yes
18331   else
18332     enable_dlopen=no
18333   fi
18334
18335   case $lt_cv_dlopen in
18336   dlopen)
18337     save_CPPFLAGS="$CPPFLAGS"
18338     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18339
18340     save_LDFLAGS="$LDFLAGS"
18341     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18342
18343     save_LIBS="$LIBS"
18344     LIBS="$lt_cv_dlopen_libs $LIBS"
18345
18346     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18347 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18348 if test "${lt_cv_dlopen_self+set}" = set; then
18349   echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351           if test "$cross_compiling" = yes; then :
18352   lt_cv_dlopen_self=cross
18353 else
18354   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18355   lt_status=$lt_dlunknown
18356   cat > conftest.$ac_ext <<EOF
18357 #line 18357 "configure"
18358 #include "confdefs.h"
18359
18360 #if HAVE_DLFCN_H
18361 #include <dlfcn.h>
18362 #endif
18363
18364 #include <stdio.h>
18365
18366 #ifdef RTLD_GLOBAL
18367 #  define LT_DLGLOBAL           RTLD_GLOBAL
18368 #else
18369 #  ifdef DL_GLOBAL
18370 #    define LT_DLGLOBAL         DL_GLOBAL
18371 #  else
18372 #    define LT_DLGLOBAL         0
18373 #  endif
18374 #endif
18375
18376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18377    find out it does not work in some platform. */
18378 #ifndef LT_DLLAZY_OR_NOW
18379 #  ifdef RTLD_LAZY
18380 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18381 #  else
18382 #    ifdef DL_LAZY
18383 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18384 #    else
18385 #      ifdef RTLD_NOW
18386 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18387 #      else
18388 #        ifdef DL_NOW
18389 #          define LT_DLLAZY_OR_NOW      DL_NOW
18390 #        else
18391 #          define LT_DLLAZY_OR_NOW      0
18392 #        endif
18393 #      endif
18394 #    endif
18395 #  endif
18396 #endif
18397
18398 #ifdef __cplusplus
18399 extern "C" void exit (int);
18400 #endif
18401
18402 void fnord() { int i=42;}
18403 int main ()
18404 {
18405   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18406   int status = $lt_dlunknown;
18407
18408   if (self)
18409     {
18410       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18411       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18412       /* dlclose (self); */
18413     }
18414
18415     exit (status);
18416 }
18417 EOF
18418   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419   (eval $ac_link) 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18423     (./conftest; exit; ) 2>/dev/null
18424     lt_status=$?
18425     case x$lt_status in
18426       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18427       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18428       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18429     esac
18430   else :
18431     # compilation failed
18432     lt_cv_dlopen_self=no
18433   fi
18434 fi
18435 rm -fr conftest*
18436
18437
18438 fi
18439 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18440 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18441
18442     if test "x$lt_cv_dlopen_self" = xyes; then
18443       LDFLAGS="$LDFLAGS $link_static_flag"
18444       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18445 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18446 if test "${lt_cv_dlopen_self_static+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449           if test "$cross_compiling" = yes; then :
18450   lt_cv_dlopen_self_static=cross
18451 else
18452   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18453   lt_status=$lt_dlunknown
18454   cat > conftest.$ac_ext <<EOF
18455 #line 18455 "configure"
18456 #include "confdefs.h"
18457
18458 #if HAVE_DLFCN_H
18459 #include <dlfcn.h>
18460 #endif
18461
18462 #include <stdio.h>
18463
18464 #ifdef RTLD_GLOBAL
18465 #  define LT_DLGLOBAL           RTLD_GLOBAL
18466 #else
18467 #  ifdef DL_GLOBAL
18468 #    define LT_DLGLOBAL         DL_GLOBAL
18469 #  else
18470 #    define LT_DLGLOBAL         0
18471 #  endif
18472 #endif
18473
18474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18475    find out it does not work in some platform. */
18476 #ifndef LT_DLLAZY_OR_NOW
18477 #  ifdef RTLD_LAZY
18478 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18479 #  else
18480 #    ifdef DL_LAZY
18481 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18482 #    else
18483 #      ifdef RTLD_NOW
18484 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18485 #      else
18486 #        ifdef DL_NOW
18487 #          define LT_DLLAZY_OR_NOW      DL_NOW
18488 #        else
18489 #          define LT_DLLAZY_OR_NOW      0
18490 #        endif
18491 #      endif
18492 #    endif
18493 #  endif
18494 #endif
18495
18496 #ifdef __cplusplus
18497 extern "C" void exit (int);
18498 #endif
18499
18500 void fnord() { int i=42;}
18501 int main ()
18502 {
18503   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18504   int status = $lt_dlunknown;
18505
18506   if (self)
18507     {
18508       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18509       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18510       /* dlclose (self); */
18511     }
18512
18513     exit (status);
18514 }
18515 EOF
18516   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18517   (eval $ac_link) 2>&5
18518   ac_status=$?
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18521     (./conftest; exit; ) 2>/dev/null
18522     lt_status=$?
18523     case x$lt_status in
18524       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18525       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18526       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18527     esac
18528   else :
18529     # compilation failed
18530     lt_cv_dlopen_self_static=no
18531   fi
18532 fi
18533 rm -fr conftest*
18534
18535
18536 fi
18537 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18538 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18539     fi
18540
18541     CPPFLAGS="$save_CPPFLAGS"
18542     LDFLAGS="$save_LDFLAGS"
18543     LIBS="$save_LIBS"
18544     ;;
18545   esac
18546
18547   case $lt_cv_dlopen_self in
18548   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18549   *) enable_dlopen_self=unknown ;;
18550   esac
18551
18552   case $lt_cv_dlopen_self_static in
18553   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18554   *) enable_dlopen_self_static=unknown ;;
18555   esac
18556 fi
18557
18558
18559 # The else clause should only fire when bootstrapping the
18560 # libtool distribution, otherwise you forgot to ship ltmain.sh
18561 # with your package, and you will get complaints that there are
18562 # no rules to generate ltmain.sh.
18563 if test -f "$ltmain"; then
18564   # See if we are running on zsh, and set the options which allow our commands through
18565   # without removal of \ escapes.
18566   if test -n "${ZSH_VERSION+set}" ; then
18567     setopt NO_GLOB_SUBST
18568   fi
18569   # Now quote all the things that may contain metacharacters while being
18570   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18571   # variables and quote the copies for generation of the libtool script.
18572   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18573     SED SHELL STRIP \
18574     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18575     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18576     deplibs_check_method reload_flag reload_cmds need_locks \
18577     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18578     lt_cv_sys_global_symbol_to_c_name_address \
18579     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18580     old_postinstall_cmds old_postuninstall_cmds \
18581     compiler_GCJ \
18582     CC_GCJ \
18583     LD_GCJ \
18584     lt_prog_compiler_wl_GCJ \
18585     lt_prog_compiler_pic_GCJ \
18586     lt_prog_compiler_static_GCJ \
18587     lt_prog_compiler_no_builtin_flag_GCJ \
18588     export_dynamic_flag_spec_GCJ \
18589     thread_safe_flag_spec_GCJ \
18590     whole_archive_flag_spec_GCJ \
18591     enable_shared_with_static_runtimes_GCJ \
18592     old_archive_cmds_GCJ \
18593     old_archive_from_new_cmds_GCJ \
18594     predep_objects_GCJ \
18595     postdep_objects_GCJ \
18596     predeps_GCJ \
18597     postdeps_GCJ \
18598     compiler_lib_search_path_GCJ \
18599     archive_cmds_GCJ \
18600     archive_expsym_cmds_GCJ \
18601     postinstall_cmds_GCJ \
18602     postuninstall_cmds_GCJ \
18603     old_archive_from_expsyms_cmds_GCJ \
18604     allow_undefined_flag_GCJ \
18605     no_undefined_flag_GCJ \
18606     export_symbols_cmds_GCJ \
18607     hardcode_libdir_flag_spec_GCJ \
18608     hardcode_libdir_flag_spec_ld_GCJ \
18609     hardcode_libdir_separator_GCJ \
18610     hardcode_automatic_GCJ \
18611     module_cmds_GCJ \
18612     module_expsym_cmds_GCJ \
18613     lt_cv_prog_compiler_c_o_GCJ \
18614     exclude_expsyms_GCJ \
18615     include_expsyms_GCJ; do
18616
18617     case $var in
18618     old_archive_cmds_GCJ | \
18619     old_archive_from_new_cmds_GCJ | \
18620     archive_cmds_GCJ | \
18621     archive_expsym_cmds_GCJ | \
18622     module_cmds_GCJ | \
18623     module_expsym_cmds_GCJ | \
18624     old_archive_from_expsyms_cmds_GCJ | \
18625     export_symbols_cmds_GCJ | \
18626     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18627     postinstall_cmds | postuninstall_cmds | \
18628     old_postinstall_cmds | old_postuninstall_cmds | \
18629     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18630       # Double-quote double-evaled strings.
18631       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18632       ;;
18633     *)
18634       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18635       ;;
18636     esac
18637   done
18638
18639   case $lt_echo in
18640   *'\$0 --fallback-echo"')
18641     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18642     ;;
18643   esac
18644
18645 cfgfile="$ofile"
18646
18647   cat <<__EOF__ >> "$cfgfile"
18648 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18649
18650 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18651
18652 # Shell to use when invoking shell scripts.
18653 SHELL=$lt_SHELL
18654
18655 # Whether or not to build shared libraries.
18656 build_libtool_libs=$enable_shared
18657
18658 # Whether or not to build static libraries.
18659 build_old_libs=$enable_static
18660
18661 # Whether or not to add -lc for building shared libraries.
18662 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18663
18664 # Whether or not to disallow shared libs when runtime libs are static
18665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18666
18667 # Whether or not to optimize for fast installation.
18668 fast_install=$enable_fast_install
18669
18670 # The host system.
18671 host_alias=$host_alias
18672 host=$host
18673
18674 # An echo program that does not interpret backslashes.
18675 echo=$lt_echo
18676
18677 # The archiver.
18678 AR=$lt_AR
18679 AR_FLAGS=$lt_AR_FLAGS
18680
18681 # A C compiler.
18682 LTCC=$lt_LTCC
18683
18684 # A language-specific compiler.
18685 CC=$lt_compiler_GCJ
18686
18687 # Is the compiler the GNU C compiler?
18688 with_gcc=$GCC_GCJ
18689
18690 # An ERE matcher.
18691 EGREP=$lt_EGREP
18692
18693 # The linker used to build libraries.
18694 LD=$lt_LD_GCJ
18695
18696 # Whether we need hard or soft links.
18697 LN_S=$lt_LN_S
18698
18699 # A BSD-compatible nm program.
18700 NM=$lt_NM
18701
18702 # A symbol stripping program
18703 STRIP=$lt_STRIP
18704
18705 # Used to examine libraries when file_magic_cmd begins "file"
18706 MAGIC_CMD=$MAGIC_CMD
18707
18708 # Used on cygwin: DLL creation program.
18709 DLLTOOL="$DLLTOOL"
18710
18711 # Used on cygwin: object dumper.
18712 OBJDUMP="$OBJDUMP"
18713
18714 # Used on cygwin: assembler.
18715 AS="$AS"
18716
18717 # The name of the directory that contains temporary libtool files.
18718 objdir=$objdir
18719
18720 # How to create reloadable object files.
18721 reload_flag=$lt_reload_flag
18722 reload_cmds=$lt_reload_cmds
18723
18724 # How to pass a linker flag through the compiler.
18725 wl=$lt_lt_prog_compiler_wl_GCJ
18726
18727 # Object file suffix (normally "o").
18728 objext="$ac_objext"
18729
18730 # Old archive suffix (normally "a").
18731 libext="$libext"
18732
18733 # Shared library suffix (normally ".so").
18734 shrext_cmds='$shrext_cmds'
18735
18736 # Executable file suffix (normally "").
18737 exeext="$exeext"
18738
18739 # Additional compiler flags for building library objects.
18740 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18741 pic_mode=$pic_mode
18742
18743 # What is the maximum length of a command?
18744 max_cmd_len=$lt_cv_sys_max_cmd_len
18745
18746 # Does compiler simultaneously support -c and -o options?
18747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18748
18749 # Must we lock files when doing compilation ?
18750 need_locks=$lt_need_locks
18751
18752 # Do we need the lib prefix for modules?
18753 need_lib_prefix=$need_lib_prefix
18754
18755 # Do we need a version for libraries?
18756 need_version=$need_version
18757
18758 # Whether dlopen is supported.
18759 dlopen_support=$enable_dlopen
18760
18761 # Whether dlopen of programs is supported.
18762 dlopen_self=$enable_dlopen_self
18763
18764 # Whether dlopen of statically linked programs is supported.
18765 dlopen_self_static=$enable_dlopen_self_static
18766
18767 # Compiler flag to prevent dynamic linking.
18768 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18769
18770 # Compiler flag to turn off builtin functions.
18771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18772
18773 # Compiler flag to allow reflexive dlopens.
18774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18775
18776 # Compiler flag to generate shared objects directly from archives.
18777 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18778
18779 # Compiler flag to generate thread-safe objects.
18780 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18781
18782 # Library versioning type.
18783 version_type=$version_type
18784
18785 # Format of library name prefix.
18786 libname_spec=$lt_libname_spec
18787
18788 # List of archive names.  First name is the real one, the rest are links.
18789 # The last name is the one that the linker finds with -lNAME.
18790 library_names_spec=$lt_library_names_spec
18791
18792 # The coded name of the library, if different from the real name.
18793 soname_spec=$lt_soname_spec
18794
18795 # Commands used to build and install an old-style archive.
18796 RANLIB=$lt_RANLIB
18797 old_archive_cmds=$lt_old_archive_cmds_GCJ
18798 old_postinstall_cmds=$lt_old_postinstall_cmds
18799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18800
18801 # Create an old-style archive from a shared archive.
18802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18803
18804 # Create a temporary old-style archive to link instead of a shared archive.
18805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18806
18807 # Commands used to build and install a shared archive.
18808 archive_cmds=$lt_archive_cmds_GCJ
18809 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18810 postinstall_cmds=$lt_postinstall_cmds
18811 postuninstall_cmds=$lt_postuninstall_cmds
18812
18813 # Commands used to build a loadable module (assumed same as above if empty)
18814 module_cmds=$lt_module_cmds_GCJ
18815 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18816
18817 # Commands to strip libraries.
18818 old_striplib=$lt_old_striplib
18819 striplib=$lt_striplib
18820
18821 # Dependencies to place before the objects being linked to create a
18822 # shared library.
18823 predep_objects=$lt_predep_objects_GCJ
18824
18825 # Dependencies to place after the objects being linked to create a
18826 # shared library.
18827 postdep_objects=$lt_postdep_objects_GCJ
18828
18829 # Dependencies to place before the objects being linked to create a
18830 # shared library.
18831 predeps=$lt_predeps_GCJ
18832
18833 # Dependencies to place after the objects being linked to create a
18834 # shared library.
18835 postdeps=$lt_postdeps_GCJ
18836
18837 # The library search path used internally by the compiler when linking
18838 # a shared library.
18839 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18840
18841 # Method to check whether dependent libraries are shared objects.
18842 deplibs_check_method=$lt_deplibs_check_method
18843
18844 # Command to use when deplibs_check_method == file_magic.
18845 file_magic_cmd=$lt_file_magic_cmd
18846
18847 # Flag that allows shared libraries with undefined symbols to be built.
18848 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18849
18850 # Flag that forces no undefined symbols.
18851 no_undefined_flag=$lt_no_undefined_flag_GCJ
18852
18853 # Commands used to finish a libtool library installation in a directory.
18854 finish_cmds=$lt_finish_cmds
18855
18856 # Same as above, but a single script fragment to be evaled but not shown.
18857 finish_eval=$lt_finish_eval
18858
18859 # Take the output of nm and produce a listing of raw symbols and C names.
18860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18861
18862 # Transform the output of nm in a proper C declaration
18863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18864
18865 # Transform the output of nm in a C name address pair
18866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18867
18868 # This is the shared library runtime path variable.
18869 runpath_var=$runpath_var
18870
18871 # This is the shared library path variable.
18872 shlibpath_var=$shlibpath_var
18873
18874 # Is shlibpath searched before the hard-coded library search path?
18875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18876
18877 # How to hardcode a shared library path into an executable.
18878 hardcode_action=$hardcode_action_GCJ
18879
18880 # Whether we should hardcode library paths into libraries.
18881 hardcode_into_libs=$hardcode_into_libs
18882
18883 # Flag to hardcode \$libdir into a binary during linking.
18884 # This must work even if \$libdir does not exist.
18885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18886
18887 # If ld is used when linking, flag to hardcode \$libdir into
18888 # a binary during linking. This must work even if \$libdir does
18889 # not exist.
18890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18891
18892 # Whether we need a single -rpath flag with a separated argument.
18893 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18894
18895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18896 # resulting binary.
18897 hardcode_direct=$hardcode_direct_GCJ
18898
18899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18900 # resulting binary.
18901 hardcode_minus_L=$hardcode_minus_L_GCJ
18902
18903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18904 # the resulting binary.
18905 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18906
18907 # Set to yes if building a shared library automatically hardcodes DIR into the library
18908 # and all subsequent libraries and executables linked against it.
18909 hardcode_automatic=$hardcode_automatic_GCJ
18910
18911 # Variables whose values should be saved in libtool wrapper scripts and
18912 # restored at relink time.
18913 variables_saved_for_relink="$variables_saved_for_relink"
18914
18915 # Whether libtool must link a program against all its dependency libraries.
18916 link_all_deplibs=$link_all_deplibs_GCJ
18917
18918 # Compile-time system search path for libraries
18919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18920
18921 # Run-time system search path for libraries
18922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18923
18924 # Fix the shell variable \$srcfile for the compiler.
18925 fix_srcfile_path="$fix_srcfile_path_GCJ"
18926
18927 # Set to yes if exported symbols are required.
18928 always_export_symbols=$always_export_symbols_GCJ
18929
18930 # The commands to list exported symbols.
18931 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18932
18933 # The commands to extract the exported symbol list from a shared archive.
18934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18935
18936 # Symbols that should not be listed in the preloaded symbols.
18937 exclude_expsyms=$lt_exclude_expsyms_GCJ
18938
18939 # Symbols that must always be exported.
18940 include_expsyms=$lt_include_expsyms_GCJ
18941
18942 # ### END LIBTOOL TAG CONFIG: $tagname
18943
18944 __EOF__
18945
18946
18947 else
18948   # If there is no Makefile yet, we rely on a make rule to execute
18949   # `config.status --recheck' to rerun these tests and create the
18950   # libtool script then.
18951   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18952   if test -f "$ltmain_in"; then
18953     test -f Makefile && make "$ltmain"
18954   fi
18955 fi
18956
18957
18958 ac_ext=c
18959 ac_cpp='$CPP $CPPFLAGS'
18960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18963
18964 CC="$lt_save_CC"
18965
18966         else
18967           tagname=""
18968         fi
18969         ;;
18970
18971       RC)
18972
18973
18974 # Source file extension for RC test sources.
18975 ac_ext=rc
18976
18977 # Object file extension for compiled RC test sources.
18978 objext=o
18979 objext_RC=$objext
18980
18981 # Code to be used in simple compile tests
18982 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18983
18984 # Code to be used in simple link tests
18985 lt_simple_link_test_code="$lt_simple_compile_test_code"
18986
18987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18988
18989 # If no C compiler was specified, use CC.
18990 LTCC=${LTCC-"$CC"}
18991
18992 # Allow CC to be a program name with arguments.
18993 compiler=$CC
18994
18995
18996 # Allow CC to be a program name with arguments.
18997 lt_save_CC="$CC"
18998 CC=${RC-"windres"}
18999 compiler=$CC
19000 compiler_RC=$CC
19001 lt_cv_prog_compiler_c_o_RC=yes
19002
19003 # The else clause should only fire when bootstrapping the
19004 # libtool distribution, otherwise you forgot to ship ltmain.sh
19005 # with your package, and you will get complaints that there are
19006 # no rules to generate ltmain.sh.
19007 if test -f "$ltmain"; then
19008   # See if we are running on zsh, and set the options which allow our commands through
19009   # without removal of \ escapes.
19010   if test -n "${ZSH_VERSION+set}" ; then
19011     setopt NO_GLOB_SUBST
19012   fi
19013   # Now quote all the things that may contain metacharacters while being
19014   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19015   # variables and quote the copies for generation of the libtool script.
19016   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19017     SED SHELL STRIP \
19018     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19019     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19020     deplibs_check_method reload_flag reload_cmds need_locks \
19021     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19022     lt_cv_sys_global_symbol_to_c_name_address \
19023     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19024     old_postinstall_cmds old_postuninstall_cmds \
19025     compiler_RC \
19026     CC_RC \
19027     LD_RC \
19028     lt_prog_compiler_wl_RC \
19029     lt_prog_compiler_pic_RC \
19030     lt_prog_compiler_static_RC \
19031     lt_prog_compiler_no_builtin_flag_RC \
19032     export_dynamic_flag_spec_RC \
19033     thread_safe_flag_spec_RC \
19034     whole_archive_flag_spec_RC \
19035     enable_shared_with_static_runtimes_RC \
19036     old_archive_cmds_RC \
19037     old_archive_from_new_cmds_RC \
19038     predep_objects_RC \
19039     postdep_objects_RC \
19040     predeps_RC \
19041     postdeps_RC \
19042     compiler_lib_search_path_RC \
19043     archive_cmds_RC \
19044     archive_expsym_cmds_RC \
19045     postinstall_cmds_RC \
19046     postuninstall_cmds_RC \
19047     old_archive_from_expsyms_cmds_RC \
19048     allow_undefined_flag_RC \
19049     no_undefined_flag_RC \
19050     export_symbols_cmds_RC \
19051     hardcode_libdir_flag_spec_RC \
19052     hardcode_libdir_flag_spec_ld_RC \
19053     hardcode_libdir_separator_RC \
19054     hardcode_automatic_RC \
19055     module_cmds_RC \
19056     module_expsym_cmds_RC \
19057     lt_cv_prog_compiler_c_o_RC \
19058     exclude_expsyms_RC \
19059     include_expsyms_RC; do
19060
19061     case $var in
19062     old_archive_cmds_RC | \
19063     old_archive_from_new_cmds_RC | \
19064     archive_cmds_RC | \
19065     archive_expsym_cmds_RC | \
19066     module_cmds_RC | \
19067     module_expsym_cmds_RC | \
19068     old_archive_from_expsyms_cmds_RC | \
19069     export_symbols_cmds_RC | \
19070     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19071     postinstall_cmds | postuninstall_cmds | \
19072     old_postinstall_cmds | old_postuninstall_cmds | \
19073     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19074       # Double-quote double-evaled strings.
19075       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19076       ;;
19077     *)
19078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19079       ;;
19080     esac
19081   done
19082
19083   case $lt_echo in
19084   *'\$0 --fallback-echo"')
19085     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19086     ;;
19087   esac
19088
19089 cfgfile="$ofile"
19090
19091   cat <<__EOF__ >> "$cfgfile"
19092 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19093
19094 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19095
19096 # Shell to use when invoking shell scripts.
19097 SHELL=$lt_SHELL
19098
19099 # Whether or not to build shared libraries.
19100 build_libtool_libs=$enable_shared
19101
19102 # Whether or not to build static libraries.
19103 build_old_libs=$enable_static
19104
19105 # Whether or not to add -lc for building shared libraries.
19106 build_libtool_need_lc=$archive_cmds_need_lc_RC
19107
19108 # Whether or not to disallow shared libs when runtime libs are static
19109 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19110
19111 # Whether or not to optimize for fast installation.
19112 fast_install=$enable_fast_install
19113
19114 # The host system.
19115 host_alias=$host_alias
19116 host=$host
19117
19118 # An echo program that does not interpret backslashes.
19119 echo=$lt_echo
19120
19121 # The archiver.
19122 AR=$lt_AR
19123 AR_FLAGS=$lt_AR_FLAGS
19124
19125 # A C compiler.
19126 LTCC=$lt_LTCC
19127
19128 # A language-specific compiler.
19129 CC=$lt_compiler_RC
19130
19131 # Is the compiler the GNU C compiler?
19132 with_gcc=$GCC_RC
19133
19134 # An ERE matcher.
19135 EGREP=$lt_EGREP
19136
19137 # The linker used to build libraries.
19138 LD=$lt_LD_RC
19139
19140 # Whether we need hard or soft links.
19141 LN_S=$lt_LN_S
19142
19143 # A BSD-compatible nm program.
19144 NM=$lt_NM
19145
19146 # A symbol stripping program
19147 STRIP=$lt_STRIP
19148
19149 # Used to examine libraries when file_magic_cmd begins "file"
19150 MAGIC_CMD=$MAGIC_CMD
19151
19152 # Used on cygwin: DLL creation program.
19153 DLLTOOL="$DLLTOOL"
19154
19155 # Used on cygwin: object dumper.
19156 OBJDUMP="$OBJDUMP"
19157
19158 # Used on cygwin: assembler.
19159 AS="$AS"
19160
19161 # The name of the directory that contains temporary libtool files.
19162 objdir=$objdir
19163
19164 # How to create reloadable object files.
19165 reload_flag=$lt_reload_flag
19166 reload_cmds=$lt_reload_cmds
19167
19168 # How to pass a linker flag through the compiler.
19169 wl=$lt_lt_prog_compiler_wl_RC
19170
19171 # Object file suffix (normally "o").
19172 objext="$ac_objext"
19173
19174 # Old archive suffix (normally "a").
19175 libext="$libext"
19176
19177 # Shared library suffix (normally ".so").
19178 shrext_cmds='$shrext_cmds'
19179
19180 # Executable file suffix (normally "").
19181 exeext="$exeext"
19182
19183 # Additional compiler flags for building library objects.
19184 pic_flag=$lt_lt_prog_compiler_pic_RC
19185 pic_mode=$pic_mode
19186
19187 # What is the maximum length of a command?
19188 max_cmd_len=$lt_cv_sys_max_cmd_len
19189
19190 # Does compiler simultaneously support -c and -o options?
19191 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19192
19193 # Must we lock files when doing compilation ?
19194 need_locks=$lt_need_locks
19195
19196 # Do we need the lib prefix for modules?
19197 need_lib_prefix=$need_lib_prefix
19198
19199 # Do we need a version for libraries?
19200 need_version=$need_version
19201
19202 # Whether dlopen is supported.
19203 dlopen_support=$enable_dlopen
19204
19205 # Whether dlopen of programs is supported.
19206 dlopen_self=$enable_dlopen_self
19207
19208 # Whether dlopen of statically linked programs is supported.
19209 dlopen_self_static=$enable_dlopen_self_static
19210
19211 # Compiler flag to prevent dynamic linking.
19212 link_static_flag=$lt_lt_prog_compiler_static_RC
19213
19214 # Compiler flag to turn off builtin functions.
19215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19216
19217 # Compiler flag to allow reflexive dlopens.
19218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19219
19220 # Compiler flag to generate shared objects directly from archives.
19221 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19222
19223 # Compiler flag to generate thread-safe objects.
19224 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19225
19226 # Library versioning type.
19227 version_type=$version_type
19228
19229 # Format of library name prefix.
19230 libname_spec=$lt_libname_spec
19231
19232 # List of archive names.  First name is the real one, the rest are links.
19233 # The last name is the one that the linker finds with -lNAME.
19234 library_names_spec=$lt_library_names_spec
19235
19236 # The coded name of the library, if different from the real name.
19237 soname_spec=$lt_soname_spec
19238
19239 # Commands used to build and install an old-style archive.
19240 RANLIB=$lt_RANLIB
19241 old_archive_cmds=$lt_old_archive_cmds_RC
19242 old_postinstall_cmds=$lt_old_postinstall_cmds
19243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19244
19245 # Create an old-style archive from a shared archive.
19246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19247
19248 # Create a temporary old-style archive to link instead of a shared archive.
19249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19250
19251 # Commands used to build and install a shared archive.
19252 archive_cmds=$lt_archive_cmds_RC
19253 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19254 postinstall_cmds=$lt_postinstall_cmds
19255 postuninstall_cmds=$lt_postuninstall_cmds
19256
19257 # Commands used to build a loadable module (assumed same as above if empty)
19258 module_cmds=$lt_module_cmds_RC
19259 module_expsym_cmds=$lt_module_expsym_cmds_RC
19260
19261 # Commands to strip libraries.
19262 old_striplib=$lt_old_striplib
19263 striplib=$lt_striplib
19264
19265 # Dependencies to place before the objects being linked to create a
19266 # shared library.
19267 predep_objects=$lt_predep_objects_RC
19268
19269 # Dependencies to place after the objects being linked to create a
19270 # shared library.
19271 postdep_objects=$lt_postdep_objects_RC
19272
19273 # Dependencies to place before the objects being linked to create a
19274 # shared library.
19275 predeps=$lt_predeps_RC
19276
19277 # Dependencies to place after the objects being linked to create a
19278 # shared library.
19279 postdeps=$lt_postdeps_RC
19280
19281 # The library search path used internally by the compiler when linking
19282 # a shared library.
19283 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19284
19285 # Method to check whether dependent libraries are shared objects.
19286 deplibs_check_method=$lt_deplibs_check_method
19287
19288 # Command to use when deplibs_check_method == file_magic.
19289 file_magic_cmd=$lt_file_magic_cmd
19290
19291 # Flag that allows shared libraries with undefined symbols to be built.
19292 allow_undefined_flag=$lt_allow_undefined_flag_RC
19293
19294 # Flag that forces no undefined symbols.
19295 no_undefined_flag=$lt_no_undefined_flag_RC
19296
19297 # Commands used to finish a libtool library installation in a directory.
19298 finish_cmds=$lt_finish_cmds
19299
19300 # Same as above, but a single script fragment to be evaled but not shown.
19301 finish_eval=$lt_finish_eval
19302
19303 # Take the output of nm and produce a listing of raw symbols and C names.
19304 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19305
19306 # Transform the output of nm in a proper C declaration
19307 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19308
19309 # Transform the output of nm in a C name address pair
19310 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19311
19312 # This is the shared library runtime path variable.
19313 runpath_var=$runpath_var
19314
19315 # This is the shared library path variable.
19316 shlibpath_var=$shlibpath_var
19317
19318 # Is shlibpath searched before the hard-coded library search path?
19319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19320
19321 # How to hardcode a shared library path into an executable.
19322 hardcode_action=$hardcode_action_RC
19323
19324 # Whether we should hardcode library paths into libraries.
19325 hardcode_into_libs=$hardcode_into_libs
19326
19327 # Flag to hardcode \$libdir into a binary during linking.
19328 # This must work even if \$libdir does not exist.
19329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19330
19331 # If ld is used when linking, flag to hardcode \$libdir into
19332 # a binary during linking. This must work even if \$libdir does
19333 # not exist.
19334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19335
19336 # Whether we need a single -rpath flag with a separated argument.
19337 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19338
19339 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19340 # resulting binary.
19341 hardcode_direct=$hardcode_direct_RC
19342
19343 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19344 # resulting binary.
19345 hardcode_minus_L=$hardcode_minus_L_RC
19346
19347 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19348 # the resulting binary.
19349 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19350
19351 # Set to yes if building a shared library automatically hardcodes DIR into the library
19352 # and all subsequent libraries and executables linked against it.
19353 hardcode_automatic=$hardcode_automatic_RC
19354
19355 # Variables whose values should be saved in libtool wrapper scripts and
19356 # restored at relink time.
19357 variables_saved_for_relink="$variables_saved_for_relink"
19358
19359 # Whether libtool must link a program against all its dependency libraries.
19360 link_all_deplibs=$link_all_deplibs_RC
19361
19362 # Compile-time system search path for libraries
19363 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19364
19365 # Run-time system search path for libraries
19366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19367
19368 # Fix the shell variable \$srcfile for the compiler.
19369 fix_srcfile_path="$fix_srcfile_path_RC"
19370
19371 # Set to yes if exported symbols are required.
19372 always_export_symbols=$always_export_symbols_RC
19373
19374 # The commands to list exported symbols.
19375 export_symbols_cmds=$lt_export_symbols_cmds_RC
19376
19377 # The commands to extract the exported symbol list from a shared archive.
19378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19379
19380 # Symbols that should not be listed in the preloaded symbols.
19381 exclude_expsyms=$lt_exclude_expsyms_RC
19382
19383 # Symbols that must always be exported.
19384 include_expsyms=$lt_include_expsyms_RC
19385
19386 # ### END LIBTOOL TAG CONFIG: $tagname
19387
19388 __EOF__
19389
19390
19391 else
19392   # If there is no Makefile yet, we rely on a make rule to execute
19393   # `config.status --recheck' to rerun these tests and create the
19394   # libtool script then.
19395   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19396   if test -f "$ltmain_in"; then
19397     test -f Makefile && make "$ltmain"
19398   fi
19399 fi
19400
19401
19402 ac_ext=c
19403 ac_cpp='$CPP $CPPFLAGS'
19404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19407
19408 CC="$lt_save_CC"
19409
19410         ;;
19411
19412       *)
19413         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19414 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19415    { (exit 1); exit 1; }; }
19416         ;;
19417       esac
19418
19419       # Append the new tag name to the list of available tags.
19420       if test -n "$tagname" ; then
19421       available_tags="$available_tags $tagname"
19422     fi
19423     fi
19424   done
19425   IFS="$lt_save_ifs"
19426
19427   # Now substitute the updated list of available tags.
19428   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19429     mv "${ofile}T" "$ofile"
19430     chmod +x "$ofile"
19431   else
19432     rm -f "${ofile}T"
19433     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19434 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19435    { (exit 1); exit 1; }; }
19436   fi
19437 fi
19438
19439
19440
19441 # This can be used to rebuild libtool when needed
19442 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19443
19444 # Always use our own libtool.
19445 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19446
19447 # Prevent multiple expansion
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469 { echo "$as_me:$LINENO: checking location of temporary directory" >&5
19470 echo $ECHO_N "checking location of temporary directory... $ECHO_C" >&6; }
19471 if test -d /var/tmp; then
19472         found_tmp=/var/tmp/
19473 elif test -d /usr/tmp; then
19474         found_tmp=/usr/tmp/
19475 else
19476         found_tmp=/tmp/
19477 fi
19478 cat >>confdefs.h <<_ACEOF
19479 #define FOUND_TMP "${found_tmp}"
19480 _ACEOF
19481
19482 { echo "$as_me:$LINENO: result: ${found_tmp}" >&5
19483 echo "${ECHO_T}${found_tmp}" >&6; }
19484
19485 { echo "$as_me:$LINENO: checking for X" >&5
19486 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19487
19488
19489 # Check whether --with-x was given.
19490 if test "${with_x+set}" = set; then
19491   withval=$with_x;
19492 fi
19493
19494 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19495 if test "x$with_x" = xno; then
19496   # The user explicitly disabled X.
19497   have_x=disabled
19498 else
19499   case $x_includes,$x_libraries in #(
19500     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19501 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19502    { (exit 1); exit 1; }; };; #(
19503     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19504   echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506   # One or both of the vars are not set, and there is no cached value.
19507 ac_x_includes=no ac_x_libraries=no
19508 rm -f -r conftest.dir
19509 if mkdir conftest.dir; then
19510   cd conftest.dir
19511   cat >Imakefile <<'_ACEOF'
19512 incroot:
19513         @echo incroot='${INCROOT}'
19514 usrlibdir:
19515         @echo usrlibdir='${USRLIBDIR}'
19516 libdir:
19517         @echo libdir='${LIBDIR}'
19518 _ACEOF
19519   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19520     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19521     for ac_var in incroot usrlibdir libdir; do
19522       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19523     done
19524     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19525     for ac_extension in a so sl; do
19526       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19527          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19528         ac_im_usrlibdir=$ac_im_libdir; break
19529       fi
19530     done
19531     # Screen out bogus values from the imake configuration.  They are
19532     # bogus both because they are the default anyway, and because
19533     # using them would break gcc on systems where it needs fixed includes.
19534     case $ac_im_incroot in
19535         /usr/include) ac_x_includes= ;;
19536         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19537     esac
19538     case $ac_im_usrlibdir in
19539         /usr/lib | /lib) ;;
19540         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19541     esac
19542   fi
19543   cd ..
19544   rm -f -r conftest.dir
19545 fi
19546
19547 # Standard set of common directories for X headers.
19548 # Check X11 before X11Rn because it is often a symlink to the current release.
19549 ac_x_header_dirs='
19550 /usr/X11/include
19551 /usr/X11R6/include
19552 /usr/X11R5/include
19553 /usr/X11R4/include
19554
19555 /usr/include/X11
19556 /usr/include/X11R6
19557 /usr/include/X11R5
19558 /usr/include/X11R4
19559
19560 /usr/local/X11/include
19561 /usr/local/X11R6/include
19562 /usr/local/X11R5/include
19563 /usr/local/X11R4/include
19564
19565 /usr/local/include/X11
19566 /usr/local/include/X11R6
19567 /usr/local/include/X11R5
19568 /usr/local/include/X11R4
19569
19570 /usr/X386/include
19571 /usr/x386/include
19572 /usr/XFree86/include/X11
19573
19574 /usr/include
19575 /usr/local/include
19576 /usr/unsupported/include
19577 /usr/athena/include
19578 /usr/local/x11r5/include
19579 /usr/lpp/Xamples/include
19580
19581 /usr/openwin/include
19582 /usr/openwin/share/include'
19583
19584 if test "$ac_x_includes" = no; then
19585   # Guess where to find include files, by looking for Xlib.h.
19586   # First, try using that file with no special directory specified.
19587   cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h.  */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h.  */
19593 #include <X11/Xlib.h>
19594 _ACEOF
19595 if { (ac_try="$ac_cpp conftest.$ac_ext"
19596 case "(($ac_try" in
19597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598   *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } >/dev/null && {
19608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19609          test ! -s conftest.err
19610        }; then
19611   # We can compile using X headers with no special include directory.
19612 ac_x_includes=
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617   for ac_dir in $ac_x_header_dirs; do
19618   if test -r "$ac_dir/X11/Xlib.h"; then
19619     ac_x_includes=$ac_dir
19620     break
19621   fi
19622 done
19623 fi
19624
19625 rm -f conftest.err conftest.$ac_ext
19626 fi # $ac_x_includes = no
19627
19628 if test "$ac_x_libraries" = no; then
19629   # Check for the libraries.
19630   # See if we find them without any special options.
19631   # Don't add to $LIBS permanently.
19632   ac_save_LIBS=$LIBS
19633   LIBS="-lX11 $LIBS"
19634   cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h.  */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h.  */
19640 #include <X11/Xlib.h>
19641 int
19642 main ()
19643 {
19644 XrmInitialize ()
19645   ;
19646   return 0;
19647 }
19648 _ACEOF
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_link") 2>conftest.er1
19657   ac_status=$?
19658   grep -v '^ *+' conftest.er1 >conftest.err
19659   rm -f conftest.er1
19660   cat conftest.err >&5
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); } && {
19663          test -z "$ac_c_werror_flag" ||
19664          test ! -s conftest.err
19665        } && test -s conftest$ac_exeext &&
19666        $as_test_x conftest$ac_exeext; then
19667   LIBS=$ac_save_LIBS
19668 # We can link X programs with no special library path.
19669 ac_x_libraries=
19670 else
19671   echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674         LIBS=$ac_save_LIBS
19675 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19676 do
19677   # Don't even attempt the hair of trying to link an X program!
19678   for ac_extension in a so sl; do
19679     if test -r "$ac_dir/libX11.$ac_extension"; then
19680       ac_x_libraries=$ac_dir
19681       break 2
19682     fi
19683   done
19684 done
19685 fi
19686
19687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19688       conftest$ac_exeext conftest.$ac_ext
19689 fi # $ac_x_libraries = no
19690
19691 case $ac_x_includes,$ac_x_libraries in #(
19692   no,* | *,no | *\'*)
19693     # Didn't find X, or a directory has "'" in its name.
19694     ac_cv_have_x="have_x=no";; #(
19695   *)
19696     # Record where we found X for the cache.
19697     ac_cv_have_x="have_x=yes\
19698         ac_x_includes='$ac_x_includes'\
19699         ac_x_libraries='$ac_x_libraries'"
19700 esac
19701 fi
19702 ;; #(
19703     *) have_x=yes;;
19704   esac
19705   eval "$ac_cv_have_x"
19706 fi # $with_x != no
19707
19708 if test "$have_x" != yes; then
19709   { echo "$as_me:$LINENO: result: $have_x" >&5
19710 echo "${ECHO_T}$have_x" >&6; }
19711   no_x=yes
19712 else
19713   # If each of the values was on the command line, it overrides each guess.
19714   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19715   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19716   # Update the cache value to reflect the command line values.
19717   ac_cv_have_x="have_x=yes\
19718         ac_x_includes='$x_includes'\
19719         ac_x_libraries='$x_libraries'"
19720   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19721 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19722 fi
19723
19724 if test "$no_x" = yes; then
19725   # Not all programs may use this symbol, but it does not hurt to define it.
19726
19727 cat >>confdefs.h <<\_ACEOF
19728 #define X_DISPLAY_MISSING 1
19729 _ACEOF
19730
19731   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19732 else
19733   if test -n "$x_includes"; then
19734     X_CFLAGS="$X_CFLAGS -I$x_includes"
19735   fi
19736
19737   # It would also be nice to do this for all -L options, not just this one.
19738   if test -n "$x_libraries"; then
19739     X_LIBS="$X_LIBS -L$x_libraries"
19740     # For Solaris; some versions of Sun CC require a space after -R and
19741     # others require no space.  Words are not sufficient . . . .
19742     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19743 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19744     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19745     ac_xsave_c_werror_flag=$ac_c_werror_flag
19746     ac_c_werror_flag=yes
19747     cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753
19754 int
19755 main ()
19756 {
19757
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_link") 2>conftest.er1
19770   ac_status=$?
19771   grep -v '^ *+' conftest.er1 >conftest.err
19772   rm -f conftest.er1
19773   cat conftest.err >&5
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } && {
19776          test -z "$ac_c_werror_flag" ||
19777          test ! -s conftest.err
19778        } && test -s conftest$ac_exeext &&
19779        $as_test_x conftest$ac_exeext; then
19780   { echo "$as_me:$LINENO: result: no" >&5
19781 echo "${ECHO_T}no" >&6; }
19782        X_LIBS="$X_LIBS -R$x_libraries"
19783 else
19784   echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19786
19787         LIBS="$ac_xsave_LIBS -R $x_libraries"
19788        cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794
19795 int
19796 main ()
19797 {
19798
19799   ;
19800   return 0;
19801 }
19802 _ACEOF
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (ac_try="$ac_link"
19805 case "(($ac_try" in
19806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807   *) ac_try_echo=$ac_try;;
19808 esac
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810   (eval "$ac_link") 2>conftest.er1
19811   ac_status=$?
19812   grep -v '^ *+' conftest.er1 >conftest.err
19813   rm -f conftest.er1
19814   cat conftest.err >&5
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } && {
19817          test -z "$ac_c_werror_flag" ||
19818          test ! -s conftest.err
19819        } && test -s conftest$ac_exeext &&
19820        $as_test_x conftest$ac_exeext; then
19821   { echo "$as_me:$LINENO: result: yes" >&5
19822 echo "${ECHO_T}yes" >&6; }
19823           X_LIBS="$X_LIBS -R $x_libraries"
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828         { echo "$as_me:$LINENO: result: neither works" >&5
19829 echo "${ECHO_T}neither works" >&6; }
19830 fi
19831
19832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19833       conftest$ac_exeext conftest.$ac_ext
19834 fi
19835
19836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19837       conftest$ac_exeext conftest.$ac_ext
19838     ac_c_werror_flag=$ac_xsave_c_werror_flag
19839     LIBS=$ac_xsave_LIBS
19840   fi
19841
19842   # Check for system-dependent libraries X programs must link with.
19843   # Do this before checking for the system-independent R6 libraries
19844   # (-lICE), since we may need -lsocket or whatever for X linking.
19845
19846   if test "$ISC" = yes; then
19847     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19848   else
19849     # Martyn Johnson says this is needed for Ultrix, if the X
19850     # libraries were built with DECnet support.  And Karl Berry says
19851     # the Alpha needs dnet_stub (dnet does not exist).
19852     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19853     cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859
19860 /* Override any GCC internal prototype to avoid an error.
19861    Use char because int might match the return type of a GCC
19862    builtin and then its argument prototype would still apply.  */
19863 #ifdef __cplusplus
19864 extern "C"
19865 #endif
19866 char XOpenDisplay ();
19867 int
19868 main ()
19869 {
19870 return XOpenDisplay ();
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (ac_try="$ac_link"
19877 case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_link") 2>conftest.er1
19883   ac_status=$?
19884   grep -v '^ *+' conftest.er1 >conftest.err
19885   rm -f conftest.er1
19886   cat conftest.err >&5
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } && {
19889          test -z "$ac_c_werror_flag" ||
19890          test ! -s conftest.err
19891        } && test -s conftest$ac_exeext &&
19892        $as_test_x conftest$ac_exeext; then
19893   :
19894 else
19895   echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19897
19898         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19899 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19900 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   ac_check_lib_save_LIBS=$LIBS
19904 LIBS="-ldnet  $LIBS"
19905 cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911
19912 /* Override any GCC internal prototype to avoid an error.
19913    Use char because int might match the return type of a GCC
19914    builtin and then its argument prototype would still apply.  */
19915 #ifdef __cplusplus
19916 extern "C"
19917 #endif
19918 char dnet_ntoa ();
19919 int
19920 main ()
19921 {
19922 return dnet_ntoa ();
19923   ;
19924   return 0;
19925 }
19926 _ACEOF
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (ac_try="$ac_link"
19929 case "(($ac_try" in
19930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931   *) ac_try_echo=$ac_try;;
19932 esac
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934   (eval "$ac_link") 2>conftest.er1
19935   ac_status=$?
19936   grep -v '^ *+' conftest.er1 >conftest.err
19937   rm -f conftest.er1
19938   cat conftest.err >&5
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); } && {
19941          test -z "$ac_c_werror_flag" ||
19942          test ! -s conftest.err
19943        } && test -s conftest$ac_exeext &&
19944        $as_test_x conftest$ac_exeext; then
19945   ac_cv_lib_dnet_dnet_ntoa=yes
19946 else
19947   echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950         ac_cv_lib_dnet_dnet_ntoa=no
19951 fi
19952
19953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19954       conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19956 fi
19957 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19958 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19959 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19960   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19961 fi
19962
19963     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19964       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19965 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19966 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19967   echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969   ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-ldnet_stub  $LIBS"
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h.  */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h.  */
19977
19978 /* Override any GCC internal prototype to avoid an error.
19979    Use char because int might match the return type of a GCC
19980    builtin and then its argument prototype would still apply.  */
19981 #ifdef __cplusplus
19982 extern "C"
19983 #endif
19984 char dnet_ntoa ();
19985 int
19986 main ()
19987 {
19988 return dnet_ntoa ();
19989   ;
19990   return 0;
19991 }
19992 _ACEOF
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997   *) ac_try_echo=$ac_try;;
19998 esac
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000   (eval "$ac_link") 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } && {
20007          test -z "$ac_c_werror_flag" ||
20008          test ! -s conftest.err
20009        } && test -s conftest$ac_exeext &&
20010        $as_test_x conftest$ac_exeext; then
20011   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20012 else
20013   echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016         ac_cv_lib_dnet_stub_dnet_ntoa=no
20017 fi
20018
20019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20020       conftest$ac_exeext conftest.$ac_ext
20021 LIBS=$ac_check_lib_save_LIBS
20022 fi
20023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20024 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20025 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20026   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20027 fi
20028
20029     fi
20030 fi
20031
20032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20033       conftest$ac_exeext conftest.$ac_ext
20034     LIBS="$ac_xsave_LIBS"
20035
20036     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20037     # to get the SysV transport functions.
20038     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20039     # needs -lnsl.
20040     # The nsl library prevents programs from opening the X display
20041     # on Irix 5.2, according to T.E. Dickey.
20042     # The functions gethostbyname, getservbyname, and inet_addr are
20043     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20044     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20045 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20046 if test "${ac_cv_func_gethostbyname+set}" = set; then
20047   echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049   cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h.  */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h.  */
20055 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20057 #define gethostbyname innocuous_gethostbyname
20058
20059 /* System header to define __stub macros and hopefully few prototypes,
20060     which can conflict with char gethostbyname (); below.
20061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20062     <limits.h> exists even on freestanding compilers.  */
20063
20064 #ifdef __STDC__
20065 # include <limits.h>
20066 #else
20067 # include <assert.h>
20068 #endif
20069
20070 #undef gethostbyname
20071
20072 /* Override any GCC internal prototype to avoid an error.
20073    Use char because int might match the return type of a GCC
20074    builtin and then its argument prototype would still apply.  */
20075 #ifdef __cplusplus
20076 extern "C"
20077 #endif
20078 char gethostbyname ();
20079 /* The GNU C library defines this for functions which it implements
20080     to always fail with ENOSYS.  Some functions are actually named
20081     something starting with __ and the normal name is an alias.  */
20082 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20083 choke me
20084 #endif
20085
20086 int
20087 main ()
20088 {
20089 return gethostbyname ();
20090   ;
20091   return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098   *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101   (eval "$ac_link") 2>conftest.er1
20102   ac_status=$?
20103   grep -v '^ *+' conftest.er1 >conftest.err
20104   rm -f conftest.er1
20105   cat conftest.err >&5
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } && {
20108          test -z "$ac_c_werror_flag" ||
20109          test ! -s conftest.err
20110        } && test -s conftest$ac_exeext &&
20111        $as_test_x conftest$ac_exeext; then
20112   ac_cv_func_gethostbyname=yes
20113 else
20114   echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117         ac_cv_func_gethostbyname=no
20118 fi
20119
20120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20121       conftest$ac_exeext conftest.$ac_ext
20122 fi
20123 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20124 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20125
20126     if test $ac_cv_func_gethostbyname = no; then
20127       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20128 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20129 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20130   echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132   ac_check_lib_save_LIBS=$LIBS
20133 LIBS="-lnsl  $LIBS"
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140
20141 /* Override any GCC internal prototype to avoid an error.
20142    Use char because int might match the return type of a GCC
20143    builtin and then its argument prototype would still apply.  */
20144 #ifdef __cplusplus
20145 extern "C"
20146 #endif
20147 char gethostbyname ();
20148 int
20149 main ()
20150 {
20151 return gethostbyname ();
20152   ;
20153   return 0;
20154 }
20155 _ACEOF
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (ac_try="$ac_link"
20158 case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_link") 2>conftest.er1
20164   ac_status=$?
20165   grep -v '^ *+' conftest.er1 >conftest.err
20166   rm -f conftest.er1
20167   cat conftest.err >&5
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } && {
20170          test -z "$ac_c_werror_flag" ||
20171          test ! -s conftest.err
20172        } && test -s conftest$ac_exeext &&
20173        $as_test_x conftest$ac_exeext; then
20174   ac_cv_lib_nsl_gethostbyname=yes
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179         ac_cv_lib_nsl_gethostbyname=no
20180 fi
20181
20182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20183       conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20185 fi
20186 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20187 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20188 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20189   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20190 fi
20191
20192       if test $ac_cv_lib_nsl_gethostbyname = no; then
20193         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20194 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20195 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   ac_check_lib_save_LIBS=$LIBS
20199 LIBS="-lbsd  $LIBS"
20200 cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206
20207 /* Override any GCC internal prototype to avoid an error.
20208    Use char because int might match the return type of a GCC
20209    builtin and then its argument prototype would still apply.  */
20210 #ifdef __cplusplus
20211 extern "C"
20212 #endif
20213 char gethostbyname ();
20214 int
20215 main ()
20216 {
20217 return gethostbyname ();
20218   ;
20219   return 0;
20220 }
20221 _ACEOF
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (ac_try="$ac_link"
20224 case "(($ac_try" in
20225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226   *) ac_try_echo=$ac_try;;
20227 esac
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229   (eval "$ac_link") 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } && {
20236          test -z "$ac_c_werror_flag" ||
20237          test ! -s conftest.err
20238        } && test -s conftest$ac_exeext &&
20239        $as_test_x conftest$ac_exeext; then
20240   ac_cv_lib_bsd_gethostbyname=yes
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245         ac_cv_lib_bsd_gethostbyname=no
20246 fi
20247
20248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20249       conftest$ac_exeext conftest.$ac_ext
20250 LIBS=$ac_check_lib_save_LIBS
20251 fi
20252 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20253 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20254 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20255   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20256 fi
20257
20258       fi
20259     fi
20260
20261     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20262     # socket/setsockopt and other routines are undefined under SCO ODT
20263     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20264     # on later versions), says Simon Leinen: it contains gethostby*
20265     # variants that don't use the name server (or something).  -lsocket
20266     # must be given before -lnsl if both are needed.  We assume that
20267     # if connect needs -lnsl, so does gethostbyname.
20268     { echo "$as_me:$LINENO: checking for connect" >&5
20269 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20270 if test "${ac_cv_func_connect+set}" = set; then
20271   echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273   cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20281 #define connect innocuous_connect
20282
20283 /* System header to define __stub macros and hopefully few prototypes,
20284     which can conflict with char connect (); below.
20285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20286     <limits.h> exists even on freestanding compilers.  */
20287
20288 #ifdef __STDC__
20289 # include <limits.h>
20290 #else
20291 # include <assert.h>
20292 #endif
20293
20294 #undef connect
20295
20296 /* Override any GCC internal prototype to avoid an error.
20297    Use char because int might match the return type of a GCC
20298    builtin and then its argument prototype would still apply.  */
20299 #ifdef __cplusplus
20300 extern "C"
20301 #endif
20302 char connect ();
20303 /* The GNU C library defines this for functions which it implements
20304     to always fail with ENOSYS.  Some functions are actually named
20305     something starting with __ and the normal name is an alias.  */
20306 #if defined __stub_connect || defined __stub___connect
20307 choke me
20308 #endif
20309
20310 int
20311 main ()
20312 {
20313 return connect ();
20314   ;
20315   return 0;
20316 }
20317 _ACEOF
20318 rm -f conftest.$ac_objext conftest$ac_exeext
20319 if { (ac_try="$ac_link"
20320 case "(($ac_try" in
20321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322   *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325   (eval "$ac_link") 2>conftest.er1
20326   ac_status=$?
20327   grep -v '^ *+' conftest.er1 >conftest.err
20328   rm -f conftest.er1
20329   cat conftest.err >&5
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } && {
20332          test -z "$ac_c_werror_flag" ||
20333          test ! -s conftest.err
20334        } && test -s conftest$ac_exeext &&
20335        $as_test_x conftest$ac_exeext; then
20336   ac_cv_func_connect=yes
20337 else
20338   echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341         ac_cv_func_connect=no
20342 fi
20343
20344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20345       conftest$ac_exeext conftest.$ac_ext
20346 fi
20347 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20348 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20349
20350     if test $ac_cv_func_connect = no; then
20351       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20352 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_socket_connect+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364
20365 /* Override any GCC internal prototype to avoid an error.
20366    Use char because int might match the return type of a GCC
20367    builtin and then its argument prototype would still apply.  */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 char connect ();
20372 int
20373 main ()
20374 {
20375 return connect ();
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384   *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387   (eval "$ac_link") 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } && {
20394          test -z "$ac_c_werror_flag" ||
20395          test ! -s conftest.err
20396        } && test -s conftest$ac_exeext &&
20397        $as_test_x conftest$ac_exeext; then
20398   ac_cv_lib_socket_connect=yes
20399 else
20400   echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403         ac_cv_lib_socket_connect=no
20404 fi
20405
20406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20407       conftest$ac_exeext conftest.$ac_ext
20408 LIBS=$ac_check_lib_save_LIBS
20409 fi
20410 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20411 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20412 if test $ac_cv_lib_socket_connect = yes; then
20413   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20414 fi
20415
20416     fi
20417
20418     # Guillermo Gomez says -lposix is necessary on A/UX.
20419     { echo "$as_me:$LINENO: checking for remove" >&5
20420 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20421 if test "${ac_cv_func_remove+set}" = set; then
20422   echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424   cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h.  */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h.  */
20430 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20432 #define remove innocuous_remove
20433
20434 /* System header to define __stub macros and hopefully few prototypes,
20435     which can conflict with char remove (); below.
20436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20437     <limits.h> exists even on freestanding compilers.  */
20438
20439 #ifdef __STDC__
20440 # include <limits.h>
20441 #else
20442 # include <assert.h>
20443 #endif
20444
20445 #undef remove
20446
20447 /* Override any GCC internal prototype to avoid an error.
20448    Use char because int might match the return type of a GCC
20449    builtin and then its argument prototype would still apply.  */
20450 #ifdef __cplusplus
20451 extern "C"
20452 #endif
20453 char remove ();
20454 /* The GNU C library defines this for functions which it implements
20455     to always fail with ENOSYS.  Some functions are actually named
20456     something starting with __ and the normal name is an alias.  */
20457 #if defined __stub_remove || defined __stub___remove
20458 choke me
20459 #endif
20460
20461 int
20462 main ()
20463 {
20464 return remove ();
20465   ;
20466   return 0;
20467 }
20468 _ACEOF
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (ac_try="$ac_link"
20471 case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_link") 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } && {
20483          test -z "$ac_c_werror_flag" ||
20484          test ! -s conftest.err
20485        } && test -s conftest$ac_exeext &&
20486        $as_test_x conftest$ac_exeext; then
20487   ac_cv_func_remove=yes
20488 else
20489   echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20491
20492         ac_cv_func_remove=no
20493 fi
20494
20495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20496       conftest$ac_exeext conftest.$ac_ext
20497 fi
20498 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20499 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20500
20501     if test $ac_cv_func_remove = no; then
20502       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20503 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20504 if test "${ac_cv_lib_posix_remove+set}" = set; then
20505   echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507   ac_check_lib_save_LIBS=$LIBS
20508 LIBS="-lposix  $LIBS"
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515
20516 /* Override any GCC internal prototype to avoid an error.
20517    Use char because int might match the return type of a GCC
20518    builtin and then its argument prototype would still apply.  */
20519 #ifdef __cplusplus
20520 extern "C"
20521 #endif
20522 char remove ();
20523 int
20524 main ()
20525 {
20526 return remove ();
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest.$ac_objext conftest$ac_exeext
20532 if { (ac_try="$ac_link"
20533 case "(($ac_try" in
20534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535   *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538   (eval "$ac_link") 2>conftest.er1
20539   ac_status=$?
20540   grep -v '^ *+' conftest.er1 >conftest.err
20541   rm -f conftest.er1
20542   cat conftest.err >&5
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } && {
20545          test -z "$ac_c_werror_flag" ||
20546          test ! -s conftest.err
20547        } && test -s conftest$ac_exeext &&
20548        $as_test_x conftest$ac_exeext; then
20549   ac_cv_lib_posix_remove=yes
20550 else
20551   echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554         ac_cv_lib_posix_remove=no
20555 fi
20556
20557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20558       conftest$ac_exeext conftest.$ac_ext
20559 LIBS=$ac_check_lib_save_LIBS
20560 fi
20561 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20562 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20563 if test $ac_cv_lib_posix_remove = yes; then
20564   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20565 fi
20566
20567     fi
20568
20569     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20570     { echo "$as_me:$LINENO: checking for shmat" >&5
20571 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20572 if test "${ac_cv_func_shmat+set}" = set; then
20573   echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575   cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20583 #define shmat innocuous_shmat
20584
20585 /* System header to define __stub macros and hopefully few prototypes,
20586     which can conflict with char shmat (); below.
20587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20588     <limits.h> exists even on freestanding compilers.  */
20589
20590 #ifdef __STDC__
20591 # include <limits.h>
20592 #else
20593 # include <assert.h>
20594 #endif
20595
20596 #undef shmat
20597
20598 /* Override any GCC internal prototype to avoid an error.
20599    Use char because int might match the return type of a GCC
20600    builtin and then its argument prototype would still apply.  */
20601 #ifdef __cplusplus
20602 extern "C"
20603 #endif
20604 char shmat ();
20605 /* The GNU C library defines this for functions which it implements
20606     to always fail with ENOSYS.  Some functions are actually named
20607     something starting with __ and the normal name is an alias.  */
20608 #if defined __stub_shmat || defined __stub___shmat
20609 choke me
20610 #endif
20611
20612 int
20613 main ()
20614 {
20615 return shmat ();
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (ac_try="$ac_link"
20622 case "(($ac_try" in
20623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624   *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627   (eval "$ac_link") 2>conftest.er1
20628   ac_status=$?
20629   grep -v '^ *+' conftest.er1 >conftest.err
20630   rm -f conftest.er1
20631   cat conftest.err >&5
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); } && {
20634          test -z "$ac_c_werror_flag" ||
20635          test ! -s conftest.err
20636        } && test -s conftest$ac_exeext &&
20637        $as_test_x conftest$ac_exeext; then
20638   ac_cv_func_shmat=yes
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         ac_cv_func_shmat=no
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20647       conftest$ac_exeext conftest.$ac_ext
20648 fi
20649 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20650 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20651
20652     if test $ac_cv_func_shmat = no; then
20653       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20654 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20655 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20656   echo $ECHO_N "(cached) $ECHO_C" >&6
20657 else
20658   ac_check_lib_save_LIBS=$LIBS
20659 LIBS="-lipc  $LIBS"
20660 cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h.  */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h.  */
20666
20667 /* Override any GCC internal prototype to avoid an error.
20668    Use char because int might match the return type of a GCC
20669    builtin and then its argument prototype would still apply.  */
20670 #ifdef __cplusplus
20671 extern "C"
20672 #endif
20673 char shmat ();
20674 int
20675 main ()
20676 {
20677 return shmat ();
20678   ;
20679   return 0;
20680 }
20681 _ACEOF
20682 rm -f conftest.$ac_objext conftest$ac_exeext
20683 if { (ac_try="$ac_link"
20684 case "(($ac_try" in
20685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686   *) ac_try_echo=$ac_try;;
20687 esac
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689   (eval "$ac_link") 2>conftest.er1
20690   ac_status=$?
20691   grep -v '^ *+' conftest.er1 >conftest.err
20692   rm -f conftest.er1
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } && {
20696          test -z "$ac_c_werror_flag" ||
20697          test ! -s conftest.err
20698        } && test -s conftest$ac_exeext &&
20699        $as_test_x conftest$ac_exeext; then
20700   ac_cv_lib_ipc_shmat=yes
20701 else
20702   echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705         ac_cv_lib_ipc_shmat=no
20706 fi
20707
20708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20709       conftest$ac_exeext conftest.$ac_ext
20710 LIBS=$ac_check_lib_save_LIBS
20711 fi
20712 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20713 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20714 if test $ac_cv_lib_ipc_shmat = yes; then
20715   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20716 fi
20717
20718     fi
20719   fi
20720
20721   # Check for libraries that X11R6 Xt/Xaw programs need.
20722   ac_save_LDFLAGS=$LDFLAGS
20723   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20724   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20725   # check for ICE first), but we must link in the order -lSM -lICE or
20726   # we get undefined symbols.  So assume we have SM if we have ICE.
20727   # These have to be linked with before -lX11, unlike the other
20728   # libraries we check for below, so use a different variable.
20729   # John Interrante, Karl Berry
20730   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20731 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20732 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20733   echo $ECHO_N "(cached) $ECHO_C" >&6
20734 else
20735   ac_check_lib_save_LIBS=$LIBS
20736 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743
20744 /* Override any GCC internal prototype to avoid an error.
20745    Use char because int might match the return type of a GCC
20746    builtin and then its argument prototype would still apply.  */
20747 #ifdef __cplusplus
20748 extern "C"
20749 #endif
20750 char IceConnectionNumber ();
20751 int
20752 main ()
20753 {
20754 return IceConnectionNumber ();
20755   ;
20756   return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest.$ac_objext conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_link") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } && {
20773          test -z "$ac_c_werror_flag" ||
20774          test ! -s conftest.err
20775        } && test -s conftest$ac_exeext &&
20776        $as_test_x conftest$ac_exeext; then
20777   ac_cv_lib_ICE_IceConnectionNumber=yes
20778 else
20779   echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20781
20782         ac_cv_lib_ICE_IceConnectionNumber=no
20783 fi
20784
20785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20786       conftest$ac_exeext conftest.$ac_ext
20787 LIBS=$ac_check_lib_save_LIBS
20788 fi
20789 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20790 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20791 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20792   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20793 fi
20794
20795   LDFLAGS=$ac_save_LDFLAGS
20796
20797 fi
20798
20799 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20801 if test "${ac_cv_header_stdc+set}" = set; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804   cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810 #include <stdlib.h>
20811 #include <stdarg.h>
20812 #include <string.h>
20813 #include <float.h>
20814
20815 int
20816 main ()
20817 {
20818
20819   ;
20820   return 0;
20821 }
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827   *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830   (eval "$ac_compile") 2>conftest.er1
20831   ac_status=$?
20832   grep -v '^ *+' conftest.er1 >conftest.err
20833   rm -f conftest.er1
20834   cat conftest.err >&5
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); } && {
20837          test -z "$ac_c_werror_flag" ||
20838          test ! -s conftest.err
20839        } && test -s conftest.$ac_objext; then
20840   ac_cv_header_stdc=yes
20841 else
20842   echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845         ac_cv_header_stdc=no
20846 fi
20847
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849
20850 if test $ac_cv_header_stdc = yes; then
20851   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20852   cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 #include <string.h>
20859
20860 _ACEOF
20861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20862   $EGREP "memchr" >/dev/null 2>&1; then
20863   :
20864 else
20865   ac_cv_header_stdc=no
20866 fi
20867 rm -f conftest*
20868
20869 fi
20870
20871 if test $ac_cv_header_stdc = yes; then
20872   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20873   cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 #include <stdlib.h>
20880
20881 _ACEOF
20882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20883   $EGREP "free" >/dev/null 2>&1; then
20884   :
20885 else
20886   ac_cv_header_stdc=no
20887 fi
20888 rm -f conftest*
20889
20890 fi
20891
20892 if test $ac_cv_header_stdc = yes; then
20893   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20894   if test "$cross_compiling" = yes; then
20895   :
20896 else
20897   cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903 #include <ctype.h>
20904 #include <stdlib.h>
20905 #if ((' ' & 0x0FF) == 0x020)
20906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20908 #else
20909 # define ISLOWER(c) \
20910                    (('a' <= (c) && (c) <= 'i') \
20911                      || ('j' <= (c) && (c) <= 'r') \
20912                      || ('s' <= (c) && (c) <= 'z'))
20913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20914 #endif
20915
20916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20917 int
20918 main ()
20919 {
20920   int i;
20921   for (i = 0; i < 256; i++)
20922     if (XOR (islower (i), ISLOWER (i))
20923         || toupper (i) != TOUPPER (i))
20924       return 2;
20925   return 0;
20926 }
20927 _ACEOF
20928 rm -f conftest$ac_exeext
20929 if { (ac_try="$ac_link"
20930 case "(($ac_try" in
20931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932   *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935   (eval "$ac_link") 2>&5
20936   ac_status=$?
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939   { (case "(($ac_try" in
20940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941   *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944   (eval "$ac_try") 2>&5
20945   ac_status=$?
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); }; }; then
20948   :
20949 else
20950   echo "$as_me: program exited with status $ac_status" >&5
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954 ( exit $ac_status )
20955 ac_cv_header_stdc=no
20956 fi
20957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20958 fi
20959
20960
20961 fi
20962 fi
20963 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20964 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20965 if test $ac_cv_header_stdc = yes; then
20966
20967 cat >>confdefs.h <<\_ACEOF
20968 #define STDC_HEADERS 1
20969 _ACEOF
20970
20971 fi
20972
20973 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20974 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20975 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 #include <sys/types.h>
20985 #include <sys/wait.h>
20986 #ifndef WEXITSTATUS
20987 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20988 #endif
20989 #ifndef WIFEXITED
20990 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20991 #endif
20992
20993 int
20994 main ()
20995 {
20996   int s;
20997   wait (&s);
20998   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20999   ;
21000   return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest.$ac_objext
21004 if { (ac_try="$ac_compile"
21005 case "(($ac_try" in
21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007   *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010   (eval "$ac_compile") 2>conftest.er1
21011   ac_status=$?
21012   grep -v '^ *+' conftest.er1 >conftest.err
21013   rm -f conftest.er1
21014   cat conftest.err >&5
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); } && {
21017          test -z "$ac_c_werror_flag" ||
21018          test ! -s conftest.err
21019        } && test -s conftest.$ac_objext; then
21020   ac_cv_header_sys_wait_h=yes
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025         ac_cv_header_sys_wait_h=no
21026 fi
21027
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 fi
21030 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21031 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21032 if test $ac_cv_header_sys_wait_h = yes; then
21033
21034 cat >>confdefs.h <<\_ACEOF
21035 #define HAVE_SYS_WAIT_H 1
21036 _ACEOF
21037
21038 fi
21039
21040
21041
21042
21043
21044
21045
21046
21047 for ac_header in fcntl.h paths.h termios.h sgtty.h unistd.h malloc.h term.h
21048 do
21049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21051   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21054   echo $ECHO_N "(cached) $ECHO_C" >&6
21055 fi
21056 ac_res=`eval echo '${'$as_ac_Header'}'`
21057                { echo "$as_me:$LINENO: result: $ac_res" >&5
21058 echo "${ECHO_T}$ac_res" >&6; }
21059 else
21060   # Is the header compilable?
21061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21063 cat >conftest.$ac_ext <<_ACEOF
21064 /* confdefs.h.  */
21065 _ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h.  */
21069 $ac_includes_default
21070 #include <$ac_header>
21071 _ACEOF
21072 rm -f conftest.$ac_objext
21073 if { (ac_try="$ac_compile"
21074 case "(($ac_try" in
21075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076   *) ac_try_echo=$ac_try;;
21077 esac
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079   (eval "$ac_compile") 2>conftest.er1
21080   ac_status=$?
21081   grep -v '^ *+' conftest.er1 >conftest.err
21082   rm -f conftest.er1
21083   cat conftest.err >&5
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); } && {
21086          test -z "$ac_c_werror_flag" ||
21087          test ! -s conftest.err
21088        } && test -s conftest.$ac_objext; then
21089   ac_header_compiler=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ac_header_compiler=no
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21099 echo "${ECHO_T}$ac_header_compiler" >&6; }
21100
21101 # Is the header present?
21102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21104 cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h.  */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h.  */
21110 #include <$ac_header>
21111 _ACEOF
21112 if { (ac_try="$ac_cpp conftest.$ac_ext"
21113 case "(($ac_try" in
21114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115   *) ac_try_echo=$ac_try;;
21116 esac
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21119   ac_status=$?
21120   grep -v '^ *+' conftest.er1 >conftest.err
21121   rm -f conftest.er1
21122   cat conftest.err >&5
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } >/dev/null && {
21125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21126          test ! -s conftest.err
21127        }; then
21128   ac_header_preproc=yes
21129 else
21130   echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133   ac_header_preproc=no
21134 fi
21135
21136 rm -f conftest.err conftest.$ac_ext
21137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21138 echo "${ECHO_T}$ac_header_preproc" >&6; }
21139
21140 # So?  What about this header?
21141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21142   yes:no: )
21143     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21147     ac_header_preproc=yes
21148     ;;
21149   no:yes:* )
21150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21153 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21154     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21156     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21157 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21160     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21162
21163     ;;
21164 esac
21165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21168   echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170   eval "$as_ac_Header=\$ac_header_preproc"
21171 fi
21172 ac_res=`eval echo '${'$as_ac_Header'}'`
21173                { echo "$as_me:$LINENO: result: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21175
21176 fi
21177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21178   cat >>confdefs.h <<_ACEOF
21179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21180 _ACEOF
21181
21182 fi
21183
21184 done
21185
21186
21187
21188
21189
21190
21191 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21192 do
21193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21198   echo $ECHO_N "(cached) $ECHO_C" >&6
21199 fi
21200 ac_res=`eval echo '${'$as_ac_Header'}'`
21201                { echo "$as_me:$LINENO: result: $ac_res" >&5
21202 echo "${ECHO_T}$ac_res" >&6; }
21203 else
21204   # Is the header compilable?
21205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21207 cat >conftest.$ac_ext <<_ACEOF
21208 /* confdefs.h.  */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h.  */
21213 $ac_includes_default
21214 #include <$ac_header>
21215 _ACEOF
21216 rm -f conftest.$ac_objext
21217 if { (ac_try="$ac_compile"
21218 case "(($ac_try" in
21219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220   *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223   (eval "$ac_compile") 2>conftest.er1
21224   ac_status=$?
21225   grep -v '^ *+' conftest.er1 >conftest.err
21226   rm -f conftest.er1
21227   cat conftest.err >&5
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); } && {
21230          test -z "$ac_c_werror_flag" ||
21231          test ! -s conftest.err
21232        } && test -s conftest.$ac_objext; then
21233   ac_header_compiler=yes
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238         ac_header_compiler=no
21239 fi
21240
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21243 echo "${ECHO_T}$ac_header_compiler" >&6; }
21244
21245 # Is the header present?
21246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21248 cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h.  */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h.  */
21254 #include <$ac_header>
21255 _ACEOF
21256 if { (ac_try="$ac_cpp conftest.$ac_ext"
21257 case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } >/dev/null && {
21269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21270          test ! -s conftest.err
21271        }; then
21272   ac_header_preproc=yes
21273 else
21274   echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277   ac_header_preproc=no
21278 fi
21279
21280 rm -f conftest.err conftest.$ac_ext
21281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21282 echo "${ECHO_T}$ac_header_preproc" >&6; }
21283
21284 # So?  What about this header?
21285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21286   yes:no: )
21287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21291     ac_header_preproc=yes
21292     ;;
21293   no:yes:* )
21294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21306
21307     ;;
21308 esac
21309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21312   echo $ECHO_N "(cached) $ECHO_C" >&6
21313 else
21314   eval "$as_ac_Header=\$ac_header_preproc"
21315 fi
21316 ac_res=`eval echo '${'$as_ac_Header'}'`
21317                { echo "$as_me:$LINENO: result: $ac_res" >&5
21318 echo "${ECHO_T}$ac_res" >&6; }
21319
21320 fi
21321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21322   cat >>confdefs.h <<_ACEOF
21323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21324 _ACEOF
21325
21326 fi
21327
21328 done
21329
21330
21331
21332
21333
21334
21335 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21336 do
21337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21342   echo $ECHO_N "(cached) $ECHO_C" >&6
21343 fi
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345                { echo "$as_me:$LINENO: result: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21347 else
21348   # Is the header compilable?
21349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21351 cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357 $ac_includes_default
21358 #include <$ac_header>
21359 _ACEOF
21360 rm -f conftest.$ac_objext
21361 if { (ac_try="$ac_compile"
21362 case "(($ac_try" in
21363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364   *) ac_try_echo=$ac_try;;
21365 esac
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367   (eval "$ac_compile") 2>conftest.er1
21368   ac_status=$?
21369   grep -v '^ *+' conftest.er1 >conftest.err
21370   rm -f conftest.er1
21371   cat conftest.err >&5
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); } && {
21374          test -z "$ac_c_werror_flag" ||
21375          test ! -s conftest.err
21376        } && test -s conftest.$ac_objext; then
21377   ac_header_compiler=yes
21378 else
21379   echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382         ac_header_compiler=no
21383 fi
21384
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21387 echo "${ECHO_T}$ac_header_compiler" >&6; }
21388
21389 # Is the header present?
21390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h.  */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h.  */
21398 #include <$ac_header>
21399 _ACEOF
21400 if { (ac_try="$ac_cpp conftest.$ac_ext"
21401 case "(($ac_try" in
21402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403   *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } >/dev/null && {
21413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21414          test ! -s conftest.err
21415        }; then
21416   ac_header_preproc=yes
21417 else
21418   echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421   ac_header_preproc=no
21422 fi
21423
21424 rm -f conftest.err conftest.$ac_ext
21425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21426 echo "${ECHO_T}$ac_header_preproc" >&6; }
21427
21428 # So?  What about this header?
21429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21430   yes:no: )
21431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21435     ac_header_preproc=yes
21436     ;;
21437   no:yes:* )
21438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21450
21451     ;;
21452 esac
21453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458   eval "$as_ac_Header=\$ac_header_preproc"
21459 fi
21460 ac_res=`eval echo '${'$as_ac_Header'}'`
21461                { echo "$as_me:$LINENO: result: $ac_res" >&5
21462 echo "${ECHO_T}$ac_res" >&6; }
21463
21464 fi
21465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21466   cat >>confdefs.h <<_ACEOF
21467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21468 _ACEOF
21469
21470 fi
21471
21472 done
21473
21474
21475 if test "$no_x" != "yes"; then
21476         ZWGC_LIBX11=-lX11
21477 fi
21478
21479
21480
21481 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21482 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21483 if test "${ac_cv_type_signal+set}" = set; then
21484   echo $ECHO_N "(cached) $ECHO_C" >&6
21485 else
21486   cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h.  */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h.  */
21492 #include <sys/types.h>
21493 #include <signal.h>
21494
21495 int
21496 main ()
21497 {
21498 return *(signal (0, 0)) (0) == 1;
21499   ;
21500   return 0;
21501 }
21502 _ACEOF
21503 rm -f conftest.$ac_objext
21504 if { (ac_try="$ac_compile"
21505 case "(($ac_try" in
21506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507   *) ac_try_echo=$ac_try;;
21508 esac
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510   (eval "$ac_compile") 2>conftest.er1
21511   ac_status=$?
21512   grep -v '^ *+' conftest.er1 >conftest.err
21513   rm -f conftest.er1
21514   cat conftest.err >&5
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } && {
21517          test -z "$ac_c_werror_flag" ||
21518          test ! -s conftest.err
21519        } && test -s conftest.$ac_objext; then
21520   ac_cv_type_signal=int
21521 else
21522   echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525         ac_cv_type_signal=void
21526 fi
21527
21528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21529 fi
21530 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21531 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21532
21533 cat >>confdefs.h <<_ACEOF
21534 #define RETSIGTYPE $ac_cv_type_signal
21535 _ACEOF
21536
21537
21538 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21539 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21540 if test "${ac_cv_type_uid_t+set}" = set; then
21541   echo $ECHO_N "(cached) $ECHO_C" >&6
21542 else
21543   cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h.  */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h.  */
21549 #include <sys/types.h>
21550
21551 _ACEOF
21552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21553   $EGREP "uid_t" >/dev/null 2>&1; then
21554   ac_cv_type_uid_t=yes
21555 else
21556   ac_cv_type_uid_t=no
21557 fi
21558 rm -f conftest*
21559
21560 fi
21561 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21562 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21563 if test $ac_cv_type_uid_t = no; then
21564
21565 cat >>confdefs.h <<\_ACEOF
21566 #define uid_t int
21567 _ACEOF
21568
21569
21570 cat >>confdefs.h <<\_ACEOF
21571 #define gid_t int
21572 _ACEOF
21573
21574 fi
21575
21576 { echo "$as_me:$LINENO: checking for short" >&5
21577 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21578 if test "${ac_cv_type_short+set}" = set; then
21579   echo $ECHO_N "(cached) $ECHO_C" >&6
21580 else
21581   cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587 $ac_includes_default
21588 typedef short ac__type_new_;
21589 int
21590 main ()
21591 {
21592 if ((ac__type_new_ *) 0)
21593   return 0;
21594 if (sizeof (ac__type_new_))
21595   return 0;
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 rm -f conftest.$ac_objext
21601 if { (ac_try="$ac_compile"
21602 case "(($ac_try" in
21603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604   *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607   (eval "$ac_compile") 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } && {
21614          test -z "$ac_c_werror_flag" ||
21615          test ! -s conftest.err
21616        } && test -s conftest.$ac_objext; then
21617   ac_cv_type_short=yes
21618 else
21619   echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21621
21622         ac_cv_type_short=no
21623 fi
21624
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626 fi
21627 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21628 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21629
21630 # The cast to long int works around a bug in the HP C Compiler
21631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21633 # This bug is HP SR number 8606223364.
21634 { echo "$as_me:$LINENO: checking size of short" >&5
21635 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21636 if test "${ac_cv_sizeof_short+set}" = set; then
21637   echo $ECHO_N "(cached) $ECHO_C" >&6
21638 else
21639   if test "$cross_compiling" = yes; then
21640   # Depending upon the size, compute the lo and hi bounds.
21641 cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 $ac_includes_default
21648    typedef short ac__type_sizeof_;
21649 int
21650 main ()
21651 {
21652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21653 test_array [0] = 0
21654
21655   ;
21656   return 0;
21657 }
21658 _ACEOF
21659 rm -f conftest.$ac_objext
21660 if { (ac_try="$ac_compile"
21661 case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_compile") 2>conftest.er1
21667   ac_status=$?
21668   grep -v '^ *+' conftest.er1 >conftest.err
21669   rm -f conftest.er1
21670   cat conftest.err >&5
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } && {
21673          test -z "$ac_c_werror_flag" ||
21674          test ! -s conftest.err
21675        } && test -s conftest.$ac_objext; then
21676   ac_lo=0 ac_mid=0
21677   while :; do
21678     cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 $ac_includes_default
21685    typedef short ac__type_sizeof_;
21686 int
21687 main ()
21688 {
21689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21690 test_array [0] = 0
21691
21692   ;
21693   return 0;
21694 }
21695 _ACEOF
21696 rm -f conftest.$ac_objext
21697 if { (ac_try="$ac_compile"
21698 case "(($ac_try" in
21699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700   *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703   (eval "$ac_compile") 2>conftest.er1
21704   ac_status=$?
21705   grep -v '^ *+' conftest.er1 >conftest.err
21706   rm -f conftest.er1
21707   cat conftest.err >&5
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); } && {
21710          test -z "$ac_c_werror_flag" ||
21711          test ! -s conftest.err
21712        } && test -s conftest.$ac_objext; then
21713   ac_hi=$ac_mid; break
21714 else
21715   echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21717
21718         ac_lo=`expr $ac_mid + 1`
21719                         if test $ac_lo -le $ac_mid; then
21720                           ac_lo= ac_hi=
21721                           break
21722                         fi
21723                         ac_mid=`expr 2 '*' $ac_mid + 1`
21724 fi
21725
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727   done
21728 else
21729   echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732         cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h.  */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h.  */
21738 $ac_includes_default
21739    typedef short ac__type_sizeof_;
21740 int
21741 main ()
21742 {
21743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21744 test_array [0] = 0
21745
21746   ;
21747   return 0;
21748 }
21749 _ACEOF
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_compile") 2>conftest.er1
21758   ac_status=$?
21759   grep -v '^ *+' conftest.er1 >conftest.err
21760   rm -f conftest.er1
21761   cat conftest.err >&5
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); } && {
21764          test -z "$ac_c_werror_flag" ||
21765          test ! -s conftest.err
21766        } && test -s conftest.$ac_objext; then
21767   ac_hi=-1 ac_mid=-1
21768   while :; do
21769     cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h.  */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h.  */
21775 $ac_includes_default
21776    typedef short ac__type_sizeof_;
21777 int
21778 main ()
21779 {
21780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21781 test_array [0] = 0
21782
21783   ;
21784   return 0;
21785 }
21786 _ACEOF
21787 rm -f conftest.$ac_objext
21788 if { (ac_try="$ac_compile"
21789 case "(($ac_try" in
21790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791   *) ac_try_echo=$ac_try;;
21792 esac
21793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21794   (eval "$ac_compile") 2>conftest.er1
21795   ac_status=$?
21796   grep -v '^ *+' conftest.er1 >conftest.err
21797   rm -f conftest.er1
21798   cat conftest.err >&5
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); } && {
21801          test -z "$ac_c_werror_flag" ||
21802          test ! -s conftest.err
21803        } && test -s conftest.$ac_objext; then
21804   ac_lo=$ac_mid; break
21805 else
21806   echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809         ac_hi=`expr '(' $ac_mid ')' - 1`
21810                         if test $ac_mid -le $ac_hi; then
21811                           ac_lo= ac_hi=
21812                           break
21813                         fi
21814                         ac_mid=`expr 2 '*' $ac_mid`
21815 fi
21816
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818   done
21819 else
21820   echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21822
21823         ac_lo= ac_hi=
21824 fi
21825
21826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21827 fi
21828
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830 # Binary search between lo and hi bounds.
21831 while test "x$ac_lo" != "x$ac_hi"; do
21832   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21833   cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h.  */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h.  */
21839 $ac_includes_default
21840    typedef short ac__type_sizeof_;
21841 int
21842 main ()
21843 {
21844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21845 test_array [0] = 0
21846
21847   ;
21848   return 0;
21849 }
21850 _ACEOF
21851 rm -f conftest.$ac_objext
21852 if { (ac_try="$ac_compile"
21853 case "(($ac_try" in
21854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855   *) ac_try_echo=$ac_try;;
21856 esac
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858   (eval "$ac_compile") 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } && {
21865          test -z "$ac_c_werror_flag" ||
21866          test ! -s conftest.err
21867        } && test -s conftest.$ac_objext; then
21868   ac_hi=$ac_mid
21869 else
21870   echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873         ac_lo=`expr '(' $ac_mid ')' + 1`
21874 fi
21875
21876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 done
21878 case $ac_lo in
21879 ?*) ac_cv_sizeof_short=$ac_lo;;
21880 '') if test "$ac_cv_type_short" = yes; then
21881      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21882 See \`config.log' for more details." >&5
21883 echo "$as_me: error: cannot compute sizeof (short)
21884 See \`config.log' for more details." >&2;}
21885    { (exit 77); exit 77; }; }
21886    else
21887      ac_cv_sizeof_short=0
21888    fi ;;
21889 esac
21890 else
21891   cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h.  */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h.  */
21897 $ac_includes_default
21898    typedef short ac__type_sizeof_;
21899 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21900 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21901 #include <stdio.h>
21902 #include <stdlib.h>
21903 int
21904 main ()
21905 {
21906
21907   FILE *f = fopen ("conftest.val", "w");
21908   if (! f)
21909     return 1;
21910   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21911     {
21912       long int i = longval ();
21913       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21914         return 1;
21915       fprintf (f, "%ld\n", i);
21916     }
21917   else
21918     {
21919       unsigned long int i = ulongval ();
21920       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21921         return 1;
21922       fprintf (f, "%lu\n", i);
21923     }
21924   return ferror (f) || fclose (f) != 0;
21925
21926   ;
21927   return 0;
21928 }
21929 _ACEOF
21930 rm -f conftest$ac_exeext
21931 if { (ac_try="$ac_link"
21932 case "(($ac_try" in
21933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934   *) ac_try_echo=$ac_try;;
21935 esac
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937   (eval "$ac_link") 2>&5
21938   ac_status=$?
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21941   { (case "(($ac_try" in
21942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943   *) ac_try_echo=$ac_try;;
21944 esac
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946   (eval "$ac_try") 2>&5
21947   ac_status=$?
21948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949   (exit $ac_status); }; }; then
21950   ac_cv_sizeof_short=`cat conftest.val`
21951 else
21952   echo "$as_me: program exited with status $ac_status" >&5
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21955
21956 ( exit $ac_status )
21957 if test "$ac_cv_type_short" = yes; then
21958      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21959 See \`config.log' for more details." >&5
21960 echo "$as_me: error: cannot compute sizeof (short)
21961 See \`config.log' for more details." >&2;}
21962    { (exit 77); exit 77; }; }
21963    else
21964      ac_cv_sizeof_short=0
21965    fi
21966 fi
21967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21968 fi
21969 rm -f conftest.val
21970 fi
21971 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21972 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21973
21974
21975
21976 cat >>confdefs.h <<_ACEOF
21977 #define SIZEOF_SHORT $ac_cv_sizeof_short
21978 _ACEOF
21979
21980
21981 { echo "$as_me:$LINENO: checking for int" >&5
21982 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21983 if test "${ac_cv_type_int+set}" = set; then
21984   echo $ECHO_N "(cached) $ECHO_C" >&6
21985 else
21986   cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h.  */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h.  */
21992 $ac_includes_default
21993 typedef int ac__type_new_;
21994 int
21995 main ()
21996 {
21997 if ((ac__type_new_ *) 0)
21998   return 0;
21999 if (sizeof (ac__type_new_))
22000   return 0;
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012   (eval "$ac_compile") 2>conftest.er1
22013   ac_status=$?
22014   grep -v '^ *+' conftest.er1 >conftest.err
22015   rm -f conftest.er1
22016   cat conftest.err >&5
22017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018   (exit $ac_status); } && {
22019          test -z "$ac_c_werror_flag" ||
22020          test ! -s conftest.err
22021        } && test -s conftest.$ac_objext; then
22022   ac_cv_type_int=yes
22023 else
22024   echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22026
22027         ac_cv_type_int=no
22028 fi
22029
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 fi
22032 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22033 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22034
22035 # The cast to long int works around a bug in the HP C Compiler
22036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22038 # This bug is HP SR number 8606223364.
22039 { echo "$as_me:$LINENO: checking size of int" >&5
22040 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22041 if test "${ac_cv_sizeof_int+set}" = set; then
22042   echo $ECHO_N "(cached) $ECHO_C" >&6
22043 else
22044   if test "$cross_compiling" = yes; then
22045   # Depending upon the size, compute the lo and hi bounds.
22046 cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h.  */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h.  */
22052 $ac_includes_default
22053    typedef int ac__type_sizeof_;
22054 int
22055 main ()
22056 {
22057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22058 test_array [0] = 0
22059
22060   ;
22061   return 0;
22062 }
22063 _ACEOF
22064 rm -f conftest.$ac_objext
22065 if { (ac_try="$ac_compile"
22066 case "(($ac_try" in
22067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068   *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071   (eval "$ac_compile") 2>conftest.er1
22072   ac_status=$?
22073   grep -v '^ *+' conftest.er1 >conftest.err
22074   rm -f conftest.er1
22075   cat conftest.err >&5
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); } && {
22078          test -z "$ac_c_werror_flag" ||
22079          test ! -s conftest.err
22080        } && test -s conftest.$ac_objext; then
22081   ac_lo=0 ac_mid=0
22082   while :; do
22083     cat >conftest.$ac_ext <<_ACEOF
22084 /* confdefs.h.  */
22085 _ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h.  */
22089 $ac_includes_default
22090    typedef int ac__type_sizeof_;
22091 int
22092 main ()
22093 {
22094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22095 test_array [0] = 0
22096
22097   ;
22098   return 0;
22099 }
22100 _ACEOF
22101 rm -f conftest.$ac_objext
22102 if { (ac_try="$ac_compile"
22103 case "(($ac_try" in
22104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105   *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108   (eval "$ac_compile") 2>conftest.er1
22109   ac_status=$?
22110   grep -v '^ *+' conftest.er1 >conftest.err
22111   rm -f conftest.er1
22112   cat conftest.err >&5
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); } && {
22115          test -z "$ac_c_werror_flag" ||
22116          test ! -s conftest.err
22117        } && test -s conftest.$ac_objext; then
22118   ac_hi=$ac_mid; break
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123         ac_lo=`expr $ac_mid + 1`
22124                         if test $ac_lo -le $ac_mid; then
22125                           ac_lo= ac_hi=
22126                           break
22127                         fi
22128                         ac_mid=`expr 2 '*' $ac_mid + 1`
22129 fi
22130
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132   done
22133 else
22134   echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22136
22137         cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143 $ac_includes_default
22144    typedef int ac__type_sizeof_;
22145 int
22146 main ()
22147 {
22148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22149 test_array [0] = 0
22150
22151   ;
22152   return 0;
22153 }
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159   *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162   (eval "$ac_compile") 2>conftest.er1
22163   ac_status=$?
22164   grep -v '^ *+' conftest.er1 >conftest.err
22165   rm -f conftest.er1
22166   cat conftest.err >&5
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); } && {
22169          test -z "$ac_c_werror_flag" ||
22170          test ! -s conftest.err
22171        } && test -s conftest.$ac_objext; then
22172   ac_hi=-1 ac_mid=-1
22173   while :; do
22174     cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h.  */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h.  */
22180 $ac_includes_default
22181    typedef int ac__type_sizeof_;
22182 int
22183 main ()
22184 {
22185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22186 test_array [0] = 0
22187
22188   ;
22189   return 0;
22190 }
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196   *) ac_try_echo=$ac_try;;
22197 esac
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199   (eval "$ac_compile") 2>conftest.er1
22200   ac_status=$?
22201   grep -v '^ *+' conftest.er1 >conftest.err
22202   rm -f conftest.er1
22203   cat conftest.err >&5
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); } && {
22206          test -z "$ac_c_werror_flag" ||
22207          test ! -s conftest.err
22208        } && test -s conftest.$ac_objext; then
22209   ac_lo=$ac_mid; break
22210 else
22211   echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22213
22214         ac_hi=`expr '(' $ac_mid ')' - 1`
22215                         if test $ac_mid -le $ac_hi; then
22216                           ac_lo= ac_hi=
22217                           break
22218                         fi
22219                         ac_mid=`expr 2 '*' $ac_mid`
22220 fi
22221
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223   done
22224 else
22225   echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228         ac_lo= ac_hi=
22229 fi
22230
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 fi
22233
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 # Binary search between lo and hi bounds.
22236 while test "x$ac_lo" != "x$ac_hi"; do
22237   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22238   cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h.  */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h.  */
22244 $ac_includes_default
22245    typedef int ac__type_sizeof_;
22246 int
22247 main ()
22248 {
22249 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22250 test_array [0] = 0
22251
22252   ;
22253   return 0;
22254 }
22255 _ACEOF
22256 rm -f conftest.$ac_objext
22257 if { (ac_try="$ac_compile"
22258 case "(($ac_try" in
22259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260   *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263   (eval "$ac_compile") 2>conftest.er1
22264   ac_status=$?
22265   grep -v '^ *+' conftest.er1 >conftest.err
22266   rm -f conftest.er1
22267   cat conftest.err >&5
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); } && {
22270          test -z "$ac_c_werror_flag" ||
22271          test ! -s conftest.err
22272        } && test -s conftest.$ac_objext; then
22273   ac_hi=$ac_mid
22274 else
22275   echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278         ac_lo=`expr '(' $ac_mid ')' + 1`
22279 fi
22280
22281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22282 done
22283 case $ac_lo in
22284 ?*) ac_cv_sizeof_int=$ac_lo;;
22285 '') if test "$ac_cv_type_int" = yes; then
22286      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22287 See \`config.log' for more details." >&5
22288 echo "$as_me: error: cannot compute sizeof (int)
22289 See \`config.log' for more details." >&2;}
22290    { (exit 77); exit 77; }; }
22291    else
22292      ac_cv_sizeof_int=0
22293    fi ;;
22294 esac
22295 else
22296   cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h.  */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h.  */
22302 $ac_includes_default
22303    typedef int ac__type_sizeof_;
22304 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22305 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22306 #include <stdio.h>
22307 #include <stdlib.h>
22308 int
22309 main ()
22310 {
22311
22312   FILE *f = fopen ("conftest.val", "w");
22313   if (! f)
22314     return 1;
22315   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22316     {
22317       long int i = longval ();
22318       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22319         return 1;
22320       fprintf (f, "%ld\n", i);
22321     }
22322   else
22323     {
22324       unsigned long int i = ulongval ();
22325       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22326         return 1;
22327       fprintf (f, "%lu\n", i);
22328     }
22329   return ferror (f) || fclose (f) != 0;
22330
22331   ;
22332   return 0;
22333 }
22334 _ACEOF
22335 rm -f conftest$ac_exeext
22336 if { (ac_try="$ac_link"
22337 case "(($ac_try" in
22338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339   *) ac_try_echo=$ac_try;;
22340 esac
22341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342   (eval "$ac_link") 2>&5
22343   ac_status=$?
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22346   { (case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351   (eval "$ac_try") 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); }; }; then
22355   ac_cv_sizeof_int=`cat conftest.val`
22356 else
22357   echo "$as_me: program exited with status $ac_status" >&5
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22360
22361 ( exit $ac_status )
22362 if test "$ac_cv_type_int" = yes; then
22363      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22364 See \`config.log' for more details." >&5
22365 echo "$as_me: error: cannot compute sizeof (int)
22366 See \`config.log' for more details." >&2;}
22367    { (exit 77); exit 77; }; }
22368    else
22369      ac_cv_sizeof_int=0
22370    fi
22371 fi
22372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22373 fi
22374 rm -f conftest.val
22375 fi
22376 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22377 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22378
22379
22380
22381 cat >>confdefs.h <<_ACEOF
22382 #define SIZEOF_INT $ac_cv_sizeof_int
22383 _ACEOF
22384
22385
22386 { echo "$as_me:$LINENO: checking for long" >&5
22387 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22388 if test "${ac_cv_type_long+set}" = set; then
22389   echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22391   cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h.  */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h.  */
22397 $ac_includes_default
22398 typedef long ac__type_new_;
22399 int
22400 main ()
22401 {
22402 if ((ac__type_new_ *) 0)
22403   return 0;
22404 if (sizeof (ac__type_new_))
22405   return 0;
22406   ;
22407   return 0;
22408 }
22409 _ACEOF
22410 rm -f conftest.$ac_objext
22411 if { (ac_try="$ac_compile"
22412 case "(($ac_try" in
22413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414   *) ac_try_echo=$ac_try;;
22415 esac
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417   (eval "$ac_compile") 2>conftest.er1
22418   ac_status=$?
22419   grep -v '^ *+' conftest.er1 >conftest.err
22420   rm -f conftest.er1
22421   cat conftest.err >&5
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); } && {
22424          test -z "$ac_c_werror_flag" ||
22425          test ! -s conftest.err
22426        } && test -s conftest.$ac_objext; then
22427   ac_cv_type_long=yes
22428 else
22429   echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432         ac_cv_type_long=no
22433 fi
22434
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436 fi
22437 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22438 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22439
22440 # The cast to long int works around a bug in the HP C Compiler
22441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22443 # This bug is HP SR number 8606223364.
22444 { echo "$as_me:$LINENO: checking size of long" >&5
22445 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22446 if test "${ac_cv_sizeof_long+set}" = set; then
22447   echo $ECHO_N "(cached) $ECHO_C" >&6
22448 else
22449   if test "$cross_compiling" = yes; then
22450   # Depending upon the size, compute the lo and hi bounds.
22451 cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h.  */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h.  */
22457 $ac_includes_default
22458    typedef long ac__type_sizeof_;
22459 int
22460 main ()
22461 {
22462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22463 test_array [0] = 0
22464
22465   ;
22466   return 0;
22467 }
22468 _ACEOF
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473   *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476   (eval "$ac_compile") 2>conftest.er1
22477   ac_status=$?
22478   grep -v '^ *+' conftest.er1 >conftest.err
22479   rm -f conftest.er1
22480   cat conftest.err >&5
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); } && {
22483          test -z "$ac_c_werror_flag" ||
22484          test ! -s conftest.err
22485        } && test -s conftest.$ac_objext; then
22486   ac_lo=0 ac_mid=0
22487   while :; do
22488     cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 $ac_includes_default
22495    typedef long ac__type_sizeof_;
22496 int
22497 main ()
22498 {
22499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22500 test_array [0] = 0
22501
22502   ;
22503   return 0;
22504 }
22505 _ACEOF
22506 rm -f conftest.$ac_objext
22507 if { (ac_try="$ac_compile"
22508 case "(($ac_try" in
22509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510   *) ac_try_echo=$ac_try;;
22511 esac
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513   (eval "$ac_compile") 2>conftest.er1
22514   ac_status=$?
22515   grep -v '^ *+' conftest.er1 >conftest.err
22516   rm -f conftest.er1
22517   cat conftest.err >&5
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); } && {
22520          test -z "$ac_c_werror_flag" ||
22521          test ! -s conftest.err
22522        } && test -s conftest.$ac_objext; then
22523   ac_hi=$ac_mid; break
22524 else
22525   echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528         ac_lo=`expr $ac_mid + 1`
22529                         if test $ac_lo -le $ac_mid; then
22530                           ac_lo= ac_hi=
22531                           break
22532                         fi
22533                         ac_mid=`expr 2 '*' $ac_mid + 1`
22534 fi
22535
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22537   done
22538 else
22539   echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22541
22542         cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 $ac_includes_default
22549    typedef long ac__type_sizeof_;
22550 int
22551 main ()
22552 {
22553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22554 test_array [0] = 0
22555
22556   ;
22557   return 0;
22558 }
22559 _ACEOF
22560 rm -f conftest.$ac_objext
22561 if { (ac_try="$ac_compile"
22562 case "(($ac_try" in
22563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564   *) ac_try_echo=$ac_try;;
22565 esac
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567   (eval "$ac_compile") 2>conftest.er1
22568   ac_status=$?
22569   grep -v '^ *+' conftest.er1 >conftest.err
22570   rm -f conftest.er1
22571   cat conftest.err >&5
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } && {
22574          test -z "$ac_c_werror_flag" ||
22575          test ! -s conftest.err
22576        } && test -s conftest.$ac_objext; then
22577   ac_hi=-1 ac_mid=-1
22578   while :; do
22579     cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585 $ac_includes_default
22586    typedef long ac__type_sizeof_;
22587 int
22588 main ()
22589 {
22590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22591 test_array [0] = 0
22592
22593   ;
22594   return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601   *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604   (eval "$ac_compile") 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } && {
22611          test -z "$ac_c_werror_flag" ||
22612          test ! -s conftest.err
22613        } && test -s conftest.$ac_objext; then
22614   ac_lo=$ac_mid; break
22615 else
22616   echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22618
22619         ac_hi=`expr '(' $ac_mid ')' - 1`
22620                         if test $ac_mid -le $ac_hi; then
22621                           ac_lo= ac_hi=
22622                           break
22623                         fi
22624                         ac_mid=`expr 2 '*' $ac_mid`
22625 fi
22626
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628   done
22629 else
22630   echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22632
22633         ac_lo= ac_hi=
22634 fi
22635
22636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 fi
22638
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 # Binary search between lo and hi bounds.
22641 while test "x$ac_lo" != "x$ac_hi"; do
22642   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22643   cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 $ac_includes_default
22650    typedef long ac__type_sizeof_;
22651 int
22652 main ()
22653 {
22654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22655 test_array [0] = 0
22656
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665   *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668   (eval "$ac_compile") 2>conftest.er1
22669   ac_status=$?
22670   grep -v '^ *+' conftest.er1 >conftest.err
22671   rm -f conftest.er1
22672   cat conftest.err >&5
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } && {
22675          test -z "$ac_c_werror_flag" ||
22676          test ! -s conftest.err
22677        } && test -s conftest.$ac_objext; then
22678   ac_hi=$ac_mid
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683         ac_lo=`expr '(' $ac_mid ')' + 1`
22684 fi
22685
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 done
22688 case $ac_lo in
22689 ?*) ac_cv_sizeof_long=$ac_lo;;
22690 '') if test "$ac_cv_type_long" = yes; then
22691      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22692 See \`config.log' for more details." >&5
22693 echo "$as_me: error: cannot compute sizeof (long)
22694 See \`config.log' for more details." >&2;}
22695    { (exit 77); exit 77; }; }
22696    else
22697      ac_cv_sizeof_long=0
22698    fi ;;
22699 esac
22700 else
22701   cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h.  */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h.  */
22707 $ac_includes_default
22708    typedef long ac__type_sizeof_;
22709 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22710 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22711 #include <stdio.h>
22712 #include <stdlib.h>
22713 int
22714 main ()
22715 {
22716
22717   FILE *f = fopen ("conftest.val", "w");
22718   if (! f)
22719     return 1;
22720   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22721     {
22722       long int i = longval ();
22723       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22724         return 1;
22725       fprintf (f, "%ld\n", i);
22726     }
22727   else
22728     {
22729       unsigned long int i = ulongval ();
22730       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22731         return 1;
22732       fprintf (f, "%lu\n", i);
22733     }
22734   return ferror (f) || fclose (f) != 0;
22735
22736   ;
22737   return 0;
22738 }
22739 _ACEOF
22740 rm -f conftest$ac_exeext
22741 if { (ac_try="$ac_link"
22742 case "(($ac_try" in
22743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744   *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747   (eval "$ac_link") 2>&5
22748   ac_status=$?
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22751   { (case "(($ac_try" in
22752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753   *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756   (eval "$ac_try") 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; }; then
22760   ac_cv_sizeof_long=`cat conftest.val`
22761 else
22762   echo "$as_me: program exited with status $ac_status" >&5
22763 echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766 ( exit $ac_status )
22767 if test "$ac_cv_type_long" = yes; then
22768      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22769 See \`config.log' for more details." >&5
22770 echo "$as_me: error: cannot compute sizeof (long)
22771 See \`config.log' for more details." >&2;}
22772    { (exit 77); exit 77; }; }
22773    else
22774      ac_cv_sizeof_long=0
22775    fi
22776 fi
22777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22778 fi
22779 rm -f conftest.val
22780 fi
22781 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22782 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22783
22784
22785
22786 cat >>confdefs.h <<_ACEOF
22787 #define SIZEOF_LONG $ac_cv_sizeof_long
22788 _ACEOF
22789
22790
22791 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22792 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22793 if test "$ac_cv_sizeof_long" = 4; then
22794         int32=long
22795 elif test "$ac_cv_sizeof_int" = 4; then
22796         int32=int
22797 elif test "$ac_cv_sizeof_short" = 4; then
22798         int32=short
22799 else
22800         { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22801 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22802         int32=long
22803 fi
22804 cat >>confdefs.h <<_ACEOF
22805 #define ZEPHYR_INT32 ${int32}
22806 _ACEOF
22807
22808 { echo "$as_me:$LINENO: result: ${int32}" >&5
22809 echo "${ECHO_T}${int32}" >&6; }
22810
22811
22812 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
22813 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
22814 if test "${ac_cv_lib_w_wslen+set}" = set; then
22815   echo $ECHO_N "(cached) $ECHO_C" >&6
22816 else
22817   ac_check_lib_save_LIBS=$LIBS
22818 LIBS="-lw  $LIBS"
22819 cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h.  */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h.  */
22825
22826 /* Override any GCC internal prototype to avoid an error.
22827    Use char because int might match the return type of a GCC
22828    builtin and then its argument prototype would still apply.  */
22829 #ifdef __cplusplus
22830 extern "C"
22831 #endif
22832 char wslen ();
22833 int
22834 main ()
22835 {
22836 return wslen ();
22837   ;
22838   return 0;
22839 }
22840 _ACEOF
22841 rm -f conftest.$ac_objext conftest$ac_exeext
22842 if { (ac_try="$ac_link"
22843 case "(($ac_try" in
22844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845   *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848   (eval "$ac_link") 2>conftest.er1
22849   ac_status=$?
22850   grep -v '^ *+' conftest.er1 >conftest.err
22851   rm -f conftest.er1
22852   cat conftest.err >&5
22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); } && {
22855          test -z "$ac_c_werror_flag" ||
22856          test ! -s conftest.err
22857        } && test -s conftest$ac_exeext &&
22858        $as_test_x conftest$ac_exeext; then
22859   ac_cv_lib_w_wslen=yes
22860 else
22861   echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22863
22864         ac_cv_lib_w_wslen=no
22865 fi
22866
22867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22868       conftest$ac_exeext conftest.$ac_ext
22869 LIBS=$ac_check_lib_save_LIBS
22870 fi
22871 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
22872 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
22873 if test $ac_cv_lib_w_wslen = yes; then
22874   cat >>confdefs.h <<_ACEOF
22875 #define HAVE_LIBW 1
22876 _ACEOF
22877
22878   LIBS="-lw $LIBS"
22879
22880 fi
22881
22882
22883 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22884 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22886   echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888   ac_check_lib_save_LIBS=$LIBS
22889 LIBS="-ldl  $LIBS"
22890 cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896
22897 /* Override any GCC internal prototype to avoid an error.
22898    Use char because int might match the return type of a GCC
22899    builtin and then its argument prototype would still apply.  */
22900 #ifdef __cplusplus
22901 extern "C"
22902 #endif
22903 char dlopen ();
22904 int
22905 main ()
22906 {
22907 return dlopen ();
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916   *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919   (eval "$ac_link") 2>conftest.er1
22920   ac_status=$?
22921   grep -v '^ *+' conftest.er1 >conftest.err
22922   rm -f conftest.er1
22923   cat conftest.err >&5
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); } && {
22926          test -z "$ac_c_werror_flag" ||
22927          test ! -s conftest.err
22928        } && test -s conftest$ac_exeext &&
22929        $as_test_x conftest$ac_exeext; then
22930   ac_cv_lib_dl_dlopen=yes
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         ac_cv_lib_dl_dlopen=no
22936 fi
22937
22938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939       conftest$ac_exeext conftest.$ac_ext
22940 LIBS=$ac_check_lib_save_LIBS
22941 fi
22942 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22944 if test $ac_cv_lib_dl_dlopen = yes; then
22945   cat >>confdefs.h <<_ACEOF
22946 #define HAVE_LIBDL 1
22947 _ACEOF
22948
22949   LIBS="-ldl $LIBS"
22950
22951 fi
22952
22953
22954 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22955 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
22956 if test "${ac_cv_search_gethostbyname+set}" = set; then
22957   echo $ECHO_N "(cached) $ECHO_C" >&6
22958 else
22959   ac_func_search_save_LIBS=$LIBS
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h.  */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h.  */
22966
22967 /* Override any GCC internal prototype to avoid an error.
22968    Use char because int might match the return type of a GCC
22969    builtin and then its argument prototype would still apply.  */
22970 #ifdef __cplusplus
22971 extern "C"
22972 #endif
22973 char gethostbyname ();
22974 int
22975 main ()
22976 {
22977 return gethostbyname ();
22978   ;
22979   return 0;
22980 }
22981 _ACEOF
22982 for ac_lib in '' nsl; do
22983   if test -z "$ac_lib"; then
22984     ac_res="none required"
22985   else
22986     ac_res=-l$ac_lib
22987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22988   fi
22989   rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (ac_try="$ac_link"
22991 case "(($ac_try" in
22992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993   *) ac_try_echo=$ac_try;;
22994 esac
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996   (eval "$ac_link") 2>conftest.er1
22997   ac_status=$?
22998   grep -v '^ *+' conftest.er1 >conftest.err
22999   rm -f conftest.er1
23000   cat conftest.err >&5
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); } && {
23003          test -z "$ac_c_werror_flag" ||
23004          test ! -s conftest.err
23005        } && test -s conftest$ac_exeext &&
23006        $as_test_x conftest$ac_exeext; then
23007   ac_cv_search_gethostbyname=$ac_res
23008 else
23009   echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23011
23012
23013 fi
23014
23015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23016       conftest$ac_exeext
23017   if test "${ac_cv_search_gethostbyname+set}" = set; then
23018   break
23019 fi
23020 done
23021 if test "${ac_cv_search_gethostbyname+set}" = set; then
23022   :
23023 else
23024   ac_cv_search_gethostbyname=no
23025 fi
23026 rm conftest.$ac_ext
23027 LIBS=$ac_func_search_save_LIBS
23028 fi
23029 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23030 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23031 ac_res=$ac_cv_search_gethostbyname
23032 if test "$ac_res" != no; then
23033   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23034
23035 fi
23036
23037 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23038 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23039 if test "${ac_cv_search_socket+set}" = set; then
23040   echo $ECHO_N "(cached) $ECHO_C" >&6
23041 else
23042   ac_func_search_save_LIBS=$LIBS
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049
23050 /* Override any GCC internal prototype to avoid an error.
23051    Use char because int might match the return type of a GCC
23052    builtin and then its argument prototype would still apply.  */
23053 #ifdef __cplusplus
23054 extern "C"
23055 #endif
23056 char socket ();
23057 int
23058 main ()
23059 {
23060 return socket ();
23061   ;
23062   return 0;
23063 }
23064 _ACEOF
23065 for ac_lib in '' socket; do
23066   if test -z "$ac_lib"; then
23067     ac_res="none required"
23068   else
23069     ac_res=-l$ac_lib
23070     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23071   fi
23072   rm -f conftest.$ac_objext conftest$ac_exeext
23073 if { (ac_try="$ac_link"
23074 case "(($ac_try" in
23075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076   *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079   (eval "$ac_link") 2>conftest.er1
23080   ac_status=$?
23081   grep -v '^ *+' conftest.er1 >conftest.err
23082   rm -f conftest.er1
23083   cat conftest.err >&5
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); } && {
23086          test -z "$ac_c_werror_flag" ||
23087          test ! -s conftest.err
23088        } && test -s conftest$ac_exeext &&
23089        $as_test_x conftest$ac_exeext; then
23090   ac_cv_search_socket=$ac_res
23091 else
23092   echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095
23096 fi
23097
23098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23099       conftest$ac_exeext
23100   if test "${ac_cv_search_socket+set}" = set; then
23101   break
23102 fi
23103 done
23104 if test "${ac_cv_search_socket+set}" = set; then
23105   :
23106 else
23107   ac_cv_search_socket=no
23108 fi
23109 rm conftest.$ac_ext
23110 LIBS=$ac_func_search_save_LIBS
23111 fi
23112 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23113 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23114 ac_res=$ac_cv_search_socket
23115 if test "$ac_res" != no; then
23116   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23117
23118 fi
23119
23120
23121 # Hesiod needs -lresolv on Sun systems for res_send.
23122 if test "$hesiod" != "no"; then
23123
23124 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23125 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23126 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23127   echo $ECHO_N "(cached) $ECHO_C" >&6
23128 else
23129   ac_check_lib_save_LIBS=$LIBS
23130 LIBS="-l44bsd  $LIBS"
23131 cat >conftest.$ac_ext <<_ACEOF
23132 /* confdefs.h.  */
23133 _ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h.  */
23137
23138 /* Override any GCC internal prototype to avoid an error.
23139    Use char because int might match the return type of a GCC
23140    builtin and then its argument prototype would still apply.  */
23141 #ifdef __cplusplus
23142 extern "C"
23143 #endif
23144 char strerror ();
23145 int
23146 main ()
23147 {
23148 return strerror ();
23149   ;
23150   return 0;
23151 }
23152 _ACEOF
23153 rm -f conftest.$ac_objext conftest$ac_exeext
23154 if { (ac_try="$ac_link"
23155 case "(($ac_try" in
23156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157   *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160   (eval "$ac_link") 2>conftest.er1
23161   ac_status=$?
23162   grep -v '^ *+' conftest.er1 >conftest.err
23163   rm -f conftest.er1
23164   cat conftest.err >&5
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); } && {
23167          test -z "$ac_c_werror_flag" ||
23168          test ! -s conftest.err
23169        } && test -s conftest$ac_exeext &&
23170        $as_test_x conftest$ac_exeext; then
23171   ac_cv_lib_44bsd_strerror=yes
23172 else
23173   echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176         ac_cv_lib_44bsd_strerror=no
23177 fi
23178
23179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23180       conftest$ac_exeext conftest.$ac_ext
23181 LIBS=$ac_check_lib_save_LIBS
23182 fi
23183 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23184 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23185 if test $ac_cv_lib_44bsd_strerror = yes; then
23186   cat >>confdefs.h <<_ACEOF
23187 #define HAVE_LIB44BSD 1
23188 _ACEOF
23189
23190   LIBS="-l44bsd $LIBS"
23191
23192 fi
23193
23194
23195 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
23196 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
23197 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
23198   echo $ECHO_N "(cached) $ECHO_C" >&6
23199 else
23200   ac_check_lib_save_LIBS=$LIBS
23201 LIBS="-lresolv  $LIBS"
23202 cat >conftest.$ac_ext <<_ACEOF
23203 /* confdefs.h.  */
23204 _ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h.  */
23208
23209 /* Override any GCC internal prototype to avoid an error.
23210    Use char because int might match the return type of a GCC
23211    builtin and then its argument prototype would still apply.  */
23212 #ifdef __cplusplus
23213 extern "C"
23214 #endif
23215 char res_send ();
23216 int
23217 main ()
23218 {
23219 return res_send ();
23220   ;
23221   return 0;
23222 }
23223 _ACEOF
23224 rm -f conftest.$ac_objext conftest$ac_exeext
23225 if { (ac_try="$ac_link"
23226 case "(($ac_try" in
23227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228   *) ac_try_echo=$ac_try;;
23229 esac
23230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231   (eval "$ac_link") 2>conftest.er1
23232   ac_status=$?
23233   grep -v '^ *+' conftest.er1 >conftest.err
23234   rm -f conftest.er1
23235   cat conftest.err >&5
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); } && {
23238          test -z "$ac_c_werror_flag" ||
23239          test ! -s conftest.err
23240        } && test -s conftest$ac_exeext &&
23241        $as_test_x conftest$ac_exeext; then
23242   ac_cv_lib_resolv_res_send=yes
23243 else
23244   echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23246
23247         ac_cv_lib_resolv_res_send=no
23248 fi
23249
23250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23251       conftest$ac_exeext conftest.$ac_ext
23252 LIBS=$ac_check_lib_save_LIBS
23253 fi
23254 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
23255 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
23256 if test $ac_cv_lib_resolv_res_send = yes; then
23257   cat >>confdefs.h <<_ACEOF
23258 #define HAVE_LIBRESOLV 1
23259 _ACEOF
23260
23261   LIBS="-lresolv $LIBS"
23262
23263 fi
23264
23265
23266 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
23267 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
23268 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
23269   echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271   ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lresolv  $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279
23280 /* Override any GCC internal prototype to avoid an error.
23281    Use char because int might match the return type of a GCC
23282    builtin and then its argument prototype would still apply.  */
23283 #ifdef __cplusplus
23284 extern "C"
23285 #endif
23286 char __res_send ();
23287 int
23288 main ()
23289 {
23290 return __res_send ();
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (ac_try="$ac_link"
23297 case "(($ac_try" in
23298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299   *) ac_try_echo=$ac_try;;
23300 esac
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302   (eval "$ac_link") 2>conftest.er1
23303   ac_status=$?
23304   grep -v '^ *+' conftest.er1 >conftest.err
23305   rm -f conftest.er1
23306   cat conftest.err >&5
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); } && {
23309          test -z "$ac_c_werror_flag" ||
23310          test ! -s conftest.err
23311        } && test -s conftest$ac_exeext &&
23312        $as_test_x conftest$ac_exeext; then
23313   ac_cv_lib_resolv___res_send=yes
23314 else
23315   echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23317
23318         ac_cv_lib_resolv___res_send=no
23319 fi
23320
23321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23322       conftest$ac_exeext conftest.$ac_ext
23323 LIBS=$ac_check_lib_save_LIBS
23324 fi
23325 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
23326 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
23327 if test $ac_cv_lib_resolv___res_send = yes; then
23328   cat >>confdefs.h <<_ACEOF
23329 #define HAVE_LIBRESOLV 1
23330 _ACEOF
23331
23332   LIBS="-lresolv $LIBS"
23333
23334 fi
23335
23336 fi
23337
23338 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23339 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23340 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23341   echo $ECHO_N "(cached) $ECHO_C" >&6
23342 else
23343   ac_check_lib_save_LIBS=$LIBS
23344 LIBS="-lcurses  $LIBS"
23345 cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h.  */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h.  */
23351
23352 /* Override any GCC internal prototype to avoid an error.
23353    Use char because int might match the return type of a GCC
23354    builtin and then its argument prototype would still apply.  */
23355 #ifdef __cplusplus
23356 extern "C"
23357 #endif
23358 char tgetstr ();
23359 int
23360 main ()
23361 {
23362 return tgetstr ();
23363   ;
23364   return 0;
23365 }
23366 _ACEOF
23367 rm -f conftest.$ac_objext conftest$ac_exeext
23368 if { (ac_try="$ac_link"
23369 case "(($ac_try" in
23370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23371   *) ac_try_echo=$ac_try;;
23372 esac
23373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23374   (eval "$ac_link") 2>conftest.er1
23375   ac_status=$?
23376   grep -v '^ *+' conftest.er1 >conftest.err
23377   rm -f conftest.er1
23378   cat conftest.err >&5
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); } && {
23381          test -z "$ac_c_werror_flag" ||
23382          test ! -s conftest.err
23383        } && test -s conftest$ac_exeext &&
23384        $as_test_x conftest$ac_exeext; then
23385   ac_cv_lib_curses_tgetstr=yes
23386 else
23387   echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390         ac_cv_lib_curses_tgetstr=no
23391 fi
23392
23393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23394       conftest$ac_exeext conftest.$ac_ext
23395 LIBS=$ac_check_lib_save_LIBS
23396 fi
23397 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23398 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23399 if test $ac_cv_lib_curses_tgetstr = yes; then
23400   TLIB=-lcurses
23401 else
23402   TLIB=-ltermcap
23403 fi
23404
23405 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23406 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23407 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23408   echo $ECHO_N "(cached) $ECHO_C" >&6
23409 else
23410   ac_check_lib_save_LIBS=$LIBS
23411 LIBS="-lsrc  $LIBS"
23412 cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h.  */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h.  */
23418
23419 /* Override any GCC internal prototype to avoid an error.
23420    Use char because int might match the return type of a GCC
23421    builtin and then its argument prototype would still apply.  */
23422 #ifdef __cplusplus
23423 extern "C"
23424 #endif
23425 char srcsrpy ();
23426 int
23427 main ()
23428 {
23429 return srcsrpy ();
23430   ;
23431   return 0;
23432 }
23433 _ACEOF
23434 rm -f conftest.$ac_objext conftest$ac_exeext
23435 if { (ac_try="$ac_link"
23436 case "(($ac_try" in
23437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438   *) ac_try_echo=$ac_try;;
23439 esac
23440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23441   (eval "$ac_link") 2>conftest.er1
23442   ac_status=$?
23443   grep -v '^ *+' conftest.er1 >conftest.err
23444   rm -f conftest.er1
23445   cat conftest.err >&5
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } && {
23448          test -z "$ac_c_werror_flag" ||
23449          test ! -s conftest.err
23450        } && test -s conftest$ac_exeext &&
23451        $as_test_x conftest$ac_exeext; then
23452   ac_cv_lib_src_srcsrpy=yes
23453 else
23454   echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23456
23457         ac_cv_lib_src_srcsrpy=no
23458 fi
23459
23460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23461       conftest$ac_exeext conftest.$ac_ext
23462 LIBS=$ac_check_lib_save_LIBS
23463 fi
23464 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23465 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23466 if test $ac_cv_lib_src_srcsrpy = yes; then
23467   SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23468 #define HAVE_SRC 1
23469 _ACEOF
23470
23471 fi
23472
23473
23474
23475
23476
23477
23478 # Check whether --with-krb4 was given.
23479 if test "${with_krb4+set}" = set; then
23480   withval=$with_krb4; krb4="$withval"
23481 else
23482   krb4=no
23483 fi
23484
23485 if test "$krb4" != no; then
23486         { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23487 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23488 if test "${ac_cv_func_gethostbyname+set}" = set; then
23489   echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23491   cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h.  */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h.  */
23497 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23499 #define gethostbyname innocuous_gethostbyname
23500
23501 /* System header to define __stub macros and hopefully few prototypes,
23502     which can conflict with char gethostbyname (); below.
23503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23504     <limits.h> exists even on freestanding compilers.  */
23505
23506 #ifdef __STDC__
23507 # include <limits.h>
23508 #else
23509 # include <assert.h>
23510 #endif
23511
23512 #undef gethostbyname
23513
23514 /* Override any GCC internal prototype to avoid an error.
23515    Use char because int might match the return type of a GCC
23516    builtin and then its argument prototype would still apply.  */
23517 #ifdef __cplusplus
23518 extern "C"
23519 #endif
23520 char gethostbyname ();
23521 /* The GNU C library defines this for functions which it implements
23522     to always fail with ENOSYS.  Some functions are actually named
23523     something starting with __ and the normal name is an alias.  */
23524 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23525 choke me
23526 #endif
23527
23528 int
23529 main ()
23530 {
23531 return gethostbyname ();
23532   ;
23533   return 0;
23534 }
23535 _ACEOF
23536 rm -f conftest.$ac_objext conftest$ac_exeext
23537 if { (ac_try="$ac_link"
23538 case "(($ac_try" in
23539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540   *) ac_try_echo=$ac_try;;
23541 esac
23542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23543   (eval "$ac_link") 2>conftest.er1
23544   ac_status=$?
23545   grep -v '^ *+' conftest.er1 >conftest.err
23546   rm -f conftest.er1
23547   cat conftest.err >&5
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); } && {
23550          test -z "$ac_c_werror_flag" ||
23551          test ! -s conftest.err
23552        } && test -s conftest$ac_exeext &&
23553        $as_test_x conftest$ac_exeext; then
23554   ac_cv_func_gethostbyname=yes
23555 else
23556   echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23558
23559         ac_cv_func_gethostbyname=no
23560 fi
23561
23562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23563       conftest$ac_exeext conftest.$ac_ext
23564 fi
23565 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23566 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23567 if test $ac_cv_func_gethostbyname = yes; then
23568   :
23569 else
23570
23571 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23572 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23573 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23574   echo $ECHO_N "(cached) $ECHO_C" >&6
23575 else
23576   ac_check_lib_save_LIBS=$LIBS
23577 LIBS="-lnsl  $LIBS"
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584
23585 /* Override any GCC internal prototype to avoid an error.
23586    Use char because int might match the return type of a GCC
23587    builtin and then its argument prototype would still apply.  */
23588 #ifdef __cplusplus
23589 extern "C"
23590 #endif
23591 char gethostbyname ();
23592 int
23593 main ()
23594 {
23595 return gethostbyname ();
23596   ;
23597   return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (ac_try="$ac_link"
23602 case "(($ac_try" in
23603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604   *) ac_try_echo=$ac_try;;
23605 esac
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607   (eval "$ac_link") 2>conftest.er1
23608   ac_status=$?
23609   grep -v '^ *+' conftest.er1 >conftest.err
23610   rm -f conftest.er1
23611   cat conftest.err >&5
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } && {
23614          test -z "$ac_c_werror_flag" ||
23615          test ! -s conftest.err
23616        } && test -s conftest$ac_exeext &&
23617        $as_test_x conftest$ac_exeext; then
23618   ac_cv_lib_nsl_gethostbyname=yes
23619 else
23620   echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623         ac_cv_lib_nsl_gethostbyname=no
23624 fi
23625
23626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23627       conftest$ac_exeext conftest.$ac_ext
23628 LIBS=$ac_check_lib_save_LIBS
23629 fi
23630 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23631 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23632 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23633   cat >>confdefs.h <<_ACEOF
23634 #define HAVE_LIBNSL 1
23635 _ACEOF
23636
23637   LIBS="-lnsl $LIBS"
23638
23639 fi
23640
23641 fi
23642
23643 { echo "$as_me:$LINENO: checking for socket" >&5
23644 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23645 if test "${ac_cv_func_socket+set}" = set; then
23646   echo $ECHO_N "(cached) $ECHO_C" >&6
23647 else
23648   cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h.  */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h.  */
23654 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23656 #define socket innocuous_socket
23657
23658 /* System header to define __stub macros and hopefully few prototypes,
23659     which can conflict with char socket (); below.
23660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23661     <limits.h> exists even on freestanding compilers.  */
23662
23663 #ifdef __STDC__
23664 # include <limits.h>
23665 #else
23666 # include <assert.h>
23667 #endif
23668
23669 #undef socket
23670
23671 /* Override any GCC internal prototype to avoid an error.
23672    Use char because int might match the return type of a GCC
23673    builtin and then its argument prototype would still apply.  */
23674 #ifdef __cplusplus
23675 extern "C"
23676 #endif
23677 char socket ();
23678 /* The GNU C library defines this for functions which it implements
23679     to always fail with ENOSYS.  Some functions are actually named
23680     something starting with __ and the normal name is an alias.  */
23681 #if defined __stub_socket || defined __stub___socket
23682 choke me
23683 #endif
23684
23685 int
23686 main ()
23687 {
23688 return socket ();
23689   ;
23690   return 0;
23691 }
23692 _ACEOF
23693 rm -f conftest.$ac_objext conftest$ac_exeext
23694 if { (ac_try="$ac_link"
23695 case "(($ac_try" in
23696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697   *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700   (eval "$ac_link") 2>conftest.er1
23701   ac_status=$?
23702   grep -v '^ *+' conftest.er1 >conftest.err
23703   rm -f conftest.er1
23704   cat conftest.err >&5
23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); } && {
23707          test -z "$ac_c_werror_flag" ||
23708          test ! -s conftest.err
23709        } && test -s conftest$ac_exeext &&
23710        $as_test_x conftest$ac_exeext; then
23711   ac_cv_func_socket=yes
23712 else
23713   echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23715
23716         ac_cv_func_socket=no
23717 fi
23718
23719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23720       conftest$ac_exeext conftest.$ac_ext
23721 fi
23722 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23723 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23724 if test $ac_cv_func_socket = yes; then
23725   :
23726 else
23727
23728 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23729 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23730 if test "${ac_cv_lib_socket_socket+set}" = set; then
23731   echo $ECHO_N "(cached) $ECHO_C" >&6
23732 else
23733   ac_check_lib_save_LIBS=$LIBS
23734 LIBS="-lsocket  $LIBS"
23735 cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h.  */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h.  */
23741
23742 /* Override any GCC internal prototype to avoid an error.
23743    Use char because int might match the return type of a GCC
23744    builtin and then its argument prototype would still apply.  */
23745 #ifdef __cplusplus
23746 extern "C"
23747 #endif
23748 char socket ();
23749 int
23750 main ()
23751 {
23752 return socket ();
23753   ;
23754   return 0;
23755 }
23756 _ACEOF
23757 rm -f conftest.$ac_objext conftest$ac_exeext
23758 if { (ac_try="$ac_link"
23759 case "(($ac_try" in
23760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761   *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764   (eval "$ac_link") 2>conftest.er1
23765   ac_status=$?
23766   grep -v '^ *+' conftest.er1 >conftest.err
23767   rm -f conftest.er1
23768   cat conftest.err >&5
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); } && {
23771          test -z "$ac_c_werror_flag" ||
23772          test ! -s conftest.err
23773        } && test -s conftest$ac_exeext &&
23774        $as_test_x conftest$ac_exeext; then
23775   ac_cv_lib_socket_socket=yes
23776 else
23777   echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780         ac_cv_lib_socket_socket=no
23781 fi
23782
23783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23784       conftest$ac_exeext conftest.$ac_ext
23785 LIBS=$ac_check_lib_save_LIBS
23786 fi
23787 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23788 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23789 if test $ac_cv_lib_socket_socket = yes; then
23790   cat >>confdefs.h <<_ACEOF
23791 #define HAVE_LIBSOCKET 1
23792 _ACEOF
23793
23794   LIBS="-lsocket $LIBS"
23795
23796 fi
23797
23798 fi
23799
23800
23801 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23802 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23803 if test "${ac_cv_lib_gen_compile+set}" = set; then
23804   echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806   ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lgen  $LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814
23815 /* Override any GCC internal prototype to avoid an error.
23816    Use char because int might match the return type of a GCC
23817    builtin and then its argument prototype would still apply.  */
23818 #ifdef __cplusplus
23819 extern "C"
23820 #endif
23821 char compile ();
23822 int
23823 main ()
23824 {
23825 return compile ();
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834   *) ac_try_echo=$ac_try;;
23835 esac
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837   (eval "$ac_link") 2>conftest.er1
23838   ac_status=$?
23839   grep -v '^ *+' conftest.er1 >conftest.err
23840   rm -f conftest.er1
23841   cat conftest.err >&5
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); } && {
23844          test -z "$ac_c_werror_flag" ||
23845          test ! -s conftest.err
23846        } && test -s conftest$ac_exeext &&
23847        $as_test_x conftest$ac_exeext; then
23848   ac_cv_lib_gen_compile=yes
23849 else
23850   echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23852
23853         ac_cv_lib_gen_compile=no
23854 fi
23855
23856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23857       conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23859 fi
23860 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23861 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23862 if test $ac_cv_lib_gen_compile = yes; then
23863   cat >>confdefs.h <<_ACEOF
23864 #define HAVE_LIBGEN 1
23865 _ACEOF
23866
23867   LIBS="-lgen $LIBS"
23868
23869 fi
23870
23871 if test "$krb4" != yes; then
23872         CPPFLAGS="$CPPFLAGS -I$krb4/include"
23873         if test -d "$krb4/include/kerberosIV"; then
23874                 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23875         fi
23876         LDFLAGS="$LDFLAGS -L$krb4/lib"
23877 fi
23878 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23879 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23880 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23881   echo $ECHO_N "(cached) $ECHO_C" >&6
23882 else
23883   ac_check_lib_save_LIBS=$LIBS
23884 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23885 cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h.  */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h.  */
23891
23892 /* Override any GCC internal prototype to avoid an error.
23893    Use char because int might match the return type of a GCC
23894    builtin and then its argument prototype would still apply.  */
23895 #ifdef __cplusplus
23896 extern "C"
23897 #endif
23898 char krb_rd_req ();
23899 int
23900 main ()
23901 {
23902 return krb_rd_req ();
23903   ;
23904   return 0;
23905 }
23906 _ACEOF
23907 rm -f conftest.$ac_objext conftest$ac_exeext
23908 if { (ac_try="$ac_link"
23909 case "(($ac_try" in
23910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911   *) ac_try_echo=$ac_try;;
23912 esac
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914   (eval "$ac_link") 2>conftest.er1
23915   ac_status=$?
23916   grep -v '^ *+' conftest.er1 >conftest.err
23917   rm -f conftest.er1
23918   cat conftest.err >&5
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); } && {
23921          test -z "$ac_c_werror_flag" ||
23922          test ! -s conftest.err
23923        } && test -s conftest$ac_exeext &&
23924        $as_test_x conftest$ac_exeext; then
23925   ac_cv_lib_krb4_krb_rd_req=yes
23926 else
23927   echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23929
23930         ac_cv_lib_krb4_krb_rd_req=no
23931 fi
23932
23933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23934       conftest$ac_exeext conftest.$ac_ext
23935 LIBS=$ac_check_lib_save_LIBS
23936 fi
23937 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23938 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23939 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23940   KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23941 else
23942   { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23943 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23944 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23945   echo $ECHO_N "(cached) $ECHO_C" >&6
23946 else
23947   ac_check_lib_save_LIBS=$LIBS
23948 LIBS="-lkrb -ldes $LIBS"
23949 cat >conftest.$ac_ext <<_ACEOF
23950 /* confdefs.h.  */
23951 _ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h.  */
23955
23956 /* Override any GCC internal prototype to avoid an error.
23957    Use char because int might match the return type of a GCC
23958    builtin and then its argument prototype would still apply.  */
23959 #ifdef __cplusplus
23960 extern "C"
23961 #endif
23962 char krb_rd_req ();
23963 int
23964 main ()
23965 {
23966 return krb_rd_req ();
23967   ;
23968   return 0;
23969 }
23970 _ACEOF
23971 rm -f conftest.$ac_objext conftest$ac_exeext
23972 if { (ac_try="$ac_link"
23973 case "(($ac_try" in
23974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975   *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978   (eval "$ac_link") 2>conftest.er1
23979   ac_status=$?
23980   grep -v '^ *+' conftest.er1 >conftest.err
23981   rm -f conftest.er1
23982   cat conftest.err >&5
23983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984   (exit $ac_status); } && {
23985          test -z "$ac_c_werror_flag" ||
23986          test ! -s conftest.err
23987        } && test -s conftest$ac_exeext &&
23988        $as_test_x conftest$ac_exeext; then
23989   ac_cv_lib_krb_krb_rd_req=yes
23990 else
23991   echo "$as_me: failed program was:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23993
23994         ac_cv_lib_krb_krb_rd_req=no
23995 fi
23996
23997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23998       conftest$ac_exeext conftest.$ac_ext
23999 LIBS=$ac_check_lib_save_LIBS
24000 fi
24001 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24002 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24003 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24004   KRB4_LIBS="-lkrb -ldes"
24005 else
24006   { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24007 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24008    { (exit 1); exit 1; }; }
24009 fi
24010
24011 fi
24012
24013         cat >>confdefs.h <<\_ACEOF
24014 #define HAVE_KRB4 1
24015 _ACEOF
24016
24017 fi
24018
24019
24020 # Check whether --with-krb5 was given.
24021 if test "${with_krb5+set}" = set; then
24022   withval=$with_krb5; krb5="$withval"
24023 else
24024   krb5=no
24025 fi
24026
24027 if test "$krb5" != no; then
24028         { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24029 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24030 if test "${ac_cv_search_gethostbyname+set}" = set; then
24031   echo $ECHO_N "(cached) $ECHO_C" >&6
24032 else
24033   ac_func_search_save_LIBS=$LIBS
24034 cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h.  */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h.  */
24040
24041 /* Override any GCC internal prototype to avoid an error.
24042    Use char because int might match the return type of a GCC
24043    builtin and then its argument prototype would still apply.  */
24044 #ifdef __cplusplus
24045 extern "C"
24046 #endif
24047 char gethostbyname ();
24048 int
24049 main ()
24050 {
24051 return gethostbyname ();
24052   ;
24053   return 0;
24054 }
24055 _ACEOF
24056 for ac_lib in '' nsl; do
24057   if test -z "$ac_lib"; then
24058     ac_res="none required"
24059   else
24060     ac_res=-l$ac_lib
24061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24062   fi
24063   rm -f conftest.$ac_objext conftest$ac_exeext
24064 if { (ac_try="$ac_link"
24065 case "(($ac_try" in
24066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067   *) ac_try_echo=$ac_try;;
24068 esac
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070   (eval "$ac_link") 2>conftest.er1
24071   ac_status=$?
24072   grep -v '^ *+' conftest.er1 >conftest.err
24073   rm -f conftest.er1
24074   cat conftest.err >&5
24075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076   (exit $ac_status); } && {
24077          test -z "$ac_c_werror_flag" ||
24078          test ! -s conftest.err
24079        } && test -s conftest$ac_exeext &&
24080        $as_test_x conftest$ac_exeext; then
24081   ac_cv_search_gethostbyname=$ac_res
24082 else
24083   echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24085
24086
24087 fi
24088
24089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24090       conftest$ac_exeext
24091   if test "${ac_cv_search_gethostbyname+set}" = set; then
24092   break
24093 fi
24094 done
24095 if test "${ac_cv_search_gethostbyname+set}" = set; then
24096   :
24097 else
24098   ac_cv_search_gethostbyname=no
24099 fi
24100 rm conftest.$ac_ext
24101 LIBS=$ac_func_search_save_LIBS
24102 fi
24103 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24104 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24105 ac_res=$ac_cv_search_gethostbyname
24106 if test "$ac_res" != no; then
24107   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24108
24109 fi
24110
24111 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24112 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24113 if test "${ac_cv_search_socket+set}" = set; then
24114   echo $ECHO_N "(cached) $ECHO_C" >&6
24115 else
24116   ac_func_search_save_LIBS=$LIBS
24117 cat >conftest.$ac_ext <<_ACEOF
24118 /* confdefs.h.  */
24119 _ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h.  */
24123
24124 /* Override any GCC internal prototype to avoid an error.
24125    Use char because int might match the return type of a GCC
24126    builtin and then its argument prototype would still apply.  */
24127 #ifdef __cplusplus
24128 extern "C"
24129 #endif
24130 char socket ();
24131 int
24132 main ()
24133 {
24134 return socket ();
24135   ;
24136   return 0;
24137 }
24138 _ACEOF
24139 for ac_lib in '' socket; do
24140   if test -z "$ac_lib"; then
24141     ac_res="none required"
24142   else
24143     ac_res=-l$ac_lib
24144     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24145   fi
24146   rm -f conftest.$ac_objext conftest$ac_exeext
24147 if { (ac_try="$ac_link"
24148 case "(($ac_try" in
24149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150   *) ac_try_echo=$ac_try;;
24151 esac
24152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24153   (eval "$ac_link") 2>conftest.er1
24154   ac_status=$?
24155   grep -v '^ *+' conftest.er1 >conftest.err
24156   rm -f conftest.er1
24157   cat conftest.err >&5
24158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); } && {
24160          test -z "$ac_c_werror_flag" ||
24161          test ! -s conftest.err
24162        } && test -s conftest$ac_exeext &&
24163        $as_test_x conftest$ac_exeext; then
24164   ac_cv_search_socket=$ac_res
24165 else
24166   echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24168
24169
24170 fi
24171
24172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24173       conftest$ac_exeext
24174   if test "${ac_cv_search_socket+set}" = set; then
24175   break
24176 fi
24177 done
24178 if test "${ac_cv_search_socket+set}" = set; then
24179   :
24180 else
24181   ac_cv_search_socket=no
24182 fi
24183 rm conftest.$ac_ext
24184 LIBS=$ac_func_search_save_LIBS
24185 fi
24186 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24187 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24188 ac_res=$ac_cv_search_socket
24189 if test "$ac_res" != no; then
24190   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24191
24192 fi
24193
24194
24195 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24196 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24197 if test "${ac_cv_lib_gen_compile+set}" = set; then
24198   echo $ECHO_N "(cached) $ECHO_C" >&6
24199 else
24200   ac_check_lib_save_LIBS=$LIBS
24201 LIBS="-lgen  $LIBS"
24202 cat >conftest.$ac_ext <<_ACEOF
24203 /* confdefs.h.  */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h.  */
24208
24209 /* Override any GCC internal prototype to avoid an error.
24210    Use char because int might match the return type of a GCC
24211    builtin and then its argument prototype would still apply.  */
24212 #ifdef __cplusplus
24213 extern "C"
24214 #endif
24215 char compile ();
24216 int
24217 main ()
24218 {
24219 return compile ();
24220   ;
24221   return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest.$ac_objext conftest$ac_exeext
24225 if { (ac_try="$ac_link"
24226 case "(($ac_try" in
24227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228   *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231   (eval "$ac_link") 2>conftest.er1
24232   ac_status=$?
24233   grep -v '^ *+' conftest.er1 >conftest.err
24234   rm -f conftest.er1
24235   cat conftest.err >&5
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } && {
24238          test -z "$ac_c_werror_flag" ||
24239          test ! -s conftest.err
24240        } && test -s conftest$ac_exeext &&
24241        $as_test_x conftest$ac_exeext; then
24242   ac_cv_lib_gen_compile=yes
24243 else
24244   echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24246
24247         ac_cv_lib_gen_compile=no
24248 fi
24249
24250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24251       conftest$ac_exeext conftest.$ac_ext
24252 LIBS=$ac_check_lib_save_LIBS
24253 fi
24254 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24255 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24256 if test $ac_cv_lib_gen_compile = yes; then
24257   cat >>confdefs.h <<_ACEOF
24258 #define HAVE_LIBGEN 1
24259 _ACEOF
24260
24261   LIBS="-lgen $LIBS"
24262
24263 fi
24264
24265 if test "$krb5" != yes; then
24266         CPPFLAGS="$CPPFLAGS -I$krb5/include"
24267         LDFLAGS="$LDFLAGS -L$krb5/lib"
24268 fi
24269 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24270 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24271 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24272   echo $ECHO_N "(cached) $ECHO_C" >&6
24273 else
24274   ac_check_lib_save_LIBS=$LIBS
24275 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24276 cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282
24283 /* Override any GCC internal prototype to avoid an error.
24284    Use char because int might match the return type of a GCC
24285    builtin and then its argument prototype would still apply.  */
24286 #ifdef __cplusplus
24287 extern "C"
24288 #endif
24289 char krb5_init_context ();
24290 int
24291 main ()
24292 {
24293 return krb5_init_context ();
24294   ;
24295   return 0;
24296 }
24297 _ACEOF
24298 rm -f conftest.$ac_objext conftest$ac_exeext
24299 if { (ac_try="$ac_link"
24300 case "(($ac_try" in
24301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302   *) ac_try_echo=$ac_try;;
24303 esac
24304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24305   (eval "$ac_link") 2>conftest.er1
24306   ac_status=$?
24307   grep -v '^ *+' conftest.er1 >conftest.err
24308   rm -f conftest.er1
24309   cat conftest.err >&5
24310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311   (exit $ac_status); } && {
24312          test -z "$ac_c_werror_flag" ||
24313          test ! -s conftest.err
24314        } && test -s conftest$ac_exeext &&
24315        $as_test_x conftest$ac_exeext; then
24316   ac_cv_lib_krb5_krb5_init_context=yes
24317 else
24318   echo "$as_me: failed program was:" >&5
24319 sed 's/^/| /' conftest.$ac_ext >&5
24320
24321         ac_cv_lib_krb5_krb5_init_context=no
24322 fi
24323
24324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24325       conftest$ac_exeext conftest.$ac_ext
24326 LIBS=$ac_check_lib_save_LIBS
24327 fi
24328 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24329 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24330 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24331   :
24332 else
24333   { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24334 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24335    { (exit 1); exit 1; }; }
24336 fi
24337
24338         KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24339         cat >>confdefs.h <<\_ACEOF
24340 #define HAVE_KRB5 1
24341 _ACEOF
24342
24343 fi
24344
24345
24346 # Check whether --with-hesiod was given.
24347 if test "${with_hesiod+set}" = set; then
24348   withval=$with_hesiod; hesiod="$withval"
24349 else
24350   hesiod=no
24351 fi
24352
24353 if test "$hesiod" != no; then
24354         { echo "$as_me:$LINENO: checking for res_send" >&5
24355 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24356 if test "${ac_cv_func_res_send+set}" = set; then
24357   echo $ECHO_N "(cached) $ECHO_C" >&6
24358 else
24359   cat >conftest.$ac_ext <<_ACEOF
24360 /* confdefs.h.  */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h.  */
24365 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24367 #define res_send innocuous_res_send
24368
24369 /* System header to define __stub macros and hopefully few prototypes,
24370     which can conflict with char res_send (); below.
24371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24372     <limits.h> exists even on freestanding compilers.  */
24373
24374 #ifdef __STDC__
24375 # include <limits.h>
24376 #else
24377 # include <assert.h>
24378 #endif
24379
24380 #undef res_send
24381
24382 /* Override any GCC internal prototype to avoid an error.
24383    Use char because int might match the return type of a GCC
24384    builtin and then its argument prototype would still apply.  */
24385 #ifdef __cplusplus
24386 extern "C"
24387 #endif
24388 char res_send ();
24389 /* The GNU C library defines this for functions which it implements
24390     to always fail with ENOSYS.  Some functions are actually named
24391     something starting with __ and the normal name is an alias.  */
24392 #if defined __stub_res_send || defined __stub___res_send
24393 choke me
24394 #endif
24395
24396 int
24397 main ()
24398 {
24399 return res_send ();
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 rm -f conftest.$ac_objext conftest$ac_exeext
24405 if { (ac_try="$ac_link"
24406 case "(($ac_try" in
24407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408   *) ac_try_echo=$ac_try;;
24409 esac
24410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24411   (eval "$ac_link") 2>conftest.er1
24412   ac_status=$?
24413   grep -v '^ *+' conftest.er1 >conftest.err
24414   rm -f conftest.er1
24415   cat conftest.err >&5
24416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417   (exit $ac_status); } && {
24418          test -z "$ac_c_werror_flag" ||
24419          test ! -s conftest.err
24420        } && test -s conftest$ac_exeext &&
24421        $as_test_x conftest$ac_exeext; then
24422   ac_cv_func_res_send=yes
24423 else
24424   echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24426
24427         ac_cv_func_res_send=no
24428 fi
24429
24430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24431       conftest$ac_exeext conftest.$ac_ext
24432 fi
24433 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24434 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24435 if test $ac_cv_func_res_send = yes; then
24436   :
24437 else
24438
24439 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24440 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24441 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24442   echo $ECHO_N "(cached) $ECHO_C" >&6
24443 else
24444   ac_check_lib_save_LIBS=$LIBS
24445 LIBS="-lresolv  $LIBS"
24446 cat >conftest.$ac_ext <<_ACEOF
24447 /* confdefs.h.  */
24448 _ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h.  */
24452
24453 /* Override any GCC internal prototype to avoid an error.
24454    Use char because int might match the return type of a GCC
24455    builtin and then its argument prototype would still apply.  */
24456 #ifdef __cplusplus
24457 extern "C"
24458 #endif
24459 char res_send ();
24460 int
24461 main ()
24462 {
24463 return res_send ();
24464   ;
24465   return 0;
24466 }
24467 _ACEOF
24468 rm -f conftest.$ac_objext conftest$ac_exeext
24469 if { (ac_try="$ac_link"
24470 case "(($ac_try" in
24471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24472   *) ac_try_echo=$ac_try;;
24473 esac
24474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24475   (eval "$ac_link") 2>conftest.er1
24476   ac_status=$?
24477   grep -v '^ *+' conftest.er1 >conftest.err
24478   rm -f conftest.er1
24479   cat conftest.err >&5
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); } && {
24482          test -z "$ac_c_werror_flag" ||
24483          test ! -s conftest.err
24484        } && test -s conftest$ac_exeext &&
24485        $as_test_x conftest$ac_exeext; then
24486   ac_cv_lib_resolv_res_send=yes
24487 else
24488   echo "$as_me: failed program was:" >&5
24489 sed 's/^/| /' conftest.$ac_ext >&5
24490
24491         ac_cv_lib_resolv_res_send=no
24492 fi
24493
24494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24495       conftest$ac_exeext conftest.$ac_ext
24496 LIBS=$ac_check_lib_save_LIBS
24497 fi
24498 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24499 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24500 if test $ac_cv_lib_resolv_res_send = yes; then
24501   cat >>confdefs.h <<_ACEOF
24502 #define HAVE_LIBRESOLV 1
24503 _ACEOF
24504
24505   LIBS="-lresolv $LIBS"
24506
24507 fi
24508
24509 fi
24510
24511 if test "$hesiod" != yes; then
24512         CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24513         LDFLAGS="$LDFLAGS -L$hesiod/lib"
24514 fi
24515 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24516 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24517 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24518   echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520   ac_check_lib_save_LIBS=$LIBS
24521 LIBS="-lhesiod $LIBS $LIBS"
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h.  */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h.  */
24528
24529 /* Override any GCC internal prototype to avoid an error.
24530    Use char because int might match the return type of a GCC
24531    builtin and then its argument prototype would still apply.  */
24532 #ifdef __cplusplus
24533 extern "C"
24534 #endif
24535 char hes_resolve ();
24536 int
24537 main ()
24538 {
24539 return hes_resolve ();
24540   ;
24541   return 0;
24542 }
24543 _ACEOF
24544 rm -f conftest.$ac_objext conftest$ac_exeext
24545 if { (ac_try="$ac_link"
24546 case "(($ac_try" in
24547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548   *) ac_try_echo=$ac_try;;
24549 esac
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551   (eval "$ac_link") 2>conftest.er1
24552   ac_status=$?
24553   grep -v '^ *+' conftest.er1 >conftest.err
24554   rm -f conftest.er1
24555   cat conftest.err >&5
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); } && {
24558          test -z "$ac_c_werror_flag" ||
24559          test ! -s conftest.err
24560        } && test -s conftest$ac_exeext &&
24561        $as_test_x conftest$ac_exeext; then
24562   ac_cv_lib_hesiod_hes_resolve=yes
24563 else
24564   echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24566
24567         ac_cv_lib_hesiod_hes_resolve=no
24568 fi
24569
24570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24571       conftest$ac_exeext conftest.$ac_ext
24572 LIBS=$ac_check_lib_save_LIBS
24573 fi
24574 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24575 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24576 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24577   :
24578 else
24579   { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24580 echo "$as_me: error: Hesiod library not found" >&2;}
24581    { (exit 1); exit 1; }; }
24582 fi
24583
24584         HESIOD_LIBS="-lhesiod"
24585         cat >>confdefs.h <<\_ACEOF
24586 #define HAVE_HESIOD 1
24587 _ACEOF
24588
24589 fi
24590
24591
24592 # Check whether --with-regex was given.
24593 if test "${with_regex+set}" = set; then
24594   withval=$with_regex; regex="$withval"
24595 else
24596   regex=no
24597 fi
24598
24599 if test "$regex" != no; then
24600         if test "$regex" != yes; then
24601                 CPPFLAGS="$CPPFLAGS -I$regex/include"
24602                 LDFLAGS="$LDFLAGS -L$regex/lib"
24603         fi
24604         { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24605 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24606 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24607   echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609   ac_check_lib_save_LIBS=$LIBS
24610 LIBS="-lregex  $LIBS"
24611 cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h.  */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h.  */
24617
24618 /* Override any GCC internal prototype to avoid an error.
24619    Use char because int might match the return type of a GCC
24620    builtin and then its argument prototype would still apply.  */
24621 #ifdef __cplusplus
24622 extern "C"
24623 #endif
24624 char regcomp ();
24625 int
24626 main ()
24627 {
24628 return regcomp ();
24629   ;
24630   return 0;
24631 }
24632 _ACEOF
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637   *) ac_try_echo=$ac_try;;
24638 esac
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640   (eval "$ac_link") 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } && {
24647          test -z "$ac_c_werror_flag" ||
24648          test ! -s conftest.err
24649        } && test -s conftest$ac_exeext &&
24650        $as_test_x conftest$ac_exeext; then
24651   ac_cv_lib_regex_regcomp=yes
24652 else
24653   echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24655
24656         ac_cv_lib_regex_regcomp=no
24657 fi
24658
24659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24660       conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24662 fi
24663 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
24664 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
24665 if test $ac_cv_lib_regex_regcomp = yes; then
24666   REGEX_LIBS=-lregex
24667 else
24668   { { echo "$as_me:$LINENO: error: regex library not found" >&5
24669 echo "$as_me: error: regex library not found" >&2;}
24670    { (exit 1); exit 1; }; }
24671 fi
24672
24673 else
24674         { echo "$as_me:$LINENO: checking for regcomp" >&5
24675 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
24676 if test "${ac_cv_func_regcomp+set}" = set; then
24677   echo $ECHO_N "(cached) $ECHO_C" >&6
24678 else
24679   cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h.  */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h.  */
24685 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
24686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24687 #define regcomp innocuous_regcomp
24688
24689 /* System header to define __stub macros and hopefully few prototypes,
24690     which can conflict with char regcomp (); below.
24691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24692     <limits.h> exists even on freestanding compilers.  */
24693
24694 #ifdef __STDC__
24695 # include <limits.h>
24696 #else
24697 # include <assert.h>
24698 #endif
24699
24700 #undef regcomp
24701
24702 /* Override any GCC internal prototype to avoid an error.
24703    Use char because int might match the return type of a GCC
24704    builtin and then its argument prototype would still apply.  */
24705 #ifdef __cplusplus
24706 extern "C"
24707 #endif
24708 char regcomp ();
24709 /* The GNU C library defines this for functions which it implements
24710     to always fail with ENOSYS.  Some functions are actually named
24711     something starting with __ and the normal name is an alias.  */
24712 #if defined __stub_regcomp || defined __stub___regcomp
24713 choke me
24714 #endif
24715
24716 int
24717 main ()
24718 {
24719 return regcomp ();
24720   ;
24721   return 0;
24722 }
24723 _ACEOF
24724 rm -f conftest.$ac_objext conftest$ac_exeext
24725 if { (ac_try="$ac_link"
24726 case "(($ac_try" in
24727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728   *) ac_try_echo=$ac_try;;
24729 esac
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731   (eval "$ac_link") 2>conftest.er1
24732   ac_status=$?
24733   grep -v '^ *+' conftest.er1 >conftest.err
24734   rm -f conftest.er1
24735   cat conftest.err >&5
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); } && {
24738          test -z "$ac_c_werror_flag" ||
24739          test ! -s conftest.err
24740        } && test -s conftest$ac_exeext &&
24741        $as_test_x conftest$ac_exeext; then
24742   ac_cv_func_regcomp=yes
24743 else
24744   echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24746
24747         ac_cv_func_regcomp=no
24748 fi
24749
24750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24751       conftest$ac_exeext conftest.$ac_ext
24752 fi
24753 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
24754 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
24755 if test $ac_cv_func_regcomp = yes; then
24756   :
24757 else
24758   { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
24759 echo "$as_me: error: can't find POSIX regexp support" >&2;}
24760    { (exit 1); exit 1; }; }
24761 fi
24762
24763 fi
24764
24765
24766 # Check whether --with-ares was given.
24767 if test "${with_ares+set}" = set; then
24768   withval=$with_ares; ares="$withval"
24769 else
24770   ares=no
24771 fi
24772
24773 if test "$ares" != no; then
24774         { echo "$as_me:$LINENO: checking for res_send" >&5
24775 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24776 if test "${ac_cv_func_res_send+set}" = set; then
24777   echo $ECHO_N "(cached) $ECHO_C" >&6
24778 else
24779   cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h.  */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h.  */
24785 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24787 #define res_send innocuous_res_send
24788
24789 /* System header to define __stub macros and hopefully few prototypes,
24790     which can conflict with char res_send (); below.
24791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24792     <limits.h> exists even on freestanding compilers.  */
24793
24794 #ifdef __STDC__
24795 # include <limits.h>
24796 #else
24797 # include <assert.h>
24798 #endif
24799
24800 #undef res_send
24801
24802 /* Override any GCC internal prototype to avoid an error.
24803    Use char because int might match the return type of a GCC
24804    builtin and then its argument prototype would still apply.  */
24805 #ifdef __cplusplus
24806 extern "C"
24807 #endif
24808 char res_send ();
24809 /* The GNU C library defines this for functions which it implements
24810     to always fail with ENOSYS.  Some functions are actually named
24811     something starting with __ and the normal name is an alias.  */
24812 #if defined __stub_res_send || defined __stub___res_send
24813 choke me
24814 #endif
24815
24816 int
24817 main ()
24818 {
24819 return res_send ();
24820   ;
24821   return 0;
24822 }
24823 _ACEOF
24824 rm -f conftest.$ac_objext conftest$ac_exeext
24825 if { (ac_try="$ac_link"
24826 case "(($ac_try" in
24827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828   *) ac_try_echo=$ac_try;;
24829 esac
24830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831   (eval "$ac_link") 2>conftest.er1
24832   ac_status=$?
24833   grep -v '^ *+' conftest.er1 >conftest.err
24834   rm -f conftest.er1
24835   cat conftest.err >&5
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); } && {
24838          test -z "$ac_c_werror_flag" ||
24839          test ! -s conftest.err
24840        } && test -s conftest$ac_exeext &&
24841        $as_test_x conftest$ac_exeext; then
24842   ac_cv_func_res_send=yes
24843 else
24844   echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24846
24847         ac_cv_func_res_send=no
24848 fi
24849
24850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24851       conftest$ac_exeext conftest.$ac_ext
24852 fi
24853 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24854 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24855 if test $ac_cv_func_res_send = yes; then
24856   :
24857 else
24858
24859 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24860 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24861 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24862   echo $ECHO_N "(cached) $ECHO_C" >&6
24863 else
24864   ac_check_lib_save_LIBS=$LIBS
24865 LIBS="-lresolv  $LIBS"
24866 cat >conftest.$ac_ext <<_ACEOF
24867 /* confdefs.h.  */
24868 _ACEOF
24869 cat confdefs.h >>conftest.$ac_ext
24870 cat >>conftest.$ac_ext <<_ACEOF
24871 /* end confdefs.h.  */
24872
24873 /* Override any GCC internal prototype to avoid an error.
24874    Use char because int might match the return type of a GCC
24875    builtin and then its argument prototype would still apply.  */
24876 #ifdef __cplusplus
24877 extern "C"
24878 #endif
24879 char res_send ();
24880 int
24881 main ()
24882 {
24883 return res_send ();
24884   ;
24885   return 0;
24886 }
24887 _ACEOF
24888 rm -f conftest.$ac_objext conftest$ac_exeext
24889 if { (ac_try="$ac_link"
24890 case "(($ac_try" in
24891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892   *) ac_try_echo=$ac_try;;
24893 esac
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895   (eval "$ac_link") 2>conftest.er1
24896   ac_status=$?
24897   grep -v '^ *+' conftest.er1 >conftest.err
24898   rm -f conftest.er1
24899   cat conftest.err >&5
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); } && {
24902          test -z "$ac_c_werror_flag" ||
24903          test ! -s conftest.err
24904        } && test -s conftest$ac_exeext &&
24905        $as_test_x conftest$ac_exeext; then
24906   ac_cv_lib_resolv_res_send=yes
24907 else
24908   echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24910
24911         ac_cv_lib_resolv_res_send=no
24912 fi
24913
24914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24915       conftest$ac_exeext conftest.$ac_ext
24916 LIBS=$ac_check_lib_save_LIBS
24917 fi
24918 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24919 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24920 if test $ac_cv_lib_resolv_res_send = yes; then
24921   cat >>confdefs.h <<_ACEOF
24922 #define HAVE_LIBRESOLV 1
24923 _ACEOF
24924
24925   LIBS="-lresolv $LIBS"
24926
24927 fi
24928
24929 fi
24930
24931 if test "$ares" != yes; then
24932         CPPFLAGS="$CPPFLAGS -I$ares/include"
24933         LDFLAGS="$LDFLAGS -L$ares/lib"
24934 fi
24935 { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
24936 echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
24937 if test "${ac_cv_lib_ares_ares_init+set}" = set; then
24938   echo $ECHO_N "(cached) $ECHO_C" >&6
24939 else
24940   ac_check_lib_save_LIBS=$LIBS
24941 LIBS="-lares  $LIBS"
24942 cat >conftest.$ac_ext <<_ACEOF
24943 /* confdefs.h.  */
24944 _ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h.  */
24948
24949 /* Override any GCC internal prototype to avoid an error.
24950    Use char because int might match the return type of a GCC
24951    builtin and then its argument prototype would still apply.  */
24952 #ifdef __cplusplus
24953 extern "C"
24954 #endif
24955 char ares_init ();
24956 int
24957 main ()
24958 {
24959 return ares_init ();
24960   ;
24961   return 0;
24962 }
24963 _ACEOF
24964 rm -f conftest.$ac_objext conftest$ac_exeext
24965 if { (ac_try="$ac_link"
24966 case "(($ac_try" in
24967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968   *) ac_try_echo=$ac_try;;
24969 esac
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971   (eval "$ac_link") 2>conftest.er1
24972   ac_status=$?
24973   grep -v '^ *+' conftest.er1 >conftest.err
24974   rm -f conftest.er1
24975   cat conftest.err >&5
24976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977   (exit $ac_status); } && {
24978          test -z "$ac_c_werror_flag" ||
24979          test ! -s conftest.err
24980        } && test -s conftest$ac_exeext &&
24981        $as_test_x conftest$ac_exeext; then
24982   ac_cv_lib_ares_ares_init=yes
24983 else
24984   echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24986
24987         ac_cv_lib_ares_ares_init=no
24988 fi
24989
24990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24991       conftest$ac_exeext conftest.$ac_ext
24992 LIBS=$ac_check_lib_save_LIBS
24993 fi
24994 { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
24995 echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
24996 if test $ac_cv_lib_ares_ares_init = yes; then
24997   :
24998 else
24999   { { echo "$as_me:$LINENO: error: libares not found" >&5
25000 echo "$as_me: error: libares not found" >&2;}
25001    { (exit 1); exit 1; }; }
25002 fi
25003
25004         ARES_LIBS="-lares"
25005         cat >>confdefs.h <<\_ACEOF
25006 #define HAVE_ARES 1
25007 _ACEOF
25008
25009 fi
25010
25011
25012 # Check whether --with-com_err was given.
25013 if test "${with_com_err+set}" = set; then
25014   withval=$with_com_err; com_err="$withval"
25015 else
25016   com_err=yes
25017 fi
25018
25019 if test "$com_err" != no; then
25020         if test "$com_err" != yes; then
25021                 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25022                 LDFLAGS="$LDFLAGS -L$com_err/lib"
25023         fi
25024         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25025 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25026 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25027   echo $ECHO_N "(cached) $ECHO_C" >&6
25028 else
25029   ac_check_lib_save_LIBS=$LIBS
25030 LIBS="-lcom_err  $LIBS"
25031 cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037
25038 /* Override any GCC internal prototype to avoid an error.
25039    Use char because int might match the return type of a GCC
25040    builtin and then its argument prototype would still apply.  */
25041 #ifdef __cplusplus
25042 extern "C"
25043 #endif
25044 char com_err ();
25045 int
25046 main ()
25047 {
25048 return com_err ();
25049   ;
25050   return 0;
25051 }
25052 _ACEOF
25053 rm -f conftest.$ac_objext conftest$ac_exeext
25054 if { (ac_try="$ac_link"
25055 case "(($ac_try" in
25056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25057   *) ac_try_echo=$ac_try;;
25058 esac
25059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25060   (eval "$ac_link") 2>conftest.er1
25061   ac_status=$?
25062   grep -v '^ *+' conftest.er1 >conftest.err
25063   rm -f conftest.er1
25064   cat conftest.err >&5
25065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066   (exit $ac_status); } && {
25067          test -z "$ac_c_werror_flag" ||
25068          test ! -s conftest.err
25069        } && test -s conftest$ac_exeext &&
25070        $as_test_x conftest$ac_exeext; then
25071   ac_cv_lib_com_err_com_err=yes
25072 else
25073   echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25075
25076         ac_cv_lib_com_err_com_err=no
25077 fi
25078
25079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25080       conftest$ac_exeext conftest.$ac_ext
25081 LIBS=$ac_check_lib_save_LIBS
25082 fi
25083 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25084 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25085 if test $ac_cv_lib_com_err_com_err = yes; then
25086   :
25087 else
25088   { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25089 echo "$as_me: error: com_err library not found" >&2;}
25090    { (exit 1); exit 1; }; }
25091 fi
25092
25093 else
25094         { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25095 echo "$as_me: error: This package requires com_err." >&2;}
25096    { (exit 1); exit 1; }; }
25097 fi
25098
25099 # Check whether --with-ss was given.
25100 if test "${with_ss+set}" = set; then
25101   withval=$with_ss; ss="$withval"
25102 else
25103   ss=yes
25104 fi
25105
25106 if test "$ss" != no; then
25107         if test "$ss" != yes; then
25108                 CPPFLAGS="$CPPFLAGS -I$ss/include"
25109                 LDFLAGS="$LDFLAGS -L$ss/lib"
25110         fi
25111
25112 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
25113 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
25114 if test "${ac_cv_lib_curses_initscr+set}" = set; then
25115   echo $ECHO_N "(cached) $ECHO_C" >&6
25116 else
25117   ac_check_lib_save_LIBS=$LIBS
25118 LIBS="-lcurses  $LIBS"
25119 cat >conftest.$ac_ext <<_ACEOF
25120 /* confdefs.h.  */
25121 _ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h.  */
25125
25126 /* Override any GCC internal prototype to avoid an error.
25127    Use char because int might match the return type of a GCC
25128    builtin and then its argument prototype would still apply.  */
25129 #ifdef __cplusplus
25130 extern "C"
25131 #endif
25132 char initscr ();
25133 int
25134 main ()
25135 {
25136 return initscr ();
25137   ;
25138   return 0;
25139 }
25140 _ACEOF
25141 rm -f conftest.$ac_objext conftest$ac_exeext
25142 if { (ac_try="$ac_link"
25143 case "(($ac_try" in
25144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145   *) ac_try_echo=$ac_try;;
25146 esac
25147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148   (eval "$ac_link") 2>conftest.er1
25149   ac_status=$?
25150   grep -v '^ *+' conftest.er1 >conftest.err
25151   rm -f conftest.er1
25152   cat conftest.err >&5
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); } && {
25155          test -z "$ac_c_werror_flag" ||
25156          test ! -s conftest.err
25157        } && test -s conftest$ac_exeext &&
25158        $as_test_x conftest$ac_exeext; then
25159   ac_cv_lib_curses_initscr=yes
25160 else
25161   echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25163
25164         ac_cv_lib_curses_initscr=no
25165 fi
25166
25167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25168       conftest$ac_exeext conftest.$ac_ext
25169 LIBS=$ac_check_lib_save_LIBS
25170 fi
25171 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
25172 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
25173 if test $ac_cv_lib_curses_initscr = yes; then
25174   cat >>confdefs.h <<_ACEOF
25175 #define HAVE_LIBCURSES 1
25176 _ACEOF
25177
25178   LIBS="-lcurses $LIBS"
25179
25180 fi
25181
25182
25183 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
25184 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
25185 if test "${ac_cv_lib_readline_readline+set}" = set; then
25186   echo $ECHO_N "(cached) $ECHO_C" >&6
25187 else
25188   ac_check_lib_save_LIBS=$LIBS
25189 LIBS="-lreadline  $LIBS"
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h.  */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h.  */
25196
25197 /* Override any GCC internal prototype to avoid an error.
25198    Use char because int might match the return type of a GCC
25199    builtin and then its argument prototype would still apply.  */
25200 #ifdef __cplusplus
25201 extern "C"
25202 #endif
25203 char readline ();
25204 int
25205 main ()
25206 {
25207 return readline ();
25208   ;
25209   return 0;
25210 }
25211 _ACEOF
25212 rm -f conftest.$ac_objext conftest$ac_exeext
25213 if { (ac_try="$ac_link"
25214 case "(($ac_try" in
25215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216   *) ac_try_echo=$ac_try;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219   (eval "$ac_link") 2>conftest.er1
25220   ac_status=$?
25221   grep -v '^ *+' conftest.er1 >conftest.err
25222   rm -f conftest.er1
25223   cat conftest.err >&5
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); } && {
25226          test -z "$ac_c_werror_flag" ||
25227          test ! -s conftest.err
25228        } && test -s conftest$ac_exeext &&
25229        $as_test_x conftest$ac_exeext; then
25230   ac_cv_lib_readline_readline=yes
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235         ac_cv_lib_readline_readline=no
25236 fi
25237
25238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25239       conftest$ac_exeext conftest.$ac_ext
25240 LIBS=$ac_check_lib_save_LIBS
25241 fi
25242 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
25243 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
25244 if test $ac_cv_lib_readline_readline = yes; then
25245   cat >>confdefs.h <<_ACEOF
25246 #define HAVE_LIBREADLINE 1
25247 _ACEOF
25248
25249   LIBS="-lreadline $LIBS"
25250
25251 fi
25252
25253         { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25254 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25255 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25256   echo $ECHO_N "(cached) $ECHO_C" >&6
25257 else
25258   ac_check_lib_save_LIBS=$LIBS
25259 LIBS="-lss -lcom_err $LIBS"
25260 cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h.  */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h.  */
25266
25267 /* Override any GCC internal prototype to avoid an error.
25268    Use char because int might match the return type of a GCC
25269    builtin and then its argument prototype would still apply.  */
25270 #ifdef __cplusplus
25271 extern "C"
25272 #endif
25273 char ss_perror ();
25274 int
25275 main ()
25276 {
25277 return ss_perror ();
25278   ;
25279   return 0;
25280 }
25281 _ACEOF
25282 rm -f conftest.$ac_objext conftest$ac_exeext
25283 if { (ac_try="$ac_link"
25284 case "(($ac_try" in
25285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286   *) ac_try_echo=$ac_try;;
25287 esac
25288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25289   (eval "$ac_link") 2>conftest.er1
25290   ac_status=$?
25291   grep -v '^ *+' conftest.er1 >conftest.err
25292   rm -f conftest.er1
25293   cat conftest.err >&5
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); } && {
25296          test -z "$ac_c_werror_flag" ||
25297          test ! -s conftest.err
25298        } && test -s conftest$ac_exeext &&
25299        $as_test_x conftest$ac_exeext; then
25300   ac_cv_lib_ss_ss_perror=yes
25301 else
25302   echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25304
25305         ac_cv_lib_ss_ss_perror=no
25306 fi
25307
25308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25309       conftest$ac_exeext conftest.$ac_ext
25310 LIBS=$ac_check_lib_save_LIBS
25311 fi
25312 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25313 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25314 if test $ac_cv_lib_ss_ss_perror = yes; then
25315   :
25316 else
25317   { { echo "$as_me:$LINENO: error: ss library not found" >&5
25318 echo "$as_me: error: ss library not found" >&2;}
25319    { (exit 1); exit 1; }; }
25320 fi
25321
25322 else
25323         { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25324 echo "$as_me: error: This package requires ss." >&2;}
25325    { (exit 1); exit 1; }; }
25326 fi
25327 LIBS="$KRB5_LIBS $KRB4_LIBS $HESIOD_LIBS $LIBS"
25328
25329 if test $ac_cv_c_compiler_gnu = yes; then
25330     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25331 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25332 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25333   echo $ECHO_N "(cached) $ECHO_C" >&6
25334 else
25335     ac_pattern="Autoconf.*'x'"
25336   cat >conftest.$ac_ext <<_ACEOF
25337 /* confdefs.h.  */
25338 _ACEOF
25339 cat confdefs.h >>conftest.$ac_ext
25340 cat >>conftest.$ac_ext <<_ACEOF
25341 /* end confdefs.h.  */
25342 #include <sgtty.h>
25343 Autoconf TIOCGETP
25344 _ACEOF
25345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25346   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25347   ac_cv_prog_gcc_traditional=yes
25348 else
25349   ac_cv_prog_gcc_traditional=no
25350 fi
25351 rm -f conftest*
25352
25353
25354   if test $ac_cv_prog_gcc_traditional = no; then
25355     cat >conftest.$ac_ext <<_ACEOF
25356 /* confdefs.h.  */
25357 _ACEOF
25358 cat confdefs.h >>conftest.$ac_ext
25359 cat >>conftest.$ac_ext <<_ACEOF
25360 /* end confdefs.h.  */
25361 #include <termio.h>
25362 Autoconf TCGETA
25363 _ACEOF
25364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25365   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25366   ac_cv_prog_gcc_traditional=yes
25367 fi
25368 rm -f conftest*
25369
25370   fi
25371 fi
25372 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25373 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25374   if test $ac_cv_prog_gcc_traditional = yes; then
25375     CC="$CC -traditional"
25376   fi
25377 fi
25378
25379
25380 for ac_func in vprintf
25381 do
25382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25386   echo $ECHO_N "(cached) $ECHO_C" >&6
25387 else
25388   cat >conftest.$ac_ext <<_ACEOF
25389 /* confdefs.h.  */
25390 _ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h.  */
25394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25396 #define $ac_func innocuous_$ac_func
25397
25398 /* System header to define __stub macros and hopefully few prototypes,
25399     which can conflict with char $ac_func (); below.
25400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25401     <limits.h> exists even on freestanding compilers.  */
25402
25403 #ifdef __STDC__
25404 # include <limits.h>
25405 #else
25406 # include <assert.h>
25407 #endif
25408
25409 #undef $ac_func
25410
25411 /* Override any GCC internal prototype to avoid an error.
25412    Use char because int might match the return type of a GCC
25413    builtin and then its argument prototype would still apply.  */
25414 #ifdef __cplusplus
25415 extern "C"
25416 #endif
25417 char $ac_func ();
25418 /* The GNU C library defines this for functions which it implements
25419     to always fail with ENOSYS.  Some functions are actually named
25420     something starting with __ and the normal name is an alias.  */
25421 #if defined __stub_$ac_func || defined __stub___$ac_func
25422 choke me
25423 #endif
25424
25425 int
25426 main ()
25427 {
25428 return $ac_func ();
25429   ;
25430   return 0;
25431 }
25432 _ACEOF
25433 rm -f conftest.$ac_objext conftest$ac_exeext
25434 if { (ac_try="$ac_link"
25435 case "(($ac_try" in
25436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437   *) ac_try_echo=$ac_try;;
25438 esac
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440   (eval "$ac_link") 2>conftest.er1
25441   ac_status=$?
25442   grep -v '^ *+' conftest.er1 >conftest.err
25443   rm -f conftest.er1
25444   cat conftest.err >&5
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); } && {
25447          test -z "$ac_c_werror_flag" ||
25448          test ! -s conftest.err
25449        } && test -s conftest$ac_exeext &&
25450        $as_test_x conftest$ac_exeext; then
25451   eval "$as_ac_var=yes"
25452 else
25453   echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.$ac_ext >&5
25455
25456         eval "$as_ac_var=no"
25457 fi
25458
25459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25460       conftest$ac_exeext conftest.$ac_ext
25461 fi
25462 ac_res=`eval echo '${'$as_ac_var'}'`
25463                { echo "$as_me:$LINENO: result: $ac_res" >&5
25464 echo "${ECHO_T}$ac_res" >&6; }
25465 if test `eval echo '${'$as_ac_var'}'` = yes; then
25466   cat >>confdefs.h <<_ACEOF
25467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25468 _ACEOF
25469
25470 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25471 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25472 if test "${ac_cv_func__doprnt+set}" = set; then
25473   echo $ECHO_N "(cached) $ECHO_C" >&6
25474 else
25475   cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25483 #define _doprnt innocuous__doprnt
25484
25485 /* System header to define __stub macros and hopefully few prototypes,
25486     which can conflict with char _doprnt (); below.
25487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25488     <limits.h> exists even on freestanding compilers.  */
25489
25490 #ifdef __STDC__
25491 # include <limits.h>
25492 #else
25493 # include <assert.h>
25494 #endif
25495
25496 #undef _doprnt
25497
25498 /* Override any GCC internal prototype to avoid an error.
25499    Use char because int might match the return type of a GCC
25500    builtin and then its argument prototype would still apply.  */
25501 #ifdef __cplusplus
25502 extern "C"
25503 #endif
25504 char _doprnt ();
25505 /* The GNU C library defines this for functions which it implements
25506     to always fail with ENOSYS.  Some functions are actually named
25507     something starting with __ and the normal name is an alias.  */
25508 #if defined __stub__doprnt || defined __stub____doprnt
25509 choke me
25510 #endif
25511
25512 int
25513 main ()
25514 {
25515 return _doprnt ();
25516   ;
25517   return 0;
25518 }
25519 _ACEOF
25520 rm -f conftest.$ac_objext conftest$ac_exeext
25521 if { (ac_try="$ac_link"
25522 case "(($ac_try" in
25523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524   *) ac_try_echo=$ac_try;;
25525 esac
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527   (eval "$ac_link") 2>conftest.er1
25528   ac_status=$?
25529   grep -v '^ *+' conftest.er1 >conftest.err
25530   rm -f conftest.er1
25531   cat conftest.err >&5
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); } && {
25534          test -z "$ac_c_werror_flag" ||
25535          test ! -s conftest.err
25536        } && test -s conftest$ac_exeext &&
25537        $as_test_x conftest$ac_exeext; then
25538   ac_cv_func__doprnt=yes
25539 else
25540   echo "$as_me: failed program was:" >&5
25541 sed 's/^/| /' conftest.$ac_ext >&5
25542
25543         ac_cv_func__doprnt=no
25544 fi
25545
25546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25547       conftest$ac_exeext conftest.$ac_ext
25548 fi
25549 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25550 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25551 if test $ac_cv_func__doprnt = yes; then
25552
25553 cat >>confdefs.h <<\_ACEOF
25554 #define HAVE_DOPRNT 1
25555 _ACEOF
25556
25557 fi
25558
25559 fi
25560 done
25561
25562
25563 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25564 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25565 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25566   echo $ECHO_N "(cached) $ECHO_C" >&6
25567 else
25568   # Use it with a single arg.
25569 cat >conftest.$ac_ext <<_ACEOF
25570 /* confdefs.h.  */
25571 _ACEOF
25572 cat confdefs.h >>conftest.$ac_ext
25573 cat >>conftest.$ac_ext <<_ACEOF
25574 /* end confdefs.h.  */
25575 $ac_includes_default
25576 int
25577 main ()
25578 {
25579 getpgrp (0);
25580   ;
25581   return 0;
25582 }
25583 _ACEOF
25584 rm -f conftest.$ac_objext
25585 if { (ac_try="$ac_compile"
25586 case "(($ac_try" in
25587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588   *) ac_try_echo=$ac_try;;
25589 esac
25590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25591   (eval "$ac_compile") 2>conftest.er1
25592   ac_status=$?
25593   grep -v '^ *+' conftest.er1 >conftest.err
25594   rm -f conftest.er1
25595   cat conftest.err >&5
25596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597   (exit $ac_status); } && {
25598          test -z "$ac_c_werror_flag" ||
25599          test ! -s conftest.err
25600        } && test -s conftest.$ac_objext; then
25601   ac_cv_func_getpgrp_void=no
25602 else
25603   echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25605
25606         ac_cv_func_getpgrp_void=yes
25607 fi
25608
25609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610
25611 fi
25612 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25613 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25614 if test $ac_cv_func_getpgrp_void = yes; then
25615
25616 cat >>confdefs.h <<\_ACEOF
25617 #define GETPGRP_VOID 1
25618 _ACEOF
25619
25620 fi
25621
25622 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25623 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25624 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25625   echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25627   if test "$cross_compiling" = yes; then
25628   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
25629 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
25630    { (exit 1); exit 1; }; }
25631 else
25632   cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638 $ac_includes_default
25639 int
25640 main ()
25641 {
25642 /* If this system has a BSD-style setpgrp which takes arguments,
25643   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
25644   exit successfully. */
25645   return setpgrp (1,1) != -1;
25646   ;
25647   return 0;
25648 }
25649 _ACEOF
25650 rm -f conftest$ac_exeext
25651 if { (ac_try="$ac_link"
25652 case "(($ac_try" in
25653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25654   *) ac_try_echo=$ac_try;;
25655 esac
25656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25657   (eval "$ac_link") 2>&5
25658   ac_status=$?
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25661   { (case "(($ac_try" in
25662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25663   *) ac_try_echo=$ac_try;;
25664 esac
25665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25666   (eval "$ac_try") 2>&5
25667   ac_status=$?
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); }; }; then
25670   ac_cv_func_setpgrp_void=no
25671 else
25672   echo "$as_me: program exited with status $ac_status" >&5
25673 echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25675
25676 ( exit $ac_status )
25677 ac_cv_func_setpgrp_void=yes
25678 fi
25679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25680 fi
25681
25682
25683 fi
25684 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
25685 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
25686 if test $ac_cv_func_setpgrp_void = yes; then
25687
25688 cat >>confdefs.h <<\_ACEOF
25689 #define SETPGRP_VOID 1
25690 _ACEOF
25691
25692 fi
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
25703 do
25704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25708   echo $ECHO_N "(cached) $ECHO_C" >&6
25709 else
25710   cat >conftest.$ac_ext <<_ACEOF
25711 /* confdefs.h.  */
25712 _ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h.  */
25716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25718 #define $ac_func innocuous_$ac_func
25719
25720 /* System header to define __stub macros and hopefully few prototypes,
25721     which can conflict with char $ac_func (); below.
25722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25723     <limits.h> exists even on freestanding compilers.  */
25724
25725 #ifdef __STDC__
25726 # include <limits.h>
25727 #else
25728 # include <assert.h>
25729 #endif
25730
25731 #undef $ac_func
25732
25733 /* Override any GCC internal prototype to avoid an error.
25734    Use char because int might match the return type of a GCC
25735    builtin and then its argument prototype would still apply.  */
25736 #ifdef __cplusplus
25737 extern "C"
25738 #endif
25739 char $ac_func ();
25740 /* The GNU C library defines this for functions which it implements
25741     to always fail with ENOSYS.  Some functions are actually named
25742     something starting with __ and the normal name is an alias.  */
25743 #if defined __stub_$ac_func || defined __stub___$ac_func
25744 choke me
25745 #endif
25746
25747 int
25748 main ()
25749 {
25750 return $ac_func ();
25751   ;
25752   return 0;
25753 }
25754 _ACEOF
25755 rm -f conftest.$ac_objext conftest$ac_exeext
25756 if { (ac_try="$ac_link"
25757 case "(($ac_try" in
25758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759   *) ac_try_echo=$ac_try;;
25760 esac
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762   (eval "$ac_link") 2>conftest.er1
25763   ac_status=$?
25764   grep -v '^ *+' conftest.er1 >conftest.err
25765   rm -f conftest.er1
25766   cat conftest.err >&5
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); } && {
25769          test -z "$ac_c_werror_flag" ||
25770          test ! -s conftest.err
25771        } && test -s conftest$ac_exeext &&
25772        $as_test_x conftest$ac_exeext; then
25773   eval "$as_ac_var=yes"
25774 else
25775   echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25777
25778         eval "$as_ac_var=no"
25779 fi
25780
25781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25782       conftest$ac_exeext conftest.$ac_ext
25783 fi
25784 ac_res=`eval echo '${'$as_ac_var'}'`
25785                { echo "$as_me:$LINENO: result: $ac_res" >&5
25786 echo "${ECHO_T}$ac_res" >&6; }
25787 if test `eval echo '${'$as_ac_var'}'` = yes; then
25788   cat >>confdefs.h <<_ACEOF
25789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25790 _ACEOF
25791
25792 fi
25793 done
25794
25795
25796
25797
25798
25799
25800
25801 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
25802 do
25803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25807   echo $ECHO_N "(cached) $ECHO_C" >&6
25808 else
25809   cat >conftest.$ac_ext <<_ACEOF
25810 /* confdefs.h.  */
25811 _ACEOF
25812 cat confdefs.h >>conftest.$ac_ext
25813 cat >>conftest.$ac_ext <<_ACEOF
25814 /* end confdefs.h.  */
25815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25817 #define $ac_func innocuous_$ac_func
25818
25819 /* System header to define __stub macros and hopefully few prototypes,
25820     which can conflict with char $ac_func (); below.
25821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25822     <limits.h> exists even on freestanding compilers.  */
25823
25824 #ifdef __STDC__
25825 # include <limits.h>
25826 #else
25827 # include <assert.h>
25828 #endif
25829
25830 #undef $ac_func
25831
25832 /* Override any GCC internal prototype to avoid an error.
25833    Use char because int might match the return type of a GCC
25834    builtin and then its argument prototype would still apply.  */
25835 #ifdef __cplusplus
25836 extern "C"
25837 #endif
25838 char $ac_func ();
25839 /* The GNU C library defines this for functions which it implements
25840     to always fail with ENOSYS.  Some functions are actually named
25841     something starting with __ and the normal name is an alias.  */
25842 #if defined __stub_$ac_func || defined __stub___$ac_func
25843 choke me
25844 #endif
25845
25846 int
25847 main ()
25848 {
25849 return $ac_func ();
25850   ;
25851   return 0;
25852 }
25853 _ACEOF
25854 rm -f conftest.$ac_objext conftest$ac_exeext
25855 if { (ac_try="$ac_link"
25856 case "(($ac_try" in
25857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858   *) ac_try_echo=$ac_try;;
25859 esac
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861   (eval "$ac_link") 2>conftest.er1
25862   ac_status=$?
25863   grep -v '^ *+' conftest.er1 >conftest.err
25864   rm -f conftest.er1
25865   cat conftest.err >&5
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); } && {
25868          test -z "$ac_c_werror_flag" ||
25869          test ! -s conftest.err
25870        } && test -s conftest$ac_exeext &&
25871        $as_test_x conftest$ac_exeext; then
25872   eval "$as_ac_var=yes"
25873 else
25874   echo "$as_me: failed program was:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25876
25877         eval "$as_ac_var=no"
25878 fi
25879
25880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25881       conftest$ac_exeext conftest.$ac_ext
25882 fi
25883 ac_res=`eval echo '${'$as_ac_var'}'`
25884                { echo "$as_me:$LINENO: result: $ac_res" >&5
25885 echo "${ECHO_T}$ac_res" >&6; }
25886 if test `eval echo '${'$as_ac_var'}'` = yes; then
25887   cat >>confdefs.h <<_ACEOF
25888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25889 _ACEOF
25890
25891 fi
25892 done
25893
25894
25895
25896
25897 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
25898 do
25899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25903   echo $ECHO_N "(cached) $ECHO_C" >&6
25904 else
25905   cat >conftest.$ac_ext <<_ACEOF
25906 /* confdefs.h.  */
25907 _ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h.  */
25911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25913 #define $ac_func innocuous_$ac_func
25914
25915 /* System header to define __stub macros and hopefully few prototypes,
25916     which can conflict with char $ac_func (); below.
25917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25918     <limits.h> exists even on freestanding compilers.  */
25919
25920 #ifdef __STDC__
25921 # include <limits.h>
25922 #else
25923 # include <assert.h>
25924 #endif
25925
25926 #undef $ac_func
25927
25928 /* Override any GCC internal prototype to avoid an error.
25929    Use char because int might match the return type of a GCC
25930    builtin and then its argument prototype would still apply.  */
25931 #ifdef __cplusplus
25932 extern "C"
25933 #endif
25934 char $ac_func ();
25935 /* The GNU C library defines this for functions which it implements
25936     to always fail with ENOSYS.  Some functions are actually named
25937     something starting with __ and the normal name is an alias.  */
25938 #if defined __stub_$ac_func || defined __stub___$ac_func
25939 choke me
25940 #endif
25941
25942 int
25943 main ()
25944 {
25945 return $ac_func ();
25946   ;
25947   return 0;
25948 }
25949 _ACEOF
25950 rm -f conftest.$ac_objext conftest$ac_exeext
25951 if { (ac_try="$ac_link"
25952 case "(($ac_try" in
25953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25954   *) ac_try_echo=$ac_try;;
25955 esac
25956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25957   (eval "$ac_link") 2>conftest.er1
25958   ac_status=$?
25959   grep -v '^ *+' conftest.er1 >conftest.err
25960   rm -f conftest.er1
25961   cat conftest.err >&5
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); } && {
25964          test -z "$ac_c_werror_flag" ||
25965          test ! -s conftest.err
25966        } && test -s conftest$ac_exeext &&
25967        $as_test_x conftest$ac_exeext; then
25968   eval "$as_ac_var=yes"
25969 else
25970   echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973         eval "$as_ac_var=no"
25974 fi
25975
25976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25977       conftest$ac_exeext conftest.$ac_ext
25978 fi
25979 ac_res=`eval echo '${'$as_ac_var'}'`
25980                { echo "$as_me:$LINENO: result: $ac_res" >&5
25981 echo "${ECHO_T}$ac_res" >&6; }
25982 if test `eval echo '${'$as_ac_var'}'` = yes; then
25983   cat >>confdefs.h <<_ACEOF
25984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25985 _ACEOF
25986
25987 fi
25988 done
25989
25990
25991 { echo "$as_me:$LINENO: checking for krb5_auth_con_getauthenticator taking double pointer" >&5
25992 echo $ECHO_N "checking for krb5_auth_con_getauthenticator taking double pointer... $ECHO_C" >&6; }
25993 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
25994   echo $ECHO_N "(cached) $ECHO_C" >&6
25995 else
25996
25997 local_save_CPPFLAGS="$CPPFLAGS"
25998 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
25999 cat >conftest.$ac_ext <<_ACEOF
26000 /* confdefs.h.  */
26001 _ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h.  */
26005 #define socklen_t int
26006 #define ssize_t int
26007 #include <krb5.h>
26008 krb5_error_code
26009 krb5_auth_con_getauthenticator(krb5_context context,
26010                            krb5_auth_context auth_context,
26011                            krb5_authenticator *authenticator);
26012 int
26013 main ()
26014 {
26015 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26016   ;
26017   return 0;
26018 }
26019 _ACEOF
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
26022 case "(($ac_try" in
26023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024   *) ac_try_echo=$ac_try;;
26025 esac
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027   (eval "$ac_compile") 2>conftest.er1
26028   ac_status=$?
26029   grep -v '^ *+' conftest.er1 >conftest.err
26030   rm -f conftest.er1
26031   cat conftest.err >&5
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); } && {
26034          test -z "$ac_c_werror_flag" ||
26035          test ! -s conftest.err
26036        } && test -s conftest.$ac_objext; then
26037   ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26038 else
26039   echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26041
26042         ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26043 fi
26044
26045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26046
26047 fi
26048
26049 CPPFLAGS="${local_save_CPPFLAGS}"
26050 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26051         cat >>confdefs.h <<\_ACEOF
26052 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26053 _ACEOF
26054 fi
26055 { echo "$as_me:$LINENO: result: $ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&5
26056 echo "${ECHO_T}$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&6; }
26057
26058 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26059 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26060 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26061   echo $ECHO_N "(cached) $ECHO_C" >&6
26062 else
26063
26064 local_save_CPPFLAGS="$CPPFLAGS"
26065 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26066 cat >conftest.$ac_ext <<_ACEOF
26067 /* confdefs.h.  */
26068 _ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h.  */
26072 #include <krb5.h>
26073 int
26074 main ()
26075 {
26076 krb5_ticket _tkt; _tkt.enc_part2;
26077   ;
26078   return 0;
26079 }
26080 _ACEOF
26081 rm -f conftest.$ac_objext
26082 if { (ac_try="$ac_compile"
26083 case "(($ac_try" in
26084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085   *) ac_try_echo=$ac_try;;
26086 esac
26087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088   (eval "$ac_compile") 2>conftest.er1
26089   ac_status=$?
26090   grep -v '^ *+' conftest.er1 >conftest.err
26091   rm -f conftest.er1
26092   cat conftest.err >&5
26093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); } && {
26095          test -z "$ac_c_werror_flag" ||
26096          test ! -s conftest.err
26097        } && test -s conftest.$ac_objext; then
26098   ac_cv_have_krb5_ticket_enc_part2=yes
26099 else
26100   echo "$as_me: failed program was:" >&5
26101 sed 's/^/| /' conftest.$ac_ext >&5
26102
26103         ac_cv_have_krb5_ticket_enc_part2=no
26104 fi
26105
26106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26107
26108 fi
26109
26110 CPPFLAGS="${local_save_CPPFLAGS}"
26111 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26112         cat >>confdefs.h <<\_ACEOF
26113 #define HAVE_KRB5_TICKET_ENC_PART2 1
26114 _ACEOF
26115 fi
26116 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26117 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26118
26119 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26120 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26121 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26122   echo $ECHO_N "(cached) $ECHO_C" >&6
26123 else
26124
26125 local_save_CPPFLAGS="$CPPFLAGS"
26126 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26127 cat >conftest.$ac_ext <<_ACEOF
26128 /* confdefs.h.  */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h.  */
26133 #include <krb5.h>
26134 int
26135 main ()
26136 {
26137 krb5_creds _creds; _creds.keyblock.enctype;
26138   ;
26139   return 0;
26140 }
26141 _ACEOF
26142 rm -f conftest.$ac_objext
26143 if { (ac_try="$ac_compile"
26144 case "(($ac_try" in
26145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26146   *) ac_try_echo=$ac_try;;
26147 esac
26148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26149   (eval "$ac_compile") 2>conftest.er1
26150   ac_status=$?
26151   grep -v '^ *+' conftest.er1 >conftest.err
26152   rm -f conftest.er1
26153   cat conftest.err >&5
26154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155   (exit $ac_status); } && {
26156          test -z "$ac_c_werror_flag" ||
26157          test ! -s conftest.err
26158        } && test -s conftest.$ac_objext; then
26159   ac_cv_have_krb5_creds_keyblock_enctype=yes
26160 else
26161   echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164         ac_cv_have_krb5_creds_keyblock_enctype=no
26165 fi
26166
26167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26168
26169 fi
26170
26171 CPPFLAGS="${local_save_CPPFLAGS}"
26172 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26173         cat >>confdefs.h <<\_ACEOF
26174 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26175 _ACEOF
26176 fi
26177 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26178 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26179
26180 ac_config_headers="$ac_config_headers h/config.h"
26181
26182 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"
26183
26184 cat >confcache <<\_ACEOF
26185 # This file is a shell script that caches the results of configure
26186 # tests run on this system so they can be shared between configure
26187 # scripts and configure runs, see configure's option --config-cache.
26188 # It is not useful on other systems.  If it contains results you don't
26189 # want to keep, you may remove or edit it.
26190 #
26191 # config.status only pays attention to the cache file if you give it
26192 # the --recheck option to rerun configure.
26193 #
26194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26196 # following values.
26197
26198 _ACEOF
26199
26200 # The following way of writing the cache mishandles newlines in values,
26201 # but we know of no workaround that is simple, portable, and efficient.
26202 # So, we kill variables containing newlines.
26203 # Ultrix sh set writes to stderr and can't be redirected directly,
26204 # and sets the high bit in the cache file unless we assign to the vars.
26205 (
26206   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26207     eval ac_val=\$$ac_var
26208     case $ac_val in #(
26209     *${as_nl}*)
26210       case $ac_var in #(
26211       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26212 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26213       esac
26214       case $ac_var in #(
26215       _ | IFS | as_nl) ;; #(
26216       *) $as_unset $ac_var ;;
26217       esac ;;
26218     esac
26219   done
26220
26221   (set) 2>&1 |
26222     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26223     *${as_nl}ac_space=\ *)
26224       # `set' does not quote correctly, so add quotes (double-quote
26225       # substitution turns \\\\ into \\, and sed turns \\ into \).
26226       sed -n \
26227         "s/'/'\\\\''/g;
26228           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26229       ;; #(
26230     *)
26231       # `set' quotes correctly as required by POSIX, so do not add quotes.
26232       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26233       ;;
26234     esac |
26235     sort
26236 ) |
26237   sed '
26238      /^ac_cv_env_/b end
26239      t clear
26240      :clear
26241      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26242      t end
26243      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26244      :end' >>confcache
26245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26246   if test -w "$cache_file"; then
26247     test "x$cache_file" != "x/dev/null" &&
26248       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26249 echo "$as_me: updating cache $cache_file" >&6;}
26250     cat confcache >$cache_file
26251   else
26252     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26253 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26254   fi
26255 fi
26256 rm -f confcache
26257
26258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26259 # Let make expand exec_prefix.
26260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26261
26262 DEFS=-DHAVE_CONFIG_H
26263
26264 ac_libobjs=
26265 ac_ltlibobjs=
26266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26267   # 1. Remove the extension, and $U if already installed.
26268   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26269   ac_i=`echo "$ac_i" | sed "$ac_script"`
26270   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26271   #    will be set to the directory where LIBOBJS objects are built.
26272   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26273   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26274 done
26275 LIBOBJS=$ac_libobjs
26276
26277 LTLIBOBJS=$ac_ltlibobjs
26278
26279
26280
26281 : ${CONFIG_STATUS=./config.status}
26282 ac_clean_files_save=$ac_clean_files
26283 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26284 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26285 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26286 cat >$CONFIG_STATUS <<_ACEOF
26287 #! $SHELL
26288 # Generated by $as_me.
26289 # Run this file to recreate the current configuration.
26290 # Compiler output produced by configure, useful for debugging
26291 # configure, is in config.log if it exists.
26292
26293 debug=false
26294 ac_cs_recheck=false
26295 ac_cs_silent=false
26296 SHELL=\${CONFIG_SHELL-$SHELL}
26297 _ACEOF
26298
26299 cat >>$CONFIG_STATUS <<\_ACEOF
26300 ## --------------------- ##
26301 ## M4sh Initialization.  ##
26302 ## --------------------- ##
26303
26304 # Be more Bourne compatible
26305 DUALCASE=1; export DUALCASE # for MKS sh
26306 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26307   emulate sh
26308   NULLCMD=:
26309   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26310   # is contrary to our usage.  Disable this feature.
26311   alias -g '${1+"$@"}'='"$@"'
26312   setopt NO_GLOB_SUBST
26313 else
26314   case `(set -o) 2>/dev/null` in
26315   *posix*) set -o posix ;;
26316 esac
26317
26318 fi
26319
26320
26321
26322
26323 # PATH needs CR
26324 # Avoid depending upon Character Ranges.
26325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26328 as_cr_digits='0123456789'
26329 as_cr_alnum=$as_cr_Letters$as_cr_digits
26330
26331 # The user is always right.
26332 if test "${PATH_SEPARATOR+set}" != set; then
26333   echo "#! /bin/sh" >conf$$.sh
26334   echo  "exit 0"   >>conf$$.sh
26335   chmod +x conf$$.sh
26336   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26337     PATH_SEPARATOR=';'
26338   else
26339     PATH_SEPARATOR=:
26340   fi
26341   rm -f conf$$.sh
26342 fi
26343
26344 # Support unset when possible.
26345 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26346   as_unset=unset
26347 else
26348   as_unset=false
26349 fi
26350
26351
26352 # IFS
26353 # We need space, tab and new line, in precisely that order.  Quoting is
26354 # there to prevent editors from complaining about space-tab.
26355 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26356 # splitting by setting IFS to empty value.)
26357 as_nl='
26358 '
26359 IFS=" ""        $as_nl"
26360
26361 # Find who we are.  Look in the path if we contain no directory separator.
26362 case $0 in
26363   *[\\/]* ) as_myself=$0 ;;
26364   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26365 for as_dir in $PATH
26366 do
26367   IFS=$as_save_IFS
26368   test -z "$as_dir" && as_dir=.
26369   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26370 done
26371 IFS=$as_save_IFS
26372
26373      ;;
26374 esac
26375 # We did not find ourselves, most probably we were run as `sh COMMAND'
26376 # in which case we are not to be found in the path.
26377 if test "x$as_myself" = x; then
26378   as_myself=$0
26379 fi
26380 if test ! -f "$as_myself"; then
26381   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26382   { (exit 1); exit 1; }
26383 fi
26384
26385 # Work around bugs in pre-3.0 UWIN ksh.
26386 for as_var in ENV MAIL MAILPATH
26387 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26388 done
26389 PS1='$ '
26390 PS2='> '
26391 PS4='+ '
26392
26393 # NLS nuisances.
26394 for as_var in \
26395   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26396   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26397   LC_TELEPHONE LC_TIME
26398 do
26399   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26400     eval $as_var=C; export $as_var
26401   else
26402     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26403   fi
26404 done
26405
26406 # Required to use basename.
26407 if expr a : '\(a\)' >/dev/null 2>&1 &&
26408    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26409   as_expr=expr
26410 else
26411   as_expr=false
26412 fi
26413
26414 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26415   as_basename=basename
26416 else
26417   as_basename=false
26418 fi
26419
26420
26421 # Name of the executable.
26422 as_me=`$as_basename -- "$0" ||
26423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26424          X"$0" : 'X\(//\)$' \| \
26425          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26426 echo X/"$0" |
26427     sed '/^.*\/\([^/][^/]*\)\/*$/{
26428             s//\1/
26429             q
26430           }
26431           /^X\/\(\/\/\)$/{
26432             s//\1/
26433             q
26434           }
26435           /^X\/\(\/\).*/{
26436             s//\1/
26437             q
26438           }
26439           s/.*/./; q'`
26440
26441 # CDPATH.
26442 $as_unset CDPATH
26443
26444
26445
26446   as_lineno_1=$LINENO
26447   as_lineno_2=$LINENO
26448   test "x$as_lineno_1" != "x$as_lineno_2" &&
26449   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26450
26451   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26452   # uniformly replaced by the line number.  The first 'sed' inserts a
26453   # line-number line after each line using $LINENO; the second 'sed'
26454   # does the real work.  The second script uses 'N' to pair each
26455   # line-number line with the line containing $LINENO, and appends
26456   # trailing '-' during substitution so that $LINENO is not a special
26457   # case at line end.
26458   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26459   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26460   # E. McMahon (1931-1989) for sed's syntax.  :-)
26461   sed -n '
26462     p
26463     /[$]LINENO/=
26464   ' <$as_myself |
26465     sed '
26466       s/[$]LINENO.*/&-/
26467       t lineno
26468       b
26469       :lineno
26470       N
26471       :loop
26472       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26473       t loop
26474       s/-\n.*//
26475     ' >$as_me.lineno &&
26476   chmod +x "$as_me.lineno" ||
26477     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26478    { (exit 1); exit 1; }; }
26479
26480   # Don't try to exec as it changes $[0], causing all sort of problems
26481   # (the dirname of $[0] is not the place where we might find the
26482   # original and so on.  Autoconf is especially sensitive to this).
26483   . "./$as_me.lineno"
26484   # Exit status is that of the last command.
26485   exit
26486 }
26487
26488
26489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26490   as_dirname=dirname
26491 else
26492   as_dirname=false
26493 fi
26494
26495 ECHO_C= ECHO_N= ECHO_T=
26496 case `echo -n x` in
26497 -n*)
26498   case `echo 'x\c'` in
26499   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26500   *)   ECHO_C='\c';;
26501   esac;;
26502 *)
26503   ECHO_N='-n';;
26504 esac
26505
26506 if expr a : '\(a\)' >/dev/null 2>&1 &&
26507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26508   as_expr=expr
26509 else
26510   as_expr=false
26511 fi
26512
26513 rm -f conf$$ conf$$.exe conf$$.file
26514 if test -d conf$$.dir; then
26515   rm -f conf$$.dir/conf$$.file
26516 else
26517   rm -f conf$$.dir
26518   mkdir conf$$.dir
26519 fi
26520 echo >conf$$.file
26521 if ln -s conf$$.file conf$$ 2>/dev/null; then
26522   as_ln_s='ln -s'
26523   # ... but there are two gotchas:
26524   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26525   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26526   # In both cases, we have to default to `cp -p'.
26527   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26528     as_ln_s='cp -p'
26529 elif ln conf$$.file conf$$ 2>/dev/null; then
26530   as_ln_s=ln
26531 else
26532   as_ln_s='cp -p'
26533 fi
26534 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26535 rmdir conf$$.dir 2>/dev/null
26536
26537 if mkdir -p . 2>/dev/null; then
26538   as_mkdir_p=:
26539 else
26540   test -d ./-p && rmdir ./-p
26541   as_mkdir_p=false
26542 fi
26543
26544 if test -x / >/dev/null 2>&1; then
26545   as_test_x='test -x'
26546 else
26547   if ls -dL / >/dev/null 2>&1; then
26548     as_ls_L_option=L
26549   else
26550     as_ls_L_option=
26551   fi
26552   as_test_x='
26553     eval sh -c '\''
26554       if test -d "$1"; then
26555         test -d "$1/.";
26556       else
26557         case $1 in
26558         -*)set "./$1";;
26559         esac;
26560         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26561         ???[sx]*):;;*)false;;esac;fi
26562     '\'' sh
26563   '
26564 fi
26565 as_executable_p=$as_test_x
26566
26567 # Sed expression to map a string onto a valid CPP name.
26568 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26569
26570 # Sed expression to map a string onto a valid variable name.
26571 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26572
26573
26574 exec 6>&1
26575
26576 # Save the log message, to keep $[0] and so on meaningful, and to
26577 # report actual input values of CONFIG_FILES etc. instead of their
26578 # values after options handling.
26579 ac_log="
26580 This file was extended by $as_me, which was
26581 generated by GNU Autoconf 2.61.  Invocation command line was
26582
26583   CONFIG_FILES    = $CONFIG_FILES
26584   CONFIG_HEADERS  = $CONFIG_HEADERS
26585   CONFIG_LINKS    = $CONFIG_LINKS
26586   CONFIG_COMMANDS = $CONFIG_COMMANDS
26587   $ $0 $@
26588
26589 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26590 "
26591
26592 _ACEOF
26593
26594 cat >>$CONFIG_STATUS <<_ACEOF
26595 # Files that config.status was made for.
26596 config_files="$ac_config_files"
26597 config_headers="$ac_config_headers"
26598
26599 _ACEOF
26600
26601 cat >>$CONFIG_STATUS <<\_ACEOF
26602 ac_cs_usage="\
26603 \`$as_me' instantiates files from templates according to the
26604 current configuration.
26605
26606 Usage: $0 [OPTIONS] [FILE]...
26607
26608   -h, --help       print this help, then exit
26609   -V, --version    print version number and configuration settings, then exit
26610   -q, --quiet      do not print progress messages
26611   -d, --debug      don't remove temporary files
26612       --recheck    update $as_me by reconfiguring in the same conditions
26613   --file=FILE[:TEMPLATE]
26614                    instantiate the configuration file FILE
26615   --header=FILE[:TEMPLATE]
26616                    instantiate the configuration header FILE
26617
26618 Configuration files:
26619 $config_files
26620
26621 Configuration headers:
26622 $config_headers
26623
26624 Report bugs to <bug-autoconf@gnu.org>."
26625
26626 _ACEOF
26627 cat >>$CONFIG_STATUS <<_ACEOF
26628 ac_cs_version="\\
26629 config.status
26630 configured by $0, generated by GNU Autoconf 2.61,
26631   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26632
26633 Copyright (C) 2006 Free Software Foundation, Inc.
26634 This config.status script is free software; the Free Software Foundation
26635 gives unlimited permission to copy, distribute and modify it."
26636
26637 ac_pwd='$ac_pwd'
26638 srcdir='$srcdir'
26639 INSTALL='$INSTALL'
26640 _ACEOF
26641
26642 cat >>$CONFIG_STATUS <<\_ACEOF
26643 # If no file are specified by the user, then we need to provide default
26644 # value.  By we need to know if files were specified by the user.
26645 ac_need_defaults=:
26646 while test $# != 0
26647 do
26648   case $1 in
26649   --*=*)
26650     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26651     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26652     ac_shift=:
26653     ;;
26654   *)
26655     ac_option=$1
26656     ac_optarg=$2
26657     ac_shift=shift
26658     ;;
26659   esac
26660
26661   case $ac_option in
26662   # Handling of the options.
26663   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26664     ac_cs_recheck=: ;;
26665   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26666     echo "$ac_cs_version"; exit ;;
26667   --debug | --debu | --deb | --de | --d | -d )
26668     debug=: ;;
26669   --file | --fil | --fi | --f )
26670     $ac_shift
26671     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26672     ac_need_defaults=false;;
26673   --header | --heade | --head | --hea )
26674     $ac_shift
26675     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26676     ac_need_defaults=false;;
26677   --he | --h)
26678     # Conflict between --help and --header
26679     { echo "$as_me: error: ambiguous option: $1
26680 Try \`$0 --help' for more information." >&2
26681    { (exit 1); exit 1; }; };;
26682   --help | --hel | -h )
26683     echo "$ac_cs_usage"; exit ;;
26684   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26685   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26686     ac_cs_silent=: ;;
26687
26688   # This is an error.
26689   -*) { echo "$as_me: error: unrecognized option: $1
26690 Try \`$0 --help' for more information." >&2
26691    { (exit 1); exit 1; }; } ;;
26692
26693   *) ac_config_targets="$ac_config_targets $1"
26694      ac_need_defaults=false ;;
26695
26696   esac
26697   shift
26698 done
26699
26700 ac_configure_extra_args=
26701
26702 if $ac_cs_silent; then
26703   exec 6>/dev/null
26704   ac_configure_extra_args="$ac_configure_extra_args --silent"
26705 fi
26706
26707 _ACEOF
26708 cat >>$CONFIG_STATUS <<_ACEOF
26709 if \$ac_cs_recheck; then
26710   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26711   CONFIG_SHELL=$SHELL
26712   export CONFIG_SHELL
26713   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26714 fi
26715
26716 _ACEOF
26717 cat >>$CONFIG_STATUS <<\_ACEOF
26718 exec 5>>config.log
26719 {
26720   echo
26721   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26722 ## Running $as_me. ##
26723 _ASBOX
26724   echo "$ac_log"
26725 } >&5
26726
26727 _ACEOF
26728 cat >>$CONFIG_STATUS <<_ACEOF
26729 _ACEOF
26730
26731 cat >>$CONFIG_STATUS <<\_ACEOF
26732
26733 # Handling of arguments.
26734 for ac_config_target in $ac_config_targets
26735 do
26736   case $ac_config_target in
26737     "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
26738     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26739     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
26740     "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
26741     "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
26742     "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
26743     "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
26744     "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
26745     "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
26746     "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
26747     "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
26748     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26749     "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
26750     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
26751     "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
26752     "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
26753
26754   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26755 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26756    { (exit 1); exit 1; }; };;
26757   esac
26758 done
26759
26760
26761 # If the user did not use the arguments to specify the items to instantiate,
26762 # then the envvar interface is used.  Set only those that are not.
26763 # We use the long form for the default assignment because of an extremely
26764 # bizarre bug on SunOS 4.1.3.
26765 if $ac_need_defaults; then
26766   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26767   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26768 fi
26769
26770 # Have a temporary directory for convenience.  Make it in the build tree
26771 # simply because there is no reason against having it here, and in addition,
26772 # creating and moving files from /tmp can sometimes cause problems.
26773 # Hook for its removal unless debugging.
26774 # Note that there is a small window in which the directory will not be cleaned:
26775 # after its creation but before its name has been assigned to `$tmp'.
26776 $debug ||
26777 {
26778   tmp=
26779   trap 'exit_status=$?
26780   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26781 ' 0
26782   trap '{ (exit 1); exit 1; }' 1 2 13 15
26783 }
26784 # Create a (secure) tmp directory for tmp files.
26785
26786 {
26787   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26788   test -n "$tmp" && test -d "$tmp"
26789 }  ||
26790 {
26791   tmp=./conf$$-$RANDOM
26792   (umask 077 && mkdir "$tmp")
26793 } ||
26794 {
26795    echo "$me: cannot create a temporary directory in ." >&2
26796    { (exit 1); exit 1; }
26797 }
26798
26799 #
26800 # Set up the sed scripts for CONFIG_FILES section.
26801 #
26802
26803 # No need to generate the scripts if there are no CONFIG_FILES.
26804 # This happens for instance when ./config.status config.h
26805 if test -n "$CONFIG_FILES"; then
26806
26807 _ACEOF
26808
26809
26810
26811 ac_delim='%!_!# '
26812 for ac_last_try in false false false false false :; do
26813   cat >conf$$subs.sed <<_ACEOF
26814 SHELL!$SHELL$ac_delim
26815 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26816 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26817 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26818 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26819 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26820 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26821 exec_prefix!$exec_prefix$ac_delim
26822 prefix!$prefix$ac_delim
26823 program_transform_name!$program_transform_name$ac_delim
26824 bindir!$bindir$ac_delim
26825 sbindir!$sbindir$ac_delim
26826 libexecdir!$libexecdir$ac_delim
26827 datarootdir!$datarootdir$ac_delim
26828 datadir!$datadir$ac_delim
26829 sysconfdir!$sysconfdir$ac_delim
26830 sharedstatedir!$sharedstatedir$ac_delim
26831 localstatedir!$localstatedir$ac_delim
26832 includedir!$includedir$ac_delim
26833 oldincludedir!$oldincludedir$ac_delim
26834 docdir!$docdir$ac_delim
26835 infodir!$infodir$ac_delim
26836 htmldir!$htmldir$ac_delim
26837 dvidir!$dvidir$ac_delim
26838 pdfdir!$pdfdir$ac_delim
26839 psdir!$psdir$ac_delim
26840 libdir!$libdir$ac_delim
26841 localedir!$localedir$ac_delim
26842 mandir!$mandir$ac_delim
26843 DEFS!$DEFS$ac_delim
26844 ECHO_C!$ECHO_C$ac_delim
26845 ECHO_N!$ECHO_N$ac_delim
26846 ECHO_T!$ECHO_T$ac_delim
26847 LIBS!$LIBS$ac_delim
26848 build_alias!$build_alias$ac_delim
26849 host_alias!$host_alias$ac_delim
26850 target_alias!$target_alias$ac_delim
26851 lbindir!$lbindir$ac_delim
26852 lsbindir!$lsbindir$ac_delim
26853 build!$build$ac_delim
26854 build_cpu!$build_cpu$ac_delim
26855 build_vendor!$build_vendor$ac_delim
26856 build_os!$build_os$ac_delim
26857 host!$host$ac_delim
26858 host_cpu!$host_cpu$ac_delim
26859 host_vendor!$host_vendor$ac_delim
26860 host_os!$host_os$ac_delim
26861 target!$target$ac_delim
26862 target_cpu!$target_cpu$ac_delim
26863 target_vendor!$target_vendor$ac_delim
26864 target_os!$target_os$ac_delim
26865 CC!$CC$ac_delim
26866 CFLAGS!$CFLAGS$ac_delim
26867 LDFLAGS!$LDFLAGS$ac_delim
26868 CPPFLAGS!$CPPFLAGS$ac_delim
26869 ac_ct_CC!$ac_ct_CC$ac_delim
26870 EXEEXT!$EXEEXT$ac_delim
26871 OBJEXT!$OBJEXT$ac_delim
26872 YACC!$YACC$ac_delim
26873 YFLAGS!$YFLAGS$ac_delim
26874 LEX!$LEX$ac_delim
26875 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
26876 LEXLIB!$LEXLIB$ac_delim
26877 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26878 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26879 INSTALL_DATA!$INSTALL_DATA$ac_delim
26880 RANLIB!$RANLIB$ac_delim
26881 GREP!$GREP$ac_delim
26882 EGREP!$EGREP$ac_delim
26883 LN_S!$LN_S$ac_delim
26884 ECHO!$ECHO$ac_delim
26885 AR!$AR$ac_delim
26886 STRIP!$STRIP$ac_delim
26887 CPP!$CPP$ac_delim
26888 CXX!$CXX$ac_delim
26889 CXXFLAGS!$CXXFLAGS$ac_delim
26890 ac_ct_CXX!$ac_ct_CXX$ac_delim
26891 CXXCPP!$CXXCPP$ac_delim
26892 F77!$F77$ac_delim
26893 FFLAGS!$FFLAGS$ac_delim
26894 ac_ct_F77!$ac_ct_F77$ac_delim
26895 LIBTOOL!$LIBTOOL$ac_delim
26896 XMKMF!$XMKMF$ac_delim
26897 X_CFLAGS!$X_CFLAGS$ac_delim
26898 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
26899 X_LIBS!$X_LIBS$ac_delim
26900 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
26901 XCLIENTS!$XCLIENTS$ac_delim
26902 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
26903 TLIB!$TLIB$ac_delim
26904 RLIB!$RLIB$ac_delim
26905 SLIB!$SLIB$ac_delim
26906 KRB4_LIBS!$KRB4_LIBS$ac_delim
26907 KRB5_LIBS!$KRB5_LIBS$ac_delim
26908 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
26909 REGEX_LIBS!$REGEX_LIBS$ac_delim
26910 ARES_LIBS!$ARES_LIBS$ac_delim
26911 _ACEOF
26912
26913   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26914     break
26915   elif $ac_last_try; then
26916     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26917 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26918    { (exit 1); exit 1; }; }
26919   else
26920     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26921   fi
26922 done
26923
26924 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26925 if test -n "$ac_eof"; then
26926   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26927   ac_eof=`expr $ac_eof + 1`
26928 fi
26929
26930 cat >>$CONFIG_STATUS <<_ACEOF
26931 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26933 _ACEOF
26934 sed '
26935 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26936 s/^/s,@/; s/!/@,|#_!!_#|/
26937 :n
26938 t n
26939 s/'"$ac_delim"'$/,g/; t
26940 s/$/\\/; p
26941 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26942 ' >>$CONFIG_STATUS <conf$$subs.sed
26943 rm -f conf$$subs.sed
26944 cat >>$CONFIG_STATUS <<_ACEOF
26945 CEOF$ac_eof
26946 _ACEOF
26947
26948
26949 ac_delim='%!_!# '
26950 for ac_last_try in false false false false false :; do
26951   cat >conf$$subs.sed <<_ACEOF
26952 LIBOBJS!$LIBOBJS$ac_delim
26953 LTLIBOBJS!$LTLIBOBJS$ac_delim
26954 _ACEOF
26955
26956   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
26957     break
26958   elif $ac_last_try; then
26959     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26960 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26961    { (exit 1); exit 1; }; }
26962   else
26963     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26964   fi
26965 done
26966
26967 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26968 if test -n "$ac_eof"; then
26969   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26970   ac_eof=`expr $ac_eof + 1`
26971 fi
26972
26973 cat >>$CONFIG_STATUS <<_ACEOF
26974 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26976 _ACEOF
26977 sed '
26978 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26979 s/^/s,@/; s/!/@,|#_!!_#|/
26980 :n
26981 t n
26982 s/'"$ac_delim"'$/,g/; t
26983 s/$/\\/; p
26984 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26985 ' >>$CONFIG_STATUS <conf$$subs.sed
26986 rm -f conf$$subs.sed
26987 cat >>$CONFIG_STATUS <<_ACEOF
26988 :end
26989 s/|#_!!_#|//g
26990 CEOF$ac_eof
26991 _ACEOF
26992
26993
26994 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26995 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26996 # trailing colons and then remove the whole line if VPATH becomes empty
26997 # (actually we leave an empty line to preserve line numbers).
26998 if test "x$srcdir" = x.; then
26999   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27000 s/:*\$(srcdir):*/:/
27001 s/:*\${srcdir}:*/:/
27002 s/:*@srcdir@:*/:/
27003 s/^\([^=]*=[     ]*\):*/\1/
27004 s/:*$//
27005 s/^[^=]*=[       ]*$//
27006 }'
27007 fi
27008
27009 cat >>$CONFIG_STATUS <<\_ACEOF
27010 fi # test -n "$CONFIG_FILES"
27011
27012
27013 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
27014 do
27015   case $ac_tag in
27016   :[FHLC]) ac_mode=$ac_tag; continue;;
27017   esac
27018   case $ac_mode$ac_tag in
27019   :[FHL]*:*);;
27020   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27021 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27022    { (exit 1); exit 1; }; };;
27023   :[FH]-) ac_tag=-:-;;
27024   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27025   esac
27026   ac_save_IFS=$IFS
27027   IFS=:
27028   set x $ac_tag
27029   IFS=$ac_save_IFS
27030   shift
27031   ac_file=$1
27032   shift
27033
27034   case $ac_mode in
27035   :L) ac_source=$1;;
27036   :[FH])
27037     ac_file_inputs=
27038     for ac_f
27039     do
27040       case $ac_f in
27041       -) ac_f="$tmp/stdin";;
27042       *) # Look for the file first in the build tree, then in the source tree
27043          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27044          # because $ac_f cannot contain `:'.
27045          test -f "$ac_f" ||
27046            case $ac_f in
27047            [\\/$]*) false;;
27048            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27049            esac ||
27050            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27051 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27052    { (exit 1); exit 1; }; };;
27053       esac
27054       ac_file_inputs="$ac_file_inputs $ac_f"
27055     done
27056
27057     # Let's still pretend it is `configure' which instantiates (i.e., don't
27058     # use $as_me), people would be surprised to read:
27059     #    /* config.h.  Generated by config.status.  */
27060     configure_input="Generated from "`IFS=:
27061           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27062     if test x"$ac_file" != x-; then
27063       configure_input="$ac_file.  $configure_input"
27064       { echo "$as_me:$LINENO: creating $ac_file" >&5
27065 echo "$as_me: creating $ac_file" >&6;}
27066     fi
27067
27068     case $ac_tag in
27069     *:-:* | *:-) cat >"$tmp/stdin";;
27070     esac
27071     ;;
27072   esac
27073
27074   ac_dir=`$as_dirname -- "$ac_file" ||
27075 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27076          X"$ac_file" : 'X\(//\)[^/]' \| \
27077          X"$ac_file" : 'X\(//\)$' \| \
27078          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27079 echo X"$ac_file" |
27080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27081             s//\1/
27082             q
27083           }
27084           /^X\(\/\/\)[^/].*/{
27085             s//\1/
27086             q
27087           }
27088           /^X\(\/\/\)$/{
27089             s//\1/
27090             q
27091           }
27092           /^X\(\/\).*/{
27093             s//\1/
27094             q
27095           }
27096           s/.*/./; q'`
27097   { as_dir="$ac_dir"
27098   case $as_dir in #(
27099   -*) as_dir=./$as_dir;;
27100   esac
27101   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27102     as_dirs=
27103     while :; do
27104       case $as_dir in #(
27105       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27106       *) as_qdir=$as_dir;;
27107       esac
27108       as_dirs="'$as_qdir' $as_dirs"
27109       as_dir=`$as_dirname -- "$as_dir" ||
27110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27111          X"$as_dir" : 'X\(//\)[^/]' \| \
27112          X"$as_dir" : 'X\(//\)$' \| \
27113          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27114 echo X"$as_dir" |
27115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27116             s//\1/
27117             q
27118           }
27119           /^X\(\/\/\)[^/].*/{
27120             s//\1/
27121             q
27122           }
27123           /^X\(\/\/\)$/{
27124             s//\1/
27125             q
27126           }
27127           /^X\(\/\).*/{
27128             s//\1/
27129             q
27130           }
27131           s/.*/./; q'`
27132       test -d "$as_dir" && break
27133     done
27134     test -z "$as_dirs" || eval "mkdir $as_dirs"
27135   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27136 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27137    { (exit 1); exit 1; }; }; }
27138   ac_builddir=.
27139
27140 case "$ac_dir" in
27141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27142 *)
27143   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27144   # A ".." for each directory in $ac_dir_suffix.
27145   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27146   case $ac_top_builddir_sub in
27147   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27148   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27149   esac ;;
27150 esac
27151 ac_abs_top_builddir=$ac_pwd
27152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27153 # for backward compatibility:
27154 ac_top_builddir=$ac_top_build_prefix
27155
27156 case $srcdir in
27157   .)  # We are building in place.
27158     ac_srcdir=.
27159     ac_top_srcdir=$ac_top_builddir_sub
27160     ac_abs_top_srcdir=$ac_pwd ;;
27161   [\\/]* | ?:[\\/]* )  # Absolute name.
27162     ac_srcdir=$srcdir$ac_dir_suffix;
27163     ac_top_srcdir=$srcdir
27164     ac_abs_top_srcdir=$srcdir ;;
27165   *) # Relative name.
27166     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27167     ac_top_srcdir=$ac_top_build_prefix$srcdir
27168     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27169 esac
27170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27171
27172
27173   case $ac_mode in
27174   :F)
27175   #
27176   # CONFIG_FILE
27177   #
27178
27179   case $INSTALL in
27180   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27181   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27182   esac
27183 _ACEOF
27184
27185 cat >>$CONFIG_STATUS <<\_ACEOF
27186 # If the template does not know about datarootdir, expand it.
27187 # FIXME: This hack should be removed a few years after 2.60.
27188 ac_datarootdir_hack=; ac_datarootdir_seen=
27189
27190 case `sed -n '/datarootdir/ {
27191   p
27192   q
27193 }
27194 /@datadir@/p
27195 /@docdir@/p
27196 /@infodir@/p
27197 /@localedir@/p
27198 /@mandir@/p
27199 ' $ac_file_inputs` in
27200 *datarootdir*) ac_datarootdir_seen=yes;;
27201 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27202   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27203 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27204 _ACEOF
27205 cat >>$CONFIG_STATUS <<_ACEOF
27206   ac_datarootdir_hack='
27207   s&@datadir@&$datadir&g
27208   s&@docdir@&$docdir&g
27209   s&@infodir@&$infodir&g
27210   s&@localedir@&$localedir&g
27211   s&@mandir@&$mandir&g
27212     s&\\\${datarootdir}&$datarootdir&g' ;;
27213 esac
27214 _ACEOF
27215
27216 # Neutralize VPATH when `$srcdir' = `.'.
27217 # Shell code in configure.ac might set extrasub.
27218 # FIXME: do we really want to maintain this feature?
27219 cat >>$CONFIG_STATUS <<_ACEOF
27220   sed "$ac_vpsub
27221 $extrasub
27222 _ACEOF
27223 cat >>$CONFIG_STATUS <<\_ACEOF
27224 :t
27225 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27226 s&@configure_input@&$configure_input&;t t
27227 s&@top_builddir@&$ac_top_builddir_sub&;t t
27228 s&@srcdir@&$ac_srcdir&;t t
27229 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27230 s&@top_srcdir@&$ac_top_srcdir&;t t
27231 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27232 s&@builddir@&$ac_builddir&;t t
27233 s&@abs_builddir@&$ac_abs_builddir&;t t
27234 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27235 s&@INSTALL@&$ac_INSTALL&;t t
27236 $ac_datarootdir_hack
27237 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27238
27239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27240   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27241   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27242   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27243 which seems to be undefined.  Please make sure it is defined." >&5
27244 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27245 which seems to be undefined.  Please make sure it is defined." >&2;}
27246
27247   rm -f "$tmp/stdin"
27248   case $ac_file in
27249   -) cat "$tmp/out"; rm -f "$tmp/out";;
27250   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27251   esac
27252  ;;
27253   :H)
27254   #
27255   # CONFIG_HEADER
27256   #
27257 _ACEOF
27258
27259 # Transform confdefs.h into a sed script `conftest.defines', that
27260 # substitutes the proper values into config.h.in to produce config.h.
27261 rm -f conftest.defines conftest.tail
27262 # First, append a space to every undef/define line, to ease matching.
27263 echo 's/$/ /' >conftest.defines
27264 # Then, protect against being on the right side of a sed subst, or in
27265 # an unquoted here document, in config.status.  If some macros were
27266 # called several times there might be several #defines for the same
27267 # symbol, which is useless.  But do not sort them, since the last
27268 # AC_DEFINE must be honored.
27269 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27270 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27271 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27272 # PARAMS is the parameter list in the macro definition--in most cases, it's
27273 # just an empty string.
27274 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27275 ac_dB='\\)[      (].*,\\1define\\2'
27276 ac_dC=' '
27277 ac_dD=' ,'
27278
27279 uniq confdefs.h |
27280   sed -n '
27281         t rset
27282         :rset
27283         s/^[     ]*#[    ]*define[       ][      ]*//
27284         t ok
27285         d
27286         :ok
27287         s/[\\&,]/\\&/g
27288         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27289         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27290   ' >>conftest.defines
27291
27292 # Remove the space that was appended to ease matching.
27293 # Then replace #undef with comments.  This is necessary, for
27294 # example, in the case of _POSIX_SOURCE, which is predefined and required
27295 # on some systems where configure will not decide to define it.
27296 # (The regexp can be short, since the line contains either #define or #undef.)
27297 echo 's/ $//
27298 s,^[     #]*u.*,/* & */,' >>conftest.defines
27299
27300 # Break up conftest.defines:
27301 ac_max_sed_lines=50
27302
27303 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27304 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27305 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27306 # et cetera.
27307 ac_in='$ac_file_inputs'
27308 ac_out='"$tmp/out1"'
27309 ac_nxt='"$tmp/out2"'
27310
27311 while :
27312 do
27313   # Write a here document:
27314     cat >>$CONFIG_STATUS <<_ACEOF
27315     # First, check the format of the line:
27316     cat >"\$tmp/defines.sed" <<\\CEOF
27317 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27318 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27319 b
27320 :def
27321 _ACEOF
27322   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27323   echo 'CEOF
27324     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27325   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27326   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27327   grep . conftest.tail >/dev/null || break
27328   rm -f conftest.defines
27329   mv conftest.tail conftest.defines
27330 done
27331 rm -f conftest.defines conftest.tail
27332
27333 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27334 cat >>$CONFIG_STATUS <<\_ACEOF
27335   if test x"$ac_file" != x-; then
27336     echo "/* $configure_input  */" >"$tmp/config.h"
27337     cat "$ac_result" >>"$tmp/config.h"
27338     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27339       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27340 echo "$as_me: $ac_file is unchanged" >&6;}
27341     else
27342       rm -f $ac_file
27343       mv "$tmp/config.h" $ac_file
27344     fi
27345   else
27346     echo "/* $configure_input  */"
27347     cat "$ac_result"
27348   fi
27349   rm -f "$tmp/out12"
27350  ;;
27351
27352
27353   esac
27354
27355 done # for ac_tag
27356
27357
27358 { (exit 0); exit 0; }
27359 _ACEOF
27360 chmod +x $CONFIG_STATUS
27361 ac_clean_files=$ac_clean_files_save
27362
27363
27364 # configure is writing to config.log, and then calls config.status.
27365 # config.status does its own redirection, appending to config.log.
27366 # Unfortunately, on DOS this fails, as config.log is still kept open
27367 # by configure, so config.status won't be able to write to it; its
27368 # output is simply discarded.  So we exec the FD to /dev/null,
27369 # effectively closing config.log, so it can be properly (re)opened and
27370 # appended to by config.status.  When coming back to configure, we
27371 # need to make the FD available again.
27372 if test "$no_create" != yes; then
27373   ac_cs_success=:
27374   ac_config_status_args=
27375   test "$silent" = yes &&
27376     ac_config_status_args="$ac_config_status_args --quiet"
27377   exec 5>/dev/null
27378   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27379   exec 5>>config.log
27380   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27381   # would make configure fail if this is the last instruction.
27382   $ac_cs_success || { (exit 1); exit 1; }
27383 fi
27384