]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/configure
9ec9b6c589fe100dbc3101c4e0c5e38474d563ea
[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 for ac_header in fcntl.h paths.h termios.h sgtty.h unistd.h malloc.h
21047 do
21048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21050   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21053   echo $ECHO_N "(cached) $ECHO_C" >&6
21054 fi
21055 ac_res=`eval echo '${'$as_ac_Header'}'`
21056                { echo "$as_me:$LINENO: result: $ac_res" >&5
21057 echo "${ECHO_T}$ac_res" >&6; }
21058 else
21059   # Is the header compilable?
21060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21062 cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h.  */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h.  */
21068 $ac_includes_default
21069 #include <$ac_header>
21070 _ACEOF
21071 rm -f conftest.$ac_objext
21072 if { (ac_try="$ac_compile"
21073 case "(($ac_try" in
21074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075   *) ac_try_echo=$ac_try;;
21076 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078   (eval "$ac_compile") 2>conftest.er1
21079   ac_status=$?
21080   grep -v '^ *+' conftest.er1 >conftest.err
21081   rm -f conftest.er1
21082   cat conftest.err >&5
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); } && {
21085          test -z "$ac_c_werror_flag" ||
21086          test ! -s conftest.err
21087        } && test -s conftest.$ac_objext; then
21088   ac_header_compiler=yes
21089 else
21090   echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093         ac_header_compiler=no
21094 fi
21095
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21098 echo "${ECHO_T}$ac_header_compiler" >&6; }
21099
21100 # Is the header present?
21101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h.  */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h.  */
21109 #include <$ac_header>
21110 _ACEOF
21111 if { (ac_try="$ac_cpp conftest.$ac_ext"
21112 case "(($ac_try" in
21113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114   *) ac_try_echo=$ac_try;;
21115 esac
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21118   ac_status=$?
21119   grep -v '^ *+' conftest.er1 >conftest.err
21120   rm -f conftest.er1
21121   cat conftest.err >&5
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); } >/dev/null && {
21124          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21125          test ! -s conftest.err
21126        }; then
21127   ac_header_preproc=yes
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132   ac_header_preproc=no
21133 fi
21134
21135 rm -f conftest.err conftest.$ac_ext
21136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21137 echo "${ECHO_T}$ac_header_preproc" >&6; }
21138
21139 # So?  What about this header?
21140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21141   yes:no: )
21142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21146     ac_header_preproc=yes
21147     ;;
21148   no:yes:* )
21149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21161
21162     ;;
21163 esac
21164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21167   echo $ECHO_N "(cached) $ECHO_C" >&6
21168 else
21169   eval "$as_ac_Header=\$ac_header_preproc"
21170 fi
21171 ac_res=`eval echo '${'$as_ac_Header'}'`
21172                { echo "$as_me:$LINENO: result: $ac_res" >&5
21173 echo "${ECHO_T}$ac_res" >&6; }
21174
21175 fi
21176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21177   cat >>confdefs.h <<_ACEOF
21178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21179 _ACEOF
21180
21181 fi
21182
21183 done
21184
21185
21186
21187
21188
21189
21190 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21191 do
21192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21194   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21197   echo $ECHO_N "(cached) $ECHO_C" >&6
21198 fi
21199 ac_res=`eval echo '${'$as_ac_Header'}'`
21200                { echo "$as_me:$LINENO: result: $ac_res" >&5
21201 echo "${ECHO_T}$ac_res" >&6; }
21202 else
21203   # Is the header compilable?
21204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21206 cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h.  */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h.  */
21212 $ac_includes_default
21213 #include <$ac_header>
21214 _ACEOF
21215 rm -f conftest.$ac_objext
21216 if { (ac_try="$ac_compile"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_compile") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest.$ac_objext; then
21232   ac_header_compiler=yes
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         ac_header_compiler=no
21238 fi
21239
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21242 echo "${ECHO_T}$ac_header_compiler" >&6; }
21243
21244 # Is the header present?
21245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21247 cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 #include <$ac_header>
21254 _ACEOF
21255 if { (ac_try="$ac_cpp conftest.$ac_ext"
21256 case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21262   ac_status=$?
21263   grep -v '^ *+' conftest.er1 >conftest.err
21264   rm -f conftest.er1
21265   cat conftest.err >&5
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); } >/dev/null && {
21268          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21269          test ! -s conftest.err
21270        }; then
21271   ac_header_preproc=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276   ac_header_preproc=no
21277 fi
21278
21279 rm -f conftest.err conftest.$ac_ext
21280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21281 echo "${ECHO_T}$ac_header_preproc" >&6; }
21282
21283 # So?  What about this header?
21284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21285   yes:no: )
21286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21290     ac_header_preproc=yes
21291     ;;
21292   no:yes:* )
21293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21305
21306     ;;
21307 esac
21308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21311   echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313   eval "$as_ac_Header=\$ac_header_preproc"
21314 fi
21315 ac_res=`eval echo '${'$as_ac_Header'}'`
21316                { echo "$as_me:$LINENO: result: $ac_res" >&5
21317 echo "${ECHO_T}$ac_res" >&6; }
21318
21319 fi
21320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21321   cat >>confdefs.h <<_ACEOF
21322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21323 _ACEOF
21324
21325 fi
21326
21327 done
21328
21329
21330
21331
21332
21333
21334 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21335 do
21336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21338   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21341   echo $ECHO_N "(cached) $ECHO_C" >&6
21342 fi
21343 ac_res=`eval echo '${'$as_ac_Header'}'`
21344                { echo "$as_me:$LINENO: result: $ac_res" >&5
21345 echo "${ECHO_T}$ac_res" >&6; }
21346 else
21347   # Is the header compilable?
21348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21350 cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356 $ac_includes_default
21357 #include <$ac_header>
21358 _ACEOF
21359 rm -f conftest.$ac_objext
21360 if { (ac_try="$ac_compile"
21361 case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_compile") 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } && {
21373          test -z "$ac_c_werror_flag" ||
21374          test ! -s conftest.err
21375        } && test -s conftest.$ac_objext; then
21376   ac_header_compiler=yes
21377 else
21378   echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381         ac_header_compiler=no
21382 fi
21383
21384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21386 echo "${ECHO_T}$ac_header_compiler" >&6; }
21387
21388 # Is the header present?
21389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21391 cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h.  */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h.  */
21397 #include <$ac_header>
21398 _ACEOF
21399 if { (ac_try="$ac_cpp conftest.$ac_ext"
21400 case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } >/dev/null && {
21412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21413          test ! -s conftest.err
21414        }; then
21415   ac_header_preproc=yes
21416 else
21417   echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21419
21420   ac_header_preproc=no
21421 fi
21422
21423 rm -f conftest.err conftest.$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21425 echo "${ECHO_T}$ac_header_preproc" >&6; }
21426
21427 # So?  What about this header?
21428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21429   yes:no: )
21430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21434     ac_header_preproc=yes
21435     ;;
21436   no:yes:* )
21437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21449
21450     ;;
21451 esac
21452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21455   echo $ECHO_N "(cached) $ECHO_C" >&6
21456 else
21457   eval "$as_ac_Header=\$ac_header_preproc"
21458 fi
21459 ac_res=`eval echo '${'$as_ac_Header'}'`
21460                { echo "$as_me:$LINENO: result: $ac_res" >&5
21461 echo "${ECHO_T}$ac_res" >&6; }
21462
21463 fi
21464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21465   cat >>confdefs.h <<_ACEOF
21466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21467 _ACEOF
21468
21469 fi
21470
21471 done
21472
21473
21474 if test "$no_x" != "yes"; then
21475         ZWGC_LIBX11=-lX11
21476 fi
21477
21478
21479
21480 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21481 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21482 if test "${ac_cv_type_signal+set}" = set; then
21483   echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485   cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491 #include <sys/types.h>
21492 #include <signal.h>
21493
21494 int
21495 main ()
21496 {
21497 return *(signal (0, 0)) (0) == 1;
21498   ;
21499   return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext
21503 if { (ac_try="$ac_compile"
21504 case "(($ac_try" in
21505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506   *) ac_try_echo=$ac_try;;
21507 esac
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509   (eval "$ac_compile") 2>conftest.er1
21510   ac_status=$?
21511   grep -v '^ *+' conftest.er1 >conftest.err
21512   rm -f conftest.er1
21513   cat conftest.err >&5
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); } && {
21516          test -z "$ac_c_werror_flag" ||
21517          test ! -s conftest.err
21518        } && test -s conftest.$ac_objext; then
21519   ac_cv_type_signal=int
21520 else
21521   echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524         ac_cv_type_signal=void
21525 fi
21526
21527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21528 fi
21529 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21530 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21531
21532 cat >>confdefs.h <<_ACEOF
21533 #define RETSIGTYPE $ac_cv_type_signal
21534 _ACEOF
21535
21536
21537 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21538 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21539 if test "${ac_cv_type_uid_t+set}" = set; then
21540   echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542   cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h.  */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h.  */
21548 #include <sys/types.h>
21549
21550 _ACEOF
21551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21552   $EGREP "uid_t" >/dev/null 2>&1; then
21553   ac_cv_type_uid_t=yes
21554 else
21555   ac_cv_type_uid_t=no
21556 fi
21557 rm -f conftest*
21558
21559 fi
21560 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21561 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21562 if test $ac_cv_type_uid_t = no; then
21563
21564 cat >>confdefs.h <<\_ACEOF
21565 #define uid_t int
21566 _ACEOF
21567
21568
21569 cat >>confdefs.h <<\_ACEOF
21570 #define gid_t int
21571 _ACEOF
21572
21573 fi
21574
21575 { echo "$as_me:$LINENO: checking for short" >&5
21576 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21577 if test "${ac_cv_type_short+set}" = set; then
21578   echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580   cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h.  */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h.  */
21586 $ac_includes_default
21587 typedef short ac__type_new_;
21588 int
21589 main ()
21590 {
21591 if ((ac__type_new_ *) 0)
21592   return 0;
21593 if (sizeof (ac__type_new_))
21594   return 0;
21595   ;
21596   return 0;
21597 }
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (ac_try="$ac_compile"
21601 case "(($ac_try" in
21602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603   *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606   (eval "$ac_compile") 2>conftest.er1
21607   ac_status=$?
21608   grep -v '^ *+' conftest.er1 >conftest.err
21609   rm -f conftest.er1
21610   cat conftest.err >&5
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); } && {
21613          test -z "$ac_c_werror_flag" ||
21614          test ! -s conftest.err
21615        } && test -s conftest.$ac_objext; then
21616   ac_cv_type_short=yes
21617 else
21618   echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621         ac_cv_type_short=no
21622 fi
21623
21624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625 fi
21626 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21627 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21628
21629 # The cast to long int works around a bug in the HP C Compiler
21630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21632 # This bug is HP SR number 8606223364.
21633 { echo "$as_me:$LINENO: checking size of short" >&5
21634 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21635 if test "${ac_cv_sizeof_short+set}" = set; then
21636   echo $ECHO_N "(cached) $ECHO_C" >&6
21637 else
21638   if test "$cross_compiling" = yes; then
21639   # Depending upon the size, compute the lo and hi bounds.
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h.  */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h.  */
21646 $ac_includes_default
21647    typedef short ac__type_sizeof_;
21648 int
21649 main ()
21650 {
21651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21652 test_array [0] = 0
21653
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_compile") 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && {
21672          test -z "$ac_c_werror_flag" ||
21673          test ! -s conftest.err
21674        } && test -s conftest.$ac_objext; then
21675   ac_lo=0 ac_mid=0
21676   while :; do
21677     cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h.  */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h.  */
21683 $ac_includes_default
21684    typedef short ac__type_sizeof_;
21685 int
21686 main ()
21687 {
21688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21689 test_array [0] = 0
21690
21691   ;
21692   return 0;
21693 }
21694 _ACEOF
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702   (eval "$ac_compile") 2>conftest.er1
21703   ac_status=$?
21704   grep -v '^ *+' conftest.er1 >conftest.err
21705   rm -f conftest.er1
21706   cat conftest.err >&5
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); } && {
21709          test -z "$ac_c_werror_flag" ||
21710          test ! -s conftest.err
21711        } && test -s conftest.$ac_objext; then
21712   ac_hi=$ac_mid; break
21713 else
21714   echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717         ac_lo=`expr $ac_mid + 1`
21718                         if test $ac_lo -le $ac_mid; then
21719                           ac_lo= ac_hi=
21720                           break
21721                         fi
21722                         ac_mid=`expr 2 '*' $ac_mid + 1`
21723 fi
21724
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726   done
21727 else
21728   echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731         cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737 $ac_includes_default
21738    typedef short ac__type_sizeof_;
21739 int
21740 main ()
21741 {
21742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21743 test_array [0] = 0
21744
21745   ;
21746   return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753   *) ac_try_echo=$ac_try;;
21754 esac
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756   (eval "$ac_compile") 2>conftest.er1
21757   ac_status=$?
21758   grep -v '^ *+' conftest.er1 >conftest.err
21759   rm -f conftest.er1
21760   cat conftest.err >&5
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); } && {
21763          test -z "$ac_c_werror_flag" ||
21764          test ! -s conftest.err
21765        } && test -s conftest.$ac_objext; then
21766   ac_hi=-1 ac_mid=-1
21767   while :; do
21768     cat >conftest.$ac_ext <<_ACEOF
21769 /* confdefs.h.  */
21770 _ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h.  */
21774 $ac_includes_default
21775    typedef short ac__type_sizeof_;
21776 int
21777 main ()
21778 {
21779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21780 test_array [0] = 0
21781
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790   *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793   (eval "$ac_compile") 2>conftest.er1
21794   ac_status=$?
21795   grep -v '^ *+' conftest.er1 >conftest.err
21796   rm -f conftest.er1
21797   cat conftest.err >&5
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } && {
21800          test -z "$ac_c_werror_flag" ||
21801          test ! -s conftest.err
21802        } && test -s conftest.$ac_objext; then
21803   ac_lo=$ac_mid; break
21804 else
21805   echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808         ac_hi=`expr '(' $ac_mid ')' - 1`
21809                         if test $ac_mid -le $ac_hi; then
21810                           ac_lo= ac_hi=
21811                           break
21812                         fi
21813                         ac_mid=`expr 2 '*' $ac_mid`
21814 fi
21815
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817   done
21818 else
21819   echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822         ac_lo= ac_hi=
21823 fi
21824
21825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21826 fi
21827
21828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829 # Binary search between lo and hi bounds.
21830 while test "x$ac_lo" != "x$ac_hi"; do
21831   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21832   cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h.  */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h.  */
21838 $ac_includes_default
21839    typedef short ac__type_sizeof_;
21840 int
21841 main ()
21842 {
21843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21844 test_array [0] = 0
21845
21846   ;
21847   return 0;
21848 }
21849 _ACEOF
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857   (eval "$ac_compile") 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } && {
21864          test -z "$ac_c_werror_flag" ||
21865          test ! -s conftest.err
21866        } && test -s conftest.$ac_objext; then
21867   ac_hi=$ac_mid
21868 else
21869   echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21871
21872         ac_lo=`expr '(' $ac_mid ')' + 1`
21873 fi
21874
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21876 done
21877 case $ac_lo in
21878 ?*) ac_cv_sizeof_short=$ac_lo;;
21879 '') if test "$ac_cv_type_short" = yes; then
21880      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21881 See \`config.log' for more details." >&5
21882 echo "$as_me: error: cannot compute sizeof (short)
21883 See \`config.log' for more details." >&2;}
21884    { (exit 77); exit 77; }; }
21885    else
21886      ac_cv_sizeof_short=0
21887    fi ;;
21888 esac
21889 else
21890   cat >conftest.$ac_ext <<_ACEOF
21891 /* confdefs.h.  */
21892 _ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h.  */
21896 $ac_includes_default
21897    typedef short ac__type_sizeof_;
21898 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21899 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21900 #include <stdio.h>
21901 #include <stdlib.h>
21902 int
21903 main ()
21904 {
21905
21906   FILE *f = fopen ("conftest.val", "w");
21907   if (! f)
21908     return 1;
21909   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21910     {
21911       long int i = longval ();
21912       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21913         return 1;
21914       fprintf (f, "%ld\n", i);
21915     }
21916   else
21917     {
21918       unsigned long int i = ulongval ();
21919       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21920         return 1;
21921       fprintf (f, "%lu\n", i);
21922     }
21923   return ferror (f) || fclose (f) != 0;
21924
21925   ;
21926   return 0;
21927 }
21928 _ACEOF
21929 rm -f conftest$ac_exeext
21930 if { (ac_try="$ac_link"
21931 case "(($ac_try" in
21932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933   *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936   (eval "$ac_link") 2>&5
21937   ac_status=$?
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21940   { (case "(($ac_try" in
21941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942   *) ac_try_echo=$ac_try;;
21943 esac
21944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945   (eval "$ac_try") 2>&5
21946   ac_status=$?
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); }; }; then
21949   ac_cv_sizeof_short=`cat conftest.val`
21950 else
21951   echo "$as_me: program exited with status $ac_status" >&5
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21954
21955 ( exit $ac_status )
21956 if test "$ac_cv_type_short" = yes; then
21957      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21958 See \`config.log' for more details." >&5
21959 echo "$as_me: error: cannot compute sizeof (short)
21960 See \`config.log' for more details." >&2;}
21961    { (exit 77); exit 77; }; }
21962    else
21963      ac_cv_sizeof_short=0
21964    fi
21965 fi
21966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21967 fi
21968 rm -f conftest.val
21969 fi
21970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21971 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21972
21973
21974
21975 cat >>confdefs.h <<_ACEOF
21976 #define SIZEOF_SHORT $ac_cv_sizeof_short
21977 _ACEOF
21978
21979
21980 { echo "$as_me:$LINENO: checking for int" >&5
21981 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21982 if test "${ac_cv_type_int+set}" = set; then
21983   echo $ECHO_N "(cached) $ECHO_C" >&6
21984 else
21985   cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h.  */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h.  */
21991 $ac_includes_default
21992 typedef int ac__type_new_;
21993 int
21994 main ()
21995 {
21996 if ((ac__type_new_ *) 0)
21997   return 0;
21998 if (sizeof (ac__type_new_))
21999   return 0;
22000   ;
22001   return 0;
22002 }
22003 _ACEOF
22004 rm -f conftest.$ac_objext
22005 if { (ac_try="$ac_compile"
22006 case "(($ac_try" in
22007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008   *) ac_try_echo=$ac_try;;
22009 esac
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011   (eval "$ac_compile") 2>conftest.er1
22012   ac_status=$?
22013   grep -v '^ *+' conftest.er1 >conftest.err
22014   rm -f conftest.er1
22015   cat conftest.err >&5
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); } && {
22018          test -z "$ac_c_werror_flag" ||
22019          test ! -s conftest.err
22020        } && test -s conftest.$ac_objext; then
22021   ac_cv_type_int=yes
22022 else
22023   echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026         ac_cv_type_int=no
22027 fi
22028
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 fi
22031 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22032 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22033
22034 # The cast to long int works around a bug in the HP C Compiler
22035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22037 # This bug is HP SR number 8606223364.
22038 { echo "$as_me:$LINENO: checking size of int" >&5
22039 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22040 if test "${ac_cv_sizeof_int+set}" = set; then
22041   echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043   if test "$cross_compiling" = yes; then
22044   # Depending upon the size, compute the lo and hi bounds.
22045 cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h.  */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h.  */
22051 $ac_includes_default
22052    typedef int ac__type_sizeof_;
22053 int
22054 main ()
22055 {
22056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22057 test_array [0] = 0
22058
22059   ;
22060   return 0;
22061 }
22062 _ACEOF
22063 rm -f conftest.$ac_objext
22064 if { (ac_try="$ac_compile"
22065 case "(($ac_try" in
22066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067   *) ac_try_echo=$ac_try;;
22068 esac
22069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070   (eval "$ac_compile") 2>conftest.er1
22071   ac_status=$?
22072   grep -v '^ *+' conftest.er1 >conftest.err
22073   rm -f conftest.er1
22074   cat conftest.err >&5
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); } && {
22077          test -z "$ac_c_werror_flag" ||
22078          test ! -s conftest.err
22079        } && test -s conftest.$ac_objext; then
22080   ac_lo=0 ac_mid=0
22081   while :; do
22082     cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088 $ac_includes_default
22089    typedef int ac__type_sizeof_;
22090 int
22091 main ()
22092 {
22093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22094 test_array [0] = 0
22095
22096   ;
22097   return 0;
22098 }
22099 _ACEOF
22100 rm -f conftest.$ac_objext
22101 if { (ac_try="$ac_compile"
22102 case "(($ac_try" in
22103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104   *) ac_try_echo=$ac_try;;
22105 esac
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107   (eval "$ac_compile") 2>conftest.er1
22108   ac_status=$?
22109   grep -v '^ *+' conftest.er1 >conftest.err
22110   rm -f conftest.er1
22111   cat conftest.err >&5
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); } && {
22114          test -z "$ac_c_werror_flag" ||
22115          test ! -s conftest.err
22116        } && test -s conftest.$ac_objext; then
22117   ac_hi=$ac_mid; break
22118 else
22119   echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22121
22122         ac_lo=`expr $ac_mid + 1`
22123                         if test $ac_lo -le $ac_mid; then
22124                           ac_lo= ac_hi=
22125                           break
22126                         fi
22127                         ac_mid=`expr 2 '*' $ac_mid + 1`
22128 fi
22129
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131   done
22132 else
22133   echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136         cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h.  */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h.  */
22142 $ac_includes_default
22143    typedef int ac__type_sizeof_;
22144 int
22145 main ()
22146 {
22147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22148 test_array [0] = 0
22149
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 rm -f conftest.$ac_objext
22155 if { (ac_try="$ac_compile"
22156 case "(($ac_try" in
22157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158   *) ac_try_echo=$ac_try;;
22159 esac
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161   (eval "$ac_compile") 2>conftest.er1
22162   ac_status=$?
22163   grep -v '^ *+' conftest.er1 >conftest.err
22164   rm -f conftest.er1
22165   cat conftest.err >&5
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } && {
22168          test -z "$ac_c_werror_flag" ||
22169          test ! -s conftest.err
22170        } && test -s conftest.$ac_objext; then
22171   ac_hi=-1 ac_mid=-1
22172   while :; do
22173     cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 $ac_includes_default
22180    typedef int ac__type_sizeof_;
22181 int
22182 main ()
22183 {
22184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22185 test_array [0] = 0
22186
22187   ;
22188   return 0;
22189 }
22190 _ACEOF
22191 rm -f conftest.$ac_objext
22192 if { (ac_try="$ac_compile"
22193 case "(($ac_try" in
22194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195   *) ac_try_echo=$ac_try;;
22196 esac
22197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22198   (eval "$ac_compile") 2>conftest.er1
22199   ac_status=$?
22200   grep -v '^ *+' conftest.er1 >conftest.err
22201   rm -f conftest.er1
22202   cat conftest.err >&5
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); } && {
22205          test -z "$ac_c_werror_flag" ||
22206          test ! -s conftest.err
22207        } && test -s conftest.$ac_objext; then
22208   ac_lo=$ac_mid; break
22209 else
22210   echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213         ac_hi=`expr '(' $ac_mid ')' - 1`
22214                         if test $ac_mid -le $ac_hi; then
22215                           ac_lo= ac_hi=
22216                           break
22217                         fi
22218                         ac_mid=`expr 2 '*' $ac_mid`
22219 fi
22220
22221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22222   done
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227         ac_lo= ac_hi=
22228 fi
22229
22230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231 fi
22232
22233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22234 # Binary search between lo and hi bounds.
22235 while test "x$ac_lo" != "x$ac_hi"; do
22236   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22237   cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h.  */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h.  */
22243 $ac_includes_default
22244    typedef int ac__type_sizeof_;
22245 int
22246 main ()
22247 {
22248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22249 test_array [0] = 0
22250
22251   ;
22252   return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259   *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262   (eval "$ac_compile") 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } && {
22269          test -z "$ac_c_werror_flag" ||
22270          test ! -s conftest.err
22271        } && test -s conftest.$ac_objext; then
22272   ac_hi=$ac_mid
22273 else
22274   echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277         ac_lo=`expr '(' $ac_mid ')' + 1`
22278 fi
22279
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281 done
22282 case $ac_lo in
22283 ?*) ac_cv_sizeof_int=$ac_lo;;
22284 '') if test "$ac_cv_type_int" = yes; then
22285      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22286 See \`config.log' for more details." >&5
22287 echo "$as_me: error: cannot compute sizeof (int)
22288 See \`config.log' for more details." >&2;}
22289    { (exit 77); exit 77; }; }
22290    else
22291      ac_cv_sizeof_int=0
22292    fi ;;
22293 esac
22294 else
22295   cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h.  */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h.  */
22301 $ac_includes_default
22302    typedef int ac__type_sizeof_;
22303 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22304 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22305 #include <stdio.h>
22306 #include <stdlib.h>
22307 int
22308 main ()
22309 {
22310
22311   FILE *f = fopen ("conftest.val", "w");
22312   if (! f)
22313     return 1;
22314   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22315     {
22316       long int i = longval ();
22317       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22318         return 1;
22319       fprintf (f, "%ld\n", i);
22320     }
22321   else
22322     {
22323       unsigned long int i = ulongval ();
22324       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22325         return 1;
22326       fprintf (f, "%lu\n", i);
22327     }
22328   return ferror (f) || fclose (f) != 0;
22329
22330   ;
22331   return 0;
22332 }
22333 _ACEOF
22334 rm -f conftest$ac_exeext
22335 if { (ac_try="$ac_link"
22336 case "(($ac_try" in
22337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338   *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341   (eval "$ac_link") 2>&5
22342   ac_status=$?
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22345   { (case "(($ac_try" in
22346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347   *) ac_try_echo=$ac_try;;
22348 esac
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350   (eval "$ac_try") 2>&5
22351   ac_status=$?
22352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353   (exit $ac_status); }; }; then
22354   ac_cv_sizeof_int=`cat conftest.val`
22355 else
22356   echo "$as_me: program exited with status $ac_status" >&5
22357 echo "$as_me: failed program was:" >&5
22358 sed 's/^/| /' conftest.$ac_ext >&5
22359
22360 ( exit $ac_status )
22361 if test "$ac_cv_type_int" = yes; then
22362      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22363 See \`config.log' for more details." >&5
22364 echo "$as_me: error: cannot compute sizeof (int)
22365 See \`config.log' for more details." >&2;}
22366    { (exit 77); exit 77; }; }
22367    else
22368      ac_cv_sizeof_int=0
22369    fi
22370 fi
22371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22372 fi
22373 rm -f conftest.val
22374 fi
22375 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22376 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22377
22378
22379
22380 cat >>confdefs.h <<_ACEOF
22381 #define SIZEOF_INT $ac_cv_sizeof_int
22382 _ACEOF
22383
22384
22385 { echo "$as_me:$LINENO: checking for long" >&5
22386 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22387 if test "${ac_cv_type_long+set}" = set; then
22388   echo $ECHO_N "(cached) $ECHO_C" >&6
22389 else
22390   cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h.  */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h.  */
22396 $ac_includes_default
22397 typedef long ac__type_new_;
22398 int
22399 main ()
22400 {
22401 if ((ac__type_new_ *) 0)
22402   return 0;
22403 if (sizeof (ac__type_new_))
22404   return 0;
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (ac_try="$ac_compile"
22411 case "(($ac_try" in
22412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413   *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416   (eval "$ac_compile") 2>conftest.er1
22417   ac_status=$?
22418   grep -v '^ *+' conftest.er1 >conftest.err
22419   rm -f conftest.er1
22420   cat conftest.err >&5
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); } && {
22423          test -z "$ac_c_werror_flag" ||
22424          test ! -s conftest.err
22425        } && test -s conftest.$ac_objext; then
22426   ac_cv_type_long=yes
22427 else
22428   echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22430
22431         ac_cv_type_long=no
22432 fi
22433
22434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22435 fi
22436 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22437 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22438
22439 # The cast to long int works around a bug in the HP C Compiler
22440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22442 # This bug is HP SR number 8606223364.
22443 { echo "$as_me:$LINENO: checking size of long" >&5
22444 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22445 if test "${ac_cv_sizeof_long+set}" = set; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448   if test "$cross_compiling" = yes; then
22449   # Depending upon the size, compute the lo and hi bounds.
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h.  */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h.  */
22456 $ac_includes_default
22457    typedef long ac__type_sizeof_;
22458 int
22459 main ()
22460 {
22461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22462 test_array [0] = 0
22463
22464   ;
22465   return 0;
22466 }
22467 _ACEOF
22468 rm -f conftest.$ac_objext
22469 if { (ac_try="$ac_compile"
22470 case "(($ac_try" in
22471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472   *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475   (eval "$ac_compile") 2>conftest.er1
22476   ac_status=$?
22477   grep -v '^ *+' conftest.er1 >conftest.err
22478   rm -f conftest.er1
22479   cat conftest.err >&5
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); } && {
22482          test -z "$ac_c_werror_flag" ||
22483          test ! -s conftest.err
22484        } && test -s conftest.$ac_objext; then
22485   ac_lo=0 ac_mid=0
22486   while :; do
22487     cat >conftest.$ac_ext <<_ACEOF
22488 /* confdefs.h.  */
22489 _ACEOF
22490 cat confdefs.h >>conftest.$ac_ext
22491 cat >>conftest.$ac_ext <<_ACEOF
22492 /* end confdefs.h.  */
22493 $ac_includes_default
22494    typedef long ac__type_sizeof_;
22495 int
22496 main ()
22497 {
22498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22499 test_array [0] = 0
22500
22501   ;
22502   return 0;
22503 }
22504 _ACEOF
22505 rm -f conftest.$ac_objext
22506 if { (ac_try="$ac_compile"
22507 case "(($ac_try" in
22508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509   *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512   (eval "$ac_compile") 2>conftest.er1
22513   ac_status=$?
22514   grep -v '^ *+' conftest.er1 >conftest.err
22515   rm -f conftest.er1
22516   cat conftest.err >&5
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); } && {
22519          test -z "$ac_c_werror_flag" ||
22520          test ! -s conftest.err
22521        } && test -s conftest.$ac_objext; then
22522   ac_hi=$ac_mid; break
22523 else
22524   echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22526
22527         ac_lo=`expr $ac_mid + 1`
22528                         if test $ac_lo -le $ac_mid; then
22529                           ac_lo= ac_hi=
22530                           break
22531                         fi
22532                         ac_mid=`expr 2 '*' $ac_mid + 1`
22533 fi
22534
22535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536   done
22537 else
22538   echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541         cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547 $ac_includes_default
22548    typedef long ac__type_sizeof_;
22549 int
22550 main ()
22551 {
22552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22553 test_array [0] = 0
22554
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext
22560 if { (ac_try="$ac_compile"
22561 case "(($ac_try" in
22562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563   *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566   (eval "$ac_compile") 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } && {
22573          test -z "$ac_c_werror_flag" ||
22574          test ! -s conftest.err
22575        } && test -s conftest.$ac_objext; then
22576   ac_hi=-1 ac_mid=-1
22577   while :; do
22578     cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h.  */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h.  */
22584 $ac_includes_default
22585    typedef long ac__type_sizeof_;
22586 int
22587 main ()
22588 {
22589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22590 test_array [0] = 0
22591
22592   ;
22593   return 0;
22594 }
22595 _ACEOF
22596 rm -f conftest.$ac_objext
22597 if { (ac_try="$ac_compile"
22598 case "(($ac_try" in
22599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600   *) ac_try_echo=$ac_try;;
22601 esac
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603   (eval "$ac_compile") 2>conftest.er1
22604   ac_status=$?
22605   grep -v '^ *+' conftest.er1 >conftest.err
22606   rm -f conftest.er1
22607   cat conftest.err >&5
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); } && {
22610          test -z "$ac_c_werror_flag" ||
22611          test ! -s conftest.err
22612        } && test -s conftest.$ac_objext; then
22613   ac_lo=$ac_mid; break
22614 else
22615   echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22617
22618         ac_hi=`expr '(' $ac_mid ')' - 1`
22619                         if test $ac_mid -le $ac_hi; then
22620                           ac_lo= ac_hi=
22621                           break
22622                         fi
22623                         ac_mid=`expr 2 '*' $ac_mid`
22624 fi
22625
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627   done
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632         ac_lo= ac_hi=
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
22637
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639 # Binary search between lo and hi bounds.
22640 while test "x$ac_lo" != "x$ac_hi"; do
22641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22642   cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h.  */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h.  */
22648 $ac_includes_default
22649    typedef long ac__type_sizeof_;
22650 int
22651 main ()
22652 {
22653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22654 test_array [0] = 0
22655
22656   ;
22657   return 0;
22658 }
22659 _ACEOF
22660 rm -f conftest.$ac_objext
22661 if { (ac_try="$ac_compile"
22662 case "(($ac_try" in
22663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664   *) ac_try_echo=$ac_try;;
22665 esac
22666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22667   (eval "$ac_compile") 2>conftest.er1
22668   ac_status=$?
22669   grep -v '^ *+' conftest.er1 >conftest.err
22670   rm -f conftest.er1
22671   cat conftest.err >&5
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); } && {
22674          test -z "$ac_c_werror_flag" ||
22675          test ! -s conftest.err
22676        } && test -s conftest.$ac_objext; then
22677   ac_hi=$ac_mid
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682         ac_lo=`expr '(' $ac_mid ')' + 1`
22683 fi
22684
22685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686 done
22687 case $ac_lo in
22688 ?*) ac_cv_sizeof_long=$ac_lo;;
22689 '') if test "$ac_cv_type_long" = yes; then
22690      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22691 See \`config.log' for more details." >&5
22692 echo "$as_me: error: cannot compute sizeof (long)
22693 See \`config.log' for more details." >&2;}
22694    { (exit 77); exit 77; }; }
22695    else
22696      ac_cv_sizeof_long=0
22697    fi ;;
22698 esac
22699 else
22700   cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h.  */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h.  */
22706 $ac_includes_default
22707    typedef long ac__type_sizeof_;
22708 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22709 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22710 #include <stdio.h>
22711 #include <stdlib.h>
22712 int
22713 main ()
22714 {
22715
22716   FILE *f = fopen ("conftest.val", "w");
22717   if (! f)
22718     return 1;
22719   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22720     {
22721       long int i = longval ();
22722       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22723         return 1;
22724       fprintf (f, "%ld\n", i);
22725     }
22726   else
22727     {
22728       unsigned long int i = ulongval ();
22729       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22730         return 1;
22731       fprintf (f, "%lu\n", i);
22732     }
22733   return ferror (f) || fclose (f) != 0;
22734
22735   ;
22736   return 0;
22737 }
22738 _ACEOF
22739 rm -f conftest$ac_exeext
22740 if { (ac_try="$ac_link"
22741 case "(($ac_try" in
22742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743   *) ac_try_echo=$ac_try;;
22744 esac
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746   (eval "$ac_link") 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22750   { (case "(($ac_try" in
22751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752   *) ac_try_echo=$ac_try;;
22753 esac
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755   (eval "$ac_try") 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; }; then
22759   ac_cv_sizeof_long=`cat conftest.val`
22760 else
22761   echo "$as_me: program exited with status $ac_status" >&5
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22764
22765 ( exit $ac_status )
22766 if test "$ac_cv_type_long" = yes; then
22767      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22768 See \`config.log' for more details." >&5
22769 echo "$as_me: error: cannot compute sizeof (long)
22770 See \`config.log' for more details." >&2;}
22771    { (exit 77); exit 77; }; }
22772    else
22773      ac_cv_sizeof_long=0
22774    fi
22775 fi
22776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22777 fi
22778 rm -f conftest.val
22779 fi
22780 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22781 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22782
22783
22784
22785 cat >>confdefs.h <<_ACEOF
22786 #define SIZEOF_LONG $ac_cv_sizeof_long
22787 _ACEOF
22788
22789
22790 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22791 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22792 if test "$ac_cv_sizeof_long" = 4; then
22793         int32=long
22794 elif test "$ac_cv_sizeof_int" = 4; then
22795         int32=int
22796 elif test "$ac_cv_sizeof_short" = 4; then
22797         int32=short
22798 else
22799         { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22800 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22801         int32=long
22802 fi
22803 cat >>confdefs.h <<_ACEOF
22804 #define ZEPHYR_INT32 ${int32}
22805 _ACEOF
22806
22807 { echo "$as_me:$LINENO: result: ${int32}" >&5
22808 echo "${ECHO_T}${int32}" >&6; }
22809
22810
22811 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
22812 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
22813 if test "${ac_cv_lib_w_wslen+set}" = set; then
22814   echo $ECHO_N "(cached) $ECHO_C" >&6
22815 else
22816   ac_check_lib_save_LIBS=$LIBS
22817 LIBS="-lw  $LIBS"
22818 cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h.  */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h.  */
22824
22825 /* Override any GCC internal prototype to avoid an error.
22826    Use char because int might match the return type of a GCC
22827    builtin and then its argument prototype would still apply.  */
22828 #ifdef __cplusplus
22829 extern "C"
22830 #endif
22831 char wslen ();
22832 int
22833 main ()
22834 {
22835 return wslen ();
22836   ;
22837   return 0;
22838 }
22839 _ACEOF
22840 rm -f conftest.$ac_objext conftest$ac_exeext
22841 if { (ac_try="$ac_link"
22842 case "(($ac_try" in
22843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844   *) ac_try_echo=$ac_try;;
22845 esac
22846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847   (eval "$ac_link") 2>conftest.er1
22848   ac_status=$?
22849   grep -v '^ *+' conftest.er1 >conftest.err
22850   rm -f conftest.er1
22851   cat conftest.err >&5
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } && {
22854          test -z "$ac_c_werror_flag" ||
22855          test ! -s conftest.err
22856        } && test -s conftest$ac_exeext &&
22857        $as_test_x conftest$ac_exeext; then
22858   ac_cv_lib_w_wslen=yes
22859 else
22860   echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863         ac_cv_lib_w_wslen=no
22864 fi
22865
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867       conftest$ac_exeext conftest.$ac_ext
22868 LIBS=$ac_check_lib_save_LIBS
22869 fi
22870 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
22871 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
22872 if test $ac_cv_lib_w_wslen = yes; then
22873   cat >>confdefs.h <<_ACEOF
22874 #define HAVE_LIBW 1
22875 _ACEOF
22876
22877   LIBS="-lw $LIBS"
22878
22879 fi
22880
22881
22882 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22883 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22884 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22885   echo $ECHO_N "(cached) $ECHO_C" >&6
22886 else
22887   ac_check_lib_save_LIBS=$LIBS
22888 LIBS="-ldl  $LIBS"
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h.  */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h.  */
22895
22896 /* Override any GCC internal prototype to avoid an error.
22897    Use char because int might match the return type of a GCC
22898    builtin and then its argument prototype would still apply.  */
22899 #ifdef __cplusplus
22900 extern "C"
22901 #endif
22902 char dlopen ();
22903 int
22904 main ()
22905 {
22906 return dlopen ();
22907   ;
22908   return 0;
22909 }
22910 _ACEOF
22911 rm -f conftest.$ac_objext conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915   *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918   (eval "$ac_link") 2>conftest.er1
22919   ac_status=$?
22920   grep -v '^ *+' conftest.er1 >conftest.err
22921   rm -f conftest.er1
22922   cat conftest.err >&5
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); } && {
22925          test -z "$ac_c_werror_flag" ||
22926          test ! -s conftest.err
22927        } && test -s conftest$ac_exeext &&
22928        $as_test_x conftest$ac_exeext; then
22929   ac_cv_lib_dl_dlopen=yes
22930 else
22931   echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22933
22934         ac_cv_lib_dl_dlopen=no
22935 fi
22936
22937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22938       conftest$ac_exeext conftest.$ac_ext
22939 LIBS=$ac_check_lib_save_LIBS
22940 fi
22941 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22942 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22943 if test $ac_cv_lib_dl_dlopen = yes; then
22944   cat >>confdefs.h <<_ACEOF
22945 #define HAVE_LIBDL 1
22946 _ACEOF
22947
22948   LIBS="-ldl $LIBS"
22949
22950 fi
22951
22952
22953 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22954 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
22955 if test "${ac_cv_search_gethostbyname+set}" = set; then
22956   echo $ECHO_N "(cached) $ECHO_C" >&6
22957 else
22958   ac_func_search_save_LIBS=$LIBS
22959 cat >conftest.$ac_ext <<_ACEOF
22960 /* confdefs.h.  */
22961 _ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h.  */
22965
22966 /* Override any GCC internal prototype to avoid an error.
22967    Use char because int might match the return type of a GCC
22968    builtin and then its argument prototype would still apply.  */
22969 #ifdef __cplusplus
22970 extern "C"
22971 #endif
22972 char gethostbyname ();
22973 int
22974 main ()
22975 {
22976 return gethostbyname ();
22977   ;
22978   return 0;
22979 }
22980 _ACEOF
22981 for ac_lib in '' nsl; do
22982   if test -z "$ac_lib"; then
22983     ac_res="none required"
22984   else
22985     ac_res=-l$ac_lib
22986     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22987   fi
22988   rm -f conftest.$ac_objext conftest$ac_exeext
22989 if { (ac_try="$ac_link"
22990 case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_link") 2>conftest.er1
22996   ac_status=$?
22997   grep -v '^ *+' conftest.er1 >conftest.err
22998   rm -f conftest.er1
22999   cat conftest.err >&5
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); } && {
23002          test -z "$ac_c_werror_flag" ||
23003          test ! -s conftest.err
23004        } && test -s conftest$ac_exeext &&
23005        $as_test_x conftest$ac_exeext; then
23006   ac_cv_search_gethostbyname=$ac_res
23007 else
23008   echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011
23012 fi
23013
23014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23015       conftest$ac_exeext
23016   if test "${ac_cv_search_gethostbyname+set}" = set; then
23017   break
23018 fi
23019 done
23020 if test "${ac_cv_search_gethostbyname+set}" = set; then
23021   :
23022 else
23023   ac_cv_search_gethostbyname=no
23024 fi
23025 rm conftest.$ac_ext
23026 LIBS=$ac_func_search_save_LIBS
23027 fi
23028 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23029 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23030 ac_res=$ac_cv_search_gethostbyname
23031 if test "$ac_res" != no; then
23032   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23033
23034 fi
23035
23036 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23037 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23038 if test "${ac_cv_search_socket+set}" = set; then
23039   echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041   ac_func_search_save_LIBS=$LIBS
23042 cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h.  */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h.  */
23048
23049 /* Override any GCC internal prototype to avoid an error.
23050    Use char because int might match the return type of a GCC
23051    builtin and then its argument prototype would still apply.  */
23052 #ifdef __cplusplus
23053 extern "C"
23054 #endif
23055 char socket ();
23056 int
23057 main ()
23058 {
23059 return socket ();
23060   ;
23061   return 0;
23062 }
23063 _ACEOF
23064 for ac_lib in '' socket; do
23065   if test -z "$ac_lib"; then
23066     ac_res="none required"
23067   else
23068     ac_res=-l$ac_lib
23069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23070   fi
23071   rm -f conftest.$ac_objext conftest$ac_exeext
23072 if { (ac_try="$ac_link"
23073 case "(($ac_try" in
23074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075   *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078   (eval "$ac_link") 2>conftest.er1
23079   ac_status=$?
23080   grep -v '^ *+' conftest.er1 >conftest.err
23081   rm -f conftest.er1
23082   cat conftest.err >&5
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); } && {
23085          test -z "$ac_c_werror_flag" ||
23086          test ! -s conftest.err
23087        } && test -s conftest$ac_exeext &&
23088        $as_test_x conftest$ac_exeext; then
23089   ac_cv_search_socket=$ac_res
23090 else
23091   echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094
23095 fi
23096
23097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23098       conftest$ac_exeext
23099   if test "${ac_cv_search_socket+set}" = set; then
23100   break
23101 fi
23102 done
23103 if test "${ac_cv_search_socket+set}" = set; then
23104   :
23105 else
23106   ac_cv_search_socket=no
23107 fi
23108 rm conftest.$ac_ext
23109 LIBS=$ac_func_search_save_LIBS
23110 fi
23111 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23112 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23113 ac_res=$ac_cv_search_socket
23114 if test "$ac_res" != no; then
23115   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23116
23117 fi
23118
23119
23120 # Hesiod needs -lresolv on Sun systems for res_send.
23121 if test "$hesiod" != "no"; then
23122
23123 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23124 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23125 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23126   echo $ECHO_N "(cached) $ECHO_C" >&6
23127 else
23128   ac_check_lib_save_LIBS=$LIBS
23129 LIBS="-l44bsd  $LIBS"
23130 cat >conftest.$ac_ext <<_ACEOF
23131 /* confdefs.h.  */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h.  */
23136
23137 /* Override any GCC internal prototype to avoid an error.
23138    Use char because int might match the return type of a GCC
23139    builtin and then its argument prototype would still apply.  */
23140 #ifdef __cplusplus
23141 extern "C"
23142 #endif
23143 char strerror ();
23144 int
23145 main ()
23146 {
23147 return strerror ();
23148   ;
23149   return 0;
23150 }
23151 _ACEOF
23152 rm -f conftest.$ac_objext conftest$ac_exeext
23153 if { (ac_try="$ac_link"
23154 case "(($ac_try" in
23155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23156   *) ac_try_echo=$ac_try;;
23157 esac
23158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23159   (eval "$ac_link") 2>conftest.er1
23160   ac_status=$?
23161   grep -v '^ *+' conftest.er1 >conftest.err
23162   rm -f conftest.er1
23163   cat conftest.err >&5
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); } && {
23166          test -z "$ac_c_werror_flag" ||
23167          test ! -s conftest.err
23168        } && test -s conftest$ac_exeext &&
23169        $as_test_x conftest$ac_exeext; then
23170   ac_cv_lib_44bsd_strerror=yes
23171 else
23172   echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23174
23175         ac_cv_lib_44bsd_strerror=no
23176 fi
23177
23178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23179       conftest$ac_exeext conftest.$ac_ext
23180 LIBS=$ac_check_lib_save_LIBS
23181 fi
23182 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23183 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23184 if test $ac_cv_lib_44bsd_strerror = yes; then
23185   cat >>confdefs.h <<_ACEOF
23186 #define HAVE_LIB44BSD 1
23187 _ACEOF
23188
23189   LIBS="-l44bsd $LIBS"
23190
23191 fi
23192
23193
23194 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
23195 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
23196 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
23197   echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199   ac_check_lib_save_LIBS=$LIBS
23200 LIBS="-lresolv  $LIBS"
23201 cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h.  */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h.  */
23207
23208 /* Override any GCC internal prototype to avoid an error.
23209    Use char because int might match the return type of a GCC
23210    builtin and then its argument prototype would still apply.  */
23211 #ifdef __cplusplus
23212 extern "C"
23213 #endif
23214 char res_send ();
23215 int
23216 main ()
23217 {
23218 return res_send ();
23219   ;
23220   return 0;
23221 }
23222 _ACEOF
23223 rm -f conftest.$ac_objext conftest$ac_exeext
23224 if { (ac_try="$ac_link"
23225 case "(($ac_try" in
23226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227   *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230   (eval "$ac_link") 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } && {
23237          test -z "$ac_c_werror_flag" ||
23238          test ! -s conftest.err
23239        } && test -s conftest$ac_exeext &&
23240        $as_test_x conftest$ac_exeext; then
23241   ac_cv_lib_resolv_res_send=yes
23242 else
23243   echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23245
23246         ac_cv_lib_resolv_res_send=no
23247 fi
23248
23249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23250       conftest$ac_exeext conftest.$ac_ext
23251 LIBS=$ac_check_lib_save_LIBS
23252 fi
23253 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
23254 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
23255 if test $ac_cv_lib_resolv_res_send = yes; then
23256   cat >>confdefs.h <<_ACEOF
23257 #define HAVE_LIBRESOLV 1
23258 _ACEOF
23259
23260   LIBS="-lresolv $LIBS"
23261
23262 fi
23263
23264
23265 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
23266 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
23267 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
23268   echo $ECHO_N "(cached) $ECHO_C" >&6
23269 else
23270   ac_check_lib_save_LIBS=$LIBS
23271 LIBS="-lresolv  $LIBS"
23272 cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h.  */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h.  */
23278
23279 /* Override any GCC internal prototype to avoid an error.
23280    Use char because int might match the return type of a GCC
23281    builtin and then its argument prototype would still apply.  */
23282 #ifdef __cplusplus
23283 extern "C"
23284 #endif
23285 char __res_send ();
23286 int
23287 main ()
23288 {
23289 return __res_send ();
23290   ;
23291   return 0;
23292 }
23293 _ACEOF
23294 rm -f conftest.$ac_objext conftest$ac_exeext
23295 if { (ac_try="$ac_link"
23296 case "(($ac_try" in
23297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298   *) ac_try_echo=$ac_try;;
23299 esac
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301   (eval "$ac_link") 2>conftest.er1
23302   ac_status=$?
23303   grep -v '^ *+' conftest.er1 >conftest.err
23304   rm -f conftest.er1
23305   cat conftest.err >&5
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); } && {
23308          test -z "$ac_c_werror_flag" ||
23309          test ! -s conftest.err
23310        } && test -s conftest$ac_exeext &&
23311        $as_test_x conftest$ac_exeext; then
23312   ac_cv_lib_resolv___res_send=yes
23313 else
23314   echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23316
23317         ac_cv_lib_resolv___res_send=no
23318 fi
23319
23320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23321       conftest$ac_exeext conftest.$ac_ext
23322 LIBS=$ac_check_lib_save_LIBS
23323 fi
23324 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
23325 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
23326 if test $ac_cv_lib_resolv___res_send = yes; then
23327   cat >>confdefs.h <<_ACEOF
23328 #define HAVE_LIBRESOLV 1
23329 _ACEOF
23330
23331   LIBS="-lresolv $LIBS"
23332
23333 fi
23334
23335 fi
23336
23337 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23338 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23339 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23340   echo $ECHO_N "(cached) $ECHO_C" >&6
23341 else
23342   ac_check_lib_save_LIBS=$LIBS
23343 LIBS="-lcurses  $LIBS"
23344 cat >conftest.$ac_ext <<_ACEOF
23345 /* confdefs.h.  */
23346 _ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h.  */
23350
23351 /* Override any GCC internal prototype to avoid an error.
23352    Use char because int might match the return type of a GCC
23353    builtin and then its argument prototype would still apply.  */
23354 #ifdef __cplusplus
23355 extern "C"
23356 #endif
23357 char tgetstr ();
23358 int
23359 main ()
23360 {
23361 return tgetstr ();
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370   *) ac_try_echo=$ac_try;;
23371 esac
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373   (eval "$ac_link") 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } && {
23380          test -z "$ac_c_werror_flag" ||
23381          test ! -s conftest.err
23382        } && test -s conftest$ac_exeext &&
23383        $as_test_x conftest$ac_exeext; then
23384   ac_cv_lib_curses_tgetstr=yes
23385 else
23386   echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389         ac_cv_lib_curses_tgetstr=no
23390 fi
23391
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393       conftest$ac_exeext conftest.$ac_ext
23394 LIBS=$ac_check_lib_save_LIBS
23395 fi
23396 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23397 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23398 if test $ac_cv_lib_curses_tgetstr = yes; then
23399   TLIB=-lcurses
23400 else
23401   TLIB=-ltermcap
23402 fi
23403
23404 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23405 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23406 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23407   echo $ECHO_N "(cached) $ECHO_C" >&6
23408 else
23409   ac_check_lib_save_LIBS=$LIBS
23410 LIBS="-lsrc  $LIBS"
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417
23418 /* Override any GCC internal prototype to avoid an error.
23419    Use char because int might match the return type of a GCC
23420    builtin and then its argument prototype would still apply.  */
23421 #ifdef __cplusplus
23422 extern "C"
23423 #endif
23424 char srcsrpy ();
23425 int
23426 main ()
23427 {
23428 return srcsrpy ();
23429   ;
23430   return 0;
23431 }
23432 _ACEOF
23433 rm -f conftest.$ac_objext conftest$ac_exeext
23434 if { (ac_try="$ac_link"
23435 case "(($ac_try" in
23436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437   *) ac_try_echo=$ac_try;;
23438 esac
23439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23440   (eval "$ac_link") 2>conftest.er1
23441   ac_status=$?
23442   grep -v '^ *+' conftest.er1 >conftest.err
23443   rm -f conftest.er1
23444   cat conftest.err >&5
23445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446   (exit $ac_status); } && {
23447          test -z "$ac_c_werror_flag" ||
23448          test ! -s conftest.err
23449        } && test -s conftest$ac_exeext &&
23450        $as_test_x conftest$ac_exeext; then
23451   ac_cv_lib_src_srcsrpy=yes
23452 else
23453   echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456         ac_cv_lib_src_srcsrpy=no
23457 fi
23458
23459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23460       conftest$ac_exeext conftest.$ac_ext
23461 LIBS=$ac_check_lib_save_LIBS
23462 fi
23463 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23464 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23465 if test $ac_cv_lib_src_srcsrpy = yes; then
23466   SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23467 #define HAVE_SRC 1
23468 _ACEOF
23469
23470 fi
23471
23472
23473
23474
23475
23476
23477 # Check whether --with-krb4 was given.
23478 if test "${with_krb4+set}" = set; then
23479   withval=$with_krb4; krb4="$withval"
23480 else
23481   krb4=no
23482 fi
23483
23484 if test "$krb4" != no; then
23485         { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23486 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23487 if test "${ac_cv_func_gethostbyname+set}" = set; then
23488   echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490   cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h.  */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h.  */
23496 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23498 #define gethostbyname innocuous_gethostbyname
23499
23500 /* System header to define __stub macros and hopefully few prototypes,
23501     which can conflict with char gethostbyname (); below.
23502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23503     <limits.h> exists even on freestanding compilers.  */
23504
23505 #ifdef __STDC__
23506 # include <limits.h>
23507 #else
23508 # include <assert.h>
23509 #endif
23510
23511 #undef gethostbyname
23512
23513 /* Override any GCC internal prototype to avoid an error.
23514    Use char because int might match the return type of a GCC
23515    builtin and then its argument prototype would still apply.  */
23516 #ifdef __cplusplus
23517 extern "C"
23518 #endif
23519 char gethostbyname ();
23520 /* The GNU C library defines this for functions which it implements
23521     to always fail with ENOSYS.  Some functions are actually named
23522     something starting with __ and the normal name is an alias.  */
23523 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23524 choke me
23525 #endif
23526
23527 int
23528 main ()
23529 {
23530 return gethostbyname ();
23531   ;
23532   return 0;
23533 }
23534 _ACEOF
23535 rm -f conftest.$ac_objext conftest$ac_exeext
23536 if { (ac_try="$ac_link"
23537 case "(($ac_try" in
23538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539   *) ac_try_echo=$ac_try;;
23540 esac
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542   (eval "$ac_link") 2>conftest.er1
23543   ac_status=$?
23544   grep -v '^ *+' conftest.er1 >conftest.err
23545   rm -f conftest.er1
23546   cat conftest.err >&5
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); } && {
23549          test -z "$ac_c_werror_flag" ||
23550          test ! -s conftest.err
23551        } && test -s conftest$ac_exeext &&
23552        $as_test_x conftest$ac_exeext; then
23553   ac_cv_func_gethostbyname=yes
23554 else
23555   echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23557
23558         ac_cv_func_gethostbyname=no
23559 fi
23560
23561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23562       conftest$ac_exeext conftest.$ac_ext
23563 fi
23564 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23565 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23566 if test $ac_cv_func_gethostbyname = yes; then
23567   :
23568 else
23569
23570 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23571 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23572 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23573   echo $ECHO_N "(cached) $ECHO_C" >&6
23574 else
23575   ac_check_lib_save_LIBS=$LIBS
23576 LIBS="-lnsl  $LIBS"
23577 cat >conftest.$ac_ext <<_ACEOF
23578 /* confdefs.h.  */
23579 _ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h.  */
23583
23584 /* Override any GCC internal prototype to avoid an error.
23585    Use char because int might match the return type of a GCC
23586    builtin and then its argument prototype would still apply.  */
23587 #ifdef __cplusplus
23588 extern "C"
23589 #endif
23590 char gethostbyname ();
23591 int
23592 main ()
23593 {
23594 return gethostbyname ();
23595   ;
23596   return 0;
23597 }
23598 _ACEOF
23599 rm -f conftest.$ac_objext conftest$ac_exeext
23600 if { (ac_try="$ac_link"
23601 case "(($ac_try" in
23602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23603   *) ac_try_echo=$ac_try;;
23604 esac
23605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23606   (eval "$ac_link") 2>conftest.er1
23607   ac_status=$?
23608   grep -v '^ *+' conftest.er1 >conftest.err
23609   rm -f conftest.er1
23610   cat conftest.err >&5
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); } && {
23613          test -z "$ac_c_werror_flag" ||
23614          test ! -s conftest.err
23615        } && test -s conftest$ac_exeext &&
23616        $as_test_x conftest$ac_exeext; then
23617   ac_cv_lib_nsl_gethostbyname=yes
23618 else
23619   echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23621
23622         ac_cv_lib_nsl_gethostbyname=no
23623 fi
23624
23625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23626       conftest$ac_exeext conftest.$ac_ext
23627 LIBS=$ac_check_lib_save_LIBS
23628 fi
23629 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23630 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23631 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23632   cat >>confdefs.h <<_ACEOF
23633 #define HAVE_LIBNSL 1
23634 _ACEOF
23635
23636   LIBS="-lnsl $LIBS"
23637
23638 fi
23639
23640 fi
23641
23642 { echo "$as_me:$LINENO: checking for socket" >&5
23643 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23644 if test "${ac_cv_func_socket+set}" = set; then
23645   echo $ECHO_N "(cached) $ECHO_C" >&6
23646 else
23647   cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23655 #define socket innocuous_socket
23656
23657 /* System header to define __stub macros and hopefully few prototypes,
23658     which can conflict with char socket (); below.
23659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23660     <limits.h> exists even on freestanding compilers.  */
23661
23662 #ifdef __STDC__
23663 # include <limits.h>
23664 #else
23665 # include <assert.h>
23666 #endif
23667
23668 #undef socket
23669
23670 /* Override any GCC internal prototype to avoid an error.
23671    Use char because int might match the return type of a GCC
23672    builtin and then its argument prototype would still apply.  */
23673 #ifdef __cplusplus
23674 extern "C"
23675 #endif
23676 char socket ();
23677 /* The GNU C library defines this for functions which it implements
23678     to always fail with ENOSYS.  Some functions are actually named
23679     something starting with __ and the normal name is an alias.  */
23680 #if defined __stub_socket || defined __stub___socket
23681 choke me
23682 #endif
23683
23684 int
23685 main ()
23686 {
23687 return socket ();
23688   ;
23689   return 0;
23690 }
23691 _ACEOF
23692 rm -f conftest.$ac_objext conftest$ac_exeext
23693 if { (ac_try="$ac_link"
23694 case "(($ac_try" in
23695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696   *) ac_try_echo=$ac_try;;
23697 esac
23698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699   (eval "$ac_link") 2>conftest.er1
23700   ac_status=$?
23701   grep -v '^ *+' conftest.er1 >conftest.err
23702   rm -f conftest.er1
23703   cat conftest.err >&5
23704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705   (exit $ac_status); } && {
23706          test -z "$ac_c_werror_flag" ||
23707          test ! -s conftest.err
23708        } && test -s conftest$ac_exeext &&
23709        $as_test_x conftest$ac_exeext; then
23710   ac_cv_func_socket=yes
23711 else
23712   echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23714
23715         ac_cv_func_socket=no
23716 fi
23717
23718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23719       conftest$ac_exeext conftest.$ac_ext
23720 fi
23721 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23722 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23723 if test $ac_cv_func_socket = yes; then
23724   :
23725 else
23726
23727 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23728 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23729 if test "${ac_cv_lib_socket_socket+set}" = set; then
23730   echo $ECHO_N "(cached) $ECHO_C" >&6
23731 else
23732   ac_check_lib_save_LIBS=$LIBS
23733 LIBS="-lsocket  $LIBS"
23734 cat >conftest.$ac_ext <<_ACEOF
23735 /* confdefs.h.  */
23736 _ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h.  */
23740
23741 /* Override any GCC internal prototype to avoid an error.
23742    Use char because int might match the return type of a GCC
23743    builtin and then its argument prototype would still apply.  */
23744 #ifdef __cplusplus
23745 extern "C"
23746 #endif
23747 char socket ();
23748 int
23749 main ()
23750 {
23751 return socket ();
23752   ;
23753   return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext conftest$ac_exeext
23757 if { (ac_try="$ac_link"
23758 case "(($ac_try" in
23759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760   *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763   (eval "$ac_link") 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } && {
23770          test -z "$ac_c_werror_flag" ||
23771          test ! -s conftest.err
23772        } && test -s conftest$ac_exeext &&
23773        $as_test_x conftest$ac_exeext; then
23774   ac_cv_lib_socket_socket=yes
23775 else
23776   echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23778
23779         ac_cv_lib_socket_socket=no
23780 fi
23781
23782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23783       conftest$ac_exeext conftest.$ac_ext
23784 LIBS=$ac_check_lib_save_LIBS
23785 fi
23786 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23787 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23788 if test $ac_cv_lib_socket_socket = yes; then
23789   cat >>confdefs.h <<_ACEOF
23790 #define HAVE_LIBSOCKET 1
23791 _ACEOF
23792
23793   LIBS="-lsocket $LIBS"
23794
23795 fi
23796
23797 fi
23798
23799
23800 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23801 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23802 if test "${ac_cv_lib_gen_compile+set}" = set; then
23803   echo $ECHO_N "(cached) $ECHO_C" >&6
23804 else
23805   ac_check_lib_save_LIBS=$LIBS
23806 LIBS="-lgen  $LIBS"
23807 cat >conftest.$ac_ext <<_ACEOF
23808 /* confdefs.h.  */
23809 _ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h.  */
23813
23814 /* Override any GCC internal prototype to avoid an error.
23815    Use char because int might match the return type of a GCC
23816    builtin and then its argument prototype would still apply.  */
23817 #ifdef __cplusplus
23818 extern "C"
23819 #endif
23820 char compile ();
23821 int
23822 main ()
23823 {
23824 return compile ();
23825   ;
23826   return 0;
23827 }
23828 _ACEOF
23829 rm -f conftest.$ac_objext conftest$ac_exeext
23830 if { (ac_try="$ac_link"
23831 case "(($ac_try" in
23832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833   *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836   (eval "$ac_link") 2>conftest.er1
23837   ac_status=$?
23838   grep -v '^ *+' conftest.er1 >conftest.err
23839   rm -f conftest.er1
23840   cat conftest.err >&5
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); } && {
23843          test -z "$ac_c_werror_flag" ||
23844          test ! -s conftest.err
23845        } && test -s conftest$ac_exeext &&
23846        $as_test_x conftest$ac_exeext; then
23847   ac_cv_lib_gen_compile=yes
23848 else
23849   echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852         ac_cv_lib_gen_compile=no
23853 fi
23854
23855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23856       conftest$ac_exeext conftest.$ac_ext
23857 LIBS=$ac_check_lib_save_LIBS
23858 fi
23859 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23860 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23861 if test $ac_cv_lib_gen_compile = yes; then
23862   cat >>confdefs.h <<_ACEOF
23863 #define HAVE_LIBGEN 1
23864 _ACEOF
23865
23866   LIBS="-lgen $LIBS"
23867
23868 fi
23869
23870 if test "$krb4" != yes; then
23871         CPPFLAGS="$CPPFLAGS -I$krb4/include"
23872         if test -d "$krb4/include/kerberosIV"; then
23873                 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23874         fi
23875         LDFLAGS="$LDFLAGS -L$krb4/lib"
23876 fi
23877 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23878 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23879 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23880   echo $ECHO_N "(cached) $ECHO_C" >&6
23881 else
23882   ac_check_lib_save_LIBS=$LIBS
23883 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23884 cat >conftest.$ac_ext <<_ACEOF
23885 /* confdefs.h.  */
23886 _ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h.  */
23890
23891 /* Override any GCC internal prototype to avoid an error.
23892    Use char because int might match the return type of a GCC
23893    builtin and then its argument prototype would still apply.  */
23894 #ifdef __cplusplus
23895 extern "C"
23896 #endif
23897 char krb_rd_req ();
23898 int
23899 main ()
23900 {
23901 return krb_rd_req ();
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 rm -f conftest.$ac_objext conftest$ac_exeext
23907 if { (ac_try="$ac_link"
23908 case "(($ac_try" in
23909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910   *) ac_try_echo=$ac_try;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913   (eval "$ac_link") 2>conftest.er1
23914   ac_status=$?
23915   grep -v '^ *+' conftest.er1 >conftest.err
23916   rm -f conftest.er1
23917   cat conftest.err >&5
23918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919   (exit $ac_status); } && {
23920          test -z "$ac_c_werror_flag" ||
23921          test ! -s conftest.err
23922        } && test -s conftest$ac_exeext &&
23923        $as_test_x conftest$ac_exeext; then
23924   ac_cv_lib_krb4_krb_rd_req=yes
23925 else
23926   echo "$as_me: failed program was:" >&5
23927 sed 's/^/| /' conftest.$ac_ext >&5
23928
23929         ac_cv_lib_krb4_krb_rd_req=no
23930 fi
23931
23932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23933       conftest$ac_exeext conftest.$ac_ext
23934 LIBS=$ac_check_lib_save_LIBS
23935 fi
23936 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23937 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23938 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23939   KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23940 else
23941   { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23942 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23943 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23944   echo $ECHO_N "(cached) $ECHO_C" >&6
23945 else
23946   ac_check_lib_save_LIBS=$LIBS
23947 LIBS="-lkrb -ldes $LIBS"
23948 cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h.  */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h.  */
23954
23955 /* Override any GCC internal prototype to avoid an error.
23956    Use char because int might match the return type of a GCC
23957    builtin and then its argument prototype would still apply.  */
23958 #ifdef __cplusplus
23959 extern "C"
23960 #endif
23961 char krb_rd_req ();
23962 int
23963 main ()
23964 {
23965 return krb_rd_req ();
23966   ;
23967   return 0;
23968 }
23969 _ACEOF
23970 rm -f conftest.$ac_objext conftest$ac_exeext
23971 if { (ac_try="$ac_link"
23972 case "(($ac_try" in
23973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974   *) ac_try_echo=$ac_try;;
23975 esac
23976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23977   (eval "$ac_link") 2>conftest.er1
23978   ac_status=$?
23979   grep -v '^ *+' conftest.er1 >conftest.err
23980   rm -f conftest.er1
23981   cat conftest.err >&5
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); } && {
23984          test -z "$ac_c_werror_flag" ||
23985          test ! -s conftest.err
23986        } && test -s conftest$ac_exeext &&
23987        $as_test_x conftest$ac_exeext; then
23988   ac_cv_lib_krb_krb_rd_req=yes
23989 else
23990   echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23992
23993         ac_cv_lib_krb_krb_rd_req=no
23994 fi
23995
23996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23997       conftest$ac_exeext conftest.$ac_ext
23998 LIBS=$ac_check_lib_save_LIBS
23999 fi
24000 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24001 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24002 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24003   KRB4_LIBS="-lkrb -ldes"
24004 else
24005   { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24006 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24007    { (exit 1); exit 1; }; }
24008 fi
24009
24010 fi
24011
24012         cat >>confdefs.h <<\_ACEOF
24013 #define HAVE_KRB4 1
24014 _ACEOF
24015
24016 fi
24017
24018
24019 # Check whether --with-krb5 was given.
24020 if test "${with_krb5+set}" = set; then
24021   withval=$with_krb5; krb5="$withval"
24022 else
24023   krb5=no
24024 fi
24025
24026 if test "$krb5" != no; then
24027         { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24028 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24029 if test "${ac_cv_search_gethostbyname+set}" = set; then
24030   echo $ECHO_N "(cached) $ECHO_C" >&6
24031 else
24032   ac_func_search_save_LIBS=$LIBS
24033 cat >conftest.$ac_ext <<_ACEOF
24034 /* confdefs.h.  */
24035 _ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h.  */
24039
24040 /* Override any GCC internal prototype to avoid an error.
24041    Use char because int might match the return type of a GCC
24042    builtin and then its argument prototype would still apply.  */
24043 #ifdef __cplusplus
24044 extern "C"
24045 #endif
24046 char gethostbyname ();
24047 int
24048 main ()
24049 {
24050 return gethostbyname ();
24051   ;
24052   return 0;
24053 }
24054 _ACEOF
24055 for ac_lib in '' nsl; do
24056   if test -z "$ac_lib"; then
24057     ac_res="none required"
24058   else
24059     ac_res=-l$ac_lib
24060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24061   fi
24062   rm -f conftest.$ac_objext conftest$ac_exeext
24063 if { (ac_try="$ac_link"
24064 case "(($ac_try" in
24065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24066   *) ac_try_echo=$ac_try;;
24067 esac
24068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24069   (eval "$ac_link") 2>conftest.er1
24070   ac_status=$?
24071   grep -v '^ *+' conftest.er1 >conftest.err
24072   rm -f conftest.er1
24073   cat conftest.err >&5
24074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075   (exit $ac_status); } && {
24076          test -z "$ac_c_werror_flag" ||
24077          test ! -s conftest.err
24078        } && test -s conftest$ac_exeext &&
24079        $as_test_x conftest$ac_exeext; then
24080   ac_cv_search_gethostbyname=$ac_res
24081 else
24082   echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24084
24085
24086 fi
24087
24088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24089       conftest$ac_exeext
24090   if test "${ac_cv_search_gethostbyname+set}" = set; then
24091   break
24092 fi
24093 done
24094 if test "${ac_cv_search_gethostbyname+set}" = set; then
24095   :
24096 else
24097   ac_cv_search_gethostbyname=no
24098 fi
24099 rm conftest.$ac_ext
24100 LIBS=$ac_func_search_save_LIBS
24101 fi
24102 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24103 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24104 ac_res=$ac_cv_search_gethostbyname
24105 if test "$ac_res" != no; then
24106   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24107
24108 fi
24109
24110 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24111 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24112 if test "${ac_cv_search_socket+set}" = set; then
24113   echo $ECHO_N "(cached) $ECHO_C" >&6
24114 else
24115   ac_func_search_save_LIBS=$LIBS
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h.  */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h.  */
24122
24123 /* Override any GCC internal prototype to avoid an error.
24124    Use char because int might match the return type of a GCC
24125    builtin and then its argument prototype would still apply.  */
24126 #ifdef __cplusplus
24127 extern "C"
24128 #endif
24129 char socket ();
24130 int
24131 main ()
24132 {
24133 return socket ();
24134   ;
24135   return 0;
24136 }
24137 _ACEOF
24138 for ac_lib in '' socket; do
24139   if test -z "$ac_lib"; then
24140     ac_res="none required"
24141   else
24142     ac_res=-l$ac_lib
24143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24144   fi
24145   rm -f conftest.$ac_objext conftest$ac_exeext
24146 if { (ac_try="$ac_link"
24147 case "(($ac_try" in
24148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149   *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152   (eval "$ac_link") 2>conftest.er1
24153   ac_status=$?
24154   grep -v '^ *+' conftest.er1 >conftest.err
24155   rm -f conftest.er1
24156   cat conftest.err >&5
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); } && {
24159          test -z "$ac_c_werror_flag" ||
24160          test ! -s conftest.err
24161        } && test -s conftest$ac_exeext &&
24162        $as_test_x conftest$ac_exeext; then
24163   ac_cv_search_socket=$ac_res
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168
24169 fi
24170
24171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24172       conftest$ac_exeext
24173   if test "${ac_cv_search_socket+set}" = set; then
24174   break
24175 fi
24176 done
24177 if test "${ac_cv_search_socket+set}" = set; then
24178   :
24179 else
24180   ac_cv_search_socket=no
24181 fi
24182 rm conftest.$ac_ext
24183 LIBS=$ac_func_search_save_LIBS
24184 fi
24185 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24186 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24187 ac_res=$ac_cv_search_socket
24188 if test "$ac_res" != no; then
24189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24190
24191 fi
24192
24193
24194 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24195 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24196 if test "${ac_cv_lib_gen_compile+set}" = set; then
24197   echo $ECHO_N "(cached) $ECHO_C" >&6
24198 else
24199   ac_check_lib_save_LIBS=$LIBS
24200 LIBS="-lgen  $LIBS"
24201 cat >conftest.$ac_ext <<_ACEOF
24202 /* confdefs.h.  */
24203 _ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h.  */
24207
24208 /* Override any GCC internal prototype to avoid an error.
24209    Use char because int might match the return type of a GCC
24210    builtin and then its argument prototype would still apply.  */
24211 #ifdef __cplusplus
24212 extern "C"
24213 #endif
24214 char compile ();
24215 int
24216 main ()
24217 {
24218 return compile ();
24219   ;
24220   return 0;
24221 }
24222 _ACEOF
24223 rm -f conftest.$ac_objext conftest$ac_exeext
24224 if { (ac_try="$ac_link"
24225 case "(($ac_try" in
24226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227   *) ac_try_echo=$ac_try;;
24228 esac
24229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230   (eval "$ac_link") 2>conftest.er1
24231   ac_status=$?
24232   grep -v '^ *+' conftest.er1 >conftest.err
24233   rm -f conftest.er1
24234   cat conftest.err >&5
24235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236   (exit $ac_status); } && {
24237          test -z "$ac_c_werror_flag" ||
24238          test ! -s conftest.err
24239        } && test -s conftest$ac_exeext &&
24240        $as_test_x conftest$ac_exeext; then
24241   ac_cv_lib_gen_compile=yes
24242 else
24243   echo "$as_me: failed program was:" >&5
24244 sed 's/^/| /' conftest.$ac_ext >&5
24245
24246         ac_cv_lib_gen_compile=no
24247 fi
24248
24249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24250       conftest$ac_exeext conftest.$ac_ext
24251 LIBS=$ac_check_lib_save_LIBS
24252 fi
24253 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24254 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24255 if test $ac_cv_lib_gen_compile = yes; then
24256   cat >>confdefs.h <<_ACEOF
24257 #define HAVE_LIBGEN 1
24258 _ACEOF
24259
24260   LIBS="-lgen $LIBS"
24261
24262 fi
24263
24264 if test "$krb5" != yes; then
24265         CPPFLAGS="$CPPFLAGS -I$krb5/include"
24266         LDFLAGS="$LDFLAGS -L$krb5/lib"
24267 fi
24268 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24269 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24270 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24271   echo $ECHO_N "(cached) $ECHO_C" >&6
24272 else
24273   ac_check_lib_save_LIBS=$LIBS
24274 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24275 cat >conftest.$ac_ext <<_ACEOF
24276 /* confdefs.h.  */
24277 _ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h.  */
24281
24282 /* Override any GCC internal prototype to avoid an error.
24283    Use char because int might match the return type of a GCC
24284    builtin and then its argument prototype would still apply.  */
24285 #ifdef __cplusplus
24286 extern "C"
24287 #endif
24288 char krb5_init_context ();
24289 int
24290 main ()
24291 {
24292 return krb5_init_context ();
24293   ;
24294   return 0;
24295 }
24296 _ACEOF
24297 rm -f conftest.$ac_objext conftest$ac_exeext
24298 if { (ac_try="$ac_link"
24299 case "(($ac_try" in
24300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24301   *) ac_try_echo=$ac_try;;
24302 esac
24303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24304   (eval "$ac_link") 2>conftest.er1
24305   ac_status=$?
24306   grep -v '^ *+' conftest.er1 >conftest.err
24307   rm -f conftest.er1
24308   cat conftest.err >&5
24309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); } && {
24311          test -z "$ac_c_werror_flag" ||
24312          test ! -s conftest.err
24313        } && test -s conftest$ac_exeext &&
24314        $as_test_x conftest$ac_exeext; then
24315   ac_cv_lib_krb5_krb5_init_context=yes
24316 else
24317   echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24319
24320         ac_cv_lib_krb5_krb5_init_context=no
24321 fi
24322
24323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24324       conftest$ac_exeext conftest.$ac_ext
24325 LIBS=$ac_check_lib_save_LIBS
24326 fi
24327 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24328 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24329 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24330   :
24331 else
24332   { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24333 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24334    { (exit 1); exit 1; }; }
24335 fi
24336
24337         KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24338         cat >>confdefs.h <<\_ACEOF
24339 #define HAVE_KRB5 1
24340 _ACEOF
24341
24342 fi
24343
24344
24345 # Check whether --with-hesiod was given.
24346 if test "${with_hesiod+set}" = set; then
24347   withval=$with_hesiod; hesiod="$withval"
24348 else
24349   hesiod=no
24350 fi
24351
24352 if test "$hesiod" != no; then
24353         { echo "$as_me:$LINENO: checking for res_send" >&5
24354 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24355 if test "${ac_cv_func_res_send+set}" = set; then
24356   echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358   cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24366 #define res_send innocuous_res_send
24367
24368 /* System header to define __stub macros and hopefully few prototypes,
24369     which can conflict with char res_send (); below.
24370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24371     <limits.h> exists even on freestanding compilers.  */
24372
24373 #ifdef __STDC__
24374 # include <limits.h>
24375 #else
24376 # include <assert.h>
24377 #endif
24378
24379 #undef res_send
24380
24381 /* Override any GCC internal prototype to avoid an error.
24382    Use char because int might match the return type of a GCC
24383    builtin and then its argument prototype would still apply.  */
24384 #ifdef __cplusplus
24385 extern "C"
24386 #endif
24387 char res_send ();
24388 /* The GNU C library defines this for functions which it implements
24389     to always fail with ENOSYS.  Some functions are actually named
24390     something starting with __ and the normal name is an alias.  */
24391 #if defined __stub_res_send || defined __stub___res_send
24392 choke me
24393 #endif
24394
24395 int
24396 main ()
24397 {
24398 return res_send ();
24399   ;
24400   return 0;
24401 }
24402 _ACEOF
24403 rm -f conftest.$ac_objext conftest$ac_exeext
24404 if { (ac_try="$ac_link"
24405 case "(($ac_try" in
24406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407   *) ac_try_echo=$ac_try;;
24408 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410   (eval "$ac_link") 2>conftest.er1
24411   ac_status=$?
24412   grep -v '^ *+' conftest.er1 >conftest.err
24413   rm -f conftest.er1
24414   cat conftest.err >&5
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); } && {
24417          test -z "$ac_c_werror_flag" ||
24418          test ! -s conftest.err
24419        } && test -s conftest$ac_exeext &&
24420        $as_test_x conftest$ac_exeext; then
24421   ac_cv_func_res_send=yes
24422 else
24423   echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24425
24426         ac_cv_func_res_send=no
24427 fi
24428
24429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24430       conftest$ac_exeext conftest.$ac_ext
24431 fi
24432 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24433 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24434 if test $ac_cv_func_res_send = yes; then
24435   :
24436 else
24437
24438 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24439 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24440 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24441   echo $ECHO_N "(cached) $ECHO_C" >&6
24442 else
24443   ac_check_lib_save_LIBS=$LIBS
24444 LIBS="-lresolv  $LIBS"
24445 cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h.  */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h.  */
24451
24452 /* Override any GCC internal prototype to avoid an error.
24453    Use char because int might match the return type of a GCC
24454    builtin and then its argument prototype would still apply.  */
24455 #ifdef __cplusplus
24456 extern "C"
24457 #endif
24458 char res_send ();
24459 int
24460 main ()
24461 {
24462 return res_send ();
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (ac_try="$ac_link"
24469 case "(($ac_try" in
24470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471   *) ac_try_echo=$ac_try;;
24472 esac
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474   (eval "$ac_link") 2>conftest.er1
24475   ac_status=$?
24476   grep -v '^ *+' conftest.er1 >conftest.err
24477   rm -f conftest.er1
24478   cat conftest.err >&5
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); } && {
24481          test -z "$ac_c_werror_flag" ||
24482          test ! -s conftest.err
24483        } && test -s conftest$ac_exeext &&
24484        $as_test_x conftest$ac_exeext; then
24485   ac_cv_lib_resolv_res_send=yes
24486 else
24487   echo "$as_me: failed program was:" >&5
24488 sed 's/^/| /' conftest.$ac_ext >&5
24489
24490         ac_cv_lib_resolv_res_send=no
24491 fi
24492
24493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24494       conftest$ac_exeext conftest.$ac_ext
24495 LIBS=$ac_check_lib_save_LIBS
24496 fi
24497 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24498 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24499 if test $ac_cv_lib_resolv_res_send = yes; then
24500   cat >>confdefs.h <<_ACEOF
24501 #define HAVE_LIBRESOLV 1
24502 _ACEOF
24503
24504   LIBS="-lresolv $LIBS"
24505
24506 fi
24507
24508 fi
24509
24510 if test "$hesiod" != yes; then
24511         CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24512         LDFLAGS="$LDFLAGS -L$hesiod/lib"
24513 fi
24514 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24515 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24516 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24517   echo $ECHO_N "(cached) $ECHO_C" >&6
24518 else
24519   ac_check_lib_save_LIBS=$LIBS
24520 LIBS="-lhesiod $LIBS $LIBS"
24521 cat >conftest.$ac_ext <<_ACEOF
24522 /* confdefs.h.  */
24523 _ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h.  */
24527
24528 /* Override any GCC internal prototype to avoid an error.
24529    Use char because int might match the return type of a GCC
24530    builtin and then its argument prototype would still apply.  */
24531 #ifdef __cplusplus
24532 extern "C"
24533 #endif
24534 char hes_resolve ();
24535 int
24536 main ()
24537 {
24538 return hes_resolve ();
24539   ;
24540   return 0;
24541 }
24542 _ACEOF
24543 rm -f conftest.$ac_objext conftest$ac_exeext
24544 if { (ac_try="$ac_link"
24545 case "(($ac_try" in
24546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547   *) ac_try_echo=$ac_try;;
24548 esac
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550   (eval "$ac_link") 2>conftest.er1
24551   ac_status=$?
24552   grep -v '^ *+' conftest.er1 >conftest.err
24553   rm -f conftest.er1
24554   cat conftest.err >&5
24555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556   (exit $ac_status); } && {
24557          test -z "$ac_c_werror_flag" ||
24558          test ! -s conftest.err
24559        } && test -s conftest$ac_exeext &&
24560        $as_test_x conftest$ac_exeext; then
24561   ac_cv_lib_hesiod_hes_resolve=yes
24562 else
24563   echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566         ac_cv_lib_hesiod_hes_resolve=no
24567 fi
24568
24569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24570       conftest$ac_exeext conftest.$ac_ext
24571 LIBS=$ac_check_lib_save_LIBS
24572 fi
24573 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24574 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24575 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24576   :
24577 else
24578   { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24579 echo "$as_me: error: Hesiod library not found" >&2;}
24580    { (exit 1); exit 1; }; }
24581 fi
24582
24583         HESIOD_LIBS="-lhesiod"
24584         cat >>confdefs.h <<\_ACEOF
24585 #define HAVE_HESIOD 1
24586 _ACEOF
24587
24588 fi
24589
24590
24591 # Check whether --with-regex was given.
24592 if test "${with_regex+set}" = set; then
24593   withval=$with_regex; regex="$withval"
24594 else
24595   regex=no
24596 fi
24597
24598 if test "$regex" != no; then
24599         if test "$regex" != yes; then
24600                 CPPFLAGS="$CPPFLAGS -I$regex/include"
24601                 LDFLAGS="$LDFLAGS -L$regex/lib"
24602         fi
24603         { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24604 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24605 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24606   echo $ECHO_N "(cached) $ECHO_C" >&6
24607 else
24608   ac_check_lib_save_LIBS=$LIBS
24609 LIBS="-lregex  $LIBS"
24610 cat >conftest.$ac_ext <<_ACEOF
24611 /* confdefs.h.  */
24612 _ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h.  */
24616
24617 /* Override any GCC internal prototype to avoid an error.
24618    Use char because int might match the return type of a GCC
24619    builtin and then its argument prototype would still apply.  */
24620 #ifdef __cplusplus
24621 extern "C"
24622 #endif
24623 char regcomp ();
24624 int
24625 main ()
24626 {
24627 return regcomp ();
24628   ;
24629   return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (ac_try="$ac_link"
24634 case "(($ac_try" in
24635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636   *) ac_try_echo=$ac_try;;
24637 esac
24638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639   (eval "$ac_link") 2>conftest.er1
24640   ac_status=$?
24641   grep -v '^ *+' conftest.er1 >conftest.err
24642   rm -f conftest.er1
24643   cat conftest.err >&5
24644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645   (exit $ac_status); } && {
24646          test -z "$ac_c_werror_flag" ||
24647          test ! -s conftest.err
24648        } && test -s conftest$ac_exeext &&
24649        $as_test_x conftest$ac_exeext; then
24650   ac_cv_lib_regex_regcomp=yes
24651 else
24652   echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24654
24655         ac_cv_lib_regex_regcomp=no
24656 fi
24657
24658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24659       conftest$ac_exeext conftest.$ac_ext
24660 LIBS=$ac_check_lib_save_LIBS
24661 fi
24662 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
24663 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
24664 if test $ac_cv_lib_regex_regcomp = yes; then
24665   REGEX_LIBS=-lregex
24666 else
24667   { { echo "$as_me:$LINENO: error: regex library not found" >&5
24668 echo "$as_me: error: regex library not found" >&2;}
24669    { (exit 1); exit 1; }; }
24670 fi
24671
24672 else
24673         { echo "$as_me:$LINENO: checking for regcomp" >&5
24674 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
24675 if test "${ac_cv_func_regcomp+set}" = set; then
24676   echo $ECHO_N "(cached) $ECHO_C" >&6
24677 else
24678   cat >conftest.$ac_ext <<_ACEOF
24679 /* confdefs.h.  */
24680 _ACEOF
24681 cat confdefs.h >>conftest.$ac_ext
24682 cat >>conftest.$ac_ext <<_ACEOF
24683 /* end confdefs.h.  */
24684 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
24685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24686 #define regcomp innocuous_regcomp
24687
24688 /* System header to define __stub macros and hopefully few prototypes,
24689     which can conflict with char regcomp (); below.
24690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24691     <limits.h> exists even on freestanding compilers.  */
24692
24693 #ifdef __STDC__
24694 # include <limits.h>
24695 #else
24696 # include <assert.h>
24697 #endif
24698
24699 #undef regcomp
24700
24701 /* Override any GCC internal prototype to avoid an error.
24702    Use char because int might match the return type of a GCC
24703    builtin and then its argument prototype would still apply.  */
24704 #ifdef __cplusplus
24705 extern "C"
24706 #endif
24707 char regcomp ();
24708 /* The GNU C library defines this for functions which it implements
24709     to always fail with ENOSYS.  Some functions are actually named
24710     something starting with __ and the normal name is an alias.  */
24711 #if defined __stub_regcomp || defined __stub___regcomp
24712 choke me
24713 #endif
24714
24715 int
24716 main ()
24717 {
24718 return regcomp ();
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 rm -f conftest.$ac_objext conftest$ac_exeext
24724 if { (ac_try="$ac_link"
24725 case "(($ac_try" in
24726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727   *) ac_try_echo=$ac_try;;
24728 esac
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730   (eval "$ac_link") 2>conftest.er1
24731   ac_status=$?
24732   grep -v '^ *+' conftest.er1 >conftest.err
24733   rm -f conftest.er1
24734   cat conftest.err >&5
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); } && {
24737          test -z "$ac_c_werror_flag" ||
24738          test ! -s conftest.err
24739        } && test -s conftest$ac_exeext &&
24740        $as_test_x conftest$ac_exeext; then
24741   ac_cv_func_regcomp=yes
24742 else
24743   echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746         ac_cv_func_regcomp=no
24747 fi
24748
24749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24750       conftest$ac_exeext conftest.$ac_ext
24751 fi
24752 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
24753 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
24754 if test $ac_cv_func_regcomp = yes; then
24755   :
24756 else
24757   { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
24758 echo "$as_me: error: can't find POSIX regexp support" >&2;}
24759    { (exit 1); exit 1; }; }
24760 fi
24761
24762 fi
24763
24764
24765 # Check whether --with-ares was given.
24766 if test "${with_ares+set}" = set; then
24767   withval=$with_ares; ares="$withval"
24768 else
24769   ares=no
24770 fi
24771
24772 if test "$ares" != no; then
24773         { echo "$as_me:$LINENO: checking for res_send" >&5
24774 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24775 if test "${ac_cv_func_res_send+set}" = set; then
24776   echo $ECHO_N "(cached) $ECHO_C" >&6
24777 else
24778   cat >conftest.$ac_ext <<_ACEOF
24779 /* confdefs.h.  */
24780 _ACEOF
24781 cat confdefs.h >>conftest.$ac_ext
24782 cat >>conftest.$ac_ext <<_ACEOF
24783 /* end confdefs.h.  */
24784 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24786 #define res_send innocuous_res_send
24787
24788 /* System header to define __stub macros and hopefully few prototypes,
24789     which can conflict with char res_send (); below.
24790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24791     <limits.h> exists even on freestanding compilers.  */
24792
24793 #ifdef __STDC__
24794 # include <limits.h>
24795 #else
24796 # include <assert.h>
24797 #endif
24798
24799 #undef res_send
24800
24801 /* Override any GCC internal prototype to avoid an error.
24802    Use char because int might match the return type of a GCC
24803    builtin and then its argument prototype would still apply.  */
24804 #ifdef __cplusplus
24805 extern "C"
24806 #endif
24807 char res_send ();
24808 /* The GNU C library defines this for functions which it implements
24809     to always fail with ENOSYS.  Some functions are actually named
24810     something starting with __ and the normal name is an alias.  */
24811 #if defined __stub_res_send || defined __stub___res_send
24812 choke me
24813 #endif
24814
24815 int
24816 main ()
24817 {
24818 return res_send ();
24819   ;
24820   return 0;
24821 }
24822 _ACEOF
24823 rm -f conftest.$ac_objext conftest$ac_exeext
24824 if { (ac_try="$ac_link"
24825 case "(($ac_try" in
24826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24827   *) ac_try_echo=$ac_try;;
24828 esac
24829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24830   (eval "$ac_link") 2>conftest.er1
24831   ac_status=$?
24832   grep -v '^ *+' conftest.er1 >conftest.err
24833   rm -f conftest.er1
24834   cat conftest.err >&5
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); } && {
24837          test -z "$ac_c_werror_flag" ||
24838          test ! -s conftest.err
24839        } && test -s conftest$ac_exeext &&
24840        $as_test_x conftest$ac_exeext; then
24841   ac_cv_func_res_send=yes
24842 else
24843   echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24845
24846         ac_cv_func_res_send=no
24847 fi
24848
24849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24850       conftest$ac_exeext conftest.$ac_ext
24851 fi
24852 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24853 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24854 if test $ac_cv_func_res_send = yes; then
24855   :
24856 else
24857
24858 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24859 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24860 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   ac_check_lib_save_LIBS=$LIBS
24864 LIBS="-lresolv  $LIBS"
24865 cat >conftest.$ac_ext <<_ACEOF
24866 /* confdefs.h.  */
24867 _ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h.  */
24871
24872 /* Override any GCC internal prototype to avoid an error.
24873    Use char because int might match the return type of a GCC
24874    builtin and then its argument prototype would still apply.  */
24875 #ifdef __cplusplus
24876 extern "C"
24877 #endif
24878 char res_send ();
24879 int
24880 main ()
24881 {
24882 return res_send ();
24883   ;
24884   return 0;
24885 }
24886 _ACEOF
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891   *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894   (eval "$ac_link") 2>conftest.er1
24895   ac_status=$?
24896   grep -v '^ *+' conftest.er1 >conftest.err
24897   rm -f conftest.er1
24898   cat conftest.err >&5
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); } && {
24901          test -z "$ac_c_werror_flag" ||
24902          test ! -s conftest.err
24903        } && test -s conftest$ac_exeext &&
24904        $as_test_x conftest$ac_exeext; then
24905   ac_cv_lib_resolv_res_send=yes
24906 else
24907   echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24909
24910         ac_cv_lib_resolv_res_send=no
24911 fi
24912
24913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24914       conftest$ac_exeext conftest.$ac_ext
24915 LIBS=$ac_check_lib_save_LIBS
24916 fi
24917 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24918 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24919 if test $ac_cv_lib_resolv_res_send = yes; then
24920   cat >>confdefs.h <<_ACEOF
24921 #define HAVE_LIBRESOLV 1
24922 _ACEOF
24923
24924   LIBS="-lresolv $LIBS"
24925
24926 fi
24927
24928 fi
24929
24930 if test "$ares" != yes; then
24931         CPPFLAGS="$CPPFLAGS -I$ares/include"
24932         LDFLAGS="$LDFLAGS -L$ares/lib"
24933 fi
24934 { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
24935 echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
24936 if test "${ac_cv_lib_ares_ares_init+set}" = set; then
24937   echo $ECHO_N "(cached) $ECHO_C" >&6
24938 else
24939   ac_check_lib_save_LIBS=$LIBS
24940 LIBS="-lares  $LIBS"
24941 cat >conftest.$ac_ext <<_ACEOF
24942 /* confdefs.h.  */
24943 _ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h.  */
24947
24948 /* Override any GCC internal prototype to avoid an error.
24949    Use char because int might match the return type of a GCC
24950    builtin and then its argument prototype would still apply.  */
24951 #ifdef __cplusplus
24952 extern "C"
24953 #endif
24954 char ares_init ();
24955 int
24956 main ()
24957 {
24958 return ares_init ();
24959   ;
24960   return 0;
24961 }
24962 _ACEOF
24963 rm -f conftest.$ac_objext conftest$ac_exeext
24964 if { (ac_try="$ac_link"
24965 case "(($ac_try" in
24966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967   *) ac_try_echo=$ac_try;;
24968 esac
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970   (eval "$ac_link") 2>conftest.er1
24971   ac_status=$?
24972   grep -v '^ *+' conftest.er1 >conftest.err
24973   rm -f conftest.er1
24974   cat conftest.err >&5
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } && {
24977          test -z "$ac_c_werror_flag" ||
24978          test ! -s conftest.err
24979        } && test -s conftest$ac_exeext &&
24980        $as_test_x conftest$ac_exeext; then
24981   ac_cv_lib_ares_ares_init=yes
24982 else
24983   echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24985
24986         ac_cv_lib_ares_ares_init=no
24987 fi
24988
24989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24990       conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24992 fi
24993 { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
24994 echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
24995 if test $ac_cv_lib_ares_ares_init = yes; then
24996   :
24997 else
24998   { { echo "$as_me:$LINENO: error: libares not found" >&5
24999 echo "$as_me: error: libares not found" >&2;}
25000    { (exit 1); exit 1; }; }
25001 fi
25002
25003         ARES_LIBS="-lares"
25004         cat >>confdefs.h <<\_ACEOF
25005 #define HAVE_ARES 1
25006 _ACEOF
25007
25008 fi
25009
25010
25011 # Check whether --with-com_err was given.
25012 if test "${with_com_err+set}" = set; then
25013   withval=$with_com_err; com_err="$withval"
25014 else
25015   com_err=yes
25016 fi
25017
25018 if test "$com_err" != no; then
25019         if test "$com_err" != yes; then
25020                 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25021                 LDFLAGS="$LDFLAGS -L$com_err/lib"
25022         fi
25023         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25024 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25025 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25026   echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028   ac_check_lib_save_LIBS=$LIBS
25029 LIBS="-lcom_err  $LIBS"
25030 cat >conftest.$ac_ext <<_ACEOF
25031 /* confdefs.h.  */
25032 _ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h.  */
25036
25037 /* Override any GCC internal prototype to avoid an error.
25038    Use char because int might match the return type of a GCC
25039    builtin and then its argument prototype would still apply.  */
25040 #ifdef __cplusplus
25041 extern "C"
25042 #endif
25043 char com_err ();
25044 int
25045 main ()
25046 {
25047 return com_err ();
25048   ;
25049   return 0;
25050 }
25051 _ACEOF
25052 rm -f conftest.$ac_objext conftest$ac_exeext
25053 if { (ac_try="$ac_link"
25054 case "(($ac_try" in
25055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25056   *) ac_try_echo=$ac_try;;
25057 esac
25058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25059   (eval "$ac_link") 2>conftest.er1
25060   ac_status=$?
25061   grep -v '^ *+' conftest.er1 >conftest.err
25062   rm -f conftest.er1
25063   cat conftest.err >&5
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); } && {
25066          test -z "$ac_c_werror_flag" ||
25067          test ! -s conftest.err
25068        } && test -s conftest$ac_exeext &&
25069        $as_test_x conftest$ac_exeext; then
25070   ac_cv_lib_com_err_com_err=yes
25071 else
25072   echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25074
25075         ac_cv_lib_com_err_com_err=no
25076 fi
25077
25078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25079       conftest$ac_exeext conftest.$ac_ext
25080 LIBS=$ac_check_lib_save_LIBS
25081 fi
25082 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25083 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25084 if test $ac_cv_lib_com_err_com_err = yes; then
25085   :
25086 else
25087   { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25088 echo "$as_me: error: com_err library not found" >&2;}
25089    { (exit 1); exit 1; }; }
25090 fi
25091
25092 else
25093         { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25094 echo "$as_me: error: This package requires com_err." >&2;}
25095    { (exit 1); exit 1; }; }
25096 fi
25097
25098 # Check whether --with-ss was given.
25099 if test "${with_ss+set}" = set; then
25100   withval=$with_ss; ss="$withval"
25101 else
25102   ss=yes
25103 fi
25104
25105 if test "$ss" != no; then
25106         if test "$ss" != yes; then
25107                 CPPFLAGS="$CPPFLAGS -I$ss/include"
25108                 LDFLAGS="$LDFLAGS -L$ss/lib"
25109         fi
25110
25111 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
25112 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
25113 if test "${ac_cv_lib_curses_initscr+set}" = set; then
25114   echo $ECHO_N "(cached) $ECHO_C" >&6
25115 else
25116   ac_check_lib_save_LIBS=$LIBS
25117 LIBS="-lcurses  $LIBS"
25118 cat >conftest.$ac_ext <<_ACEOF
25119 /* confdefs.h.  */
25120 _ACEOF
25121 cat confdefs.h >>conftest.$ac_ext
25122 cat >>conftest.$ac_ext <<_ACEOF
25123 /* end confdefs.h.  */
25124
25125 /* Override any GCC internal prototype to avoid an error.
25126    Use char because int might match the return type of a GCC
25127    builtin and then its argument prototype would still apply.  */
25128 #ifdef __cplusplus
25129 extern "C"
25130 #endif
25131 char initscr ();
25132 int
25133 main ()
25134 {
25135 return initscr ();
25136   ;
25137   return 0;
25138 }
25139 _ACEOF
25140 rm -f conftest.$ac_objext conftest$ac_exeext
25141 if { (ac_try="$ac_link"
25142 case "(($ac_try" in
25143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144   *) ac_try_echo=$ac_try;;
25145 esac
25146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147   (eval "$ac_link") 2>conftest.er1
25148   ac_status=$?
25149   grep -v '^ *+' conftest.er1 >conftest.err
25150   rm -f conftest.er1
25151   cat conftest.err >&5
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); } && {
25154          test -z "$ac_c_werror_flag" ||
25155          test ! -s conftest.err
25156        } && test -s conftest$ac_exeext &&
25157        $as_test_x conftest$ac_exeext; then
25158   ac_cv_lib_curses_initscr=yes
25159 else
25160   echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163         ac_cv_lib_curses_initscr=no
25164 fi
25165
25166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25167       conftest$ac_exeext conftest.$ac_ext
25168 LIBS=$ac_check_lib_save_LIBS
25169 fi
25170 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
25171 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
25172 if test $ac_cv_lib_curses_initscr = yes; then
25173   cat >>confdefs.h <<_ACEOF
25174 #define HAVE_LIBCURSES 1
25175 _ACEOF
25176
25177   LIBS="-lcurses $LIBS"
25178
25179 fi
25180
25181
25182 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
25183 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
25184 if test "${ac_cv_lib_readline_readline+set}" = set; then
25185   echo $ECHO_N "(cached) $ECHO_C" >&6
25186 else
25187   ac_check_lib_save_LIBS=$LIBS
25188 LIBS="-lreadline  $LIBS"
25189 cat >conftest.$ac_ext <<_ACEOF
25190 /* confdefs.h.  */
25191 _ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h.  */
25195
25196 /* Override any GCC internal prototype to avoid an error.
25197    Use char because int might match the return type of a GCC
25198    builtin and then its argument prototype would still apply.  */
25199 #ifdef __cplusplus
25200 extern "C"
25201 #endif
25202 char readline ();
25203 int
25204 main ()
25205 {
25206 return readline ();
25207   ;
25208   return 0;
25209 }
25210 _ACEOF
25211 rm -f conftest.$ac_objext conftest$ac_exeext
25212 if { (ac_try="$ac_link"
25213 case "(($ac_try" in
25214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215   *) ac_try_echo=$ac_try;;
25216 esac
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218   (eval "$ac_link") 2>conftest.er1
25219   ac_status=$?
25220   grep -v '^ *+' conftest.er1 >conftest.err
25221   rm -f conftest.er1
25222   cat conftest.err >&5
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); } && {
25225          test -z "$ac_c_werror_flag" ||
25226          test ! -s conftest.err
25227        } && test -s conftest$ac_exeext &&
25228        $as_test_x conftest$ac_exeext; then
25229   ac_cv_lib_readline_readline=yes
25230 else
25231   echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25233
25234         ac_cv_lib_readline_readline=no
25235 fi
25236
25237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25238       conftest$ac_exeext conftest.$ac_ext
25239 LIBS=$ac_check_lib_save_LIBS
25240 fi
25241 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
25242 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
25243 if test $ac_cv_lib_readline_readline = yes; then
25244   cat >>confdefs.h <<_ACEOF
25245 #define HAVE_LIBREADLINE 1
25246 _ACEOF
25247
25248   LIBS="-lreadline $LIBS"
25249
25250 fi
25251
25252         { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25253 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25254 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25255   echo $ECHO_N "(cached) $ECHO_C" >&6
25256 else
25257   ac_check_lib_save_LIBS=$LIBS
25258 LIBS="-lss -lcom_err $LIBS"
25259 cat >conftest.$ac_ext <<_ACEOF
25260 /* confdefs.h.  */
25261 _ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h.  */
25265
25266 /* Override any GCC internal prototype to avoid an error.
25267    Use char because int might match the return type of a GCC
25268    builtin and then its argument prototype would still apply.  */
25269 #ifdef __cplusplus
25270 extern "C"
25271 #endif
25272 char ss_perror ();
25273 int
25274 main ()
25275 {
25276 return ss_perror ();
25277   ;
25278   return 0;
25279 }
25280 _ACEOF
25281 rm -f conftest.$ac_objext conftest$ac_exeext
25282 if { (ac_try="$ac_link"
25283 case "(($ac_try" in
25284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285   *) ac_try_echo=$ac_try;;
25286 esac
25287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25288   (eval "$ac_link") 2>conftest.er1
25289   ac_status=$?
25290   grep -v '^ *+' conftest.er1 >conftest.err
25291   rm -f conftest.er1
25292   cat conftest.err >&5
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); } && {
25295          test -z "$ac_c_werror_flag" ||
25296          test ! -s conftest.err
25297        } && test -s conftest$ac_exeext &&
25298        $as_test_x conftest$ac_exeext; then
25299   ac_cv_lib_ss_ss_perror=yes
25300 else
25301   echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25303
25304         ac_cv_lib_ss_ss_perror=no
25305 fi
25306
25307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25308       conftest$ac_exeext conftest.$ac_ext
25309 LIBS=$ac_check_lib_save_LIBS
25310 fi
25311 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25312 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25313 if test $ac_cv_lib_ss_ss_perror = yes; then
25314   :
25315 else
25316   { { echo "$as_me:$LINENO: error: ss library not found" >&5
25317 echo "$as_me: error: ss library not found" >&2;}
25318    { (exit 1); exit 1; }; }
25319 fi
25320
25321 else
25322         { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25323 echo "$as_me: error: This package requires ss." >&2;}
25324    { (exit 1); exit 1; }; }
25325 fi
25326 LIBS="$KRB5_LIBS $KRB4_LIBS $HESIOD_LIBS $LIBS"
25327
25328 if test $ac_cv_c_compiler_gnu = yes; then
25329     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25330 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25331 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25332   echo $ECHO_N "(cached) $ECHO_C" >&6
25333 else
25334     ac_pattern="Autoconf.*'x'"
25335   cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h.  */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h.  */
25341 #include <sgtty.h>
25342 Autoconf TIOCGETP
25343 _ACEOF
25344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25345   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25346   ac_cv_prog_gcc_traditional=yes
25347 else
25348   ac_cv_prog_gcc_traditional=no
25349 fi
25350 rm -f conftest*
25351
25352
25353   if test $ac_cv_prog_gcc_traditional = no; then
25354     cat >conftest.$ac_ext <<_ACEOF
25355 /* confdefs.h.  */
25356 _ACEOF
25357 cat confdefs.h >>conftest.$ac_ext
25358 cat >>conftest.$ac_ext <<_ACEOF
25359 /* end confdefs.h.  */
25360 #include <termio.h>
25361 Autoconf TCGETA
25362 _ACEOF
25363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25364   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25365   ac_cv_prog_gcc_traditional=yes
25366 fi
25367 rm -f conftest*
25368
25369   fi
25370 fi
25371 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25372 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25373   if test $ac_cv_prog_gcc_traditional = yes; then
25374     CC="$CC -traditional"
25375   fi
25376 fi
25377
25378
25379 for ac_func in vprintf
25380 do
25381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25385   echo $ECHO_N "(cached) $ECHO_C" >&6
25386 else
25387   cat >conftest.$ac_ext <<_ACEOF
25388 /* confdefs.h.  */
25389 _ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h.  */
25393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25395 #define $ac_func innocuous_$ac_func
25396
25397 /* System header to define __stub macros and hopefully few prototypes,
25398     which can conflict with char $ac_func (); below.
25399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25400     <limits.h> exists even on freestanding compilers.  */
25401
25402 #ifdef __STDC__
25403 # include <limits.h>
25404 #else
25405 # include <assert.h>
25406 #endif
25407
25408 #undef $ac_func
25409
25410 /* Override any GCC internal prototype to avoid an error.
25411    Use char because int might match the return type of a GCC
25412    builtin and then its argument prototype would still apply.  */
25413 #ifdef __cplusplus
25414 extern "C"
25415 #endif
25416 char $ac_func ();
25417 /* The GNU C library defines this for functions which it implements
25418     to always fail with ENOSYS.  Some functions are actually named
25419     something starting with __ and the normal name is an alias.  */
25420 #if defined __stub_$ac_func || defined __stub___$ac_func
25421 choke me
25422 #endif
25423
25424 int
25425 main ()
25426 {
25427 return $ac_func ();
25428   ;
25429   return 0;
25430 }
25431 _ACEOF
25432 rm -f conftest.$ac_objext conftest$ac_exeext
25433 if { (ac_try="$ac_link"
25434 case "(($ac_try" in
25435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436   *) ac_try_echo=$ac_try;;
25437 esac
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439   (eval "$ac_link") 2>conftest.er1
25440   ac_status=$?
25441   grep -v '^ *+' conftest.er1 >conftest.err
25442   rm -f conftest.er1
25443   cat conftest.err >&5
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); } && {
25446          test -z "$ac_c_werror_flag" ||
25447          test ! -s conftest.err
25448        } && test -s conftest$ac_exeext &&
25449        $as_test_x conftest$ac_exeext; then
25450   eval "$as_ac_var=yes"
25451 else
25452   echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25454
25455         eval "$as_ac_var=no"
25456 fi
25457
25458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25459       conftest$ac_exeext conftest.$ac_ext
25460 fi
25461 ac_res=`eval echo '${'$as_ac_var'}'`
25462                { echo "$as_me:$LINENO: result: $ac_res" >&5
25463 echo "${ECHO_T}$ac_res" >&6; }
25464 if test `eval echo '${'$as_ac_var'}'` = yes; then
25465   cat >>confdefs.h <<_ACEOF
25466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25467 _ACEOF
25468
25469 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25470 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25471 if test "${ac_cv_func__doprnt+set}" = set; then
25472   echo $ECHO_N "(cached) $ECHO_C" >&6
25473 else
25474   cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h.  */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h.  */
25480 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25482 #define _doprnt innocuous__doprnt
25483
25484 /* System header to define __stub macros and hopefully few prototypes,
25485     which can conflict with char _doprnt (); below.
25486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25487     <limits.h> exists even on freestanding compilers.  */
25488
25489 #ifdef __STDC__
25490 # include <limits.h>
25491 #else
25492 # include <assert.h>
25493 #endif
25494
25495 #undef _doprnt
25496
25497 /* Override any GCC internal prototype to avoid an error.
25498    Use char because int might match the return type of a GCC
25499    builtin and then its argument prototype would still apply.  */
25500 #ifdef __cplusplus
25501 extern "C"
25502 #endif
25503 char _doprnt ();
25504 /* The GNU C library defines this for functions which it implements
25505     to always fail with ENOSYS.  Some functions are actually named
25506     something starting with __ and the normal name is an alias.  */
25507 #if defined __stub__doprnt || defined __stub____doprnt
25508 choke me
25509 #endif
25510
25511 int
25512 main ()
25513 {
25514 return _doprnt ();
25515   ;
25516   return 0;
25517 }
25518 _ACEOF
25519 rm -f conftest.$ac_objext conftest$ac_exeext
25520 if { (ac_try="$ac_link"
25521 case "(($ac_try" in
25522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25523   *) ac_try_echo=$ac_try;;
25524 esac
25525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25526   (eval "$ac_link") 2>conftest.er1
25527   ac_status=$?
25528   grep -v '^ *+' conftest.er1 >conftest.err
25529   rm -f conftest.er1
25530   cat conftest.err >&5
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); } && {
25533          test -z "$ac_c_werror_flag" ||
25534          test ! -s conftest.err
25535        } && test -s conftest$ac_exeext &&
25536        $as_test_x conftest$ac_exeext; then
25537   ac_cv_func__doprnt=yes
25538 else
25539   echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25541
25542         ac_cv_func__doprnt=no
25543 fi
25544
25545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25546       conftest$ac_exeext conftest.$ac_ext
25547 fi
25548 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25549 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25550 if test $ac_cv_func__doprnt = yes; then
25551
25552 cat >>confdefs.h <<\_ACEOF
25553 #define HAVE_DOPRNT 1
25554 _ACEOF
25555
25556 fi
25557
25558 fi
25559 done
25560
25561
25562 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25563 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25564 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25565   echo $ECHO_N "(cached) $ECHO_C" >&6
25566 else
25567   # Use it with a single arg.
25568 cat >conftest.$ac_ext <<_ACEOF
25569 /* confdefs.h.  */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h.  */
25574 $ac_includes_default
25575 int
25576 main ()
25577 {
25578 getpgrp (0);
25579   ;
25580   return 0;
25581 }
25582 _ACEOF
25583 rm -f conftest.$ac_objext
25584 if { (ac_try="$ac_compile"
25585 case "(($ac_try" in
25586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25587   *) ac_try_echo=$ac_try;;
25588 esac
25589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25590   (eval "$ac_compile") 2>conftest.er1
25591   ac_status=$?
25592   grep -v '^ *+' conftest.er1 >conftest.err
25593   rm -f conftest.er1
25594   cat conftest.err >&5
25595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596   (exit $ac_status); } && {
25597          test -z "$ac_c_werror_flag" ||
25598          test ! -s conftest.err
25599        } && test -s conftest.$ac_objext; then
25600   ac_cv_func_getpgrp_void=no
25601 else
25602   echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605         ac_cv_func_getpgrp_void=yes
25606 fi
25607
25608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25609
25610 fi
25611 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25612 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25613 if test $ac_cv_func_getpgrp_void = yes; then
25614
25615 cat >>confdefs.h <<\_ACEOF
25616 #define GETPGRP_VOID 1
25617 _ACEOF
25618
25619 fi
25620
25621 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25622 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25623 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25624   echo $ECHO_N "(cached) $ECHO_C" >&6
25625 else
25626   if test "$cross_compiling" = yes; then
25627   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
25628 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
25629    { (exit 1); exit 1; }; }
25630 else
25631   cat >conftest.$ac_ext <<_ACEOF
25632 /* confdefs.h.  */
25633 _ACEOF
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h.  */
25637 $ac_includes_default
25638 int
25639 main ()
25640 {
25641 /* If this system has a BSD-style setpgrp which takes arguments,
25642   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
25643   exit successfully. */
25644   return setpgrp (1,1) != -1;
25645   ;
25646   return 0;
25647 }
25648 _ACEOF
25649 rm -f conftest$ac_exeext
25650 if { (ac_try="$ac_link"
25651 case "(($ac_try" in
25652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25653   *) ac_try_echo=$ac_try;;
25654 esac
25655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25656   (eval "$ac_link") 2>&5
25657   ac_status=$?
25658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25660   { (case "(($ac_try" in
25661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25662   *) ac_try_echo=$ac_try;;
25663 esac
25664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25665   (eval "$ac_try") 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); }; }; then
25669   ac_cv_func_setpgrp_void=no
25670 else
25671   echo "$as_me: program exited with status $ac_status" >&5
25672 echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25674
25675 ( exit $ac_status )
25676 ac_cv_func_setpgrp_void=yes
25677 fi
25678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25679 fi
25680
25681
25682 fi
25683 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
25684 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
25685 if test $ac_cv_func_setpgrp_void = yes; then
25686
25687 cat >>confdefs.h <<\_ACEOF
25688 #define SETPGRP_VOID 1
25689 _ACEOF
25690
25691 fi
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
25702 do
25703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25707   echo $ECHO_N "(cached) $ECHO_C" >&6
25708 else
25709   cat >conftest.$ac_ext <<_ACEOF
25710 /* confdefs.h.  */
25711 _ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h.  */
25715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25717 #define $ac_func innocuous_$ac_func
25718
25719 /* System header to define __stub macros and hopefully few prototypes,
25720     which can conflict with char $ac_func (); below.
25721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25722     <limits.h> exists even on freestanding compilers.  */
25723
25724 #ifdef __STDC__
25725 # include <limits.h>
25726 #else
25727 # include <assert.h>
25728 #endif
25729
25730 #undef $ac_func
25731
25732 /* Override any GCC internal prototype to avoid an error.
25733    Use char because int might match the return type of a GCC
25734    builtin and then its argument prototype would still apply.  */
25735 #ifdef __cplusplus
25736 extern "C"
25737 #endif
25738 char $ac_func ();
25739 /* The GNU C library defines this for functions which it implements
25740     to always fail with ENOSYS.  Some functions are actually named
25741     something starting with __ and the normal name is an alias.  */
25742 #if defined __stub_$ac_func || defined __stub___$ac_func
25743 choke me
25744 #endif
25745
25746 int
25747 main ()
25748 {
25749 return $ac_func ();
25750   ;
25751   return 0;
25752 }
25753 _ACEOF
25754 rm -f conftest.$ac_objext conftest$ac_exeext
25755 if { (ac_try="$ac_link"
25756 case "(($ac_try" in
25757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25758   *) ac_try_echo=$ac_try;;
25759 esac
25760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761   (eval "$ac_link") 2>conftest.er1
25762   ac_status=$?
25763   grep -v '^ *+' conftest.er1 >conftest.err
25764   rm -f conftest.er1
25765   cat conftest.err >&5
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); } && {
25768          test -z "$ac_c_werror_flag" ||
25769          test ! -s conftest.err
25770        } && test -s conftest$ac_exeext &&
25771        $as_test_x conftest$ac_exeext; then
25772   eval "$as_ac_var=yes"
25773 else
25774   echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25776
25777         eval "$as_ac_var=no"
25778 fi
25779
25780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25781       conftest$ac_exeext conftest.$ac_ext
25782 fi
25783 ac_res=`eval echo '${'$as_ac_var'}'`
25784                { echo "$as_me:$LINENO: result: $ac_res" >&5
25785 echo "${ECHO_T}$ac_res" >&6; }
25786 if test `eval echo '${'$as_ac_var'}'` = yes; then
25787   cat >>confdefs.h <<_ACEOF
25788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25789 _ACEOF
25790
25791 fi
25792 done
25793
25794
25795
25796
25797
25798
25799
25800 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
25801 do
25802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25806   echo $ECHO_N "(cached) $ECHO_C" >&6
25807 else
25808   cat >conftest.$ac_ext <<_ACEOF
25809 /* confdefs.h.  */
25810 _ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h.  */
25814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25816 #define $ac_func innocuous_$ac_func
25817
25818 /* System header to define __stub macros and hopefully few prototypes,
25819     which can conflict with char $ac_func (); below.
25820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25821     <limits.h> exists even on freestanding compilers.  */
25822
25823 #ifdef __STDC__
25824 # include <limits.h>
25825 #else
25826 # include <assert.h>
25827 #endif
25828
25829 #undef $ac_func
25830
25831 /* Override any GCC internal prototype to avoid an error.
25832    Use char because int might match the return type of a GCC
25833    builtin and then its argument prototype would still apply.  */
25834 #ifdef __cplusplus
25835 extern "C"
25836 #endif
25837 char $ac_func ();
25838 /* The GNU C library defines this for functions which it implements
25839     to always fail with ENOSYS.  Some functions are actually named
25840     something starting with __ and the normal name is an alias.  */
25841 #if defined __stub_$ac_func || defined __stub___$ac_func
25842 choke me
25843 #endif
25844
25845 int
25846 main ()
25847 {
25848 return $ac_func ();
25849   ;
25850   return 0;
25851 }
25852 _ACEOF
25853 rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (ac_try="$ac_link"
25855 case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_link") 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } && {
25867          test -z "$ac_c_werror_flag" ||
25868          test ! -s conftest.err
25869        } && test -s conftest$ac_exeext &&
25870        $as_test_x conftest$ac_exeext; then
25871   eval "$as_ac_var=yes"
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876         eval "$as_ac_var=no"
25877 fi
25878
25879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25880       conftest$ac_exeext conftest.$ac_ext
25881 fi
25882 ac_res=`eval echo '${'$as_ac_var'}'`
25883                { echo "$as_me:$LINENO: result: $ac_res" >&5
25884 echo "${ECHO_T}$ac_res" >&6; }
25885 if test `eval echo '${'$as_ac_var'}'` = yes; then
25886   cat >>confdefs.h <<_ACEOF
25887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25888 _ACEOF
25889
25890 fi
25891 done
25892
25893
25894
25895
25896 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
25897 do
25898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25902   echo $ECHO_N "(cached) $ECHO_C" >&6
25903 else
25904   cat >conftest.$ac_ext <<_ACEOF
25905 /* confdefs.h.  */
25906 _ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h.  */
25910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25912 #define $ac_func innocuous_$ac_func
25913
25914 /* System header to define __stub macros and hopefully few prototypes,
25915     which can conflict with char $ac_func (); below.
25916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25917     <limits.h> exists even on freestanding compilers.  */
25918
25919 #ifdef __STDC__
25920 # include <limits.h>
25921 #else
25922 # include <assert.h>
25923 #endif
25924
25925 #undef $ac_func
25926
25927 /* Override any GCC internal prototype to avoid an error.
25928    Use char because int might match the return type of a GCC
25929    builtin and then its argument prototype would still apply.  */
25930 #ifdef __cplusplus
25931 extern "C"
25932 #endif
25933 char $ac_func ();
25934 /* The GNU C library defines this for functions which it implements
25935     to always fail with ENOSYS.  Some functions are actually named
25936     something starting with __ and the normal name is an alias.  */
25937 #if defined __stub_$ac_func || defined __stub___$ac_func
25938 choke me
25939 #endif
25940
25941 int
25942 main ()
25943 {
25944 return $ac_func ();
25945   ;
25946   return 0;
25947 }
25948 _ACEOF
25949 rm -f conftest.$ac_objext conftest$ac_exeext
25950 if { (ac_try="$ac_link"
25951 case "(($ac_try" in
25952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953   *) ac_try_echo=$ac_try;;
25954 esac
25955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25956   (eval "$ac_link") 2>conftest.er1
25957   ac_status=$?
25958   grep -v '^ *+' conftest.er1 >conftest.err
25959   rm -f conftest.er1
25960   cat conftest.err >&5
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } && {
25963          test -z "$ac_c_werror_flag" ||
25964          test ! -s conftest.err
25965        } && test -s conftest$ac_exeext &&
25966        $as_test_x conftest$ac_exeext; then
25967   eval "$as_ac_var=yes"
25968 else
25969   echo "$as_me: failed program was:" >&5
25970 sed 's/^/| /' conftest.$ac_ext >&5
25971
25972         eval "$as_ac_var=no"
25973 fi
25974
25975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25976       conftest$ac_exeext conftest.$ac_ext
25977 fi
25978 ac_res=`eval echo '${'$as_ac_var'}'`
25979                { echo "$as_me:$LINENO: result: $ac_res" >&5
25980 echo "${ECHO_T}$ac_res" >&6; }
25981 if test `eval echo '${'$as_ac_var'}'` = yes; then
25982   cat >>confdefs.h <<_ACEOF
25983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25984 _ACEOF
25985
25986 fi
25987 done
25988
25989
25990 { echo "$as_me:$LINENO: checking for krb5_auth_con_getauthenticator taking double pointer" >&5
25991 echo $ECHO_N "checking for krb5_auth_con_getauthenticator taking double pointer... $ECHO_C" >&6; }
25992 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
25993   echo $ECHO_N "(cached) $ECHO_C" >&6
25994 else
25995
25996 local_save_CPPFLAGS="$CPPFLAGS"
25997 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
25998 cat >conftest.$ac_ext <<_ACEOF
25999 /* confdefs.h.  */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h.  */
26004 #define socklen_t int
26005 #define ssize_t int
26006 #include <krb5.h>
26007 krb5_error_code
26008 krb5_auth_con_getauthenticator(krb5_context context,
26009                            krb5_auth_context auth_context,
26010                            krb5_authenticator *authenticator);
26011 int
26012 main ()
26013 {
26014 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26015   ;
26016   return 0;
26017 }
26018 _ACEOF
26019 rm -f conftest.$ac_objext
26020 if { (ac_try="$ac_compile"
26021 case "(($ac_try" in
26022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26023   *) ac_try_echo=$ac_try;;
26024 esac
26025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26026   (eval "$ac_compile") 2>conftest.er1
26027   ac_status=$?
26028   grep -v '^ *+' conftest.er1 >conftest.err
26029   rm -f conftest.er1
26030   cat conftest.err >&5
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); } && {
26033          test -z "$ac_c_werror_flag" ||
26034          test ! -s conftest.err
26035        } && test -s conftest.$ac_objext; then
26036   ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26037 else
26038   echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26040
26041         ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26042 fi
26043
26044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26045
26046 fi
26047
26048 CPPFLAGS="${local_save_CPPFLAGS}"
26049 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26050         cat >>confdefs.h <<\_ACEOF
26051 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26052 _ACEOF
26053 fi
26054 { echo "$as_me:$LINENO: result: $ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&5
26055 echo "${ECHO_T}$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&6; }
26056
26057 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26058 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26059 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26060   echo $ECHO_N "(cached) $ECHO_C" >&6
26061 else
26062
26063 local_save_CPPFLAGS="$CPPFLAGS"
26064 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26065 cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h.  */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h.  */
26071 #include <krb5.h>
26072 int
26073 main ()
26074 {
26075 krb5_ticket _tkt; _tkt.enc_part2;
26076   ;
26077   return 0;
26078 }
26079 _ACEOF
26080 rm -f conftest.$ac_objext
26081 if { (ac_try="$ac_compile"
26082 case "(($ac_try" in
26083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26084   *) ac_try_echo=$ac_try;;
26085 esac
26086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26087   (eval "$ac_compile") 2>conftest.er1
26088   ac_status=$?
26089   grep -v '^ *+' conftest.er1 >conftest.err
26090   rm -f conftest.er1
26091   cat conftest.err >&5
26092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093   (exit $ac_status); } && {
26094          test -z "$ac_c_werror_flag" ||
26095          test ! -s conftest.err
26096        } && test -s conftest.$ac_objext; then
26097   ac_cv_have_krb5_ticket_enc_part2=yes
26098 else
26099   echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26101
26102         ac_cv_have_krb5_ticket_enc_part2=no
26103 fi
26104
26105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26106
26107 fi
26108
26109 CPPFLAGS="${local_save_CPPFLAGS}"
26110 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26111         cat >>confdefs.h <<\_ACEOF
26112 #define HAVE_KRB5_TICKET_ENC_PART2 1
26113 _ACEOF
26114 fi
26115 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26116 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26117
26118 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26119 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26120 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26121   echo $ECHO_N "(cached) $ECHO_C" >&6
26122 else
26123
26124 local_save_CPPFLAGS="$CPPFLAGS"
26125 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26126 cat >conftest.$ac_ext <<_ACEOF
26127 /* confdefs.h.  */
26128 _ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h.  */
26132 #include <krb5.h>
26133 int
26134 main ()
26135 {
26136 krb5_creds _creds; _creds.keyblock.enctype;
26137   ;
26138   return 0;
26139 }
26140 _ACEOF
26141 rm -f conftest.$ac_objext
26142 if { (ac_try="$ac_compile"
26143 case "(($ac_try" in
26144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145   *) ac_try_echo=$ac_try;;
26146 esac
26147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26148   (eval "$ac_compile") 2>conftest.er1
26149   ac_status=$?
26150   grep -v '^ *+' conftest.er1 >conftest.err
26151   rm -f conftest.er1
26152   cat conftest.err >&5
26153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); } && {
26155          test -z "$ac_c_werror_flag" ||
26156          test ! -s conftest.err
26157        } && test -s conftest.$ac_objext; then
26158   ac_cv_have_krb5_creds_keyblock_enctype=yes
26159 else
26160   echo "$as_me: failed program was:" >&5
26161 sed 's/^/| /' conftest.$ac_ext >&5
26162
26163         ac_cv_have_krb5_creds_keyblock_enctype=no
26164 fi
26165
26166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26167
26168 fi
26169
26170 CPPFLAGS="${local_save_CPPFLAGS}"
26171 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26172         cat >>confdefs.h <<\_ACEOF
26173 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26174 _ACEOF
26175 fi
26176 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26177 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26178
26179 ac_config_headers="$ac_config_headers h/config.h"
26180
26181 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"
26182
26183 cat >confcache <<\_ACEOF
26184 # This file is a shell script that caches the results of configure
26185 # tests run on this system so they can be shared between configure
26186 # scripts and configure runs, see configure's option --config-cache.
26187 # It is not useful on other systems.  If it contains results you don't
26188 # want to keep, you may remove or edit it.
26189 #
26190 # config.status only pays attention to the cache file if you give it
26191 # the --recheck option to rerun configure.
26192 #
26193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26195 # following values.
26196
26197 _ACEOF
26198
26199 # The following way of writing the cache mishandles newlines in values,
26200 # but we know of no workaround that is simple, portable, and efficient.
26201 # So, we kill variables containing newlines.
26202 # Ultrix sh set writes to stderr and can't be redirected directly,
26203 # and sets the high bit in the cache file unless we assign to the vars.
26204 (
26205   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26206     eval ac_val=\$$ac_var
26207     case $ac_val in #(
26208     *${as_nl}*)
26209       case $ac_var in #(
26210       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26211 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26212       esac
26213       case $ac_var in #(
26214       _ | IFS | as_nl) ;; #(
26215       *) $as_unset $ac_var ;;
26216       esac ;;
26217     esac
26218   done
26219
26220   (set) 2>&1 |
26221     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26222     *${as_nl}ac_space=\ *)
26223       # `set' does not quote correctly, so add quotes (double-quote
26224       # substitution turns \\\\ into \\, and sed turns \\ into \).
26225       sed -n \
26226         "s/'/'\\\\''/g;
26227           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26228       ;; #(
26229     *)
26230       # `set' quotes correctly as required by POSIX, so do not add quotes.
26231       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26232       ;;
26233     esac |
26234     sort
26235 ) |
26236   sed '
26237      /^ac_cv_env_/b end
26238      t clear
26239      :clear
26240      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26241      t end
26242      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26243      :end' >>confcache
26244 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26245   if test -w "$cache_file"; then
26246     test "x$cache_file" != "x/dev/null" &&
26247       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26248 echo "$as_me: updating cache $cache_file" >&6;}
26249     cat confcache >$cache_file
26250   else
26251     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26252 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26253   fi
26254 fi
26255 rm -f confcache
26256
26257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26258 # Let make expand exec_prefix.
26259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26260
26261 DEFS=-DHAVE_CONFIG_H
26262
26263 ac_libobjs=
26264 ac_ltlibobjs=
26265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26266   # 1. Remove the extension, and $U if already installed.
26267   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26268   ac_i=`echo "$ac_i" | sed "$ac_script"`
26269   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26270   #    will be set to the directory where LIBOBJS objects are built.
26271   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26272   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26273 done
26274 LIBOBJS=$ac_libobjs
26275
26276 LTLIBOBJS=$ac_ltlibobjs
26277
26278
26279
26280 : ${CONFIG_STATUS=./config.status}
26281 ac_clean_files_save=$ac_clean_files
26282 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26283 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26284 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26285 cat >$CONFIG_STATUS <<_ACEOF
26286 #! $SHELL
26287 # Generated by $as_me.
26288 # Run this file to recreate the current configuration.
26289 # Compiler output produced by configure, useful for debugging
26290 # configure, is in config.log if it exists.
26291
26292 debug=false
26293 ac_cs_recheck=false
26294 ac_cs_silent=false
26295 SHELL=\${CONFIG_SHELL-$SHELL}
26296 _ACEOF
26297
26298 cat >>$CONFIG_STATUS <<\_ACEOF
26299 ## --------------------- ##
26300 ## M4sh Initialization.  ##
26301 ## --------------------- ##
26302
26303 # Be more Bourne compatible
26304 DUALCASE=1; export DUALCASE # for MKS sh
26305 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26306   emulate sh
26307   NULLCMD=:
26308   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26309   # is contrary to our usage.  Disable this feature.
26310   alias -g '${1+"$@"}'='"$@"'
26311   setopt NO_GLOB_SUBST
26312 else
26313   case `(set -o) 2>/dev/null` in
26314   *posix*) set -o posix ;;
26315 esac
26316
26317 fi
26318
26319
26320
26321
26322 # PATH needs CR
26323 # Avoid depending upon Character Ranges.
26324 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26325 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26326 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26327 as_cr_digits='0123456789'
26328 as_cr_alnum=$as_cr_Letters$as_cr_digits
26329
26330 # The user is always right.
26331 if test "${PATH_SEPARATOR+set}" != set; then
26332   echo "#! /bin/sh" >conf$$.sh
26333   echo  "exit 0"   >>conf$$.sh
26334   chmod +x conf$$.sh
26335   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26336     PATH_SEPARATOR=';'
26337   else
26338     PATH_SEPARATOR=:
26339   fi
26340   rm -f conf$$.sh
26341 fi
26342
26343 # Support unset when possible.
26344 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26345   as_unset=unset
26346 else
26347   as_unset=false
26348 fi
26349
26350
26351 # IFS
26352 # We need space, tab and new line, in precisely that order.  Quoting is
26353 # there to prevent editors from complaining about space-tab.
26354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26355 # splitting by setting IFS to empty value.)
26356 as_nl='
26357 '
26358 IFS=" ""        $as_nl"
26359
26360 # Find who we are.  Look in the path if we contain no directory separator.
26361 case $0 in
26362   *[\\/]* ) as_myself=$0 ;;
26363   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26364 for as_dir in $PATH
26365 do
26366   IFS=$as_save_IFS
26367   test -z "$as_dir" && as_dir=.
26368   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26369 done
26370 IFS=$as_save_IFS
26371
26372      ;;
26373 esac
26374 # We did not find ourselves, most probably we were run as `sh COMMAND'
26375 # in which case we are not to be found in the path.
26376 if test "x$as_myself" = x; then
26377   as_myself=$0
26378 fi
26379 if test ! -f "$as_myself"; then
26380   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26381   { (exit 1); exit 1; }
26382 fi
26383
26384 # Work around bugs in pre-3.0 UWIN ksh.
26385 for as_var in ENV MAIL MAILPATH
26386 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26387 done
26388 PS1='$ '
26389 PS2='> '
26390 PS4='+ '
26391
26392 # NLS nuisances.
26393 for as_var in \
26394   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26395   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26396   LC_TELEPHONE LC_TIME
26397 do
26398   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26399     eval $as_var=C; export $as_var
26400   else
26401     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26402   fi
26403 done
26404
26405 # Required to use basename.
26406 if expr a : '\(a\)' >/dev/null 2>&1 &&
26407    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26408   as_expr=expr
26409 else
26410   as_expr=false
26411 fi
26412
26413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26414   as_basename=basename
26415 else
26416   as_basename=false
26417 fi
26418
26419
26420 # Name of the executable.
26421 as_me=`$as_basename -- "$0" ||
26422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26423          X"$0" : 'X\(//\)$' \| \
26424          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26425 echo X/"$0" |
26426     sed '/^.*\/\([^/][^/]*\)\/*$/{
26427             s//\1/
26428             q
26429           }
26430           /^X\/\(\/\/\)$/{
26431             s//\1/
26432             q
26433           }
26434           /^X\/\(\/\).*/{
26435             s//\1/
26436             q
26437           }
26438           s/.*/./; q'`
26439
26440 # CDPATH.
26441 $as_unset CDPATH
26442
26443
26444
26445   as_lineno_1=$LINENO
26446   as_lineno_2=$LINENO
26447   test "x$as_lineno_1" != "x$as_lineno_2" &&
26448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26449
26450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26451   # uniformly replaced by the line number.  The first 'sed' inserts a
26452   # line-number line after each line using $LINENO; the second 'sed'
26453   # does the real work.  The second script uses 'N' to pair each
26454   # line-number line with the line containing $LINENO, and appends
26455   # trailing '-' during substitution so that $LINENO is not a special
26456   # case at line end.
26457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26459   # E. McMahon (1931-1989) for sed's syntax.  :-)
26460   sed -n '
26461     p
26462     /[$]LINENO/=
26463   ' <$as_myself |
26464     sed '
26465       s/[$]LINENO.*/&-/
26466       t lineno
26467       b
26468       :lineno
26469       N
26470       :loop
26471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26472       t loop
26473       s/-\n.*//
26474     ' >$as_me.lineno &&
26475   chmod +x "$as_me.lineno" ||
26476     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26477    { (exit 1); exit 1; }; }
26478
26479   # Don't try to exec as it changes $[0], causing all sort of problems
26480   # (the dirname of $[0] is not the place where we might find the
26481   # original and so on.  Autoconf is especially sensitive to this).
26482   . "./$as_me.lineno"
26483   # Exit status is that of the last command.
26484   exit
26485 }
26486
26487
26488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26489   as_dirname=dirname
26490 else
26491   as_dirname=false
26492 fi
26493
26494 ECHO_C= ECHO_N= ECHO_T=
26495 case `echo -n x` in
26496 -n*)
26497   case `echo 'x\c'` in
26498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26499   *)   ECHO_C='\c';;
26500   esac;;
26501 *)
26502   ECHO_N='-n';;
26503 esac
26504
26505 if expr a : '\(a\)' >/dev/null 2>&1 &&
26506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26507   as_expr=expr
26508 else
26509   as_expr=false
26510 fi
26511
26512 rm -f conf$$ conf$$.exe conf$$.file
26513 if test -d conf$$.dir; then
26514   rm -f conf$$.dir/conf$$.file
26515 else
26516   rm -f conf$$.dir
26517   mkdir conf$$.dir
26518 fi
26519 echo >conf$$.file
26520 if ln -s conf$$.file conf$$ 2>/dev/null; then
26521   as_ln_s='ln -s'
26522   # ... but there are two gotchas:
26523   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26524   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26525   # In both cases, we have to default to `cp -p'.
26526   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26527     as_ln_s='cp -p'
26528 elif ln conf$$.file conf$$ 2>/dev/null; then
26529   as_ln_s=ln
26530 else
26531   as_ln_s='cp -p'
26532 fi
26533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26534 rmdir conf$$.dir 2>/dev/null
26535
26536 if mkdir -p . 2>/dev/null; then
26537   as_mkdir_p=:
26538 else
26539   test -d ./-p && rmdir ./-p
26540   as_mkdir_p=false
26541 fi
26542
26543 if test -x / >/dev/null 2>&1; then
26544   as_test_x='test -x'
26545 else
26546   if ls -dL / >/dev/null 2>&1; then
26547     as_ls_L_option=L
26548   else
26549     as_ls_L_option=
26550   fi
26551   as_test_x='
26552     eval sh -c '\''
26553       if test -d "$1"; then
26554         test -d "$1/.";
26555       else
26556         case $1 in
26557         -*)set "./$1";;
26558         esac;
26559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26560         ???[sx]*):;;*)false;;esac;fi
26561     '\'' sh
26562   '
26563 fi
26564 as_executable_p=$as_test_x
26565
26566 # Sed expression to map a string onto a valid CPP name.
26567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26568
26569 # Sed expression to map a string onto a valid variable name.
26570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26571
26572
26573 exec 6>&1
26574
26575 # Save the log message, to keep $[0] and so on meaningful, and to
26576 # report actual input values of CONFIG_FILES etc. instead of their
26577 # values after options handling.
26578 ac_log="
26579 This file was extended by $as_me, which was
26580 generated by GNU Autoconf 2.61.  Invocation command line was
26581
26582   CONFIG_FILES    = $CONFIG_FILES
26583   CONFIG_HEADERS  = $CONFIG_HEADERS
26584   CONFIG_LINKS    = $CONFIG_LINKS
26585   CONFIG_COMMANDS = $CONFIG_COMMANDS
26586   $ $0 $@
26587
26588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26589 "
26590
26591 _ACEOF
26592
26593 cat >>$CONFIG_STATUS <<_ACEOF
26594 # Files that config.status was made for.
26595 config_files="$ac_config_files"
26596 config_headers="$ac_config_headers"
26597
26598 _ACEOF
26599
26600 cat >>$CONFIG_STATUS <<\_ACEOF
26601 ac_cs_usage="\
26602 \`$as_me' instantiates files from templates according to the
26603 current configuration.
26604
26605 Usage: $0 [OPTIONS] [FILE]...
26606
26607   -h, --help       print this help, then exit
26608   -V, --version    print version number and configuration settings, then exit
26609   -q, --quiet      do not print progress messages
26610   -d, --debug      don't remove temporary files
26611       --recheck    update $as_me by reconfiguring in the same conditions
26612   --file=FILE[:TEMPLATE]
26613                    instantiate the configuration file FILE
26614   --header=FILE[:TEMPLATE]
26615                    instantiate the configuration header FILE
26616
26617 Configuration files:
26618 $config_files
26619
26620 Configuration headers:
26621 $config_headers
26622
26623 Report bugs to <bug-autoconf@gnu.org>."
26624
26625 _ACEOF
26626 cat >>$CONFIG_STATUS <<_ACEOF
26627 ac_cs_version="\\
26628 config.status
26629 configured by $0, generated by GNU Autoconf 2.61,
26630   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26631
26632 Copyright (C) 2006 Free Software Foundation, Inc.
26633 This config.status script is free software; the Free Software Foundation
26634 gives unlimited permission to copy, distribute and modify it."
26635
26636 ac_pwd='$ac_pwd'
26637 srcdir='$srcdir'
26638 INSTALL='$INSTALL'
26639 _ACEOF
26640
26641 cat >>$CONFIG_STATUS <<\_ACEOF
26642 # If no file are specified by the user, then we need to provide default
26643 # value.  By we need to know if files were specified by the user.
26644 ac_need_defaults=:
26645 while test $# != 0
26646 do
26647   case $1 in
26648   --*=*)
26649     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26650     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26651     ac_shift=:
26652     ;;
26653   *)
26654     ac_option=$1
26655     ac_optarg=$2
26656     ac_shift=shift
26657     ;;
26658   esac
26659
26660   case $ac_option in
26661   # Handling of the options.
26662   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26663     ac_cs_recheck=: ;;
26664   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26665     echo "$ac_cs_version"; exit ;;
26666   --debug | --debu | --deb | --de | --d | -d )
26667     debug=: ;;
26668   --file | --fil | --fi | --f )
26669     $ac_shift
26670     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26671     ac_need_defaults=false;;
26672   --header | --heade | --head | --hea )
26673     $ac_shift
26674     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26675     ac_need_defaults=false;;
26676   --he | --h)
26677     # Conflict between --help and --header
26678     { echo "$as_me: error: ambiguous option: $1
26679 Try \`$0 --help' for more information." >&2
26680    { (exit 1); exit 1; }; };;
26681   --help | --hel | -h )
26682     echo "$ac_cs_usage"; exit ;;
26683   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26684   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26685     ac_cs_silent=: ;;
26686
26687   # This is an error.
26688   -*) { echo "$as_me: error: unrecognized option: $1
26689 Try \`$0 --help' for more information." >&2
26690    { (exit 1); exit 1; }; } ;;
26691
26692   *) ac_config_targets="$ac_config_targets $1"
26693      ac_need_defaults=false ;;
26694
26695   esac
26696   shift
26697 done
26698
26699 ac_configure_extra_args=
26700
26701 if $ac_cs_silent; then
26702   exec 6>/dev/null
26703   ac_configure_extra_args="$ac_configure_extra_args --silent"
26704 fi
26705
26706 _ACEOF
26707 cat >>$CONFIG_STATUS <<_ACEOF
26708 if \$ac_cs_recheck; then
26709   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26710   CONFIG_SHELL=$SHELL
26711   export CONFIG_SHELL
26712   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26713 fi
26714
26715 _ACEOF
26716 cat >>$CONFIG_STATUS <<\_ACEOF
26717 exec 5>>config.log
26718 {
26719   echo
26720   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26721 ## Running $as_me. ##
26722 _ASBOX
26723   echo "$ac_log"
26724 } >&5
26725
26726 _ACEOF
26727 cat >>$CONFIG_STATUS <<_ACEOF
26728 _ACEOF
26729
26730 cat >>$CONFIG_STATUS <<\_ACEOF
26731
26732 # Handling of arguments.
26733 for ac_config_target in $ac_config_targets
26734 do
26735   case $ac_config_target in
26736     "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
26737     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26738     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
26739     "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
26740     "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
26741     "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
26742     "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
26743     "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
26744     "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
26745     "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
26746     "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
26747     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26748     "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
26749     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
26750     "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
26751     "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
26752
26753   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26754 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26755    { (exit 1); exit 1; }; };;
26756   esac
26757 done
26758
26759
26760 # If the user did not use the arguments to specify the items to instantiate,
26761 # then the envvar interface is used.  Set only those that are not.
26762 # We use the long form for the default assignment because of an extremely
26763 # bizarre bug on SunOS 4.1.3.
26764 if $ac_need_defaults; then
26765   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26766   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26767 fi
26768
26769 # Have a temporary directory for convenience.  Make it in the build tree
26770 # simply because there is no reason against having it here, and in addition,
26771 # creating and moving files from /tmp can sometimes cause problems.
26772 # Hook for its removal unless debugging.
26773 # Note that there is a small window in which the directory will not be cleaned:
26774 # after its creation but before its name has been assigned to `$tmp'.
26775 $debug ||
26776 {
26777   tmp=
26778   trap 'exit_status=$?
26779   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26780 ' 0
26781   trap '{ (exit 1); exit 1; }' 1 2 13 15
26782 }
26783 # Create a (secure) tmp directory for tmp files.
26784
26785 {
26786   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26787   test -n "$tmp" && test -d "$tmp"
26788 }  ||
26789 {
26790   tmp=./conf$$-$RANDOM
26791   (umask 077 && mkdir "$tmp")
26792 } ||
26793 {
26794    echo "$me: cannot create a temporary directory in ." >&2
26795    { (exit 1); exit 1; }
26796 }
26797
26798 #
26799 # Set up the sed scripts for CONFIG_FILES section.
26800 #
26801
26802 # No need to generate the scripts if there are no CONFIG_FILES.
26803 # This happens for instance when ./config.status config.h
26804 if test -n "$CONFIG_FILES"; then
26805
26806 _ACEOF
26807
26808
26809
26810 ac_delim='%!_!# '
26811 for ac_last_try in false false false false false :; do
26812   cat >conf$$subs.sed <<_ACEOF
26813 SHELL!$SHELL$ac_delim
26814 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26815 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26816 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26817 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26818 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26819 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26820 exec_prefix!$exec_prefix$ac_delim
26821 prefix!$prefix$ac_delim
26822 program_transform_name!$program_transform_name$ac_delim
26823 bindir!$bindir$ac_delim
26824 sbindir!$sbindir$ac_delim
26825 libexecdir!$libexecdir$ac_delim
26826 datarootdir!$datarootdir$ac_delim
26827 datadir!$datadir$ac_delim
26828 sysconfdir!$sysconfdir$ac_delim
26829 sharedstatedir!$sharedstatedir$ac_delim
26830 localstatedir!$localstatedir$ac_delim
26831 includedir!$includedir$ac_delim
26832 oldincludedir!$oldincludedir$ac_delim
26833 docdir!$docdir$ac_delim
26834 infodir!$infodir$ac_delim
26835 htmldir!$htmldir$ac_delim
26836 dvidir!$dvidir$ac_delim
26837 pdfdir!$pdfdir$ac_delim
26838 psdir!$psdir$ac_delim
26839 libdir!$libdir$ac_delim
26840 localedir!$localedir$ac_delim
26841 mandir!$mandir$ac_delim
26842 DEFS!$DEFS$ac_delim
26843 ECHO_C!$ECHO_C$ac_delim
26844 ECHO_N!$ECHO_N$ac_delim
26845 ECHO_T!$ECHO_T$ac_delim
26846 LIBS!$LIBS$ac_delim
26847 build_alias!$build_alias$ac_delim
26848 host_alias!$host_alias$ac_delim
26849 target_alias!$target_alias$ac_delim
26850 lbindir!$lbindir$ac_delim
26851 lsbindir!$lsbindir$ac_delim
26852 build!$build$ac_delim
26853 build_cpu!$build_cpu$ac_delim
26854 build_vendor!$build_vendor$ac_delim
26855 build_os!$build_os$ac_delim
26856 host!$host$ac_delim
26857 host_cpu!$host_cpu$ac_delim
26858 host_vendor!$host_vendor$ac_delim
26859 host_os!$host_os$ac_delim
26860 target!$target$ac_delim
26861 target_cpu!$target_cpu$ac_delim
26862 target_vendor!$target_vendor$ac_delim
26863 target_os!$target_os$ac_delim
26864 CC!$CC$ac_delim
26865 CFLAGS!$CFLAGS$ac_delim
26866 LDFLAGS!$LDFLAGS$ac_delim
26867 CPPFLAGS!$CPPFLAGS$ac_delim
26868 ac_ct_CC!$ac_ct_CC$ac_delim
26869 EXEEXT!$EXEEXT$ac_delim
26870 OBJEXT!$OBJEXT$ac_delim
26871 YACC!$YACC$ac_delim
26872 YFLAGS!$YFLAGS$ac_delim
26873 LEX!$LEX$ac_delim
26874 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
26875 LEXLIB!$LEXLIB$ac_delim
26876 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26877 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26878 INSTALL_DATA!$INSTALL_DATA$ac_delim
26879 RANLIB!$RANLIB$ac_delim
26880 GREP!$GREP$ac_delim
26881 EGREP!$EGREP$ac_delim
26882 LN_S!$LN_S$ac_delim
26883 ECHO!$ECHO$ac_delim
26884 AR!$AR$ac_delim
26885 STRIP!$STRIP$ac_delim
26886 CPP!$CPP$ac_delim
26887 CXX!$CXX$ac_delim
26888 CXXFLAGS!$CXXFLAGS$ac_delim
26889 ac_ct_CXX!$ac_ct_CXX$ac_delim
26890 CXXCPP!$CXXCPP$ac_delim
26891 F77!$F77$ac_delim
26892 FFLAGS!$FFLAGS$ac_delim
26893 ac_ct_F77!$ac_ct_F77$ac_delim
26894 LIBTOOL!$LIBTOOL$ac_delim
26895 XMKMF!$XMKMF$ac_delim
26896 X_CFLAGS!$X_CFLAGS$ac_delim
26897 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
26898 X_LIBS!$X_LIBS$ac_delim
26899 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
26900 XCLIENTS!$XCLIENTS$ac_delim
26901 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
26902 TLIB!$TLIB$ac_delim
26903 RLIB!$RLIB$ac_delim
26904 SLIB!$SLIB$ac_delim
26905 KRB4_LIBS!$KRB4_LIBS$ac_delim
26906 KRB5_LIBS!$KRB5_LIBS$ac_delim
26907 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
26908 REGEX_LIBS!$REGEX_LIBS$ac_delim
26909 ARES_LIBS!$ARES_LIBS$ac_delim
26910 _ACEOF
26911
26912   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26913     break
26914   elif $ac_last_try; then
26915     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26916 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26917    { (exit 1); exit 1; }; }
26918   else
26919     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26920   fi
26921 done
26922
26923 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26924 if test -n "$ac_eof"; then
26925   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26926   ac_eof=`expr $ac_eof + 1`
26927 fi
26928
26929 cat >>$CONFIG_STATUS <<_ACEOF
26930 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26932 _ACEOF
26933 sed '
26934 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26935 s/^/s,@/; s/!/@,|#_!!_#|/
26936 :n
26937 t n
26938 s/'"$ac_delim"'$/,g/; t
26939 s/$/\\/; p
26940 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26941 ' >>$CONFIG_STATUS <conf$$subs.sed
26942 rm -f conf$$subs.sed
26943 cat >>$CONFIG_STATUS <<_ACEOF
26944 CEOF$ac_eof
26945 _ACEOF
26946
26947
26948 ac_delim='%!_!# '
26949 for ac_last_try in false false false false false :; do
26950   cat >conf$$subs.sed <<_ACEOF
26951 LIBOBJS!$LIBOBJS$ac_delim
26952 LTLIBOBJS!$LTLIBOBJS$ac_delim
26953 _ACEOF
26954
26955   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
26956     break
26957   elif $ac_last_try; then
26958     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26959 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26960    { (exit 1); exit 1; }; }
26961   else
26962     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26963   fi
26964 done
26965
26966 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26967 if test -n "$ac_eof"; then
26968   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26969   ac_eof=`expr $ac_eof + 1`
26970 fi
26971
26972 cat >>$CONFIG_STATUS <<_ACEOF
26973 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26975 _ACEOF
26976 sed '
26977 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26978 s/^/s,@/; s/!/@,|#_!!_#|/
26979 :n
26980 t n
26981 s/'"$ac_delim"'$/,g/; t
26982 s/$/\\/; p
26983 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26984 ' >>$CONFIG_STATUS <conf$$subs.sed
26985 rm -f conf$$subs.sed
26986 cat >>$CONFIG_STATUS <<_ACEOF
26987 :end
26988 s/|#_!!_#|//g
26989 CEOF$ac_eof
26990 _ACEOF
26991
26992
26993 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26994 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26995 # trailing colons and then remove the whole line if VPATH becomes empty
26996 # (actually we leave an empty line to preserve line numbers).
26997 if test "x$srcdir" = x.; then
26998   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26999 s/:*\$(srcdir):*/:/
27000 s/:*\${srcdir}:*/:/
27001 s/:*@srcdir@:*/:/
27002 s/^\([^=]*=[     ]*\):*/\1/
27003 s/:*$//
27004 s/^[^=]*=[       ]*$//
27005 }'
27006 fi
27007
27008 cat >>$CONFIG_STATUS <<\_ACEOF
27009 fi # test -n "$CONFIG_FILES"
27010
27011
27012 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
27013 do
27014   case $ac_tag in
27015   :[FHLC]) ac_mode=$ac_tag; continue;;
27016   esac
27017   case $ac_mode$ac_tag in
27018   :[FHL]*:*);;
27019   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27020 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27021    { (exit 1); exit 1; }; };;
27022   :[FH]-) ac_tag=-:-;;
27023   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27024   esac
27025   ac_save_IFS=$IFS
27026   IFS=:
27027   set x $ac_tag
27028   IFS=$ac_save_IFS
27029   shift
27030   ac_file=$1
27031   shift
27032
27033   case $ac_mode in
27034   :L) ac_source=$1;;
27035   :[FH])
27036     ac_file_inputs=
27037     for ac_f
27038     do
27039       case $ac_f in
27040       -) ac_f="$tmp/stdin";;
27041       *) # Look for the file first in the build tree, then in the source tree
27042          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27043          # because $ac_f cannot contain `:'.
27044          test -f "$ac_f" ||
27045            case $ac_f in
27046            [\\/$]*) false;;
27047            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27048            esac ||
27049            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27050 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27051    { (exit 1); exit 1; }; };;
27052       esac
27053       ac_file_inputs="$ac_file_inputs $ac_f"
27054     done
27055
27056     # Let's still pretend it is `configure' which instantiates (i.e., don't
27057     # use $as_me), people would be surprised to read:
27058     #    /* config.h.  Generated by config.status.  */
27059     configure_input="Generated from "`IFS=:
27060           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27061     if test x"$ac_file" != x-; then
27062       configure_input="$ac_file.  $configure_input"
27063       { echo "$as_me:$LINENO: creating $ac_file" >&5
27064 echo "$as_me: creating $ac_file" >&6;}
27065     fi
27066
27067     case $ac_tag in
27068     *:-:* | *:-) cat >"$tmp/stdin";;
27069     esac
27070     ;;
27071   esac
27072
27073   ac_dir=`$as_dirname -- "$ac_file" ||
27074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27075          X"$ac_file" : 'X\(//\)[^/]' \| \
27076          X"$ac_file" : 'X\(//\)$' \| \
27077          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27078 echo X"$ac_file" |
27079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27080             s//\1/
27081             q
27082           }
27083           /^X\(\/\/\)[^/].*/{
27084             s//\1/
27085             q
27086           }
27087           /^X\(\/\/\)$/{
27088             s//\1/
27089             q
27090           }
27091           /^X\(\/\).*/{
27092             s//\1/
27093             q
27094           }
27095           s/.*/./; q'`
27096   { as_dir="$ac_dir"
27097   case $as_dir in #(
27098   -*) as_dir=./$as_dir;;
27099   esac
27100   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27101     as_dirs=
27102     while :; do
27103       case $as_dir in #(
27104       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27105       *) as_qdir=$as_dir;;
27106       esac
27107       as_dirs="'$as_qdir' $as_dirs"
27108       as_dir=`$as_dirname -- "$as_dir" ||
27109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27110          X"$as_dir" : 'X\(//\)[^/]' \| \
27111          X"$as_dir" : 'X\(//\)$' \| \
27112          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27113 echo X"$as_dir" |
27114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27115             s//\1/
27116             q
27117           }
27118           /^X\(\/\/\)[^/].*/{
27119             s//\1/
27120             q
27121           }
27122           /^X\(\/\/\)$/{
27123             s//\1/
27124             q
27125           }
27126           /^X\(\/\).*/{
27127             s//\1/
27128             q
27129           }
27130           s/.*/./; q'`
27131       test -d "$as_dir" && break
27132     done
27133     test -z "$as_dirs" || eval "mkdir $as_dirs"
27134   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27135 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27136    { (exit 1); exit 1; }; }; }
27137   ac_builddir=.
27138
27139 case "$ac_dir" in
27140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27141 *)
27142   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27143   # A ".." for each directory in $ac_dir_suffix.
27144   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27145   case $ac_top_builddir_sub in
27146   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27147   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27148   esac ;;
27149 esac
27150 ac_abs_top_builddir=$ac_pwd
27151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27152 # for backward compatibility:
27153 ac_top_builddir=$ac_top_build_prefix
27154
27155 case $srcdir in
27156   .)  # We are building in place.
27157     ac_srcdir=.
27158     ac_top_srcdir=$ac_top_builddir_sub
27159     ac_abs_top_srcdir=$ac_pwd ;;
27160   [\\/]* | ?:[\\/]* )  # Absolute name.
27161     ac_srcdir=$srcdir$ac_dir_suffix;
27162     ac_top_srcdir=$srcdir
27163     ac_abs_top_srcdir=$srcdir ;;
27164   *) # Relative name.
27165     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27166     ac_top_srcdir=$ac_top_build_prefix$srcdir
27167     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27168 esac
27169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27170
27171
27172   case $ac_mode in
27173   :F)
27174   #
27175   # CONFIG_FILE
27176   #
27177
27178   case $INSTALL in
27179   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27180   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27181   esac
27182 _ACEOF
27183
27184 cat >>$CONFIG_STATUS <<\_ACEOF
27185 # If the template does not know about datarootdir, expand it.
27186 # FIXME: This hack should be removed a few years after 2.60.
27187 ac_datarootdir_hack=; ac_datarootdir_seen=
27188
27189 case `sed -n '/datarootdir/ {
27190   p
27191   q
27192 }
27193 /@datadir@/p
27194 /@docdir@/p
27195 /@infodir@/p
27196 /@localedir@/p
27197 /@mandir@/p
27198 ' $ac_file_inputs` in
27199 *datarootdir*) ac_datarootdir_seen=yes;;
27200 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27201   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27202 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27203 _ACEOF
27204 cat >>$CONFIG_STATUS <<_ACEOF
27205   ac_datarootdir_hack='
27206   s&@datadir@&$datadir&g
27207   s&@docdir@&$docdir&g
27208   s&@infodir@&$infodir&g
27209   s&@localedir@&$localedir&g
27210   s&@mandir@&$mandir&g
27211     s&\\\${datarootdir}&$datarootdir&g' ;;
27212 esac
27213 _ACEOF
27214
27215 # Neutralize VPATH when `$srcdir' = `.'.
27216 # Shell code in configure.ac might set extrasub.
27217 # FIXME: do we really want to maintain this feature?
27218 cat >>$CONFIG_STATUS <<_ACEOF
27219   sed "$ac_vpsub
27220 $extrasub
27221 _ACEOF
27222 cat >>$CONFIG_STATUS <<\_ACEOF
27223 :t
27224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27225 s&@configure_input@&$configure_input&;t t
27226 s&@top_builddir@&$ac_top_builddir_sub&;t t
27227 s&@srcdir@&$ac_srcdir&;t t
27228 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27229 s&@top_srcdir@&$ac_top_srcdir&;t t
27230 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27231 s&@builddir@&$ac_builddir&;t t
27232 s&@abs_builddir@&$ac_abs_builddir&;t t
27233 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27234 s&@INSTALL@&$ac_INSTALL&;t t
27235 $ac_datarootdir_hack
27236 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27237
27238 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27239   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27240   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27241   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27242 which seems to be undefined.  Please make sure it is defined." >&5
27243 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27244 which seems to be undefined.  Please make sure it is defined." >&2;}
27245
27246   rm -f "$tmp/stdin"
27247   case $ac_file in
27248   -) cat "$tmp/out"; rm -f "$tmp/out";;
27249   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27250   esac
27251  ;;
27252   :H)
27253   #
27254   # CONFIG_HEADER
27255   #
27256 _ACEOF
27257
27258 # Transform confdefs.h into a sed script `conftest.defines', that
27259 # substitutes the proper values into config.h.in to produce config.h.
27260 rm -f conftest.defines conftest.tail
27261 # First, append a space to every undef/define line, to ease matching.
27262 echo 's/$/ /' >conftest.defines
27263 # Then, protect against being on the right side of a sed subst, or in
27264 # an unquoted here document, in config.status.  If some macros were
27265 # called several times there might be several #defines for the same
27266 # symbol, which is useless.  But do not sort them, since the last
27267 # AC_DEFINE must be honored.
27268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27269 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27270 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27271 # PARAMS is the parameter list in the macro definition--in most cases, it's
27272 # just an empty string.
27273 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27274 ac_dB='\\)[      (].*,\\1define\\2'
27275 ac_dC=' '
27276 ac_dD=' ,'
27277
27278 uniq confdefs.h |
27279   sed -n '
27280         t rset
27281         :rset
27282         s/^[     ]*#[    ]*define[       ][      ]*//
27283         t ok
27284         d
27285         :ok
27286         s/[\\&,]/\\&/g
27287         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27288         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27289   ' >>conftest.defines
27290
27291 # Remove the space that was appended to ease matching.
27292 # Then replace #undef with comments.  This is necessary, for
27293 # example, in the case of _POSIX_SOURCE, which is predefined and required
27294 # on some systems where configure will not decide to define it.
27295 # (The regexp can be short, since the line contains either #define or #undef.)
27296 echo 's/ $//
27297 s,^[     #]*u.*,/* & */,' >>conftest.defines
27298
27299 # Break up conftest.defines:
27300 ac_max_sed_lines=50
27301
27302 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27303 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27304 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27305 # et cetera.
27306 ac_in='$ac_file_inputs'
27307 ac_out='"$tmp/out1"'
27308 ac_nxt='"$tmp/out2"'
27309
27310 while :
27311 do
27312   # Write a here document:
27313     cat >>$CONFIG_STATUS <<_ACEOF
27314     # First, check the format of the line:
27315     cat >"\$tmp/defines.sed" <<\\CEOF
27316 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27317 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27318 b
27319 :def
27320 _ACEOF
27321   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27322   echo 'CEOF
27323     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27324   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27325   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27326   grep . conftest.tail >/dev/null || break
27327   rm -f conftest.defines
27328   mv conftest.tail conftest.defines
27329 done
27330 rm -f conftest.defines conftest.tail
27331
27332 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27333 cat >>$CONFIG_STATUS <<\_ACEOF
27334   if test x"$ac_file" != x-; then
27335     echo "/* $configure_input  */" >"$tmp/config.h"
27336     cat "$ac_result" >>"$tmp/config.h"
27337     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27338       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27339 echo "$as_me: $ac_file is unchanged" >&6;}
27340     else
27341       rm -f $ac_file
27342       mv "$tmp/config.h" $ac_file
27343     fi
27344   else
27345     echo "/* $configure_input  */"
27346     cat "$ac_result"
27347   fi
27348   rm -f "$tmp/out12"
27349  ;;
27350
27351
27352   esac
27353
27354 done # for ac_tag
27355
27356
27357 { (exit 0); exit 0; }
27358 _ACEOF
27359 chmod +x $CONFIG_STATUS
27360 ac_clean_files=$ac_clean_files_save
27361
27362
27363 # configure is writing to config.log, and then calls config.status.
27364 # config.status does its own redirection, appending to config.log.
27365 # Unfortunately, on DOS this fails, as config.log is still kept open
27366 # by configure, so config.status won't be able to write to it; its
27367 # output is simply discarded.  So we exec the FD to /dev/null,
27368 # effectively closing config.log, so it can be properly (re)opened and
27369 # appended to by config.status.  When coming back to configure, we
27370 # need to make the FD available again.
27371 if test "$no_create" != yes; then
27372   ac_cs_success=:
27373   ac_config_status_args=
27374   test "$silent" = yes &&
27375     ac_config_status_args="$ac_config_status_args --quiet"
27376   exec 5>/dev/null
27377   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27378   exec 5>>config.log
27379   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27380   # would make configure fail if this is the last instruction.
27381   $ac_cs_success || { (exit 1); exit 1; }
27382 fi
27383