OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GNU Classpath 0.97.2.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='GNU Classpath'
730 PACKAGE_TARNAME='classpath'
731 PACKAGE_VERSION='0.97.2'
732 PACKAGE_STRING='GNU Classpath 0.97.2'
733 PACKAGE_BUGREPORT='classpath@gnu.org'
734
735 ac_unique_file="java/lang/System.java"
736 ac_default_prefix=/usr/local/classpath
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 LIBVERSION
823 CLASSPATH_MODULE
824 CLASSPATH_CONVENIENCE
825 INSTALL_PROGRAM
826 INSTALL_SCRIPT
827 INSTALL_DATA
828 am__isrc
829 CYGPATH_W
830 PACKAGE
831 VERSION
832 ACLOCAL
833 AUTOCONF
834 AUTOMAKE
835 AUTOHEADER
836 MAKEINFO
837 install_sh
838 STRIP
839 INSTALL_STRIP_PROGRAM
840 mkdir_p
841 AWK
842 SET_MAKE
843 am__leading_dot
844 AMTAR
845 am__tar
846 am__untar
847 CREATE_COLLECTIONS_TRUE
848 CREATE_COLLECTIONS_FALSE
849 CREATE_JNI_LIBRARIES_TRUE
850 CREATE_JNI_LIBRARIES_FALSE
851 CREATE_CORE_JNI_LIBRARIES_TRUE
852 CREATE_CORE_JNI_LIBRARIES_FALSE
853 CREATE_GCONF_PEER_LIBRARIES_TRUE
854 CREATE_GCONF_PEER_LIBRARIES_FALSE
855 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
856 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
857 default_toolkit
858 CREATE_XMLJ_LIBRARY_TRUE
859 CREATE_XMLJ_LIBRARY_FALSE
860 CC
861 CFLAGS
862 LDFLAGS
863 CPPFLAGS
864 ac_ct_CC
865 EXEEXT
866 OBJEXT
867 DEPDIR
868 am__include
869 am__quote
870 AMDEP_TRUE
871 AMDEP_FALSE
872 AMDEPBACKSLASH
873 CCDEPMODE
874 am__fastdepCC_TRUE
875 am__fastdepCC_FALSE
876 CPP
877 GREP
878 EGREP
879 CREATE_ALSA_LIBRARIES_TRUE
880 CREATE_ALSA_LIBRARIES_FALSE
881 CREATE_DSSI_LIBRARIES_TRUE
882 CREATE_DSSI_LIBRARIES_FALSE
883 CREATE_GTK_PEER_LIBRARIES_TRUE
884 CREATE_GTK_PEER_LIBRARIES_FALSE
885 CREATE_QT_PEER_LIBRARIES_TRUE
886 CREATE_QT_PEER_LIBRARIES_FALSE
887 CREATE_PLUGIN_TRUE
888 CREATE_PLUGIN_FALSE
889 nativeexeclibdir
890 glibjdir
891 VM_BINARY
892 CREATE_JNI_HEADERS_TRUE
893 CREATE_JNI_HEADERS_FALSE
894 CREATE_WRAPPERS_TRUE
895 CREATE_WRAPPERS_FALSE
896 LN_S
897 CXX
898 CXXFLAGS
899 ac_ct_CXX
900 CXXDEPMODE
901 am__fastdepCXX_TRUE
902 am__fastdepCXX_FALSE
903 SED
904 ECHO
905 AR
906 RANLIB
907 DSYMUTIL
908 NMEDIT
909 CXXCPP
910 F77
911 FFLAGS
912 ac_ct_F77
913 LIBTOOL
914 PERL
915 COLLECTIONS_PREFIX
916 LIBMAGIC
917 LIBICONV
918 LTLIBICONV
919 WARNING_CFLAGS
920 STRICT_WARNING_CFLAGS
921 ERROR_CFLAGS
922 PKG_CONFIG
923 XML_CFLAGS
924 XML_LIBS
925 XSLT_CFLAGS
926 XSLT_LIBS
927 XMKMF
928 X_CFLAGS
929 X_PRE_LIBS
930 X_LIBS
931 X_EXTRA_LIBS
932 GTK_CFLAGS
933 GTK_LIBS
934 FREETYPE2_CFLAGS
935 FREETYPE2_LIBS
936 PANGOFT2_CFLAGS
937 PANGOFT2_LIBS
938 CAIRO_CFLAGS
939 CAIRO_LIBS
940 XTEST_LIBS
941 GCONF_CFLAGS
942 GCONF_LIBS
943 GDK_CFLAGS
944 GDK_LIBS
945 GSTREAMER_CFLAGS
946 GSTREAMER_LIBS
947 GSTREAMER_BASE_CFLAGS
948 GSTREAMER_BASE_LIBS
949 GSTREAMER_PLUGINS_BASE_CFLAGS
950 GSTREAMER_PLUGINS_BASE_LIBS
951 GST_PLUGIN_LDFLAGS
952 GSTREAMER_FILE_READER
953 GSTREAMER_MIXER_PROVIDER
954 QT_CFLAGS
955 QT_LIBS
956 MOC
957 MOZILLA_CFLAGS
958 MOZILLA_LIBS
959 GLIB_CFLAGS
960 GLIB_LIBS
961 PLUGIN_DIR
962 USER_JAVAH
963 CLASSPATH_INCLUDES
964 vm_classes
965 MAINTAINER_MODE_TRUE
966 MAINTAINER_MODE_FALSE
967 MAINT
968 LIBDEBUG
969 INIT_LOAD_LIBRARY
970 ECJ_JAR
971 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
972 REMOVE
973 MKDIR
974 CP
975 DATE
976 FIND
977 ZIP
978 FASTJAR
979 INSTALL_GLIBJ_ZIP_TRUE
980 INSTALL_GLIBJ_ZIP_FALSE
981 INSTALL_CLASS_FILES_TRUE
982 INSTALL_CLASS_FILES_FALSE
983 BUILD_CLASS_FILES_TRUE
984 BUILD_CLASS_FILES_FALSE
985 EXAMPLESDIR
986 TOOLSDIR
987 GJDOC
988 CREATE_API_DOCS_TRUE
989 CREATE_API_DOCS_FALSE
990 JAY
991 JAY_SKELETON
992 REGEN_PARSERS_TRUE
993 REGEN_PARSERS_FALSE
994 USE_PREBUILT_GLIBJ_ZIP_TRUE
995 USE_PREBUILT_GLIBJ_ZIP_FALSE
996 PATH_TO_GLIBJ_ZIP
997 JAVAC
998 JAVAC_MEM_OPT
999 USE_ESCHER_TRUE
1000 USE_ESCHER_FALSE
1001 PATH_TO_ESCHER
1002 ENABLE_LOCAL_SOCKETS_TRUE
1003 ENABLE_LOCAL_SOCKETS_FALSE
1004 DEFAULT_PREFS_PEER
1005 LIBOBJS
1006 LTLIBOBJS'
1007 ac_subst_files=''
1008       ac_precious_vars='build_alias
1009 host_alias
1010 target_alias
1011 CC
1012 CFLAGS
1013 LDFLAGS
1014 LIBS
1015 CPPFLAGS
1016 CPP
1017 CXX
1018 CXXFLAGS
1019 CCC
1020 CXXCPP
1021 F77
1022 FFLAGS
1023 XMKMF'
1024
1025
1026 # Initialize some variables set by options.
1027 ac_init_help=
1028 ac_init_version=false
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1045
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1071
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1075 do
1076   # If the previous option needs an argument, assign it.
1077   if test -n "$ac_prev"; then
1078     eval $ac_prev=\$ac_option
1079     ac_prev=
1080     continue
1081   fi
1082
1083   case $ac_option in
1084   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085   *)    ac_optarg=yes ;;
1086   esac
1087
1088   # Accept the important Cygnus configure options, so we can diagnose typos.
1089
1090   case $ac_dashdash$ac_option in
1091   --)
1092     ac_dashdash=yes ;;
1093
1094   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1095     ac_prev=bindir ;;
1096   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1097     bindir=$ac_optarg ;;
1098
1099   -build | --build | --buil | --bui | --bu)
1100     ac_prev=build_alias ;;
1101   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1102     build_alias=$ac_optarg ;;
1103
1104   -cache-file | --cache-file | --cache-fil | --cache-fi \
1105   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1106     ac_prev=cache_file ;;
1107   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1108   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1109     cache_file=$ac_optarg ;;
1110
1111   --config-cache | -C)
1112     cache_file=config.cache ;;
1113
1114   -datadir | --datadir | --datadi | --datad)
1115     ac_prev=datadir ;;
1116   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1117     datadir=$ac_optarg ;;
1118
1119   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1120   | --dataroo | --dataro | --datar)
1121     ac_prev=datarootdir ;;
1122   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1123   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1124     datarootdir=$ac_optarg ;;
1125
1126   -disable-* | --disable-*)
1127     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1131    { (exit 1); exit 1; }; }
1132     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1133     eval enable_$ac_feature=no ;;
1134
1135   -docdir | --docdir | --docdi | --doc | --do)
1136     ac_prev=docdir ;;
1137   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1138     docdir=$ac_optarg ;;
1139
1140   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1141     ac_prev=dvidir ;;
1142   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1143     dvidir=$ac_optarg ;;
1144
1145   -enable-* | --enable-*)
1146     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1152     eval enable_$ac_feature=\$ac_optarg ;;
1153
1154   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156   | --exec | --exe | --ex)
1157     ac_prev=exec_prefix ;;
1158   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160   | --exec=* | --exe=* | --ex=*)
1161     exec_prefix=$ac_optarg ;;
1162
1163   -gas | --gas | --ga | --g)
1164     # Obsolete; use --with-gas.
1165     with_gas=yes ;;
1166
1167   -help | --help | --hel | --he | -h)
1168     ac_init_help=long ;;
1169   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170     ac_init_help=recursive ;;
1171   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172     ac_init_help=short ;;
1173
1174   -host | --host | --hos | --ho)
1175     ac_prev=host_alias ;;
1176   -host=* | --host=* | --hos=* | --ho=*)
1177     host_alias=$ac_optarg ;;
1178
1179   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180     ac_prev=htmldir ;;
1181   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182   | --ht=*)
1183     htmldir=$ac_optarg ;;
1184
1185   -includedir | --includedir | --includedi | --included | --include \
1186   | --includ | --inclu | --incl | --inc)
1187     ac_prev=includedir ;;
1188   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189   | --includ=* | --inclu=* | --incl=* | --inc=*)
1190     includedir=$ac_optarg ;;
1191
1192   -infodir | --infodir | --infodi | --infod | --info | --inf)
1193     ac_prev=infodir ;;
1194   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195     infodir=$ac_optarg ;;
1196
1197   -libdir | --libdir | --libdi | --libd)
1198     ac_prev=libdir ;;
1199   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200     libdir=$ac_optarg ;;
1201
1202   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203   | --libexe | --libex | --libe)
1204     ac_prev=libexecdir ;;
1205   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206   | --libexe=* | --libex=* | --libe=*)
1207     libexecdir=$ac_optarg ;;
1208
1209   -localedir | --localedir | --localedi | --localed | --locale)
1210     ac_prev=localedir ;;
1211   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212     localedir=$ac_optarg ;;
1213
1214   -localstatedir | --localstatedir | --localstatedi | --localstated \
1215   | --localstate | --localstat | --localsta | --localst | --locals)
1216     ac_prev=localstatedir ;;
1217   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219     localstatedir=$ac_optarg ;;
1220
1221   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222     ac_prev=mandir ;;
1223   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224     mandir=$ac_optarg ;;
1225
1226   -nfp | --nfp | --nf)
1227     # Obsolete; use --without-fp.
1228     with_fp=no ;;
1229
1230   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231   | --no-cr | --no-c | -n)
1232     no_create=yes ;;
1233
1234   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236     no_recursion=yes ;;
1237
1238   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240   | --oldin | --oldi | --old | --ol | --o)
1241     ac_prev=oldincludedir ;;
1242   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245     oldincludedir=$ac_optarg ;;
1246
1247   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248     ac_prev=prefix ;;
1249   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250     prefix=$ac_optarg ;;
1251
1252   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253   | --program-pre | --program-pr | --program-p)
1254     ac_prev=program_prefix ;;
1255   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257     program_prefix=$ac_optarg ;;
1258
1259   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260   | --program-suf | --program-su | --program-s)
1261     ac_prev=program_suffix ;;
1262   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264     program_suffix=$ac_optarg ;;
1265
1266   -program-transform-name | --program-transform-name \
1267   | --program-transform-nam | --program-transform-na \
1268   | --program-transform-n | --program-transform- \
1269   | --program-transform | --program-transfor \
1270   | --program-transfo | --program-transf \
1271   | --program-trans | --program-tran \
1272   | --progr-tra | --program-tr | --program-t)
1273     ac_prev=program_transform_name ;;
1274   -program-transform-name=* | --program-transform-name=* \
1275   | --program-transform-nam=* | --program-transform-na=* \
1276   | --program-transform-n=* | --program-transform-=* \
1277   | --program-transform=* | --program-transfor=* \
1278   | --program-transfo=* | --program-transf=* \
1279   | --program-trans=* | --program-tran=* \
1280   | --progr-tra=* | --program-tr=* | --program-t=*)
1281     program_transform_name=$ac_optarg ;;
1282
1283   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284     ac_prev=pdfdir ;;
1285   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286     pdfdir=$ac_optarg ;;
1287
1288   -psdir | --psdir | --psdi | --psd | --ps)
1289     ac_prev=psdir ;;
1290   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291     psdir=$ac_optarg ;;
1292
1293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294   | -silent | --silent | --silen | --sile | --sil)
1295     silent=yes ;;
1296
1297   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1298     ac_prev=sbindir ;;
1299   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1300   | --sbi=* | --sb=*)
1301     sbindir=$ac_optarg ;;
1302
1303   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1304   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305   | --sharedst | --shareds | --shared | --share | --shar \
1306   | --sha | --sh)
1307     ac_prev=sharedstatedir ;;
1308   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1311   | --sha=* | --sh=*)
1312     sharedstatedir=$ac_optarg ;;
1313
1314   -site | --site | --sit)
1315     ac_prev=site ;;
1316   -site=* | --site=* | --sit=*)
1317     site=$ac_optarg ;;
1318
1319   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1320     ac_prev=srcdir ;;
1321   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322     srcdir=$ac_optarg ;;
1323
1324   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325   | --syscon | --sysco | --sysc | --sys | --sy)
1326     ac_prev=sysconfdir ;;
1327   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329     sysconfdir=$ac_optarg ;;
1330
1331   -target | --target | --targe | --targ | --tar | --ta | --t)
1332     ac_prev=target_alias ;;
1333   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334     target_alias=$ac_optarg ;;
1335
1336   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337     verbose=yes ;;
1338
1339   -version | --version | --versio | --versi | --vers | -V)
1340     ac_init_version=: ;;
1341
1342   -with-* | --with-*)
1343     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344     # Reject names that are not valid shell variable names.
1345     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       { echo "$as_me: error: invalid package name: $ac_package" >&2
1347    { (exit 1); exit 1; }; }
1348     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1349     eval with_$ac_package=\$ac_optarg ;;
1350
1351   -without-* | --without-*)
1352     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355       { echo "$as_me: error: invalid package name: $ac_package" >&2
1356    { (exit 1); exit 1; }; }
1357     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1358     eval with_$ac_package=no ;;
1359
1360   --x)
1361     # Obsolete; use --with-x.
1362     with_x=yes ;;
1363
1364   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365   | --x-incl | --x-inc | --x-in | --x-i)
1366     ac_prev=x_includes ;;
1367   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369     x_includes=$ac_optarg ;;
1370
1371   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373     ac_prev=x_libraries ;;
1374   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376     x_libraries=$ac_optarg ;;
1377
1378   -*) { echo "$as_me: error: unrecognized option: $ac_option
1379 Try \`$0 --help' for more information." >&2
1380    { (exit 1); exit 1; }; }
1381     ;;
1382
1383   *=*)
1384     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385     # Reject names that are not valid shell variable names.
1386     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1387       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1388    { (exit 1); exit 1; }; }
1389     eval $ac_envvar=\$ac_optarg
1390     export $ac_envvar ;;
1391
1392   *)
1393     # FIXME: should be removed in autoconf 3.0.
1394     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1398     ;;
1399
1400   esac
1401 done
1402
1403 if test -n "$ac_prev"; then
1404   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405   { echo "$as_me: error: missing argument to $ac_option" >&2
1406    { (exit 1); exit 1; }; }
1407 fi
1408
1409 # Be sure to have absolute directory names.
1410 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1411                 datadir sysconfdir sharedstatedir localstatedir includedir \
1412                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1413                 libdir localedir mandir
1414 do
1415   eval ac_val=\$$ac_var
1416   case $ac_val in
1417     [\\/$]* | ?:[\\/]* )  continue;;
1418     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419   esac
1420   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1421    { (exit 1); exit 1; }; }
1422 done
1423
1424 # There might be people who depend on the old broken behavior: `$host'
1425 # used to hold the argument of --host etc.
1426 # FIXME: To remove some day.
1427 build=$build_alias
1428 host=$host_alias
1429 target=$target_alias
1430
1431 # FIXME: To remove some day.
1432 if test "x$host_alias" != x; then
1433   if test "x$build_alias" = x; then
1434     cross_compiling=maybe
1435     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1436     If a cross compiler is detected then cross compile mode will be used." >&2
1437   elif test "x$build_alias" != "x$host_alias"; then
1438     cross_compiling=yes
1439   fi
1440 fi
1441
1442 ac_tool_prefix=
1443 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1444
1445 test "$silent" = yes && exec 6>/dev/null
1446
1447
1448 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1449 ac_ls_di=`ls -di .` &&
1450 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1451   { echo "$as_me: error: Working directory cannot be determined" >&2
1452    { (exit 1); exit 1; }; }
1453 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454   { echo "$as_me: error: pwd does not report name of working directory" >&2
1455    { (exit 1); exit 1; }; }
1456
1457
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460   ac_srcdir_defaulted=yes
1461   # Try the directory containing this script, then the parent directory.
1462   ac_confdir=`$as_dirname -- "$0" ||
1463 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464          X"$0" : 'X\(//\)[^/]' \| \
1465          X"$0" : 'X\(//\)$' \| \
1466          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1467 echo X"$0" |
1468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469             s//\1/
1470             q
1471           }
1472           /^X\(\/\/\)[^/].*/{
1473             s//\1/
1474             q
1475           }
1476           /^X\(\/\/\)$/{
1477             s//\1/
1478             q
1479           }
1480           /^X\(\/\).*/{
1481             s//\1/
1482             q
1483           }
1484           s/.*/./; q'`
1485   srcdir=$ac_confdir
1486   if test ! -r "$srcdir/$ac_unique_file"; then
1487     srcdir=..
1488   fi
1489 else
1490   ac_srcdir_defaulted=no
1491 fi
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1495    { (exit 1); exit 1; }; }
1496 fi
1497 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1498 ac_abs_confdir=`(
1499         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1500    { (exit 1); exit 1; }; }
1501         pwd)`
1502 # When building in place, set srcdir=.
1503 if test "$ac_abs_confdir" = "$ac_pwd"; then
1504   srcdir=.
1505 fi
1506 # Remove unnecessary trailing slashes from srcdir.
1507 # Double slashes in file names in object file debugging info
1508 # mess up M-x gdb in Emacs.
1509 case $srcdir in
1510 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1511 esac
1512 for ac_var in $ac_precious_vars; do
1513   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1514   eval ac_env_${ac_var}_value=\$${ac_var}
1515   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1516   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1517 done
1518
1519 #
1520 # Report the --help message.
1521 #
1522 if test "$ac_init_help" = "long"; then
1523   # Omit some internal or obsolete options to make the list less imposing.
1524   # This message is too long to be a string in the A/UX 3.1 sh.
1525   cat <<_ACEOF
1526 \`configure' configures GNU Classpath 0.97.2 to adapt to many kinds of systems.
1527
1528 Usage: $0 [OPTION]... [VAR=VALUE]...
1529
1530 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1531 VAR=VALUE.  See below for descriptions of some of the useful variables.
1532
1533 Defaults for the options are specified in brackets.
1534
1535 Configuration:
1536   -h, --help              display this help and exit
1537       --help=short        display options specific to this package
1538       --help=recursive    display the short help of all the included packages
1539   -V, --version           display version information and exit
1540   -q, --quiet, --silent   do not print \`checking...' messages
1541       --cache-file=FILE   cache test results in FILE [disabled]
1542   -C, --config-cache      alias for \`--cache-file=config.cache'
1543   -n, --no-create         do not create output files
1544       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1545
1546 Installation directories:
1547   --prefix=PREFIX         install architecture-independent files in PREFIX
1548                           [$ac_default_prefix]
1549   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1550                           [PREFIX]
1551
1552 By default, \`make install' will install all the files in
1553 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1554 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1555 for instance \`--prefix=\$HOME'.
1556
1557 For better control, use the options below.
1558
1559 Fine tuning of the installation directories:
1560   --bindir=DIR           user executables [EPREFIX/bin]
1561   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1562   --libexecdir=DIR       program executables [EPREFIX/libexec]
1563   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1564   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1565   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1566   --libdir=DIR           object code libraries [EPREFIX/lib]
1567   --includedir=DIR       C header files [PREFIX/include]
1568   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1569   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1570   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1571   --infodir=DIR          info documentation [DATAROOTDIR/info]
1572   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1573   --mandir=DIR           man documentation [DATAROOTDIR/man]
1574   --docdir=DIR           documentation root [DATAROOTDIR/doc/classpath]
1575   --htmldir=DIR          html documentation [DOCDIR]
1576   --dvidir=DIR           dvi documentation [DOCDIR]
1577   --pdfdir=DIR           pdf documentation [DOCDIR]
1578   --psdir=DIR            ps documentation [DOCDIR]
1579 _ACEOF
1580
1581   cat <<\_ACEOF
1582
1583 Program names:
1584   --program-prefix=PREFIX            prepend PREFIX to installed program names
1585   --program-suffix=SUFFIX            append SUFFIX to installed program names
1586   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1587
1588 X features:
1589   --x-includes=DIR    X include files are in DIR
1590   --x-libraries=DIR   X library files are in DIR
1591
1592 System types:
1593   --build=BUILD     configure for building on BUILD [guessed]
1594   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1595   --target=TARGET   configure for building compilers for TARGET [HOST]
1596 _ACEOF
1597 fi
1598
1599 if test -n "$ac_init_help"; then
1600   case $ac_init_help in
1601      short | recursive ) echo "Configuration of GNU Classpath 0.97.2:";;
1602    esac
1603   cat <<\_ACEOF
1604
1605 Optional Features:
1606   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1607   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1608   --enable-collections    create collections.jar default=no
1609   --enable-jni            compile JNI source default=yes
1610   --enable-core-jni       compile JNI sources for core default=yes
1611   --enable-default-preferences-peer[=peer type or class name]
1612                           specify one of: "gconf" [default] for a GConf based
1613                           backend, "file" for a file based one, "memory" for a
1614                           transient one, or a fully qualified class name
1615                           implementing java.util.prefs.PreferencesFactory
1616   --disable-gconf-peer    compile GConf native peers (disabled by
1617                           --disable-jni) default=yes
1618
1619   --enable-gstreamer-peer compile GStreamer native peers (disabled by
1620                           --disable-jni) default=no
1621   --enable-Werror         whether to compile C code with -Werror which turns
1622                           any compiler warning into a compilation failure
1623                           default=no
1624   --enable-default-toolkit
1625                           fully qualified class name of default AWT toolkit
1626   --enable-xmlj           compile native libxml/xslt library default=no
1627   --disable-alsa          compile ALSA providers (enable by --enable-alsa)
1628                           default=yes
1629   --disable-dependency-tracking  speeds up one-time build
1630   --enable-dependency-tracking   do not reject slow dependency extractors
1631   --disable-dssi          compile DSSI providers (enable by --enable-dssi)
1632                           default=yes
1633   --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
1634                           default=yes
1635   --enable-qt-peer        compile Qt4 native peers (disabled by --disable-jni)
1636                           default=no
1637   --disable-plugin        compile gcjwebplugin (disabled by --disable-plugin)
1638                           default=yes
1639   --enable-regen-headers  automatically regenerate JNI headers default=yes if
1640                           headers don't exist
1641   --enable-tool-wrappers  create tool wrapper binaries default=no
1642   --enable-static[=PKGS]  build static libraries [default=no]
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --disable-rpath         do not hardcode runtime library paths
1648   --enable-maintainer-mode  enable make rules and dependencies not useful
1649                           (and sometimes confusing) to the casual installer
1650   --enable-debug          enable runtime debugging code
1651   --enable-load-library   enable to use JNI native methods default=yes
1652   --enable-java-lang-system-explicit-initialization
1653                           will the VM explicitly invoke java.lang.System's
1654                           static initialization methods default=no
1655   --enable-examples       enable build of the examples default=yes
1656   --enable-tools          enable build of the tools default=yes
1657   --enable-portable-native-sync
1658                           synchronize VM threads portably
1659   --enable-local-sockets  enables local (AF_LOCAL) socket API default: no
1660
1661 Optional Packages:
1662   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1663   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1664   --with-native-libdir    sets the installation directory for native libraries
1665                           default='${libdir}/${PACKAGE}'
1666   --with-glibj-dir        sets the installation directory for glibj.zip
1667                           default='${libdir}/${PACKAGE}'
1668   --with-vm               sets the VM binary name
1669                           default='${prefix}/bin/jamvm'
1670   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-tags[=TAGS]      include additional configurations [automatic]
1674   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1675   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1676   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1677   --with-x                use the X Window System
1678   --with-qt4dir=DIR       Qt4 installation directory used for OS-X. For other
1679                           systems use pkg-config.
1680   --with-javah            specify path or name of a javah-like program
1681   --with-vm-classes       specify path to VM override source files
1682   --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1683                           Compiler
1684   --with-fastjar=PATH     define to use a fastjar style tool
1685   --with-glibj            define what to install (zip|flat|both|none|build)
1686                           [default=zip]
1687   --with-gjdoc            generate documentation using gjdoc (default is NO)
1688   --with-jay=DIR|PATH     Regenerate the parsers with jay
1689   --with-glibj-zip=ABS.PATH
1690                           use prebuilt glibj.zip class library
1691   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1692
1693 Some influential environment variables:
1694   CC          C compiler command
1695   CFLAGS      C compiler flags
1696   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1697               nonstandard directory <lib dir>
1698   LIBS        libraries to pass to the linker, e.g. -l<library>
1699   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1700               you have headers in a nonstandard directory <include dir>
1701   CPP         C preprocessor
1702   CXX         C++ compiler command
1703   CXXFLAGS    C++ compiler flags
1704   CXXCPP      C++ preprocessor
1705   F77         Fortran 77 compiler command
1706   FFLAGS      Fortran 77 compiler flags
1707   XMKMF       Path to xmkmf, Makefile generator for X Window System
1708
1709 Use these variables to override the choices made by `configure' or to help
1710 it to find libraries and programs with nonstandard names/locations.
1711
1712 Report bugs to <classpath@gnu.org>.
1713 _ACEOF
1714 ac_status=$?
1715 fi
1716
1717 if test "$ac_init_help" = "recursive"; then
1718   # If there are subdirs, report their specific --help.
1719   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720     test -d "$ac_dir" || continue
1721     ac_builddir=.
1722
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *)
1726   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1727   # A ".." for each directory in $ac_dir_suffix.
1728   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1729   case $ac_top_builddir_sub in
1730   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732   esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1738
1739 case $srcdir in
1740   .)  # We are building in place.
1741     ac_srcdir=.
1742     ac_top_srcdir=$ac_top_builddir_sub
1743     ac_abs_top_srcdir=$ac_pwd ;;
1744   [\\/]* | ?:[\\/]* )  # Absolute name.
1745     ac_srcdir=$srcdir$ac_dir_suffix;
1746     ac_top_srcdir=$srcdir
1747     ac_abs_top_srcdir=$srcdir ;;
1748   *) # Relative name.
1749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750     ac_top_srcdir=$ac_top_build_prefix$srcdir
1751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1754
1755     cd "$ac_dir" || { ac_status=$?; continue; }
1756     # Check for guested configure.
1757     if test -f "$ac_srcdir/configure.gnu"; then
1758       echo &&
1759       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760     elif test -f "$ac_srcdir/configure"; then
1761       echo &&
1762       $SHELL "$ac_srcdir/configure" --help=recursive
1763     else
1764       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765     fi || ac_status=$?
1766     cd "$ac_pwd" || { ac_status=$?; break; }
1767   done
1768 fi
1769
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772   cat <<\_ACEOF
1773 GNU Classpath configure 0.97.2
1774 generated by GNU Autoconf 2.61
1775
1776 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1777 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1778 This configure script is free software; the Free Software Foundation
1779 gives unlimited permission to copy, distribute and modify it.
1780 _ACEOF
1781   exit
1782 fi
1783 cat >config.log <<_ACEOF
1784 This file contains any messages produced by compilers while
1785 running configure, to aid debugging if configure makes a mistake.
1786
1787 It was created by GNU Classpath $as_me 0.97.2, which was
1788 generated by GNU Autoconf 2.61.  Invocation command line was
1789
1790   $ $0 $@
1791
1792 _ACEOF
1793 exec 5>>config.log
1794 {
1795 cat <<_ASUNAME
1796 ## --------- ##
1797 ## Platform. ##
1798 ## --------- ##
1799
1800 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1801 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1802 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1803 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1804 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1805
1806 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1807 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1808
1809 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1810 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1811 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1812 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1813 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1814 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1815 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1816
1817 _ASUNAME
1818
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822   IFS=$as_save_IFS
1823   test -z "$as_dir" && as_dir=.
1824   echo "PATH: $as_dir"
1825 done
1826 IFS=$as_save_IFS
1827
1828 } >&5
1829
1830 cat >&5 <<_ACEOF
1831
1832
1833 ## ----------- ##
1834 ## Core tests. ##
1835 ## ----------- ##
1836
1837 _ACEOF
1838
1839
1840 # Keep a trace of the command line.
1841 # Strip out --no-create and --no-recursion so they do not pile up.
1842 # Strip out --silent because we don't want to record it for future runs.
1843 # Also quote any args containing shell meta-characters.
1844 # Make two passes to allow for proper duplicate-argument suppression.
1845 ac_configure_args=
1846 ac_configure_args0=
1847 ac_configure_args1=
1848 ac_must_keep_next=false
1849 for ac_pass in 1 2
1850 do
1851   for ac_arg
1852   do
1853     case $ac_arg in
1854     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1855     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1856     | -silent | --silent | --silen | --sile | --sil)
1857       continue ;;
1858     *\'*)
1859       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1860     esac
1861     case $ac_pass in
1862     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1863     2)
1864       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1865       if test $ac_must_keep_next = true; then
1866         ac_must_keep_next=false # Got value, back to normal.
1867       else
1868         case $ac_arg in
1869           *=* | --config-cache | -C | -disable-* | --disable-* \
1870           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1871           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1872           | -with-* | --with-* | -without-* | --without-* | --x)
1873             case "$ac_configure_args0 " in
1874               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1875             esac
1876             ;;
1877           -* ) ac_must_keep_next=true ;;
1878         esac
1879       fi
1880       ac_configure_args="$ac_configure_args '$ac_arg'"
1881       ;;
1882     esac
1883   done
1884 done
1885 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1886 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1887
1888 # When interrupted or exit'd, cleanup temporary files, and complete
1889 # config.log.  We remove comments because anyway the quotes in there
1890 # would cause problems or look ugly.
1891 # WARNING: Use '\'' to represent an apostrophe within the trap.
1892 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1893 trap 'exit_status=$?
1894   # Save into config.log some information that might help in debugging.
1895   {
1896     echo
1897
1898     cat <<\_ASBOX
1899 ## ---------------- ##
1900 ## Cache variables. ##
1901 ## ---------------- ##
1902 _ASBOX
1903     echo
1904     # The following way of writing the cache mishandles newlines in values,
1905 (
1906   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1907     eval ac_val=\$$ac_var
1908     case $ac_val in #(
1909     *${as_nl}*)
1910       case $ac_var in #(
1911       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1912 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1913       esac
1914       case $ac_var in #(
1915       _ | IFS | as_nl) ;; #(
1916       *) $as_unset $ac_var ;;
1917       esac ;;
1918     esac
1919   done
1920   (set) 2>&1 |
1921     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1922     *${as_nl}ac_space=\ *)
1923       sed -n \
1924         "s/'\''/'\''\\\\'\'''\''/g;
1925           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1926       ;; #(
1927     *)
1928       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1929       ;;
1930     esac |
1931     sort
1932 )
1933     echo
1934
1935     cat <<\_ASBOX
1936 ## ----------------- ##
1937 ## Output variables. ##
1938 ## ----------------- ##
1939 _ASBOX
1940     echo
1941     for ac_var in $ac_subst_vars
1942     do
1943       eval ac_val=\$$ac_var
1944       case $ac_val in
1945       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1946       esac
1947       echo "$ac_var='\''$ac_val'\''"
1948     done | sort
1949     echo
1950
1951     if test -n "$ac_subst_files"; then
1952       cat <<\_ASBOX
1953 ## ------------------- ##
1954 ## File substitutions. ##
1955 ## ------------------- ##
1956 _ASBOX
1957       echo
1958       for ac_var in $ac_subst_files
1959       do
1960         eval ac_val=\$$ac_var
1961         case $ac_val in
1962         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1963         esac
1964         echo "$ac_var='\''$ac_val'\''"
1965       done | sort
1966       echo
1967     fi
1968
1969     if test -s confdefs.h; then
1970       cat <<\_ASBOX
1971 ## ----------- ##
1972 ## confdefs.h. ##
1973 ## ----------- ##
1974 _ASBOX
1975       echo
1976       cat confdefs.h
1977       echo
1978     fi
1979     test "$ac_signal" != 0 &&
1980       echo "$as_me: caught signal $ac_signal"
1981     echo "$as_me: exit $exit_status"
1982   } >&5
1983   rm -f core *.core core.conftest.* &&
1984     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1985     exit $exit_status
1986 ' 0
1987 for ac_signal in 1 2 13 15; do
1988   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1989 done
1990 ac_signal=0
1991
1992 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1993 rm -f -r conftest* confdefs.h
1994
1995 # Predefined preprocessor variables.
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_NAME "$PACKAGE_NAME"
1999 _ACEOF
2000
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2004 _ACEOF
2005
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2009 _ACEOF
2010
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2014 _ACEOF
2015
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2019 _ACEOF
2020
2021
2022 # Let the site file select an alternate cache file if it wants to.
2023 # Prefer explicitly selected file to automatically selected ones.
2024 if test -n "$CONFIG_SITE"; then
2025   set x "$CONFIG_SITE"
2026 elif test "x$prefix" != xNONE; then
2027   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2028 else
2029   set x "$ac_default_prefix/share/config.site" \
2030         "$ac_default_prefix/etc/config.site"
2031 fi
2032 shift
2033 for ac_site_file
2034 do
2035   if test -r "$ac_site_file"; then
2036     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2037 echo "$as_me: loading site script $ac_site_file" >&6;}
2038     sed 's/^/| /' "$ac_site_file" >&5
2039     . "$ac_site_file"
2040   fi
2041 done
2042
2043 if test -r "$cache_file"; then
2044   # Some versions of bash will fail to source /dev/null (special
2045   # files actually), so we avoid doing that.
2046   if test -f "$cache_file"; then
2047     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2048 echo "$as_me: loading cache $cache_file" >&6;}
2049     case $cache_file in
2050       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2051       *)                      . "./$cache_file";;
2052     esac
2053   fi
2054 else
2055   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2056 echo "$as_me: creating cache $cache_file" >&6;}
2057   >$cache_file
2058 fi
2059
2060 # Check that the precious variables saved in the cache have kept the same
2061 # value.
2062 ac_cache_corrupted=false
2063 for ac_var in $ac_precious_vars; do
2064   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2065   eval ac_new_set=\$ac_env_${ac_var}_set
2066   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2067   eval ac_new_val=\$ac_env_${ac_var}_value
2068   case $ac_old_set,$ac_new_set in
2069     set,)
2070       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2071 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2072       ac_cache_corrupted=: ;;
2073     ,set)
2074       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2075 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2076       ac_cache_corrupted=: ;;
2077     ,);;
2078     *)
2079       if test "x$ac_old_val" != "x$ac_new_val"; then
2080         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2081 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2082         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2083 echo "$as_me:   former value:  $ac_old_val" >&2;}
2084         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2085 echo "$as_me:   current value: $ac_new_val" >&2;}
2086         ac_cache_corrupted=:
2087       fi;;
2088   esac
2089   # Pass precious variables to config.status.
2090   if test "$ac_new_set" = set; then
2091     case $ac_new_val in
2092     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2093     *) ac_arg=$ac_var=$ac_new_val ;;
2094     esac
2095     case " $ac_configure_args " in
2096       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2097       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2098     esac
2099   fi
2100 done
2101 if $ac_cache_corrupted; then
2102   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2104   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2106    { (exit 1); exit 1; }; }
2107 fi
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133 ac_ext=c
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138
2139
2140
2141
2142 ac_aux_dir=
2143 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2144   if test -f "$ac_dir/install-sh"; then
2145     ac_aux_dir=$ac_dir
2146     ac_install_sh="$ac_aux_dir/install-sh -c"
2147     break
2148   elif test -f "$ac_dir/install.sh"; then
2149     ac_aux_dir=$ac_dir
2150     ac_install_sh="$ac_aux_dir/install.sh -c"
2151     break
2152   elif test -f "$ac_dir/shtool"; then
2153     ac_aux_dir=$ac_dir
2154     ac_install_sh="$ac_aux_dir/shtool install -c"
2155     break
2156   fi
2157 done
2158 if test -z "$ac_aux_dir"; then
2159   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2160 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164 # These three variables are undocumented and unsupported,
2165 # and are intended to be withdrawn in a future Autoconf release.
2166 # They can cause serious problems if a builder's source tree is in a directory
2167 # whose full name contains unusual characters.
2168 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2169 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2170 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2171
2172
2173 # Make sure we can run config.sub.
2174 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2175   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2176 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2177    { (exit 1); exit 1; }; }
2178
2179 { echo "$as_me:$LINENO: checking build system type" >&5
2180 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_build+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   ac_build_alias=$build_alias
2185 test "x$ac_build_alias" = x &&
2186   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2187 test "x$ac_build_alias" = x &&
2188   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2189 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2190    { (exit 1); exit 1; }; }
2191 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2192   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2193 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2194    { (exit 1); exit 1; }; }
2195
2196 fi
2197 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2198 echo "${ECHO_T}$ac_cv_build" >&6; }
2199 case $ac_cv_build in
2200 *-*-*) ;;
2201 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2202 echo "$as_me: error: invalid value of canonical build" >&2;}
2203    { (exit 1); exit 1; }; };;
2204 esac
2205 build=$ac_cv_build
2206 ac_save_IFS=$IFS; IFS='-'
2207 set x $ac_cv_build
2208 shift
2209 build_cpu=$1
2210 build_vendor=$2
2211 shift; shift
2212 # Remember, the first character of IFS is used to create $*,
2213 # except with old shells:
2214 build_os=$*
2215 IFS=$ac_save_IFS
2216 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2217
2218
2219 { echo "$as_me:$LINENO: checking host system type" >&5
2220 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2221 if test "${ac_cv_host+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test "x$host_alias" = x; then
2225   ac_cv_host=$ac_cv_build
2226 else
2227   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2228     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2230    { (exit 1); exit 1; }; }
2231 fi
2232
2233 fi
2234 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2235 echo "${ECHO_T}$ac_cv_host" >&6; }
2236 case $ac_cv_host in
2237 *-*-*) ;;
2238 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2239 echo "$as_me: error: invalid value of canonical host" >&2;}
2240    { (exit 1); exit 1; }; };;
2241 esac
2242 host=$ac_cv_host
2243 ac_save_IFS=$IFS; IFS='-'
2244 set x $ac_cv_host
2245 shift
2246 host_cpu=$1
2247 host_vendor=$2
2248 shift; shift
2249 # Remember, the first character of IFS is used to create $*,
2250 # except with old shells:
2251 host_os=$*
2252 IFS=$ac_save_IFS
2253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2254
2255
2256 { echo "$as_me:$LINENO: checking target system type" >&5
2257 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2258 if test "${ac_cv_target+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   if test "x$target_alias" = x; then
2262   ac_cv_target=$ac_cv_host
2263 else
2264   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2265     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2266 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2267    { (exit 1); exit 1; }; }
2268 fi
2269
2270 fi
2271 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2272 echo "${ECHO_T}$ac_cv_target" >&6; }
2273 case $ac_cv_target in
2274 *-*-*) ;;
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2276 echo "$as_me: error: invalid value of canonical target" >&2;}
2277    { (exit 1); exit 1; }; };;
2278 esac
2279 target=$ac_cv_target
2280 ac_save_IFS=$IFS; IFS='-'
2281 set x $ac_cv_target
2282 shift
2283 target_cpu=$1
2284 target_vendor=$2
2285 shift; shift
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2288 target_os=$*
2289 IFS=$ac_save_IFS
2290 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2291
2292
2293 # The aliases save the names the user supplied, while $host etc.
2294 # will get canonicalized.
2295 test -n "$target_alias" &&
2296   test "$program_prefix$program_suffix$program_transform_name" = \
2297     NONENONEs,x,x, &&
2298   program_prefix=${target_alias}-
2299
2300 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
2301
2302 LIBVERSION="0:0:0"
2303
2304 case "$host_os" in
2305      darwin*)
2306         cp_module=""
2307         ;;
2308         *)
2309         cp_module="-module"
2310         ;;
2311 esac
2312
2313 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
2314
2315
2316 CLASSPATH_CONVENIENCE="-no-undefined"
2317
2318
2319
2320 am__api_version='1.10'
2321
2322 # Find a good install program.  We prefer a C program (faster),
2323 # so one script is as good as another.  But avoid the broken or
2324 # incompatible versions:
2325 # SysV /etc/install, /usr/sbin/install
2326 # SunOS /usr/etc/install
2327 # IRIX /sbin/install
2328 # AIX /bin/install
2329 # AmigaOS /C/install, which installs bootblocks on floppy discs
2330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2333 # OS/2's system install, which has a completely different semantic
2334 # ./install, which can be erroneously created by make from ./install.sh.
2335 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2336 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2337 if test -z "$INSTALL"; then
2338 if test "${ac_cv_path_install+set}" = set; then
2339   echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   # Account for people who put trailing slashes in PATH elements.
2347 case $as_dir/ in
2348   ./ | .// | /cC/* | \
2349   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2351   /usr/ucb/* ) ;;
2352   *)
2353     # OSF1 and SCO ODT 3.0 have their own names for install.
2354     # Don't use installbsd from OSF since it installs stuff as root
2355     # by default.
2356     for ac_prog in ginstall scoinst install; do
2357       for ac_exec_ext in '' $ac_executable_extensions; do
2358         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2359           if test $ac_prog = install &&
2360             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361             # AIX install.  It has an incompatible calling convention.
2362             :
2363           elif test $ac_prog = install &&
2364             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365             # program-specific install script used by HP pwplus--don't use.
2366             :
2367           else
2368             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2369             break 3
2370           fi
2371         fi
2372       done
2373     done
2374     ;;
2375 esac
2376 done
2377 IFS=$as_save_IFS
2378
2379
2380 fi
2381   if test "${ac_cv_path_install+set}" = set; then
2382     INSTALL=$ac_cv_path_install
2383   else
2384     # As a last resort, use the slow shell script.  Don't cache a
2385     # value for INSTALL within a source directory, because that will
2386     # break other packages using the cache if that directory is
2387     # removed, or if the value is a relative name.
2388     INSTALL=$ac_install_sh
2389   fi
2390 fi
2391 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2392 echo "${ECHO_T}$INSTALL" >&6; }
2393
2394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2395 # It thinks the first close brace ends the variable substitution.
2396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2397
2398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2399
2400 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2401
2402 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2403 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2404 # Just in case
2405 sleep 1
2406 echo timestamp > conftest.file
2407 # Do `set' in a subshell so we don't clobber the current shell's
2408 # arguments.  Must try -L first in case configure is actually a
2409 # symlink; some systems play weird games with the mod time of symlinks
2410 # (eg FreeBSD returns the mod time of the symlink's containing
2411 # directory).
2412 if (
2413    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2414    if test "$*" = "X"; then
2415       # -L didn't work.
2416       set X `ls -t $srcdir/configure conftest.file`
2417    fi
2418    rm -f conftest.file
2419    if test "$*" != "X $srcdir/configure conftest.file" \
2420       && test "$*" != "X conftest.file $srcdir/configure"; then
2421
2422       # If neither matched, then we have a broken ls.  This can happen
2423       # if, for instance, CONFIG_SHELL is bash and it inherits a
2424       # broken ls alias from the environment.  This has actually
2425       # happened.  Such a system could not be considered "sane".
2426       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2427 alias in your environment" >&5
2428 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2429 alias in your environment" >&2;}
2430    { (exit 1); exit 1; }; }
2431    fi
2432
2433    test "$2" = conftest.file
2434    )
2435 then
2436    # Ok.
2437    :
2438 else
2439    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2440 Check your system clock" >&5
2441 echo "$as_me: error: newly created file is older than distributed files!
2442 Check your system clock" >&2;}
2443    { (exit 1); exit 1; }; }
2444 fi
2445 { echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6; }
2447 test "$program_prefix" != NONE &&
2448   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2449 # Use a double $ so make ignores it.
2450 test "$program_suffix" != NONE &&
2451   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2452 # Double any \ or $.  echo might interpret backslashes.
2453 # By default was `s,x,x', remove it if useless.
2454 cat <<\_ACEOF >conftest.sed
2455 s/[\\$]/&&/g;s/;s,x,x,$//
2456 _ACEOF
2457 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2458 rm -f conftest.sed
2459
2460 # expand $ac_aux_dir to an absolute path
2461 am_aux_dir=`cd $ac_aux_dir && pwd`
2462
2463 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2464 # Use eval to expand $SHELL
2465 if eval "$MISSING --run true"; then
2466   am_missing_run="$MISSING --run "
2467 else
2468   am_missing_run=
2469   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2470 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2471 fi
2472
2473 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2474 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2475 if test -z "$MKDIR_P"; then
2476   if test "${ac_cv_path_mkdir+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484   for ac_prog in mkdir gmkdir; do
2485          for ac_exec_ext in '' $ac_executable_extensions; do
2486            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2487            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2488              'mkdir (GNU coreutils) '* | \
2489              'mkdir (coreutils) '* | \
2490              'mkdir (fileutils) '4.1*)
2491                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2492                break 3;;
2493            esac
2494          done
2495        done
2496 done
2497 IFS=$as_save_IFS
2498
2499 fi
2500
2501   if test "${ac_cv_path_mkdir+set}" = set; then
2502     MKDIR_P="$ac_cv_path_mkdir -p"
2503   else
2504     # As a last resort, use the slow shell script.  Don't cache a
2505     # value for MKDIR_P within a source directory, because that will
2506     # break other packages using the cache if that directory is
2507     # removed, or if the value is a relative name.
2508     test -d ./--version && rmdir ./--version
2509     MKDIR_P="$ac_install_sh -d"
2510   fi
2511 fi
2512 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2513 echo "${ECHO_T}$MKDIR_P" >&6; }
2514
2515 mkdir_p="$MKDIR_P"
2516 case $mkdir_p in
2517   [\\/$]* | ?:[\\/]*) ;;
2518   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2519 esac
2520
2521 for ac_prog in gawk mawk nawk awk
2522 do
2523   # Extract the first word of "$ac_prog", so it can be a program name with args.
2524 set dummy $ac_prog; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_AWK+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$AWK"; then
2531   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     ac_cv_prog_AWK="$ac_prog"
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 AWK=$ac_cv_prog_AWK
2551 if test -n "$AWK"; then
2552   { echo "$as_me:$LINENO: result: $AWK" >&5
2553 echo "${ECHO_T}$AWK" >&6; }
2554 else
2555   { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2557 fi
2558
2559
2560   test -n "$AWK" && break
2561 done
2562
2563 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2564 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2565 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2566 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   cat >conftest.make <<\_ACEOF
2570 SHELL = /bin/sh
2571 all:
2572         @echo '@@@%%%=$(MAKE)=@@@%%%'
2573 _ACEOF
2574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2575 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2576   *@@@%%%=?*=@@@%%%*)
2577     eval ac_cv_prog_make_${ac_make}_set=yes;;
2578   *)
2579     eval ac_cv_prog_make_${ac_make}_set=no;;
2580 esac
2581 rm -f conftest.make
2582 fi
2583 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2584   { echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6; }
2586   SET_MAKE=
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590   SET_MAKE="MAKE=${MAKE-make}"
2591 fi
2592
2593 rm -rf .tst 2>/dev/null
2594 mkdir .tst 2>/dev/null
2595 if test -d .tst; then
2596   am__leading_dot=.
2597 else
2598   am__leading_dot=_
2599 fi
2600 rmdir .tst 2>/dev/null
2601
2602 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2603   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2604   # is not polluted with repeated "-I."
2605   am__isrc=' -I$(srcdir)'
2606   # test to see if srcdir already configured
2607   if test -f $srcdir/config.status; then
2608     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2609 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2610    { (exit 1); exit 1; }; }
2611   fi
2612 fi
2613
2614 # test whether we have cygpath
2615 if test -z "$CYGPATH_W"; then
2616   if (cygpath --version) >/dev/null 2>/dev/null; then
2617     CYGPATH_W='cygpath -w'
2618   else
2619     CYGPATH_W=echo
2620   fi
2621 fi
2622
2623
2624 # Define the identity of the package.
2625  PACKAGE='classpath'
2626  VERSION='0.97.2'
2627
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE "$PACKAGE"
2631 _ACEOF
2632
2633
2634 cat >>confdefs.h <<_ACEOF
2635 #define VERSION "$VERSION"
2636 _ACEOF
2637
2638 # Some tools Automake needs.
2639
2640 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2641
2642
2643 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2644
2645
2646 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2647
2648
2649 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2650
2651
2652 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2653
2654 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2655
2656 # Installed binaries are usually stripped using `strip' when the user
2657 # run `make install-strip'.  However `strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the `STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661   if test -n "$ac_tool_prefix"; then
2662   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_STRIP+set}" = set; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   if test -n "$STRIP"; then
2670   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677   for ac_exec_ext in '' $ac_executable_extensions; do
2678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681     break 2
2682   fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691   { echo "$as_me:$LINENO: result: $STRIP" >&5
2692 echo "${ECHO_T}$STRIP" >&6; }
2693 else
2694   { echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$ac_cv_prog_STRIP"; then
2701   ac_ct_STRIP=$STRIP
2702   # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   if test -n "$ac_ct_STRIP"; then
2710   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715   IFS=$as_save_IFS
2716   test -z "$as_dir" && as_dir=.
2717   for ac_exec_ext in '' $ac_executable_extensions; do
2718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719     ac_cv_prog_ac_ct_STRIP="strip"
2720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721     break 2
2722   fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2732 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2733 else
2734   { echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6; }
2736 fi
2737
2738   if test "x$ac_ct_STRIP" = x; then
2739     STRIP=":"
2740   else
2741     case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet.  If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&5
2746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2747 whose name does not start with the host triplet.  If you think this
2748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2749 ac_tool_warned=yes ;;
2750 esac
2751     STRIP=$ac_ct_STRIP
2752   fi
2753 else
2754   STRIP="$ac_cv_prog_STRIP"
2755 fi
2756
2757 fi
2758 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2759
2760 # We need awk for the "check" target.  The system "awk" is bad on
2761 # some platforms.
2762 # Always define AMTAR for backward compatibility.
2763
2764 AMTAR=${AMTAR-"${am_missing_run}tar"}
2765
2766
2767 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2768 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2769 # Loop over all known methods to create a tar archive until one works.
2770 _am_tools='gnutar plaintar pax cpio none'
2771 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2772 # Do not fold the above two line into one, because Tru64 sh and
2773 # Solaris sh will not grok spaces in the rhs of `-'.
2774 for _am_tool in $_am_tools
2775 do
2776   case $_am_tool in
2777   gnutar)
2778     for _am_tar in tar gnutar gtar;
2779     do
2780       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2781    ($_am_tar --version) >&5 2>&5
2782    ac_status=$?
2783    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784    (exit $ac_status); } && break
2785     done
2786     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2787     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2788     am__untar="$_am_tar -xf -"
2789     ;;
2790   plaintar)
2791     # Must skip GNU tar: if it does not support --format= it doesn't create
2792     # ustar tarball either.
2793     (tar --version) >/dev/null 2>&1 && continue
2794     am__tar='tar chf - "$$tardir"'
2795     am__tar_='tar chf - "$tardir"'
2796     am__untar='tar xf -'
2797     ;;
2798   pax)
2799     am__tar='pax -L -x ustar -w "$$tardir"'
2800     am__tar_='pax -L -x ustar -w "$tardir"'
2801     am__untar='pax -r'
2802     ;;
2803   cpio)
2804     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2805     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2806     am__untar='cpio -i -H ustar -d'
2807     ;;
2808   none)
2809     am__tar=false
2810     am__tar_=false
2811     am__untar=false
2812     ;;
2813   esac
2814
2815   # If the value was cached, stop now.  We just wanted to have am__tar
2816   # and am__untar set.
2817   test -n "${am_cv_prog_tar_ustar}" && break
2818
2819   # tar/untar a dummy directory, and stop if the command works
2820   rm -rf conftest.dir
2821   mkdir conftest.dir
2822   echo GrepMe > conftest.dir/file
2823   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2824    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2825    ac_status=$?
2826    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827    (exit $ac_status); }
2828   rm -rf conftest.dir
2829   if test -s conftest.tar; then
2830     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2831    ($am__untar <conftest.tar) >&5 2>&5
2832    ac_status=$?
2833    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834    (exit $ac_status); }
2835     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2836   fi
2837 done
2838 rm -rf conftest.dir
2839
2840 if test "${am_cv_prog_tar_ustar+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   am_cv_prog_tar_ustar=$_am_tool
2844 fi
2845
2846 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2847 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2848
2849
2850
2851
2852
2853 ac_config_headers="$ac_config_headers include/config.h"
2854
2855
2856
2857 # Check whether --enable-collections was given.
2858 if test "${enable_collections+set}" = set; then
2859   enableval=$enable_collections; case x"${enableval}" in
2860                 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2861                 xno) COMPILE_COLLECTIONS=no ;;
2862                 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2863                 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2864               esac
2865 else
2866   COMPILE_COLLECTIONS=no
2867 fi
2868
2869  if test "x${COMPILE_COLLECTIONS}" = xyes; then
2870   CREATE_COLLECTIONS_TRUE=
2871   CREATE_COLLECTIONS_FALSE='#'
2872 else
2873   CREATE_COLLECTIONS_TRUE='#'
2874   CREATE_COLLECTIONS_FALSE=
2875 fi
2876
2877
2878 # Check whether --enable-jni was given.
2879 if test "${enable_jni+set}" = set; then
2880   enableval=$enable_jni; case "${enableval}" in
2881                 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2882                 no) COMPILE_JNI=no ;;
2883                 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2884               esac
2885 else
2886   COMPILE_JNI=yes
2887 fi
2888
2889  if test "x${COMPILE_JNI}" = xyes; then
2890   CREATE_JNI_LIBRARIES_TRUE=
2891   CREATE_JNI_LIBRARIES_FALSE='#'
2892 else
2893   CREATE_JNI_LIBRARIES_TRUE='#'
2894   CREATE_JNI_LIBRARIES_FALSE=
2895 fi
2896
2897
2898 # Check whether --enable-core-jni was given.
2899 if test "${enable_core_jni+set}" = set; then
2900   enableval=$enable_core_jni; case "${enableval}" in
2901                 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2902                 no) COMPILE_CORE_JNI=no ;;
2903                 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2904               esac
2905 else
2906   COMPILE_CORE_JNI=yes
2907 fi
2908
2909  if test "x${COMPILE_CORE_JNI}" = xyes; then
2910   CREATE_CORE_JNI_LIBRARIES_TRUE=
2911   CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2912 else
2913   CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2914   CREATE_CORE_JNI_LIBRARIES_FALSE=
2915 fi
2916
2917
2918 # Check whether --enable-default-preferences-peer was given.
2919 if test "${enable_default_preferences_peer+set}" = set; then
2920   enableval=$enable_default_preferences_peer; case "${enableval}" in
2921                 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory  ;;
2922                 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory  ;;
2923                 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory  ;;
2924                 no|false) { { echo "$as_me:$LINENO: error: bad value '${enableval}' for --enable-default-preferences-peer" >&5
2925 echo "$as_me: error: bad value '${enableval}' for --enable-default-preferences-peer" >&2;}
2926    { (exit 1); exit 1; }; } ;;
2927                 *) DEFAULT_PREFS_PEER=${enableval} ;;
2928               esac
2929 else
2930   DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
2931 fi
2932
2933
2934 # Check whether --enable-gconf-peer was given.
2935 if test "${enable_gconf_peer+set}" = set; then
2936   enableval=$enable_gconf_peer; case "${enableval}" in
2937                 yes) COMPILE_GCONF_PEER=yes ;;
2938                 no) COMPILE_GCONF_PEER=no ;;
2939                 *) COMPILE_GCONF_PEER=yes ;;
2940               esac
2941 else
2942   COMPILE_GCONF_PEER=yes
2943 fi
2944
2945  if test "x${COMPILE_GCONF_PEER}" = xyes; then
2946   CREATE_GCONF_PEER_LIBRARIES_TRUE=
2947   CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2948 else
2949   CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2950   CREATE_GCONF_PEER_LIBRARIES_FALSE=
2951 fi
2952
2953
2954 # Check whether --enable-gconf-peers was given.
2955 if test "${enable_gconf_peers+set}" = set; then
2956   enableval=$enable_gconf_peers; { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2957 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2958    { (exit 1); exit 1; }; }
2959 fi
2960
2961
2962 # Check whether --enable-gstreamer-peer was given.
2963 if test "${enable_gstreamer_peer+set}" = set; then
2964   enableval=$enable_gstreamer_peer; case "${enableval}" in
2965                 yes) COMPILE_GSTREAMER_PEER=yes ;;
2966                 no) COMPILE_GSTREAMER_PEER=no ;;
2967                 *) COMPILE_GSTREAMER_PEER=default ;;
2968               esac
2969 else
2970   COMPILE_GSTREAMER_PEER=default
2971 fi
2972
2973  if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
2974   CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
2975   CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
2976 else
2977   CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
2978   CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
2979 fi
2980
2981
2982 # Check whether --enable-gstreamer-peers was given.
2983 if test "${enable_gstreamer_peers+set}" = set; then
2984   enableval=$enable_gstreamer_peers; { { echo "$as_me:$LINENO: error: No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" >&5
2985 echo "$as_me: error: No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" >&2;}
2986    { (exit 1); exit 1; }; }
2987 fi
2988
2989
2990 # Check whether --enable-Werror was given.
2991 if test "${enable_Werror+set}" = set; then
2992   enableval=$enable_Werror; case "${enableval}" in
2993                 yes) ENABLE_WERROR=yes ;;
2994                 no) ENABLE_WERROR=no ;;
2995                 *) ENABLE_WERROR=default ;;
2996               esac
2997 else
2998   ENABLE_WERROR=default
2999 fi
3000
3001
3002 # Check whether --enable-default-toolkit was given.
3003 if test "${enable_default_toolkit+set}" = set; then
3004   enableval=$enable_default_toolkit;
3005 fi
3006
3007 default_toolkit=$enable_default_toolkit
3008 if test "$default_toolkit" = ""; then
3009    default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3010 fi
3011
3012
3013 # Check whether --enable-xmlj was given.
3014 if test "${enable_xmlj+set}" = set; then
3015   enableval=$enable_xmlj; case "${enableval}" in
3016                 yes) COMPILE_XMLJ=yes ;;
3017                 no) COMPILE_XMLJ=no ;;
3018                 *) COMPILE_XMLJ=no ;;
3019               esac
3020 else
3021   COMPILE_XMLJ=no
3022 fi
3023
3024  if test "x${COMPILE_XMLJ}" = xyes; then
3025   CREATE_XMLJ_LIBRARY_TRUE=
3026   CREATE_XMLJ_LIBRARY_FALSE='#'
3027 else
3028   CREATE_XMLJ_LIBRARY_TRUE='#'
3029   CREATE_XMLJ_LIBRARY_FALSE=
3030 fi
3031
3032
3033 DEPDIR="${am__leading_dot}deps"
3034
3035 ac_config_commands="$ac_config_commands depfiles"
3036
3037
3038 am_make=${MAKE-make}
3039 cat > confinc << 'END'
3040 am__doit:
3041         @echo done
3042 .PHONY: am__doit
3043 END
3044 # If we don't find an include directive, just comment out the code.
3045 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3046 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3047 am__include="#"
3048 am__quote=
3049 _am_result=none
3050 # First try GNU make style include.
3051 echo "include confinc" > confmf
3052 # We grep out `Entering directory' and `Leaving directory'
3053 # messages which can occur if `w' ends up in MAKEFLAGS.
3054 # In particular we don't look at `^make:' because GNU make might
3055 # be invoked under some other name (usually "gmake"), in which
3056 # case it prints its new name instead of `make'.
3057 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3058    am__include=include
3059    am__quote=
3060    _am_result=GNU
3061 fi
3062 # Now try BSD make style include.
3063 if test "$am__include" = "#"; then
3064    echo '.include "confinc"' > confmf
3065    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3066       am__include=.include
3067       am__quote="\""
3068       _am_result=BSD
3069    fi
3070 fi
3071
3072
3073 { echo "$as_me:$LINENO: result: $_am_result" >&5
3074 echo "${ECHO_T}$_am_result" >&6; }
3075 rm -f confinc confmf
3076
3077 # Check whether --enable-dependency-tracking was given.
3078 if test "${enable_dependency_tracking+set}" = set; then
3079   enableval=$enable_dependency_tracking;
3080 fi
3081
3082 if test "x$enable_dependency_tracking" != xno; then
3083   am_depcomp="$ac_aux_dir/depcomp"
3084   AMDEPBACKSLASH='\'
3085 fi
3086  if test "x$enable_dependency_tracking" != xno; then
3087   AMDEP_TRUE=
3088   AMDEP_FALSE='#'
3089 else
3090   AMDEP_TRUE='#'
3091   AMDEP_FALSE=
3092 fi
3093
3094
3095 ac_ext=c
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 if test -n "$ac_tool_prefix"; then
3101   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_CC+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   if test -n "$CC"; then
3109   ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114   IFS=$as_save_IFS
3115   test -z "$as_dir" && as_dir=.
3116   for ac_exec_ext in '' $ac_executable_extensions; do
3117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120     break 2
3121   fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130   { echo "$as_me:$LINENO: result: $CC" >&5
3131 echo "${ECHO_T}$CC" >&6; }
3132 else
3133   { echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6; }
3135 fi
3136
3137
3138 fi
3139 if test -z "$ac_cv_prog_CC"; then
3140   ac_ct_CC=$CC
3141   # Extract the first word of "gcc", so it can be a program name with args.
3142 set dummy gcc; ac_word=$2
3143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   if test -n "$ac_ct_CC"; then
3149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156   for ac_exec_ext in '' $ac_executable_extensions; do
3157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158     ac_cv_prog_ac_ct_CC="gcc"
3159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169 if test -n "$ac_ct_CC"; then
3170   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3171 echo "${ECHO_T}$ac_ct_CC" >&6; }
3172 else
3173   { echo "$as_me:$LINENO: result: no" >&5
3174 echo "${ECHO_T}no" >&6; }
3175 fi
3176
3177   if test "x$ac_ct_CC" = x; then
3178     CC=""
3179   else
3180     case $cross_compiling:$ac_tool_warned in
3181 yes:)
3182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3183 whose name does not start with the host triplet.  If you think this
3184 configuration is useful to you, please write to autoconf@gnu.org." >&5
3185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3186 whose name does not start with the host triplet.  If you think this
3187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3188 ac_tool_warned=yes ;;
3189 esac
3190     CC=$ac_ct_CC
3191   fi
3192 else
3193   CC="$ac_cv_prog_CC"
3194 fi
3195
3196 if test -z "$CC"; then
3197           if test -n "$ac_tool_prefix"; then
3198     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}cc; ac_word=$2
3200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3202 if test "${ac_cv_prog_CC+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   if test -n "$CC"; then
3206   ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211   IFS=$as_save_IFS
3212   test -z "$as_dir" && as_dir=.
3213   for ac_exec_ext in '' $ac_executable_extensions; do
3214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215     ac_cv_prog_CC="${ac_tool_prefix}cc"
3216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217     break 2
3218   fi
3219 done
3220 done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 CC=$ac_cv_prog_CC
3226 if test -n "$CC"; then
3227   { echo "$as_me:$LINENO: result: $CC" >&5
3228 echo "${ECHO_T}$CC" >&6; }
3229 else
3230   { echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6; }
3232 fi
3233
3234
3235   fi
3236 fi
3237 if test -z "$CC"; then
3238   # Extract the first word of "cc", so it can be a program name with args.
3239 set dummy cc; ac_word=$2
3240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3242 if test "${ac_cv_prog_CC+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   if test -n "$CC"; then
3246   ac_cv_prog_CC="$CC" # Let the user override the test.
3247 else
3248   ac_prog_rejected=no
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252   IFS=$as_save_IFS
3253   test -z "$as_dir" && as_dir=.
3254   for ac_exec_ext in '' $ac_executable_extensions; do
3255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3257        ac_prog_rejected=yes
3258        continue
3259      fi
3260     ac_cv_prog_CC="cc"
3261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 if test $ac_prog_rejected = yes; then
3269   # We found a bogon in the path, so make sure we never use it.
3270   set dummy $ac_cv_prog_CC
3271   shift
3272   if test $# != 0; then
3273     # We chose a different compiler from the bogus one.
3274     # However, it has the same basename, so the bogon will be chosen
3275     # first if we set CC to just the basename; use the full file name.
3276     shift
3277     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3278   fi
3279 fi
3280 fi
3281 fi
3282 CC=$ac_cv_prog_CC
3283 if test -n "$CC"; then
3284   { echo "$as_me:$LINENO: result: $CC" >&5
3285 echo "${ECHO_T}$CC" >&6; }
3286 else
3287   { echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6; }
3289 fi
3290
3291
3292 fi
3293 if test -z "$CC"; then
3294   if test -n "$ac_tool_prefix"; then
3295   for ac_prog in cl.exe
3296   do
3297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_CC+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   if test -n "$CC"; then
3305   ac_cv_prog_CC="$CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312   for ac_exec_ext in '' $ac_executable_extensions; do
3313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326   { echo "$as_me:$LINENO: result: $CC" >&5
3327 echo "${ECHO_T}$CC" >&6; }
3328 else
3329   { echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6; }
3331 fi
3332
3333
3334     test -n "$CC" && break
3335   done
3336 fi
3337 if test -z "$CC"; then
3338   ac_ct_CC=$CC
3339   for ac_prog in cl.exe
3340 do
3341   # Extract the first word of "$ac_prog", so it can be a program name with args.
3342 set dummy $ac_prog; ac_word=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   if test -n "$ac_ct_CC"; then
3349   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356   for ac_exec_ext in '' $ac_executable_extensions; do
3357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358     ac_cv_prog_ac_ct_CC="$ac_prog"
3359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3369 if test -n "$ac_ct_CC"; then
3370   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3371 echo "${ECHO_T}$ac_ct_CC" >&6; }
3372 else
3373   { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3375 fi
3376
3377
3378   test -n "$ac_ct_CC" && break
3379 done
3380
3381   if test "x$ac_ct_CC" = x; then
3382     CC=""
3383   else
3384     case $cross_compiling:$ac_tool_warned in
3385 yes:)
3386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3387 whose name does not start with the host triplet.  If you think this
3388 configuration is useful to you, please write to autoconf@gnu.org." >&5
3389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3390 whose name does not start with the host triplet.  If you think this
3391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3392 ac_tool_warned=yes ;;
3393 esac
3394     CC=$ac_ct_CC
3395   fi
3396 fi
3397
3398 fi
3399
3400
3401 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3402 See \`config.log' for more details." >&5
3403 echo "$as_me: error: no acceptable C compiler found in \$PATH
3404 See \`config.log' for more details." >&2;}
3405    { (exit 1); exit 1; }; }
3406
3407 # Provide some information about the compiler.
3408 echo "$as_me:$LINENO: checking for C compiler version" >&5
3409 ac_compiler=`set X $ac_compile; echo $2`
3410 { (ac_try="$ac_compiler --version >&5"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_compiler --version >&5") 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }
3420 { (ac_try="$ac_compiler -v >&5"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426   (eval "$ac_compiler -v >&5") 2>&5
3427   ac_status=$?
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }
3430 { (ac_try="$ac_compiler -V >&5"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436   (eval "$ac_compiler -V >&5") 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }
3440
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3460 # of exeext.
3461 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3464 #
3465 # List of possible output files, starting from the most likely.
3466 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3467 # only as a last resort.  b.out is created by i960 compilers.
3468 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3469 #
3470 # The IRIX 6 linker writes into existing files which may not be
3471 # executable, retaining their permissions.  Remove them first so a
3472 # subsequent execution test works.
3473 ac_rmfiles=
3474 for ac_file in $ac_files
3475 do
3476   case $ac_file in
3477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3478     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479   esac
3480 done
3481 rm -f $ac_rmfiles
3482
3483 if { (ac_try="$ac_link_default"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489   (eval "$ac_link_default") 2>&5
3490   ac_status=$?
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); }; then
3493   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3495 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3496 # so that the user can short-circuit this test for compilers unknown to
3497 # Autoconf.
3498 for ac_file in $ac_files ''
3499 do
3500   test -f "$ac_file" || continue
3501   case $ac_file in
3502     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3503         ;;
3504     [ab].out )
3505         # We found the default executable, but exeext='' is most
3506         # certainly right.
3507         break;;
3508     *.* )
3509         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3510         then :; else
3511            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512         fi
3513         # We set ac_cv_exeext here because the later test for it is not
3514         # safe: cross compilers may not add the suffix if given an `-o'
3515         # argument, so we may need to know it at that point already.
3516         # Even if this section looks crufty: it has the advantage of
3517         # actually working.
3518         break;;
3519     * )
3520         break;;
3521   esac
3522 done
3523 test "$ac_cv_exeext" = no && ac_cv_exeext=
3524
3525 else
3526   ac_file=''
3527 fi
3528
3529 { echo "$as_me:$LINENO: result: $ac_file" >&5
3530 echo "${ECHO_T}$ac_file" >&6; }
3531 if test -z "$ac_file"; then
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3536 See \`config.log' for more details." >&5
3537 echo "$as_me: error: C compiler cannot create executables
3538 See \`config.log' for more details." >&2;}
3539    { (exit 77); exit 77; }; }
3540 fi
3541
3542 ac_exeext=$ac_cv_exeext
3543
3544 # Check that the compiler produces executables we can run.  If not, either
3545 # the compiler is broken, or we cross compile.
3546 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3547 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3548 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3549 # If not cross compiling, check that we can run a simple program.
3550 if test "$cross_compiling" != yes; then
3551   if { ac_try='./$ac_file'
3552   { (case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_try") 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; }; then
3561     cross_compiling=no
3562   else
3563     if test "$cross_compiling" = maybe; then
3564         cross_compiling=yes
3565     else
3566         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3567 If you meant to cross compile, use \`--host'.
3568 See \`config.log' for more details." >&5
3569 echo "$as_me: error: cannot run C compiled programs.
3570 If you meant to cross compile, use \`--host'.
3571 See \`config.log' for more details." >&2;}
3572    { (exit 1); exit 1; }; }
3573     fi
3574   fi
3575 fi
3576 { echo "$as_me:$LINENO: result: yes" >&5
3577 echo "${ECHO_T}yes" >&6; }
3578
3579 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3580 ac_clean_files=$ac_clean_files_save
3581 # Check that the compiler produces executables we can run.  If not, either
3582 # the compiler is broken, or we cross compile.
3583 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3584 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3585 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3586 echo "${ECHO_T}$cross_compiling" >&6; }
3587
3588 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3589 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3590 if { (ac_try="$ac_link"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_link") 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; then
3600   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3601 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3602 # work properly (i.e., refer to `conftest.exe'), while it won't with
3603 # `rm'.
3604 for ac_file in conftest.exe conftest conftest.*; do
3605   test -f "$ac_file" || continue
3606   case $ac_file in
3607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3608     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609           break;;
3610     * ) break;;
3611   esac
3612 done
3613 else
3614   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3615 See \`config.log' for more details." >&5
3616 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3617 See \`config.log' for more details." >&2;}
3618    { (exit 1); exit 1; }; }
3619 fi
3620
3621 rm -f conftest$ac_cv_exeext
3622 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3623 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3624
3625 rm -f conftest.$ac_ext
3626 EXEEXT=$ac_cv_exeext
3627 ac_exeext=$EXEEXT
3628 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3630 if test "${ac_cv_objext+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h.  */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h.  */
3639
3640 int
3641 main ()
3642 {
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest.o conftest.obj
3649 if { (ac_try="$ac_compile"
3650 case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655   (eval "$ac_compile") 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); }; then
3659   for ac_file in conftest.o conftest.obj conftest.*; do
3660   test -f "$ac_file" || continue;
3661   case $ac_file in
3662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3663     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3664        break;;
3665   esac
3666 done
3667 else
3668   echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3672 See \`config.log' for more details." >&5
3673 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3674 See \`config.log' for more details." >&2;}
3675    { (exit 1); exit 1; }; }
3676 fi
3677
3678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3679 fi
3680 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3681 echo "${ECHO_T}$ac_cv_objext" >&6; }
3682 OBJEXT=$ac_cv_objext
3683 ac_objext=$OBJEXT
3684 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3685 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695
3696 int
3697 main ()
3698 {
3699 #ifndef __GNUC__
3700        choke me
3701 #endif
3702
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 rm -f conftest.$ac_objext
3708 if { (ac_try="$ac_compile"
3709 case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714   (eval "$ac_compile") 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } && {
3721          test -z "$ac_c_werror_flag" ||
3722          test ! -s conftest.err
3723        } && test -s conftest.$ac_objext; then
3724   ac_compiler_gnu=yes
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729         ac_compiler_gnu=no
3730 fi
3731
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3734
3735 fi
3736 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3737 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3738 GCC=`test $ac_compiler_gnu = yes && echo yes`
3739 ac_test_CFLAGS=${CFLAGS+set}
3740 ac_save_CFLAGS=$CFLAGS
3741 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3742 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3743 if test "${ac_cv_prog_cc_g+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   ac_save_c_werror_flag=$ac_c_werror_flag
3747    ac_c_werror_flag=yes
3748    ac_cv_prog_cc_g=no
3749    CFLAGS="-g"
3750    cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h.  */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h.  */
3756
3757 int
3758 main ()
3759 {
3760
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772   (eval "$ac_compile") 2>conftest.er1
3773   ac_status=$?
3774   grep -v '^ *+' conftest.er1 >conftest.err
3775   rm -f conftest.er1
3776   cat conftest.err >&5
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } && {
3779          test -z "$ac_c_werror_flag" ||
3780          test ! -s conftest.err
3781        } && test -s conftest.$ac_objext; then
3782   ac_cv_prog_cc_g=yes
3783 else
3784   echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787         CFLAGS=""
3788       cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794
3795 int
3796 main ()
3797 {
3798
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext
3804 if { (ac_try="$ac_compile"
3805 case "(($ac_try" in
3806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807   *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810   (eval "$ac_compile") 2>conftest.er1
3811   ac_status=$?
3812   grep -v '^ *+' conftest.er1 >conftest.err
3813   rm -f conftest.er1
3814   cat conftest.err >&5
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); } && {
3817          test -z "$ac_c_werror_flag" ||
3818          test ! -s conftest.err
3819        } && test -s conftest.$ac_objext; then
3820   :
3821 else
3822   echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825         ac_c_werror_flag=$ac_save_c_werror_flag
3826          CFLAGS="-g"
3827          cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h.  */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h.  */
3833
3834 int
3835 main ()
3836 {
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849   (eval "$ac_compile") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } && {
3856          test -z "$ac_c_werror_flag" ||
3857          test ! -s conftest.err
3858        } && test -s conftest.$ac_objext; then
3859   ac_cv_prog_cc_g=yes
3860 else
3861   echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 fi
3869
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 fi
3872
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874    ac_c_werror_flag=$ac_save_c_werror_flag
3875 fi
3876 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3877 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3878 if test "$ac_test_CFLAGS" = set; then
3879   CFLAGS=$ac_save_CFLAGS
3880 elif test $ac_cv_prog_cc_g = yes; then
3881   if test "$GCC" = yes; then
3882     CFLAGS="-g -O2"
3883   else
3884     CFLAGS="-g"
3885   fi
3886 else
3887   if test "$GCC" = yes; then
3888     CFLAGS="-O2"
3889   else
3890     CFLAGS=
3891   fi
3892 fi
3893 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3894 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3895 if test "${ac_cv_prog_cc_c89+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   ac_cv_prog_cc_c89=no
3899 ac_save_CC=$CC
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #include <stdarg.h>
3907 #include <stdio.h>
3908 #include <sys/types.h>
3909 #include <sys/stat.h>
3910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3911 struct buf { int x; };
3912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3913 static char *e (p, i)
3914      char **p;
3915      int i;
3916 {
3917   return p[i];
3918 }
3919 static char *f (char * (*g) (char **, int), char **p, ...)
3920 {
3921   char *s;
3922   va_list v;
3923   va_start (v,p);
3924   s = g (p, va_arg (v,int));
3925   va_end (v);
3926   return s;
3927 }
3928
3929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3930    function prototypes and stuff, but not '\xHH' hex character constants.
3931    These don't provoke an error unfortunately, instead are silently treated
3932    as 'x'.  The following induces an error, until -std is added to get
3933    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3934    array size at least.  It's necessary to write '\x00'==0 to get something
3935    that's true only with -std.  */
3936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3937
3938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3939    inside strings and character constants.  */
3940 #define FOO(x) 'x'
3941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3942
3943 int test (int i, double x);
3944 struct s1 {int (*f) (int a);};
3945 struct s2 {int (*f) (double a);};
3946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3947 int argc;
3948 char **argv;
3949 int
3950 main ()
3951 {
3952 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3958         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3959 do
3960   CC="$ac_save_CC $ac_arg"
3961   rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_compile") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && {
3975          test -z "$ac_c_werror_flag" ||
3976          test ! -s conftest.err
3977        } && test -s conftest.$ac_objext; then
3978   ac_cv_prog_cc_c89=$ac_arg
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983
3984 fi
3985
3986 rm -f core conftest.err conftest.$ac_objext
3987   test "x$ac_cv_prog_cc_c89" != "xno" && break
3988 done
3989 rm -f conftest.$ac_ext
3990 CC=$ac_save_CC
3991
3992 fi
3993 # AC_CACHE_VAL
3994 case "x$ac_cv_prog_cc_c89" in
3995   x)
3996     { echo "$as_me:$LINENO: result: none needed" >&5
3997 echo "${ECHO_T}none needed" >&6; } ;;
3998   xno)
3999     { echo "$as_me:$LINENO: result: unsupported" >&5
4000 echo "${ECHO_T}unsupported" >&6; } ;;
4001   *)
4002     CC="$CC $ac_cv_prog_cc_c89"
4003     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4004 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4005 esac
4006
4007
4008 ac_ext=c
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013
4014 depcc="$CC"   am_compiler_list=
4015
4016 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4017 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4022   # We make a subdir and do the tests there.  Otherwise we can end up
4023   # making bogus files that we don't know about and never remove.  For
4024   # instance it was reported that on HP-UX the gcc test will end up
4025   # making a dummy file named `D' -- because `-MD' means `put the output
4026   # in D'.
4027   mkdir conftest.dir
4028   # Copy depcomp to subdir because otherwise we won't find it if we're
4029   # using a relative directory.
4030   cp "$am_depcomp" conftest.dir
4031   cd conftest.dir
4032   # We will build objects and dependencies in a subdirectory because
4033   # it helps to detect inapplicable dependency modes.  For instance
4034   # both Tru64's cc and ICC support -MD to output dependencies as a
4035   # side effect of compilation, but ICC will put the dependencies in
4036   # the current directory while Tru64 will put them in the object
4037   # directory.
4038   mkdir sub
4039
4040   am_cv_CC_dependencies_compiler_type=none
4041   if test "$am_compiler_list" = ""; then
4042      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4043   fi
4044   for depmode in $am_compiler_list; do
4045     # Setup a source with many dependencies, because some compilers
4046     # like to wrap large dependency lists on column 80 (with \), and
4047     # we should not choose a depcomp mode which is confused by this.
4048     #
4049     # We need to recreate these files for each test, as the compiler may
4050     # overwrite some of them when testing with obscure command lines.
4051     # This happens at least with the AIX C compiler.
4052     : > sub/conftest.c
4053     for i in 1 2 3 4 5 6; do
4054       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4055       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4056       # Solaris 8's {/usr,}/bin/sh.
4057       touch sub/conftst$i.h
4058     done
4059     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4060
4061     case $depmode in
4062     nosideeffect)
4063       # after this tag, mechanisms are not by side-effect, so they'll
4064       # only be used when explicitly requested
4065       if test "x$enable_dependency_tracking" = xyes; then
4066         continue
4067       else
4068         break
4069       fi
4070       ;;
4071     none) break ;;
4072     esac
4073     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4074     # mode.  It turns out that the SunPro C++ compiler does not properly
4075     # handle `-M -o', and we need to detect this.
4076     if depmode=$depmode \
4077        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4078        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4079        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4080          >/dev/null 2>conftest.err &&
4081        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4082        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4083        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4084        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4085       # icc doesn't choke on unknown options, it will just issue warnings
4086       # or remarks (even with -Werror).  So we grep stderr for any message
4087       # that says an option was ignored or not supported.
4088       # When given -MP, icc 7.0 and 7.1 complain thusly:
4089       #   icc: Command line warning: ignoring option '-M'; no argument required
4090       # The diagnosis changed in icc 8.0:
4091       #   icc: Command line remark: option '-MP' not supported
4092       if (grep 'ignoring option' conftest.err ||
4093           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4094         am_cv_CC_dependencies_compiler_type=$depmode
4095         break
4096       fi
4097     fi
4098   done
4099
4100   cd ..
4101   rm -rf conftest.dir
4102 else
4103   am_cv_CC_dependencies_compiler_type=none
4104 fi
4105
4106 fi
4107 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4108 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4109 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4110
4111  if
4112   test "x$enable_dependency_tracking" != xno \
4113   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4114   am__fastdepCC_TRUE=
4115   am__fastdepCC_FALSE='#'
4116 else
4117   am__fastdepCC_TRUE='#'
4118   am__fastdepCC_FALSE=
4119 fi
4120
4121
4122
4123 ac_ext=c
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4129 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4130 # On Suns, sometimes $CPP names a directory.
4131 if test -n "$CPP" && test -d "$CPP"; then
4132   CPP=
4133 fi
4134 if test -z "$CPP"; then
4135   if test "${ac_cv_prog_CPP+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138       # Double quotes because CPP needs to be expanded
4139     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4140     do
4141       ac_preproc_ok=false
4142 for ac_c_preproc_warn_flag in '' yes
4143 do
4144   # Use a header file that comes with gcc, so configuring glibc
4145   # with a fresh cross-compiler works.
4146   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147   # <limits.h> exists even on freestanding compilers.
4148   # On the NeXT, cc -E runs the code through the compiler's parser,
4149   # not just through cpp. "Syntax error" is here to catch this case.
4150   cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #ifdef __STDC__
4157 # include <limits.h>
4158 #else
4159 # include <assert.h>
4160 #endif
4161                      Syntax error
4162 _ACEOF
4163 if { (ac_try="$ac_cpp conftest.$ac_ext"
4164 case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4170   ac_status=$?
4171   grep -v '^ *+' conftest.er1 >conftest.err
4172   rm -f conftest.er1
4173   cat conftest.err >&5
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); } >/dev/null && {
4176          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177          test ! -s conftest.err
4178        }; then
4179   :
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184   # Broken: fails on valid input.
4185 continue
4186 fi
4187
4188 rm -f conftest.err conftest.$ac_ext
4189
4190   # OK, works on sane cases.  Now check whether nonexistent headers
4191   # can be detected and how.
4192   cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 #include <ac_nonexistent.h>
4199 _ACEOF
4200 if { (ac_try="$ac_cpp conftest.$ac_ext"
4201 case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207   ac_status=$?
4208   grep -v '^ *+' conftest.er1 >conftest.err
4209   rm -f conftest.er1
4210   cat conftest.err >&5
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); } >/dev/null && {
4213          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214          test ! -s conftest.err
4215        }; then
4216   # Broken: success on invalid input.
4217 continue
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222   # Passes both tests.
4223 ac_preproc_ok=:
4224 break
4225 fi
4226
4227 rm -f conftest.err conftest.$ac_ext
4228
4229 done
4230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4231 rm -f conftest.err conftest.$ac_ext
4232 if $ac_preproc_ok; then
4233   break
4234 fi
4235
4236     done
4237     ac_cv_prog_CPP=$CPP
4238
4239 fi
4240   CPP=$ac_cv_prog_CPP
4241 else
4242   ac_cv_prog_CPP=$CPP
4243 fi
4244 { echo "$as_me:$LINENO: result: $CPP" >&5
4245 echo "${ECHO_T}$CPP" >&6; }
4246 ac_preproc_ok=false
4247 for ac_c_preproc_warn_flag in '' yes
4248 do
4249   # Use a header file that comes with gcc, so configuring glibc
4250   # with a fresh cross-compiler works.
4251   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4252   # <limits.h> exists even on freestanding compilers.
4253   # On the NeXT, cc -E runs the code through the compiler's parser,
4254   # not just through cpp. "Syntax error" is here to catch this case.
4255   cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h.  */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h.  */
4261 #ifdef __STDC__
4262 # include <limits.h>
4263 #else
4264 # include <assert.h>
4265 #endif
4266                      Syntax error
4267 _ACEOF
4268 if { (ac_try="$ac_cpp conftest.$ac_ext"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } >/dev/null && {
4281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4282          test ! -s conftest.err
4283        }; then
4284   :
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289   # Broken: fails on valid input.
4290 continue
4291 fi
4292
4293 rm -f conftest.err conftest.$ac_ext
4294
4295   # OK, works on sane cases.  Now check whether nonexistent headers
4296   # can be detected and how.
4297   cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 #include <ac_nonexistent.h>
4304 _ACEOF
4305 if { (ac_try="$ac_cpp conftest.$ac_ext"
4306 case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4312   ac_status=$?
4313   grep -v '^ *+' conftest.er1 >conftest.err
4314   rm -f conftest.er1
4315   cat conftest.err >&5
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } >/dev/null && {
4318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4319          test ! -s conftest.err
4320        }; then
4321   # Broken: success on invalid input.
4322 continue
4323 else
4324   echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327   # Passes both tests.
4328 ac_preproc_ok=:
4329 break
4330 fi
4331
4332 rm -f conftest.err conftest.$ac_ext
4333
4334 done
4335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4336 rm -f conftest.err conftest.$ac_ext
4337 if $ac_preproc_ok; then
4338   :
4339 else
4340   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4341 See \`config.log' for more details." >&5
4342 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4343 See \`config.log' for more details." >&2;}
4344    { (exit 1); exit 1; }; }
4345 fi
4346
4347 ac_ext=c
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352
4353
4354 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4355 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4356 if test "${ac_cv_path_GREP+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   # Extract the first word of "grep ggrep" to use in msg output
4360 if test -z "$GREP"; then
4361 set dummy grep ggrep; ac_prog_name=$2
4362 if test "${ac_cv_path_GREP+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   ac_path_GREP_found=false
4366 # Loop through the user's path and test for each of PROGNAME-LIST
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4369 do
4370   IFS=$as_save_IFS
4371   test -z "$as_dir" && as_dir=.
4372   for ac_prog in grep ggrep; do
4373   for ac_exec_ext in '' $ac_executable_extensions; do
4374     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4375     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4376     # Check for GNU ac_path_GREP and select it if it is found.
4377   # Check for GNU $ac_path_GREP
4378 case `"$ac_path_GREP" --version 2>&1` in
4379 *GNU*)
4380   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4381 *)
4382   ac_count=0
4383   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4384   while :
4385   do
4386     cat "conftest.in" "conftest.in" >"conftest.tmp"
4387     mv "conftest.tmp" "conftest.in"
4388     cp "conftest.in" "conftest.nl"
4389     echo 'GREP' >> "conftest.nl"
4390     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392     ac_count=`expr $ac_count + 1`
4393     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4394       # Best one so far, save it but keep looking for a better one
4395       ac_cv_path_GREP="$ac_path_GREP"
4396       ac_path_GREP_max=$ac_count
4397     fi
4398     # 10*(2^10) chars as input seems more than enough
4399     test $ac_count -gt 10 && break
4400   done
4401   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402 esac
4403
4404
4405     $ac_path_GREP_found && break 3
4406   done
4407 done
4408
4409 done
4410 IFS=$as_save_IFS
4411
4412
4413 fi
4414
4415 GREP="$ac_cv_path_GREP"
4416 if test -z "$GREP"; then
4417   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4418 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4419    { (exit 1); exit 1; }; }
4420 fi
4421
4422 else
4423   ac_cv_path_GREP=$GREP
4424 fi
4425
4426
4427 fi
4428 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4429 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4430  GREP="$ac_cv_path_GREP"
4431
4432
4433 { echo "$as_me:$LINENO: checking for egrep" >&5
4434 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4435 if test "${ac_cv_path_EGREP+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4439    then ac_cv_path_EGREP="$GREP -E"
4440    else
4441      # Extract the first word of "egrep" to use in msg output
4442 if test -z "$EGREP"; then
4443 set dummy egrep; ac_prog_name=$2
4444 if test "${ac_cv_path_EGREP+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   ac_path_EGREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454   for ac_prog in egrep; do
4455   for ac_exec_ext in '' $ac_executable_extensions; do
4456     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4457     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4458     # Check for GNU ac_path_EGREP and select it if it is found.
4459   # Check for GNU $ac_path_EGREP
4460 case `"$ac_path_EGREP" --version 2>&1` in
4461 *GNU*)
4462   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4463 *)
4464   ac_count=0
4465   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4466   while :
4467   do
4468     cat "conftest.in" "conftest.in" >"conftest.tmp"
4469     mv "conftest.tmp" "conftest.in"
4470     cp "conftest.in" "conftest.nl"
4471     echo 'EGREP' >> "conftest.nl"
4472     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474     ac_count=`expr $ac_count + 1`
4475     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4476       # Best one so far, save it but keep looking for a better one
4477       ac_cv_path_EGREP="$ac_path_EGREP"
4478       ac_path_EGREP_max=$ac_count
4479     fi
4480     # 10*(2^10) chars as input seems more than enough
4481     test $ac_count -gt 10 && break
4482   done
4483   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 esac
4485
4486
4487     $ac_path_EGREP_found && break 3
4488   done
4489 done
4490
4491 done
4492 IFS=$as_save_IFS
4493
4494
4495 fi
4496
4497 EGREP="$ac_cv_path_EGREP"
4498 if test -z "$EGREP"; then
4499   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4500 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4501    { (exit 1); exit 1; }; }
4502 fi
4503
4504 else
4505   ac_cv_path_EGREP=$EGREP
4506 fi
4507
4508
4509    fi
4510 fi
4511 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4512 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4513  EGREP="$ac_cv_path_EGREP"
4514
4515
4516 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4517 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4518 if test "${ac_cv_header_stdc+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527 #include <stdlib.h>
4528 #include <stdarg.h>
4529 #include <string.h>
4530 #include <float.h>
4531
4532 int
4533 main ()
4534 {
4535
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4542 case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547   (eval "$ac_compile") 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } && {
4554          test -z "$ac_c_werror_flag" ||
4555          test ! -s conftest.err
4556        } && test -s conftest.$ac_objext; then
4557   ac_cv_header_stdc=yes
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562         ac_cv_header_stdc=no
4563 fi
4564
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566
4567 if test $ac_cv_header_stdc = yes; then
4568   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4569   cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h.  */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h.  */
4575 #include <string.h>
4576
4577 _ACEOF
4578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4579   $EGREP "memchr" >/dev/null 2>&1; then
4580   :
4581 else
4582   ac_cv_header_stdc=no
4583 fi
4584 rm -f conftest*
4585
4586 fi
4587
4588 if test $ac_cv_header_stdc = yes; then
4589   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4590   cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 #include <stdlib.h>
4597
4598 _ACEOF
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600   $EGREP "free" >/dev/null 2>&1; then
4601   :
4602 else
4603   ac_cv_header_stdc=no
4604 fi
4605 rm -f conftest*
4606
4607 fi
4608
4609 if test $ac_cv_header_stdc = yes; then
4610   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4611   if test "$cross_compiling" = yes; then
4612   :
4613 else
4614   cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 #include <ctype.h>
4621 #include <stdlib.h>
4622 #if ((' ' & 0x0FF) == 0x020)
4623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4625 #else
4626 # define ISLOWER(c) \
4627                    (('a' <= (c) && (c) <= 'i') \
4628                      || ('j' <= (c) && (c) <= 'r') \
4629                      || ('s' <= (c) && (c) <= 'z'))
4630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4631 #endif
4632
4633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4634 int
4635 main ()
4636 {
4637   int i;
4638   for (i = 0; i < 256; i++)
4639     if (XOR (islower (i), ISLOWER (i))
4640         || toupper (i) != TOUPPER (i))
4641       return 2;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4647 case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652   (eval "$ac_link") 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4656   { (case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661   (eval "$ac_try") 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; }; then
4665   :
4666 else
4667   echo "$as_me: program exited with status $ac_status" >&5
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4670
4671 ( exit $ac_status )
4672 ac_cv_header_stdc=no
4673 fi
4674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4675 fi
4676
4677
4678 fi
4679 fi
4680 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4681 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4682 if test $ac_cv_header_stdc = yes; then
4683
4684 cat >>confdefs.h <<\_ACEOF
4685 #define STDC_HEADERS 1
4686 _ACEOF
4687
4688 fi
4689
4690 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4701                   inttypes.h stdint.h unistd.h
4702 do
4703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 $ac_includes_default
4716
4717 #include <$ac_header>
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4721 case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726   (eval "$ac_compile") 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } && {
4733          test -z "$ac_c_werror_flag" ||
4734          test ! -s conftest.err
4735        } && test -s conftest.$ac_objext; then
4736   eval "$as_ac_Header=yes"
4737 else
4738   echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741         eval "$as_ac_Header=no"
4742 fi
4743
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 fi
4746 ac_res=`eval echo '${'$as_ac_Header'}'`
4747                { echo "$as_me:$LINENO: result: $ac_res" >&5
4748 echo "${ECHO_T}$ac_res" >&6; }
4749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4750   cat >>confdefs.h <<_ACEOF
4751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4752 _ACEOF
4753
4754 fi
4755
4756 done
4757
4758
4759 # Check whether --enable-alsa was given.
4760 if test "${enable_alsa+set}" = set; then
4761   enableval=$enable_alsa; case "${enableval}" in
4762                 yes) COMPILE_ALSA=yes ;;
4763                 no) COMPILE_ALSA=no ;;
4764                 *) COMPILE_ALSA=yes ;;
4765               esac
4766 else
4767
4768 for ac_header in alsa/asoundlib.h
4769 do
4770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4772   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 fi
4777 ac_res=`eval echo '${'$as_ac_Header'}'`
4778                { echo "$as_me:$LINENO: result: $ac_res" >&5
4779 echo "${ECHO_T}$ac_res" >&6; }
4780 else
4781   # Is the header compilable?
4782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h.  */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h.  */
4790 $ac_includes_default
4791 #include <$ac_header>
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800   (eval "$ac_compile") 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } && {
4807          test -z "$ac_c_werror_flag" ||
4808          test ! -s conftest.err
4809        } && test -s conftest.$ac_objext; then
4810   ac_header_compiler=yes
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815         ac_header_compiler=no
4816 fi
4817
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4820 echo "${ECHO_T}$ac_header_compiler" >&6; }
4821
4822 # Is the header present?
4823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h.  */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h.  */
4831 #include <$ac_header>
4832 _ACEOF
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4834 case "(($ac_try" in
4835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836   *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840   ac_status=$?
4841   grep -v '^ *+' conftest.er1 >conftest.err
4842   rm -f conftest.er1
4843   cat conftest.err >&5
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); } >/dev/null && {
4846          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4847          test ! -s conftest.err
4848        }; then
4849   ac_header_preproc=yes
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854   ac_header_preproc=no
4855 fi
4856
4857 rm -f conftest.err conftest.$ac_ext
4858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4859 echo "${ECHO_T}$ac_header_preproc" >&6; }
4860
4861 # So?  What about this header?
4862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4863   yes:no: )
4864     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4868     ac_header_preproc=yes
4869     ;;
4870   no:yes:* )
4871     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4873     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4874 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4875     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4877     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4878 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4881     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4883     ( cat <<\_ASBOX
4884 ## -------------------------------- ##
4885 ## Report this to classpath@gnu.org ##
4886 ## -------------------------------- ##
4887 _ASBOX
4888      ) | sed "s/^/$as_me: WARNING:     /" >&2
4889     ;;
4890 esac
4891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   eval "$as_ac_Header=\$ac_header_preproc"
4897 fi
4898 ac_res=`eval echo '${'$as_ac_Header'}'`
4899                { echo "$as_me:$LINENO: result: $ac_res" >&5
4900 echo "${ECHO_T}$ac_res" >&6; }
4901
4902 fi
4903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4904   cat >>confdefs.h <<_ACEOF
4905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4906 _ACEOF
4907  { echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
4908 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6; }
4909 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   ac_check_lib_save_LIBS=$LIBS
4913 LIBS="-lasound  $LIBS"
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920
4921 /* Override any GCC internal prototype to avoid an error.
4922    Use char because int might match the return type of a GCC
4923    builtin and then its argument prototype would still apply.  */
4924 #ifdef __cplusplus
4925 extern "C"
4926 #endif
4927 char snd_seq_open ();
4928 int
4929 main ()
4930 {
4931 return snd_seq_open ();
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (ac_try="$ac_link"
4938 case "(($ac_try" in
4939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940   *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943   (eval "$ac_link") 2>conftest.er1
4944   ac_status=$?
4945   grep -v '^ *+' conftest.er1 >conftest.err
4946   rm -f conftest.er1
4947   cat conftest.err >&5
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); } && {
4950          test -z "$ac_c_werror_flag" ||
4951          test ! -s conftest.err
4952        } && test -s conftest$ac_exeext &&
4953        $as_test_x conftest$ac_exeext; then
4954   ac_cv_lib_asound_snd_seq_open=yes
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959         ac_cv_lib_asound_snd_seq_open=no
4960 fi
4961
4962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4963       conftest$ac_exeext conftest.$ac_ext
4964 LIBS=$ac_check_lib_save_LIBS
4965 fi
4966 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4967 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6; }
4968 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4969   COMPILE_ALSA=yes
4970 else
4971   COMPILE_ALSA=no
4972 fi
4973
4974 else
4975   COMPILE_ALSA=no
4976 fi
4977
4978 done
4979
4980 fi
4981
4982  if test "x${COMPILE_ALSA}" = xyes; then
4983   CREATE_ALSA_LIBRARIES_TRUE=
4984   CREATE_ALSA_LIBRARIES_FALSE='#'
4985 else
4986   CREATE_ALSA_LIBRARIES_TRUE='#'
4987   CREATE_ALSA_LIBRARIES_FALSE=
4988 fi
4989
4990
4991 # Check whether --enable-dssi was given.
4992 if test "${enable_dssi+set}" = set; then
4993   enableval=$enable_dssi; case "${enableval}" in
4994                 yes) COMPILE_DSSI=yes ;;
4995                 no) COMPILE_DSSI=no ;;
4996                 *) COMPILE_DSSI=yes ;;
4997               esac
4998 else
4999   COMPILE_DSSI=no
5000
5001 for ac_header in dssi.h
5002 do
5003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5005   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 fi
5010 ac_res=`eval echo '${'$as_ac_Header'}'`
5011                { echo "$as_me:$LINENO: result: $ac_res" >&5
5012 echo "${ECHO_T}$ac_res" >&6; }
5013 else
5014   # Is the header compilable?
5015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 $ac_includes_default
5024 #include <$ac_header>
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (ac_try="$ac_compile"
5028 case "(($ac_try" in
5029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030   *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033   (eval "$ac_compile") 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } && {
5040          test -z "$ac_c_werror_flag" ||
5041          test ! -s conftest.err
5042        } && test -s conftest.$ac_objext; then
5043   ac_header_compiler=yes
5044 else
5045   echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048         ac_header_compiler=no
5049 fi
5050
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5053 echo "${ECHO_T}$ac_header_compiler" >&6; }
5054
5055 # Is the header present?
5056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 #include <$ac_header>
5065 _ACEOF
5066 if { (ac_try="$ac_cpp conftest.$ac_ext"
5067 case "(($ac_try" in
5068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069   *) ac_try_echo=$ac_try;;
5070 esac
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5073   ac_status=$?
5074   grep -v '^ *+' conftest.er1 >conftest.err
5075   rm -f conftest.er1
5076   cat conftest.err >&5
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } >/dev/null && {
5079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5080          test ! -s conftest.err
5081        }; then
5082   ac_header_preproc=yes
5083 else
5084   echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087   ac_header_preproc=no
5088 fi
5089
5090 rm -f conftest.err conftest.$ac_ext
5091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5092 echo "${ECHO_T}$ac_header_preproc" >&6; }
5093
5094 # So?  What about this header?
5095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5096   yes:no: )
5097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5101     ac_header_preproc=yes
5102     ;;
5103   no:yes:* )
5104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5116     ( cat <<\_ASBOX
5117 ## -------------------------------- ##
5118 ## Report this to classpath@gnu.org ##
5119 ## -------------------------------- ##
5120 _ASBOX
5121      ) | sed "s/^/$as_me: WARNING:     /" >&2
5122     ;;
5123 esac
5124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5127   echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129   eval "$as_ac_Header=\$ac_header_preproc"
5130 fi
5131 ac_res=`eval echo '${'$as_ac_Header'}'`
5132                { echo "$as_me:$LINENO: result: $ac_res" >&5
5133 echo "${ECHO_T}$ac_res" >&6; }
5134
5135 fi
5136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5137   cat >>confdefs.h <<_ACEOF
5138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5139 _ACEOF
5140
5141
5142 for ac_header in jack/jack.h
5143 do
5144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5146   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 fi
5151 ac_res=`eval echo '${'$as_ac_Header'}'`
5152                { echo "$as_me:$LINENO: result: $ac_res" >&5
5153 echo "${ECHO_T}$ac_res" >&6; }
5154 else
5155   # Is the header compilable?
5156 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164 $ac_includes_default
5165 #include <$ac_header>
5166 _ACEOF
5167 rm -f conftest.$ac_objext
5168 if { (ac_try="$ac_compile"
5169 case "(($ac_try" in
5170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171   *) ac_try_echo=$ac_try;;
5172 esac
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174   (eval "$ac_compile") 2>conftest.er1
5175   ac_status=$?
5176   grep -v '^ *+' conftest.er1 >conftest.err
5177   rm -f conftest.er1
5178   cat conftest.err >&5
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); } && {
5181          test -z "$ac_c_werror_flag" ||
5182          test ! -s conftest.err
5183        } && test -s conftest.$ac_objext; then
5184   ac_header_compiler=yes
5185 else
5186   echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189         ac_header_compiler=no
5190 fi
5191
5192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5194 echo "${ECHO_T}$ac_header_compiler" >&6; }
5195
5196 # Is the header present?
5197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5199 cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205 #include <$ac_header>
5206 _ACEOF
5207 if { (ac_try="$ac_cpp conftest.$ac_ext"
5208 case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } >/dev/null && {
5220          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5221          test ! -s conftest.err
5222        }; then
5223   ac_header_preproc=yes
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228   ac_header_preproc=no
5229 fi
5230
5231 rm -f conftest.err conftest.$ac_ext
5232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5233 echo "${ECHO_T}$ac_header_preproc" >&6; }
5234
5235 # So?  What about this header?
5236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5237   yes:no: )
5238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5242     ac_header_preproc=yes
5243     ;;
5244   no:yes:* )
5245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5257     ( cat <<\_ASBOX
5258 ## -------------------------------- ##
5259 ## Report this to classpath@gnu.org ##
5260 ## -------------------------------- ##
5261 _ASBOX
5262      ) | sed "s/^/$as_me: WARNING:     /" >&2
5263     ;;
5264 esac
5265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   eval "$as_ac_Header=\$ac_header_preproc"
5271 fi
5272 ac_res=`eval echo '${'$as_ac_Header'}'`
5273                { echo "$as_me:$LINENO: result: $ac_res" >&5
5274 echo "${ECHO_T}$ac_res" >&6; }
5275
5276 fi
5277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5278   cat >>confdefs.h <<_ACEOF
5279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5280 _ACEOF
5281  COMPILE_DSSI=yes
5282 fi
5283
5284 done
5285
5286 fi
5287
5288 done
5289
5290 fi
5291
5292  if test "x${COMPILE_DSSI}" = xyes; then
5293   CREATE_DSSI_LIBRARIES_TRUE=
5294   CREATE_DSSI_LIBRARIES_FALSE='#'
5295 else
5296   CREATE_DSSI_LIBRARIES_TRUE='#'
5297   CREATE_DSSI_LIBRARIES_FALSE=
5298 fi
5299
5300
5301 # Check whether --enable-gtk-peer was given.
5302 if test "${enable_gtk_peer+set}" = set; then
5303   enableval=$enable_gtk_peer; case "${enableval}" in
5304                 yes) COMPILE_GTK_PEER=yes ;;
5305                 no) COMPILE_GTK_PEER=no ;;
5306                 *) COMPILE_GTK_PEER=yes ;;
5307               esac
5308 else
5309   COMPILE_GTK_PEER=yes
5310 fi
5311
5312  if test "x${COMPILE_GTK_PEER}" = xyes; then
5313   CREATE_GTK_PEER_LIBRARIES_TRUE=
5314   CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5315 else
5316   CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5317   CREATE_GTK_PEER_LIBRARIES_FALSE=
5318 fi
5319
5320
5321 # Check whether --enable-gtk-peers was given.
5322 if test "${enable_gtk_peers+set}" = set; then
5323   enableval=$enable_gtk_peers; { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
5324 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
5325    { (exit 1); exit 1; }; }
5326 fi
5327
5328
5329 # Check whether --enable-qt-peer was given.
5330 if test "${enable_qt_peer+set}" = set; then
5331   enableval=$enable_qt_peer; case "${enableval}" in
5332                 yes) COMPILE_QT_PEER=yes ;;
5333                 no) COMPILE_QT_PEER=no ;;
5334                 *) COMPILE_QT_PEER=yes ;;
5335               esac
5336 else
5337   COMPILE_QT_PEER=no
5338 fi
5339
5340  if test "x${COMPILE_QT_PEER}" = xyes; then
5341   CREATE_QT_PEER_LIBRARIES_TRUE=
5342   CREATE_QT_PEER_LIBRARIES_FALSE='#'
5343 else
5344   CREATE_QT_PEER_LIBRARIES_TRUE='#'
5345   CREATE_QT_PEER_LIBRARIES_FALSE=
5346 fi
5347
5348
5349 # Check whether --enable-plugin was given.
5350 if test "${enable_plugin+set}" = set; then
5351   enableval=$enable_plugin; case "${enableval}" in
5352                 yes) COMPILE_PLUGIN=yes ;;
5353                 no) COMPILE_PLUGIN=no ;;
5354                 *) COMPILE_PLUGIN=yes ;;
5355               esac
5356 else
5357   COMPILE_PLUGIN=yes
5358 fi
5359
5360  if test "x${COMPILE_PLUGIN}" = xyes; then
5361   CREATE_PLUGIN_TRUE=
5362   CREATE_PLUGIN_FALSE='#'
5363 else
5364   CREATE_PLUGIN_TRUE='#'
5365   CREATE_PLUGIN_FALSE=
5366 fi
5367
5368
5369
5370 # Check whether --with-native-libdir was given.
5371 if test "${with_native_libdir+set}" = set; then
5372   withval=$with_native_libdir;
5373              nativeexeclibdir=${withval}
5374
5375 else
5376
5377              nativeexeclibdir='${libdir}/${PACKAGE}'
5378
5379 fi
5380
5381
5382
5383
5384
5385 # Check whether --with-glibj-dir was given.
5386 if test "${with_glibj_dir+set}" = set; then
5387   withval=$with_glibj_dir;
5388              glibjdir=${withval}
5389
5390 else
5391
5392              glibjdir='${datadir}/${PACKAGE}'
5393
5394 fi
5395
5396
5397
5398
5399
5400 # Check whether --with-vm was given.
5401 if test "${with_vm+set}" = set; then
5402   withval=$with_vm;
5403              VM_BINARY=${withval}
5404
5405 else
5406
5407              VM_BINARY='${prefix}/bin/jamvm'
5408
5409 fi
5410
5411
5412
5413
5414 # Check whether --enable-regen-headers was given.
5415 if test "${enable_regen_headers+set}" = set; then
5416   enableval=$enable_regen_headers; case "${enableval}" in
5417                 yes) REGENERATE_JNI_HEADERS=yes ;;
5418                 no) REGENERATE_JNI_HEADERS=no ;;
5419                 *) REGENERATE_JNI_HEADERS=yes ;;
5420               esac
5421 else
5422   if test -e include/java_lang_VMSystem.h; then
5423                         REGENERATE_JNI_HEADERS=no ;
5424                    else
5425                         REGENERATE_JNI_HEADERS=yes ;
5426                fi
5427 fi
5428
5429  if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5430   CREATE_JNI_HEADERS_TRUE=
5431   CREATE_JNI_HEADERS_FALSE='#'
5432 else
5433   CREATE_JNI_HEADERS_TRUE='#'
5434   CREATE_JNI_HEADERS_FALSE=
5435 fi
5436
5437
5438 # Check whether --enable-tool-wrappers was given.
5439 if test "${enable_tool_wrappers+set}" = set; then
5440   enableval=$enable_tool_wrappers; case x"${enableval}" in
5441                 xyes)
5442                   COMPILE_WRAPPERS=yes;
5443
5444 for ac_header in ltdl.h
5445 do
5446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5448   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 fi
5453 ac_res=`eval echo '${'$as_ac_Header'}'`
5454                { echo "$as_me:$LINENO: result: $ac_res" >&5
5455 echo "${ECHO_T}$ac_res" >&6; }
5456 else
5457   # Is the header compilable?
5458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h.  */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h.  */
5466 $ac_includes_default
5467 #include <$ac_header>
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5471 case "(($ac_try" in
5472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473   *) ac_try_echo=$ac_try;;
5474 esac
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476   (eval "$ac_compile") 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } && {
5483          test -z "$ac_c_werror_flag" ||
5484          test ! -s conftest.err
5485        } && test -s conftest.$ac_objext; then
5486   ac_header_compiler=yes
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491         ac_header_compiler=no
5492 fi
5493
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5496 echo "${ECHO_T}$ac_header_compiler" >&6; }
5497
5498 # Is the header present?
5499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507 #include <$ac_header>
5508 _ACEOF
5509 if { (ac_try="$ac_cpp conftest.$ac_ext"
5510 case "(($ac_try" in
5511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512   *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } >/dev/null && {
5522          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5523          test ! -s conftest.err
5524        }; then
5525   ac_header_preproc=yes
5526 else
5527   echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5529
5530   ac_header_preproc=no
5531 fi
5532
5533 rm -f conftest.err conftest.$ac_ext
5534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5535 echo "${ECHO_T}$ac_header_preproc" >&6; }
5536
5537 # So?  What about this header?
5538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5539   yes:no: )
5540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5544     ac_header_preproc=yes
5545     ;;
5546   no:yes:* )
5547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5559     ( cat <<\_ASBOX
5560 ## -------------------------------- ##
5561 ## Report this to classpath@gnu.org ##
5562 ## -------------------------------- ##
5563 _ASBOX
5564      ) | sed "s/^/$as_me: WARNING:     /" >&2
5565     ;;
5566 esac
5567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   eval "$as_ac_Header=\$ac_header_preproc"
5573 fi
5574 ac_res=`eval echo '${'$as_ac_Header'}'`
5575                { echo "$as_me:$LINENO: result: $ac_res" >&5
5576 echo "${ECHO_T}$ac_res" >&6; }
5577
5578 fi
5579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5580   cat >>confdefs.h <<_ACEOF
5581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 _ACEOF
5583
5584 else
5585   { { echo "$as_me:$LINENO: error: cannot find ltdl.h" >&5
5586 echo "$as_me: error: cannot find ltdl.h" >&2;}
5587    { (exit 1); exit 1; }; }
5588 fi
5589
5590 done
5591
5592
5593 { echo "$as_me:$LINENO: checking for lt_dlopen in -lltdl" >&5
5594 echo $ECHO_N "checking for lt_dlopen in -lltdl... $ECHO_C" >&6; }
5595 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then
5596   echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598   ac_check_lib_save_LIBS=$LIBS
5599 LIBS="-lltdl  $LIBS"
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606
5607 /* Override any GCC internal prototype to avoid an error.
5608    Use char because int might match the return type of a GCC
5609    builtin and then its argument prototype would still apply.  */
5610 #ifdef __cplusplus
5611 extern "C"
5612 #endif
5613 char lt_dlopen ();
5614 int
5615 main ()
5616 {
5617 return lt_dlopen ();
5618   ;
5619   return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext conftest$ac_exeext
5623 if { (ac_try="$ac_link"
5624 case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_link") 2>conftest.er1
5630   ac_status=$?
5631   grep -v '^ *+' conftest.er1 >conftest.err
5632   rm -f conftest.er1
5633   cat conftest.err >&5
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } && {
5636          test -z "$ac_c_werror_flag" ||
5637          test ! -s conftest.err
5638        } && test -s conftest$ac_exeext &&
5639        $as_test_x conftest$ac_exeext; then
5640   ac_cv_lib_ltdl_lt_dlopen=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645         ac_cv_lib_ltdl_lt_dlopen=no
5646 fi
5647
5648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5649       conftest$ac_exeext conftest.$ac_ext
5650 LIBS=$ac_check_lib_save_LIBS
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5653 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5654 if test $ac_cv_lib_ltdl_lt_dlopen = yes; then
5655   cat >>confdefs.h <<_ACEOF
5656 #define HAVE_LIBLTDL 1
5657 _ACEOF
5658
5659   LIBS="-lltdl $LIBS"
5660
5661 else
5662   { { echo "$as_me:$LINENO: error: cannot find libltdl" >&5
5663 echo "$as_me: error: cannot find libltdl" >&2;}
5664    { (exit 1); exit 1; }; }
5665 fi
5666
5667                   ;;
5668                 xno) COMPILE_WRAPPERS=no ;;
5669                 x) COMPILE_WRAPPERS=yes ;;
5670                 *) COMPILE_WRAPPERS=yes ;;
5671               esac
5672 else
5673   COMPILE_WRAPPERS=no
5674 fi
5675
5676  if test "x${COMPILE_WRAPPERS}" = xyes; then
5677   CREATE_WRAPPERS_TRUE=
5678   CREATE_WRAPPERS_FALSE='#'
5679 else
5680   CREATE_WRAPPERS_TRUE='#'
5681   CREATE_WRAPPERS_FALSE=
5682 fi
5683
5684
5685 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5686 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5687 LN_S=$as_ln_s
5688 if test "$LN_S" = "ln -s"; then
5689   { echo "$as_me:$LINENO: result: yes" >&5
5690 echo "${ECHO_T}yes" >&6; }
5691 else
5692   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5693 echo "${ECHO_T}no, using $LN_S" >&6; }
5694 fi
5695
5696 # Find a good install program.  We prefer a C program (faster),
5697 # so one script is as good as another.  But avoid the broken or
5698 # incompatible versions:
5699 # SysV /etc/install, /usr/sbin/install
5700 # SunOS /usr/etc/install
5701 # IRIX /sbin/install
5702 # AIX /bin/install
5703 # AmigaOS /C/install, which installs bootblocks on floppy discs
5704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5707 # OS/2's system install, which has a completely different semantic
5708 # ./install, which can be erroneously created by make from ./install.sh.
5709 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5711 if test -z "$INSTALL"; then
5712 if test "${ac_cv_path_install+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720   # Account for people who put trailing slashes in PATH elements.
5721 case $as_dir/ in
5722   ./ | .// | /cC/* | \
5723   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5724   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5725   /usr/ucb/* ) ;;
5726   *)
5727     # OSF1 and SCO ODT 3.0 have their own names for install.
5728     # Don't use installbsd from OSF since it installs stuff as root
5729     # by default.
5730     for ac_prog in ginstall scoinst install; do
5731       for ac_exec_ext in '' $ac_executable_extensions; do
5732         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5733           if test $ac_prog = install &&
5734             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5735             # AIX install.  It has an incompatible calling convention.
5736             :
5737           elif test $ac_prog = install &&
5738             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5739             # program-specific install script used by HP pwplus--don't use.
5740             :
5741           else
5742             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5743             break 3
5744           fi
5745         fi
5746       done
5747     done
5748     ;;
5749 esac
5750 done
5751 IFS=$as_save_IFS
5752
5753
5754 fi
5755   if test "${ac_cv_path_install+set}" = set; then
5756     INSTALL=$ac_cv_path_install
5757   else
5758     # As a last resort, use the slow shell script.  Don't cache a
5759     # value for INSTALL within a source directory, because that will
5760     # break other packages using the cache if that directory is
5761     # removed, or if the value is a relative name.
5762     INSTALL=$ac_install_sh
5763   fi
5764 fi
5765 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5766 echo "${ECHO_T}$INSTALL" >&6; }
5767
5768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5769 # It thinks the first close brace ends the variable substitution.
5770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5771
5772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5773
5774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5775
5776
5777 ac_ext=cpp
5778 ac_cpp='$CXXCPP $CPPFLAGS'
5779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5782 if test -z "$CXX"; then
5783   if test -n "$CCC"; then
5784     CXX=$CCC
5785   else
5786     if test -n "$ac_tool_prefix"; then
5787   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5788   do
5789     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793 if test "${ac_cv_prog_CXX+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   if test -n "$CXX"; then
5797   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 CXX=$ac_cv_prog_CXX
5817 if test -n "$CXX"; then
5818   { echo "$as_me:$LINENO: result: $CXX" >&5
5819 echo "${ECHO_T}$CXX" >&6; }
5820 else
5821   { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5823 fi
5824
5825
5826     test -n "$CXX" && break
5827   done
5828 fi
5829 if test -z "$CXX"; then
5830   ac_ct_CXX=$CXX
5831   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5832 do
5833   # Extract the first word of "$ac_prog", so it can be a program name with args.
5834 set dummy $ac_prog; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   if test -n "$ac_ct_CXX"; then
5841   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   for ac_exec_ext in '' $ac_executable_extensions; do
5849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850     ac_cv_prog_ac_ct_CXX="$ac_prog"
5851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5861 if test -n "$ac_ct_CXX"; then
5862   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5863 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5864 else
5865   { echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6; }
5867 fi
5868
5869
5870   test -n "$ac_ct_CXX" && break
5871 done
5872
5873   if test "x$ac_ct_CXX" = x; then
5874     CXX="g++"
5875   else
5876     case $cross_compiling:$ac_tool_warned in
5877 yes:)
5878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5879 whose name does not start with the host triplet.  If you think this
5880 configuration is useful to you, please write to autoconf@gnu.org." >&5
5881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5882 whose name does not start with the host triplet.  If you think this
5883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5884 ac_tool_warned=yes ;;
5885 esac
5886     CXX=$ac_ct_CXX
5887   fi
5888 fi
5889
5890   fi
5891 fi
5892 # Provide some information about the compiler.
5893 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5894 ac_compiler=`set X $ac_compile; echo $2`
5895 { (ac_try="$ac_compiler --version >&5"
5896 case "(($ac_try" in
5897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898   *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901   (eval "$ac_compiler --version >&5") 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }
5905 { (ac_try="$ac_compiler -v >&5"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911   (eval "$ac_compiler -v >&5") 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }
5915 { (ac_try="$ac_compiler -V >&5"
5916 case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_compiler -V >&5") 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }
5925
5926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937
5938 int
5939 main ()
5940 {
5941 #ifndef __GNUC__
5942        choke me
5943 #endif
5944
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953   *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956   (eval "$ac_compile") 2>conftest.er1
5957   ac_status=$?
5958   grep -v '^ *+' conftest.er1 >conftest.err
5959   rm -f conftest.er1
5960   cat conftest.err >&5
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } && {
5963          test -z "$ac_cxx_werror_flag" ||
5964          test ! -s conftest.err
5965        } && test -s conftest.$ac_objext; then
5966   ac_compiler_gnu=yes
5967 else
5968   echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971         ac_compiler_gnu=no
5972 fi
5973
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5976
5977 fi
5978 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5979 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5980 GXX=`test $ac_compiler_gnu = yes && echo yes`
5981 ac_test_CXXFLAGS=${CXXFLAGS+set}
5982 ac_save_CXXFLAGS=$CXXFLAGS
5983 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5984 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5985 if test "${ac_cv_prog_cxx_g+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5989    ac_cxx_werror_flag=yes
5990    ac_cv_prog_cxx_g=no
5991    CXXFLAGS="-g"
5992    cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998
5999 int
6000 main ()
6001 {
6002
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6009 case "(($ac_try" in
6010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011   *) ac_try_echo=$ac_try;;
6012 esac
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014   (eval "$ac_compile") 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } && {
6021          test -z "$ac_cxx_werror_flag" ||
6022          test ! -s conftest.err
6023        } && test -s conftest.$ac_objext; then
6024   ac_cv_prog_cxx_g=yes
6025 else
6026   echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029         CXXFLAGS=""
6030       cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036
6037 int
6038 main ()
6039 {
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_compile") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } && {
6059          test -z "$ac_cxx_werror_flag" ||
6060          test ! -s conftest.err
6061        } && test -s conftest.$ac_objext; then
6062   :
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6068          CXXFLAGS="-g"
6069          cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h.  */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h.  */
6075
6076 int
6077 main ()
6078 {
6079
6080   ;
6081   return 0;
6082 }
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (ac_try="$ac_compile"
6086 case "(($ac_try" in
6087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088   *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091   (eval "$ac_compile") 2>conftest.er1
6092   ac_status=$?
6093   grep -v '^ *+' conftest.er1 >conftest.err
6094   rm -f conftest.er1
6095   cat conftest.err >&5
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); } && {
6098          test -z "$ac_cxx_werror_flag" ||
6099          test ! -s conftest.err
6100        } && test -s conftest.$ac_objext; then
6101   ac_cv_prog_cxx_g=yes
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106
6107 fi
6108
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 fi
6111
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 fi
6114
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6117 fi
6118 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6119 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6120 if test "$ac_test_CXXFLAGS" = set; then
6121   CXXFLAGS=$ac_save_CXXFLAGS
6122 elif test $ac_cv_prog_cxx_g = yes; then
6123   if test "$GXX" = yes; then
6124     CXXFLAGS="-g -O2"
6125   else
6126     CXXFLAGS="-g"
6127   fi
6128 else
6129   if test "$GXX" = yes; then
6130     CXXFLAGS="-O2"
6131   else
6132     CXXFLAGS=
6133   fi
6134 fi
6135 ac_ext=c
6136 ac_cpp='$CPP $CPPFLAGS'
6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140
6141 depcc="$CXX"  am_compiler_list=
6142
6143 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6144 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6145 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6149   # We make a subdir and do the tests there.  Otherwise we can end up
6150   # making bogus files that we don't know about and never remove.  For
6151   # instance it was reported that on HP-UX the gcc test will end up
6152   # making a dummy file named `D' -- because `-MD' means `put the output
6153   # in D'.
6154   mkdir conftest.dir
6155   # Copy depcomp to subdir because otherwise we won't find it if we're
6156   # using a relative directory.
6157   cp "$am_depcomp" conftest.dir
6158   cd conftest.dir
6159   # We will build objects and dependencies in a subdirectory because
6160   # it helps to detect inapplicable dependency modes.  For instance
6161   # both Tru64's cc and ICC support -MD to output dependencies as a
6162   # side effect of compilation, but ICC will put the dependencies in
6163   # the current directory while Tru64 will put them in the object
6164   # directory.
6165   mkdir sub
6166
6167   am_cv_CXX_dependencies_compiler_type=none
6168   if test "$am_compiler_list" = ""; then
6169      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6170   fi
6171   for depmode in $am_compiler_list; do
6172     # Setup a source with many dependencies, because some compilers
6173     # like to wrap large dependency lists on column 80 (with \), and
6174     # we should not choose a depcomp mode which is confused by this.
6175     #
6176     # We need to recreate these files for each test, as the compiler may
6177     # overwrite some of them when testing with obscure command lines.
6178     # This happens at least with the AIX C compiler.
6179     : > sub/conftest.c
6180     for i in 1 2 3 4 5 6; do
6181       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6182       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6183       # Solaris 8's {/usr,}/bin/sh.
6184       touch sub/conftst$i.h
6185     done
6186     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6187
6188     case $depmode in
6189     nosideeffect)
6190       # after this tag, mechanisms are not by side-effect, so they'll
6191       # only be used when explicitly requested
6192       if test "x$enable_dependency_tracking" = xyes; then
6193         continue
6194       else
6195         break
6196       fi
6197       ;;
6198     none) break ;;
6199     esac
6200     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6201     # mode.  It turns out that the SunPro C++ compiler does not properly
6202     # handle `-M -o', and we need to detect this.
6203     if depmode=$depmode \
6204        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6205        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6206        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6207          >/dev/null 2>conftest.err &&
6208        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6209        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6210        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6211        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6212       # icc doesn't choke on unknown options, it will just issue warnings
6213       # or remarks (even with -Werror).  So we grep stderr for any message
6214       # that says an option was ignored or not supported.
6215       # When given -MP, icc 7.0 and 7.1 complain thusly:
6216       #   icc: Command line warning: ignoring option '-M'; no argument required
6217       # The diagnosis changed in icc 8.0:
6218       #   icc: Command line remark: option '-MP' not supported
6219       if (grep 'ignoring option' conftest.err ||
6220           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6221         am_cv_CXX_dependencies_compiler_type=$depmode
6222         break
6223       fi
6224     fi
6225   done
6226
6227   cd ..
6228   rm -rf conftest.dir
6229 else
6230   am_cv_CXX_dependencies_compiler_type=none
6231 fi
6232
6233 fi
6234 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6235 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6236 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6237
6238  if
6239   test "x$enable_dependency_tracking" != xno \
6240   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6241   am__fastdepCXX_TRUE=
6242   am__fastdepCXX_FALSE='#'
6243 else
6244   am__fastdepCXX_TRUE='#'
6245   am__fastdepCXX_FALSE=
6246 fi
6247
6248
6249 # Check whether --enable-static was given.
6250 if test "${enable_static+set}" = set; then
6251   enableval=$enable_static; p=${PACKAGE-default}
6252     case $enableval in
6253     yes) enable_static=yes ;;
6254     no) enable_static=no ;;
6255     *)
6256      enable_static=no
6257       # Look at the argument we got.  We use all the common list separators.
6258       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6259       for pkg in $enableval; do
6260         IFS="$lt_save_ifs"
6261         if test "X$pkg" = "X$p"; then
6262           enable_static=yes
6263         fi
6264       done
6265       IFS="$lt_save_ifs"
6266       ;;
6267     esac
6268 else
6269   enable_static=no
6270 fi
6271
6272
6273
6274 # Check whether --enable-shared was given.
6275 if test "${enable_shared+set}" = set; then
6276   enableval=$enable_shared; p=${PACKAGE-default}
6277     case $enableval in
6278     yes) enable_shared=yes ;;
6279     no) enable_shared=no ;;
6280     *)
6281       enable_shared=no
6282       # Look at the argument we got.  We use all the common list separators.
6283       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6284       for pkg in $enableval; do
6285         IFS="$lt_save_ifs"
6286         if test "X$pkg" = "X$p"; then
6287           enable_shared=yes
6288         fi
6289       done
6290       IFS="$lt_save_ifs"
6291       ;;
6292     esac
6293 else
6294   enable_shared=yes
6295 fi
6296
6297
6298 # Check whether --enable-fast-install was given.
6299 if test "${enable_fast_install+set}" = set; then
6300   enableval=$enable_fast_install; p=${PACKAGE-default}
6301     case $enableval in
6302     yes) enable_fast_install=yes ;;
6303     no) enable_fast_install=no ;;
6304     *)
6305       enable_fast_install=no
6306       # Look at the argument we got.  We use all the common list separators.
6307       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6308       for pkg in $enableval; do
6309         IFS="$lt_save_ifs"
6310         if test "X$pkg" = "X$p"; then
6311           enable_fast_install=yes
6312         fi
6313       done
6314       IFS="$lt_save_ifs"
6315       ;;
6316     esac
6317 else
6318   enable_fast_install=yes
6319 fi
6320
6321
6322 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6323 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6324 if test "${lt_cv_path_SED+set}" = set; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   # Loop through the user's path and test for sed and gsed.
6328 # Then use that list of sed's as ones to test for truncation.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334   for lt_ac_prog in sed gsed; do
6335     for ac_exec_ext in '' $ac_executable_extensions; do
6336       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6337         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6338       fi
6339     done
6340   done
6341 done
6342 IFS=$as_save_IFS
6343 lt_ac_max=0
6344 lt_ac_count=0
6345 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6346 # along with /bin/sed that truncates output.
6347 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6348   test ! -f $lt_ac_sed && continue
6349   cat /dev/null > conftest.in
6350   lt_ac_count=0
6351   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6352   # Check for GNU sed and select it if it is found.
6353   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6354     lt_cv_path_SED=$lt_ac_sed
6355     break
6356   fi
6357   while true; do
6358     cat conftest.in conftest.in >conftest.tmp
6359     mv conftest.tmp conftest.in
6360     cp conftest.in conftest.nl
6361     echo >>conftest.nl
6362     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6363     cmp -s conftest.out conftest.nl || break
6364     # 10000 chars as input seems more than enough
6365     test $lt_ac_count -gt 10 && break
6366     lt_ac_count=`expr $lt_ac_count + 1`
6367     if test $lt_ac_count -gt $lt_ac_max; then
6368       lt_ac_max=$lt_ac_count
6369       lt_cv_path_SED=$lt_ac_sed
6370     fi
6371   done
6372 done
6373
6374 fi
6375
6376 SED=$lt_cv_path_SED
6377
6378 { echo "$as_me:$LINENO: result: $SED" >&5
6379 echo "${ECHO_T}$SED" >&6; }
6380
6381
6382 # Check whether --with-gnu-ld was given.
6383 if test "${with_gnu_ld+set}" = set; then
6384   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6385 else
6386   with_gnu_ld=no
6387 fi
6388
6389 ac_prog=ld
6390 if test "$GCC" = yes; then
6391   # Check if gcc -print-prog-name=ld gives a path.
6392   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6393 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6394   case $host in
6395   *-*-mingw*)
6396     # gcc leaves a trailing carriage return which upsets mingw
6397     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6398   *)
6399     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6400   esac
6401   case $ac_prog in
6402     # Accept absolute paths.
6403     [\\/]* | ?:[\\/]*)
6404       re_direlt='/[^/][^/]*/\.\./'
6405       # Canonicalize the pathname of ld
6406       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6407       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6408         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6409       done
6410       test -z "$LD" && LD="$ac_prog"
6411       ;;
6412   "")
6413     # If it fails, then pretend we aren't using GCC.
6414     ac_prog=ld
6415     ;;
6416   *)
6417     # If it is relative, then search for the first ld in PATH.
6418     with_gnu_ld=unknown
6419     ;;
6420   esac
6421 elif test "$with_gnu_ld" = yes; then
6422   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6423 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6424 else
6425   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6426 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6427 fi
6428 if test "${lt_cv_path_LD+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   if test -z "$LD"; then
6432   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6433   for ac_dir in $PATH; do
6434     IFS="$lt_save_ifs"
6435     test -z "$ac_dir" && ac_dir=.
6436     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6437       lt_cv_path_LD="$ac_dir/$ac_prog"
6438       # Check to see if the program is GNU ld.  I'd rather use --version,
6439       # but apparently some variants of GNU ld only accept -v.
6440       # Break only if it was the GNU/non-GNU ld that we prefer.
6441       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6442       *GNU* | *'with BFD'*)
6443         test "$with_gnu_ld" != no && break
6444         ;;
6445       *)
6446         test "$with_gnu_ld" != yes && break
6447         ;;
6448       esac
6449     fi
6450   done
6451   IFS="$lt_save_ifs"
6452 else
6453   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6454 fi
6455 fi
6456
6457 LD="$lt_cv_path_LD"
6458 if test -n "$LD"; then
6459   { echo "$as_me:$LINENO: result: $LD" >&5
6460 echo "${ECHO_T}$LD" >&6; }
6461 else
6462   { echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6; }
6464 fi
6465 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6466 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6467    { (exit 1); exit 1; }; }
6468 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6469 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6470 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6474 case `$LD -v 2>&1 </dev/null` in
6475 *GNU* | *'with BFD'*)
6476   lt_cv_prog_gnu_ld=yes
6477   ;;
6478 *)
6479   lt_cv_prog_gnu_ld=no
6480   ;;
6481 esac
6482 fi
6483 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6484 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6485 with_gnu_ld=$lt_cv_prog_gnu_ld
6486
6487
6488 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6489 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6490 if test "${lt_cv_ld_reload_flag+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   lt_cv_ld_reload_flag='-r'
6494 fi
6495 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6496 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6497 reload_flag=$lt_cv_ld_reload_flag
6498 case $reload_flag in
6499 "" | " "*) ;;
6500 *) reload_flag=" $reload_flag" ;;
6501 esac
6502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6503 case $host_os in
6504   darwin*)
6505     if test "$GCC" = yes; then
6506       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6507     else
6508       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6509     fi
6510     ;;
6511 esac
6512
6513 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6514 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6515 if test "${lt_cv_path_NM+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   if test -n "$NM"; then
6519   # Let the user override the test.
6520   lt_cv_path_NM="$NM"
6521 else
6522   lt_nm_to_check="${ac_tool_prefix}nm"
6523   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6524     lt_nm_to_check="$lt_nm_to_check nm"
6525   fi
6526   for lt_tmp_nm in $lt_nm_to_check; do
6527     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6528     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6529       IFS="$lt_save_ifs"
6530       test -z "$ac_dir" && ac_dir=.
6531       tmp_nm="$ac_dir/$lt_tmp_nm"
6532       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6533         # Check to see if the nm accepts a BSD-compat flag.
6534         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6535         #   nm: unknown option "B" ignored
6536         # Tru64's nm complains that /dev/null is an invalid object file
6537         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6538         */dev/null* | *'Invalid file or object type'*)
6539           lt_cv_path_NM="$tmp_nm -B"
6540           break
6541           ;;
6542         *)
6543           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6544           */dev/null*)
6545             lt_cv_path_NM="$tmp_nm -p"
6546             break
6547             ;;
6548           *)
6549             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6550             continue # so that we can try to find one that supports BSD flags
6551             ;;
6552           esac
6553           ;;
6554         esac
6555       fi
6556     done
6557     IFS="$lt_save_ifs"
6558   done
6559   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6560 fi
6561 fi
6562 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6563 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6564 NM="$lt_cv_path_NM"
6565
6566 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6567 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6568 if test "${lt_cv_deplibs_check_method+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   lt_cv_file_magic_cmd='$MAGIC_CMD'
6572 lt_cv_file_magic_test_file=
6573 lt_cv_deplibs_check_method='unknown'
6574 # Need to set the preceding variable on all platforms that support
6575 # interlibrary dependencies.
6576 # 'none' -- dependencies not supported.
6577 # `unknown' -- same as none, but documents that we really don't know.
6578 # 'pass_all' -- all dependencies passed with no checks.
6579 # 'test_compile' -- check by making test program.
6580 # 'file_magic [[regex]]' -- check by looking for files in library path
6581 # which responds to the $file_magic_cmd with a given extended regex.
6582 # If you have `file' or equivalent on your system and you're not sure
6583 # whether `pass_all' will *always* work, you probably want this one.
6584
6585 case $host_os in
6586 aix[4-9]*)
6587   lt_cv_deplibs_check_method=pass_all
6588   ;;
6589
6590 beos*)
6591   lt_cv_deplibs_check_method=pass_all
6592   ;;
6593
6594 bsdi[45]*)
6595   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6596   lt_cv_file_magic_cmd='/usr/bin/file -L'
6597   lt_cv_file_magic_test_file=/shlib/libc.so
6598   ;;
6599
6600 cygwin*)
6601   # func_win32_libid is a shell function defined in ltmain.sh
6602   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6603   lt_cv_file_magic_cmd='func_win32_libid'
6604   ;;
6605
6606 mingw* | pw32*)
6607   # Base MSYS/MinGW do not provide the 'file' command needed by
6608   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6609   # unless we find 'file', for example because we are cross-compiling.
6610   if ( file / ) >/dev/null 2>&1; then
6611     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6612     lt_cv_file_magic_cmd='func_win32_libid'
6613   else
6614     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6615     lt_cv_file_magic_cmd='$OBJDUMP -f'
6616   fi
6617   ;;
6618
6619 darwin* | rhapsody*)
6620   lt_cv_deplibs_check_method=pass_all
6621   ;;
6622
6623 freebsd* | dragonfly*)
6624   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6625     case $host_cpu in
6626     i*86 )
6627       # Not sure whether the presence of OpenBSD here was a mistake.
6628       # Let's accept both of them until this is cleared up.
6629       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6630       lt_cv_file_magic_cmd=/usr/bin/file
6631       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6632       ;;
6633     esac
6634   else
6635     lt_cv_deplibs_check_method=pass_all
6636   fi
6637   ;;
6638
6639 gnu*)
6640   lt_cv_deplibs_check_method=pass_all
6641   ;;
6642
6643 hpux10.20* | hpux11*)
6644   lt_cv_file_magic_cmd=/usr/bin/file
6645   case $host_cpu in
6646   ia64*)
6647     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6648     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6649     ;;
6650   hppa*64*)
6651     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]'
6652     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6653     ;;
6654   *)
6655     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6656     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6657     ;;
6658   esac
6659   ;;
6660
6661 interix[3-9]*)
6662   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6663   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6664   ;;
6665
6666 irix5* | irix6* | nonstopux*)
6667   case $LD in
6668   *-32|*"-32 ") libmagic=32-bit;;
6669   *-n32|*"-n32 ") libmagic=N32;;
6670   *-64|*"-64 ") libmagic=64-bit;;
6671   *) libmagic=never-match;;
6672   esac
6673   lt_cv_deplibs_check_method=pass_all
6674   ;;
6675
6676 # This must be Linux ELF.
6677 linux* | k*bsd*-gnu)
6678   lt_cv_deplibs_check_method=pass_all
6679   ;;
6680
6681 netbsd*)
6682   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6683     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6684   else
6685     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6686   fi
6687   ;;
6688
6689 newos6*)
6690   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6691   lt_cv_file_magic_cmd=/usr/bin/file
6692   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6693   ;;
6694
6695 nto-qnx*)
6696   lt_cv_deplibs_check_method=unknown
6697   ;;
6698
6699 openbsd*)
6700   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6701     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6702   else
6703     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6704   fi
6705   ;;
6706
6707 osf3* | osf4* | osf5*)
6708   lt_cv_deplibs_check_method=pass_all
6709   ;;
6710
6711 rdos*)
6712   lt_cv_deplibs_check_method=pass_all
6713   ;;
6714
6715 solaris*)
6716   lt_cv_deplibs_check_method=pass_all
6717   ;;
6718
6719 sysv4 | sysv4.3*)
6720   case $host_vendor in
6721   motorola)
6722     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]'
6723     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6724     ;;
6725   ncr)
6726     lt_cv_deplibs_check_method=pass_all
6727     ;;
6728   sequent)
6729     lt_cv_file_magic_cmd='/bin/file'
6730     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6731     ;;
6732   sni)
6733     lt_cv_file_magic_cmd='/bin/file'
6734     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6735     lt_cv_file_magic_test_file=/lib/libc.so
6736     ;;
6737   siemens)
6738     lt_cv_deplibs_check_method=pass_all
6739     ;;
6740   pc)
6741     lt_cv_deplibs_check_method=pass_all
6742     ;;
6743   esac
6744   ;;
6745
6746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6747   lt_cv_deplibs_check_method=pass_all
6748   ;;
6749 esac
6750
6751 fi
6752 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6753 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6754 file_magic_cmd=$lt_cv_file_magic_cmd
6755 deplibs_check_method=$lt_cv_deplibs_check_method
6756 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6757
6758
6759
6760
6761 # If no C compiler was specified, use CC.
6762 LTCC=${LTCC-"$CC"}
6763
6764 # If no C compiler flags were specified, use CFLAGS.
6765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6766
6767 # Allow CC to be a program name with arguments.
6768 compiler=$CC
6769
6770 # Check whether --enable-libtool-lock was given.
6771 if test "${enable_libtool_lock+set}" = set; then
6772   enableval=$enable_libtool_lock;
6773 fi
6774
6775 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6776
6777 # Some flags need to be propagated to the compiler or linker for good
6778 # libtool support.
6779 case $host in
6780 ia64-*-hpux*)
6781   # Find out which ABI we are using.
6782   echo 'int i;' > conftest.$ac_ext
6783   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784   (eval $ac_compile) 2>&5
6785   ac_status=$?
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); }; then
6788     case `/usr/bin/file conftest.$ac_objext` in
6789     *ELF-32*)
6790       HPUX_IA64_MODE="32"
6791       ;;
6792     *ELF-64*)
6793       HPUX_IA64_MODE="64"
6794       ;;
6795     esac
6796   fi
6797   rm -rf conftest*
6798   ;;
6799 *-*-irix6*)
6800   # Find out which ABI we are using.
6801   echo '#line 6801 "configure"' > conftest.$ac_ext
6802   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803   (eval $ac_compile) 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); }; then
6807    if test "$lt_cv_prog_gnu_ld" = yes; then
6808     case `/usr/bin/file conftest.$ac_objext` in
6809     *32-bit*)
6810       LD="${LD-ld} -melf32bsmip"
6811       ;;
6812     *N32*)
6813       LD="${LD-ld} -melf32bmipn32"
6814       ;;
6815     *64-bit*)
6816       LD="${LD-ld} -melf64bmip"
6817       ;;
6818     esac
6819    else
6820     case `/usr/bin/file conftest.$ac_objext` in
6821     *32-bit*)
6822       LD="${LD-ld} -32"
6823       ;;
6824     *N32*)
6825       LD="${LD-ld} -n32"
6826       ;;
6827     *64-bit*)
6828       LD="${LD-ld} -64"
6829       ;;
6830     esac
6831    fi
6832   fi
6833   rm -rf conftest*
6834   ;;
6835
6836 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6837 s390*-*linux*|sparc*-*linux*)
6838   # Find out which ABI we are using.
6839   echo 'int i;' > conftest.$ac_ext
6840   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6841   (eval $ac_compile) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); }; then
6845     case `/usr/bin/file conftest.o` in
6846     *32-bit*)
6847       case $host in
6848         x86_64-*kfreebsd*-gnu)
6849           LD="${LD-ld} -m elf_i386_fbsd"
6850           ;;
6851         x86_64-*linux*)
6852           LD="${LD-ld} -m elf_i386"
6853           ;;
6854         ppc64-*linux*|powerpc64-*linux*)
6855           LD="${LD-ld} -m elf32ppclinux"
6856           ;;
6857         s390x-*linux*)
6858           LD="${LD-ld} -m elf_s390"
6859           ;;
6860         sparc64-*linux*)
6861           LD="${LD-ld} -m elf32_sparc"
6862           ;;
6863       esac
6864       ;;
6865     *64-bit*)
6866       case $host in
6867         x86_64-*kfreebsd*-gnu)
6868           LD="${LD-ld} -m elf_x86_64_fbsd"
6869           ;;
6870         x86_64-*linux*)
6871           LD="${LD-ld} -m elf_x86_64"
6872           ;;
6873         ppc*-*linux*|powerpc*-*linux*)
6874           LD="${LD-ld} -m elf64ppc"
6875           ;;
6876         s390*-*linux*)
6877           LD="${LD-ld} -m elf64_s390"
6878           ;;
6879         sparc*-*linux*)
6880           LD="${LD-ld} -m elf64_sparc"
6881           ;;
6882       esac
6883       ;;
6884     esac
6885   fi
6886   rm -rf conftest*
6887   ;;
6888
6889 *-*-sco3.2v5*)
6890   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6891   SAVE_CFLAGS="$CFLAGS"
6892   CFLAGS="$CFLAGS -belf"
6893   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6894 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6895 if test "${lt_cv_cc_needs_belf+set}" = set; then
6896   echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898   ac_ext=c
6899 ac_cpp='$CPP $CPPFLAGS'
6900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903
6904      cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h.  */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h.  */
6910
6911 int
6912 main ()
6913 {
6914
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 rm -f conftest.$ac_objext conftest$ac_exeext
6920 if { (ac_try="$ac_link"
6921 case "(($ac_try" in
6922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923   *) ac_try_echo=$ac_try;;
6924 esac
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926   (eval "$ac_link") 2>conftest.er1
6927   ac_status=$?
6928   grep -v '^ *+' conftest.er1 >conftest.err
6929   rm -f conftest.er1
6930   cat conftest.err >&5
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); } && {
6933          test -z "$ac_c_werror_flag" ||
6934          test ! -s conftest.err
6935        } && test -s conftest$ac_exeext &&
6936        $as_test_x conftest$ac_exeext; then
6937   lt_cv_cc_needs_belf=yes
6938 else
6939   echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942         lt_cv_cc_needs_belf=no
6943 fi
6944
6945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6946       conftest$ac_exeext conftest.$ac_ext
6947      ac_ext=c
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953 fi
6954 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6955 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6956   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6957     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6958     CFLAGS="$SAVE_CFLAGS"
6959   fi
6960   ;;
6961 sparc*-*solaris*)
6962   # Find out which ABI we are using.
6963   echo 'int i;' > conftest.$ac_ext
6964   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965   (eval $ac_compile) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; then
6969     case `/usr/bin/file conftest.o` in
6970     *64-bit*)
6971       case $lt_cv_prog_gnu_ld in
6972       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6973       *)
6974         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6975           LD="${LD-ld} -64"
6976         fi
6977         ;;
6978       esac
6979       ;;
6980     esac
6981   fi
6982   rm -rf conftest*
6983   ;;
6984
6985
6986 esac
6987
6988 need_locks="$enable_libtool_lock"
6989
6990
6991
6992 for ac_header in dlfcn.h
6993 do
6994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6996   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 fi
7001 ac_res=`eval echo '${'$as_ac_Header'}'`
7002                { echo "$as_me:$LINENO: result: $ac_res" >&5
7003 echo "${ECHO_T}$ac_res" >&6; }
7004 else
7005   # Is the header compilable?
7006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7008 cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h.  */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h.  */
7014 $ac_includes_default
7015 #include <$ac_header>
7016 _ACEOF
7017 rm -f conftest.$ac_objext
7018 if { (ac_try="$ac_compile"
7019 case "(($ac_try" in
7020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021   *) ac_try_echo=$ac_try;;
7022 esac
7023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024   (eval "$ac_compile") 2>conftest.er1
7025   ac_status=$?
7026   grep -v '^ *+' conftest.er1 >conftest.err
7027   rm -f conftest.er1
7028   cat conftest.err >&5
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } && {
7031          test -z "$ac_c_werror_flag" ||
7032          test ! -s conftest.err
7033        } && test -s conftest.$ac_objext; then
7034   ac_header_compiler=yes
7035 else
7036   echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039         ac_header_compiler=no
7040 fi
7041
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7044 echo "${ECHO_T}$ac_header_compiler" >&6; }
7045
7046 # Is the header present?
7047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055 #include <$ac_header>
7056 _ACEOF
7057 if { (ac_try="$ac_cpp conftest.$ac_ext"
7058 case "(($ac_try" in
7059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060   *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7064   ac_status=$?
7065   grep -v '^ *+' conftest.er1 >conftest.err
7066   rm -f conftest.er1
7067   cat conftest.err >&5
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); } >/dev/null && {
7070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7071          test ! -s conftest.err
7072        }; then
7073   ac_header_preproc=yes
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078   ac_header_preproc=no
7079 fi
7080
7081 rm -f conftest.err conftest.$ac_ext
7082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7083 echo "${ECHO_T}$ac_header_preproc" >&6; }
7084
7085 # So?  What about this header?
7086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7087   yes:no: )
7088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7092     ac_header_preproc=yes
7093     ;;
7094   no:yes:* )
7095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7107     ( cat <<\_ASBOX
7108 ## -------------------------------- ##
7109 ## Report this to classpath@gnu.org ##
7110 ## -------------------------------- ##
7111 _ASBOX
7112      ) | sed "s/^/$as_me: WARNING:     /" >&2
7113     ;;
7114 esac
7115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   eval "$as_ac_Header=\$ac_header_preproc"
7121 fi
7122 ac_res=`eval echo '${'$as_ac_Header'}'`
7123                { echo "$as_me:$LINENO: result: $ac_res" >&5
7124 echo "${ECHO_T}$ac_res" >&6; }
7125
7126 fi
7127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7128   cat >>confdefs.h <<_ACEOF
7129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7130 _ACEOF
7131
7132 fi
7133
7134 done
7135
7136
7137
7138 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7139     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7140     (test "X$CXX" != "Xg++"))) ; then
7141   ac_ext=cpp
7142 ac_cpp='$CXXCPP $CPPFLAGS'
7143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7146 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7147 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7148 if test -z "$CXXCPP"; then
7149   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152       # Double quotes because CXXCPP needs to be expanded
7153     for CXXCPP in "$CXX -E" "/lib/cpp"
7154     do
7155       ac_preproc_ok=false
7156 for ac_cxx_preproc_warn_flag in '' yes
7157 do
7158   # Use a header file that comes with gcc, so configuring glibc
7159   # with a fresh cross-compiler works.
7160   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7161   # <limits.h> exists even on freestanding compilers.
7162   # On the NeXT, cc -E runs the code through the compiler's parser,
7163   # not just through cpp. "Syntax error" is here to catch this case.
7164   cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170 #ifdef __STDC__
7171 # include <limits.h>
7172 #else
7173 # include <assert.h>
7174 #endif
7175                      Syntax error
7176 _ACEOF
7177 if { (ac_try="$ac_cpp conftest.$ac_ext"
7178 case "(($ac_try" in
7179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180   *) ac_try_echo=$ac_try;;
7181 esac
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7184   ac_status=$?
7185   grep -v '^ *+' conftest.er1 >conftest.err
7186   rm -f conftest.er1
7187   cat conftest.err >&5
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); } >/dev/null && {
7190          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7191          test ! -s conftest.err
7192        }; then
7193   :
7194 else
7195   echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198   # Broken: fails on valid input.
7199 continue
7200 fi
7201
7202 rm -f conftest.err conftest.$ac_ext
7203
7204   # OK, works on sane cases.  Now check whether nonexistent headers
7205   # can be detected and how.
7206   cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h.  */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h.  */
7212 #include <ac_nonexistent.h>
7213 _ACEOF
7214 if { (ac_try="$ac_cpp conftest.$ac_ext"
7215 case "(($ac_try" in
7216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217   *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7221   ac_status=$?
7222   grep -v '^ *+' conftest.er1 >conftest.err
7223   rm -f conftest.er1
7224   cat conftest.err >&5
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); } >/dev/null && {
7227          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7228          test ! -s conftest.err
7229        }; then
7230   # Broken: success on invalid input.
7231 continue
7232 else
7233   echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236   # Passes both tests.
7237 ac_preproc_ok=:
7238 break
7239 fi
7240
7241 rm -f conftest.err conftest.$ac_ext
7242
7243 done
7244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7245 rm -f conftest.err conftest.$ac_ext
7246 if $ac_preproc_ok; then
7247   break
7248 fi
7249
7250     done
7251     ac_cv_prog_CXXCPP=$CXXCPP
7252
7253 fi
7254   CXXCPP=$ac_cv_prog_CXXCPP
7255 else
7256   ac_cv_prog_CXXCPP=$CXXCPP
7257 fi
7258 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7259 echo "${ECHO_T}$CXXCPP" >&6; }
7260 ac_preproc_ok=false
7261 for ac_cxx_preproc_warn_flag in '' yes
7262 do
7263   # Use a header file that comes with gcc, so configuring glibc
7264   # with a fresh cross-compiler works.
7265   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7266   # <limits.h> exists even on freestanding compilers.
7267   # On the NeXT, cc -E runs the code through the compiler's parser,
7268   # not just through cpp. "Syntax error" is here to catch this case.
7269   cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h.  */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h.  */
7275 #ifdef __STDC__
7276 # include <limits.h>
7277 #else
7278 # include <assert.h>
7279 #endif
7280                      Syntax error
7281 _ACEOF
7282 if { (ac_try="$ac_cpp conftest.$ac_ext"
7283 case "(($ac_try" in
7284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285   *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } >/dev/null && {
7295          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7296          test ! -s conftest.err
7297        }; then
7298   :
7299 else
7300   echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7302
7303   # Broken: fails on valid input.
7304 continue
7305 fi
7306
7307 rm -f conftest.err conftest.$ac_ext
7308
7309   # OK, works on sane cases.  Now check whether nonexistent headers
7310   # can be detected and how.
7311   cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h.  */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h.  */
7317 #include <ac_nonexistent.h>
7318 _ACEOF
7319 if { (ac_try="$ac_cpp conftest.$ac_ext"
7320 case "(($ac_try" in
7321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322   *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7326   ac_status=$?
7327   grep -v '^ *+' conftest.er1 >conftest.err
7328   rm -f conftest.er1
7329   cat conftest.err >&5
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } >/dev/null && {
7332          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7333          test ! -s conftest.err
7334        }; then
7335   # Broken: success on invalid input.
7336 continue
7337 else
7338   echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7340
7341   # Passes both tests.
7342 ac_preproc_ok=:
7343 break
7344 fi
7345
7346 rm -f conftest.err conftest.$ac_ext
7347
7348 done
7349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7350 rm -f conftest.err conftest.$ac_ext
7351 if $ac_preproc_ok; then
7352   :
7353 else
7354   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7355 See \`config.log' for more details." >&5
7356 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7357 See \`config.log' for more details." >&2;}
7358    { (exit 1); exit 1; }; }
7359 fi
7360
7361 ac_ext=cpp
7362 ac_cpp='$CXXCPP $CPPFLAGS'
7363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7366
7367 fi
7368
7369
7370 ac_ext=f
7371 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7372 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7374 if test -n "$ac_tool_prefix"; then
7375   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
7376   do
7377     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_prog_F77+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   if test -n "$F77"; then
7385   ac_cv_prog_F77="$F77" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392   for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 F77=$ac_cv_prog_F77
7405 if test -n "$F77"; then
7406   { echo "$as_me:$LINENO: result: $F77" >&5
7407 echo "${ECHO_T}$F77" >&6; }
7408 else
7409   { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7411 fi
7412
7413
7414     test -n "$F77" && break
7415   done
7416 fi
7417 if test -z "$F77"; then
7418   ac_ct_F77=$F77
7419   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
7420 do
7421   # Extract the first word of "$ac_prog", so it can be a program name with args.
7422 set dummy $ac_prog; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   if test -n "$ac_ct_F77"; then
7429   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_prog_ac_ct_F77="$ac_prog"
7439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446 fi
7447 fi
7448 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7449 if test -n "$ac_ct_F77"; then
7450   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7451 echo "${ECHO_T}$ac_ct_F77" >&6; }
7452 else
7453   { echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6; }
7455 fi
7456
7457
7458   test -n "$ac_ct_F77" && break
7459 done
7460
7461   if test "x$ac_ct_F77" = x; then
7462     F77=""
7463   else
7464     case $cross_compiling:$ac_tool_warned in
7465 yes:)
7466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7467 whose name does not start with the host triplet.  If you think this
7468 configuration is useful to you, please write to autoconf@gnu.org." >&5
7469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7470 whose name does not start with the host triplet.  If you think this
7471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7472 ac_tool_warned=yes ;;
7473 esac
7474     F77=$ac_ct_F77
7475   fi
7476 fi
7477
7478
7479 # Provide some information about the compiler.
7480 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7481 ac_compiler=`set X $ac_compile; echo $2`
7482 { (ac_try="$ac_compiler --version >&5"
7483 case "(($ac_try" in
7484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485   *) ac_try_echo=$ac_try;;
7486 esac
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488   (eval "$ac_compiler --version >&5") 2>&5
7489   ac_status=$?
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); }
7492 { (ac_try="$ac_compiler -v >&5"
7493 case "(($ac_try" in
7494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495   *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498   (eval "$ac_compiler -v >&5") 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); }
7502 { (ac_try="$ac_compiler -V >&5"
7503 case "(($ac_try" in
7504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505   *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508   (eval "$ac_compiler -V >&5") 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }
7512 rm -f a.out
7513
7514 # If we don't use `.F' as extension, the preprocessor is not run on the
7515 # input file.  (Note that this only needs to work for GNU compilers.)
7516 ac_save_ext=$ac_ext
7517 ac_ext=F
7518 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7519 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7520 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   cat >conftest.$ac_ext <<_ACEOF
7524       program main
7525 #ifndef __GNUC__
7526        choke me
7527 #endif
7528
7529       end
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535   *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538   (eval "$ac_compile") 2>conftest.er1
7539   ac_status=$?
7540   grep -v '^ *+' conftest.er1 >conftest.err
7541   rm -f conftest.er1
7542   cat conftest.err >&5
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); } && {
7545          test -z "$ac_f77_werror_flag" ||
7546          test ! -s conftest.err
7547        } && test -s conftest.$ac_objext; then
7548   ac_compiler_gnu=yes
7549 else
7550   echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553         ac_compiler_gnu=no
7554 fi
7555
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7558
7559 fi
7560 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7561 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7562 ac_ext=$ac_save_ext
7563 ac_test_FFLAGS=${FFLAGS+set}
7564 ac_save_FFLAGS=$FFLAGS
7565 FFLAGS=
7566 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7567 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7568 if test "${ac_cv_prog_f77_g+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571   FFLAGS=-g
7572 cat >conftest.$ac_ext <<_ACEOF
7573       program main
7574
7575       end
7576 _ACEOF
7577 rm -f conftest.$ac_objext
7578 if { (ac_try="$ac_compile"
7579 case "(($ac_try" in
7580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581   *) ac_try_echo=$ac_try;;
7582 esac
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584   (eval "$ac_compile") 2>conftest.er1
7585   ac_status=$?
7586   grep -v '^ *+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } && {
7591          test -z "$ac_f77_werror_flag" ||
7592          test ! -s conftest.err
7593        } && test -s conftest.$ac_objext; then
7594   ac_cv_prog_f77_g=yes
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599         ac_cv_prog_f77_g=no
7600 fi
7601
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603
7604 fi
7605 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7606 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7607 if test "$ac_test_FFLAGS" = set; then
7608   FFLAGS=$ac_save_FFLAGS
7609 elif test $ac_cv_prog_f77_g = yes; then
7610   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7611     FFLAGS="-g -O2"
7612   else
7613     FFLAGS="-g"
7614   fi
7615 else
7616   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7617     FFLAGS="-O2"
7618   else
7619     FFLAGS=
7620   fi
7621 fi
7622
7623 G77=`test $ac_compiler_gnu = yes && echo yes`
7624 ac_ext=c
7625 ac_cpp='$CPP $CPPFLAGS'
7626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629
7630
7631
7632 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7633 # find the maximum length of command line arguments
7634 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7635 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7636 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639     i=0
7640   teststring="ABCD"
7641
7642   case $build_os in
7643   msdosdjgpp*)
7644     # On DJGPP, this test can blow up pretty badly due to problems in libc
7645     # (any single argument exceeding 2000 bytes causes a buffer overrun
7646     # during glob expansion).  Even if it were fixed, the result of this
7647     # check would be larger than it should be.
7648     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7649     ;;
7650
7651   gnu*)
7652     # Under GNU Hurd, this test is not required because there is
7653     # no limit to the length of command line arguments.
7654     # Libtool will interpret -1 as no limit whatsoever
7655     lt_cv_sys_max_cmd_len=-1;
7656     ;;
7657
7658   cygwin* | mingw*)
7659     # On Win9x/ME, this test blows up -- it succeeds, but takes
7660     # about 5 minutes as the teststring grows exponentially.
7661     # Worse, since 9x/ME are not pre-emptively multitasking,
7662     # you end up with a "frozen" computer, even though with patience
7663     # the test eventually succeeds (with a max line length of 256k).
7664     # Instead, let's just punt: use the minimum linelength reported by
7665     # all of the supported platforms: 8192 (on NT/2K/XP).
7666     lt_cv_sys_max_cmd_len=8192;
7667     ;;
7668
7669   amigaos*)
7670     # On AmigaOS with pdksh, this test takes hours, literally.
7671     # So we just punt and use a minimum line length of 8192.
7672     lt_cv_sys_max_cmd_len=8192;
7673     ;;
7674
7675   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7676     # This has been around since 386BSD, at least.  Likely further.
7677     if test -x /sbin/sysctl; then
7678       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7679     elif test -x /usr/sbin/sysctl; then
7680       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7681     else
7682       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7683     fi
7684     # And add a safety zone
7685     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7686     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7687     ;;
7688
7689   interix*)
7690     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7691     lt_cv_sys_max_cmd_len=196608
7692     ;;
7693
7694   osf*)
7695     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7696     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7697     # nice to cause kernel panics so lets avoid the loop below.
7698     # First set a reasonable default.
7699     lt_cv_sys_max_cmd_len=16384
7700     #
7701     if test -x /sbin/sysconfig; then
7702       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7703         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7704       esac
7705     fi
7706     ;;
7707   sco3.2v5*)
7708     lt_cv_sys_max_cmd_len=102400
7709     ;;
7710   sysv5* | sco5v6* | sysv4.2uw2*)
7711     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7712     if test -n "$kargmax"; then
7713       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7714     else
7715       lt_cv_sys_max_cmd_len=32768
7716     fi
7717     ;;
7718   *)
7719     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7720     if test -n "$lt_cv_sys_max_cmd_len"; then
7721       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7722       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7723     else
7724       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7725       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7726                = "XX$teststring") >/dev/null 2>&1 &&
7727               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7728               lt_cv_sys_max_cmd_len=$new_result &&
7729               test $i != 17 # 1/2 MB should be enough
7730       do
7731         i=`expr $i + 1`
7732         teststring=$teststring$teststring
7733       done
7734       teststring=
7735       # Add a significant safety factor because C++ compilers can tack on massive
7736       # amounts of additional arguments before passing them to the linker.
7737       # It appears as though 1/2 is a usable value.
7738       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7739     fi
7740     ;;
7741   esac
7742
7743 fi
7744
7745 if test -n $lt_cv_sys_max_cmd_len ; then
7746   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7747 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7748 else
7749   { echo "$as_me:$LINENO: result: none" >&5
7750 echo "${ECHO_T}none" >&6; }
7751 fi
7752
7753
7754
7755
7756
7757 # Check for command to grab the raw symbol name followed by C symbol from nm.
7758 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7759 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7760 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763
7764 # These are sane defaults that work on at least a few old systems.
7765 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7766
7767 # Character class describing NM global symbol codes.
7768 symcode='[BCDEGRST]'
7769
7770 # Regexp to match symbols that can be accessed directly from C.
7771 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7772
7773 # Transform an extracted symbol line into a proper C declaration
7774 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7775
7776 # Transform an extracted symbol line into symbol name and symbol address
7777 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'"
7778
7779 # Define system-specific variables.
7780 case $host_os in
7781 aix*)
7782   symcode='[BCDT]'
7783   ;;
7784 cygwin* | mingw* | pw32*)
7785   symcode='[ABCDGISTW]'
7786   ;;
7787 hpux*) # Its linker distinguishes data from code symbols
7788   if test "$host_cpu" = ia64; then
7789     symcode='[ABCDEGRST]'
7790   fi
7791   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7792   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'"
7793   ;;
7794 linux* | k*bsd*-gnu)
7795   if test "$host_cpu" = ia64; then
7796     symcode='[ABCDGIRSTW]'
7797     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7798     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'"
7799   fi
7800   ;;
7801 irix* | nonstopux*)
7802   symcode='[BCDEGRST]'
7803   ;;
7804 osf*)
7805   symcode='[BCDEGQRST]'
7806   ;;
7807 solaris*)
7808   symcode='[BDRT]'
7809   ;;
7810 sco3.2v5*)
7811   symcode='[DT]'
7812   ;;
7813 sysv4.2uw2*)
7814   symcode='[DT]'
7815   ;;
7816 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7817   symcode='[ABDT]'
7818   ;;
7819 sysv4)
7820   symcode='[DFNSTU]'
7821   ;;
7822 esac
7823
7824 # Handle CRLF in mingw tool chain
7825 opt_cr=
7826 case $build_os in
7827 mingw*)
7828   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7829   ;;
7830 esac
7831
7832 # If we're using GNU nm, then use its standard symbol codes.
7833 case `$NM -V 2>&1` in
7834 *GNU* | *'with BFD'*)
7835   symcode='[ABCDGIRSTW]' ;;
7836 esac
7837
7838 # Try without a prefix undercore, then with it.
7839 for ac_symprfx in "" "_"; do
7840
7841   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7842   symxfrm="\\1 $ac_symprfx\\2 \\2"
7843
7844   # Write the raw and C identifiers.
7845   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7846
7847   # Check to see that the pipe works correctly.
7848   pipe_works=no
7849
7850   rm -f conftest*
7851   cat > conftest.$ac_ext <<EOF
7852 #ifdef __cplusplus
7853 extern "C" {
7854 #endif
7855 char nm_test_var;
7856 void nm_test_func(){}
7857 #ifdef __cplusplus
7858 }
7859 #endif
7860 int main(){nm_test_var='a';nm_test_func();return(0);}
7861 EOF
7862
7863   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7864   (eval $ac_compile) 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; then
7868     # Now try to grab the symbols.
7869     nlist=conftest.nm
7870     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7871   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); } && test -s "$nlist"; then
7875       # Try sorting and uniquifying the output.
7876       if sort "$nlist" | uniq > "$nlist"T; then
7877         mv -f "$nlist"T "$nlist"
7878       else
7879         rm -f "$nlist"T
7880       fi
7881
7882       # Make sure that we snagged all the symbols we need.
7883       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7884         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7885           cat <<EOF > conftest.$ac_ext
7886 #ifdef __cplusplus
7887 extern "C" {
7888 #endif
7889
7890 EOF
7891           # Now generate the symbol file.
7892           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7893
7894           cat <<EOF >> conftest.$ac_ext
7895 #if defined (__STDC__) && __STDC__
7896 # define lt_ptr_t void *
7897 #else
7898 # define lt_ptr_t char *
7899 # define const
7900 #endif
7901
7902 /* The mapping between symbol names and symbols. */
7903 const struct {
7904   const char *name;
7905   lt_ptr_t address;
7906 }
7907 lt_preloaded_symbols[] =
7908 {
7909 EOF
7910           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7911           cat <<\EOF >> conftest.$ac_ext
7912   {0, (lt_ptr_t) 0}
7913 };
7914
7915 #ifdef __cplusplus
7916 }
7917 #endif
7918 EOF
7919           # Now try linking the two files.
7920           mv conftest.$ac_objext conftstm.$ac_objext
7921           lt_save_LIBS="$LIBS"
7922           lt_save_CFLAGS="$CFLAGS"
7923           LIBS="conftstm.$ac_objext"
7924           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7925           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926   (eval $ac_link) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7930             pipe_works=yes
7931           fi
7932           LIBS="$lt_save_LIBS"
7933           CFLAGS="$lt_save_CFLAGS"
7934         else
7935           echo "cannot find nm_test_func in $nlist" >&5
7936         fi
7937       else
7938         echo "cannot find nm_test_var in $nlist" >&5
7939       fi
7940     else
7941       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7942     fi
7943   else
7944     echo "$progname: failed program was:" >&5
7945     cat conftest.$ac_ext >&5
7946   fi
7947   rm -rf conftest* conftst*
7948
7949   # Do not use the global_symbol_pipe unless it works.
7950   if test "$pipe_works" = yes; then
7951     break
7952   else
7953     lt_cv_sys_global_symbol_pipe=
7954   fi
7955 done
7956
7957 fi
7958
7959 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7960   lt_cv_sys_global_symbol_to_cdecl=
7961 fi
7962 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7963   { echo "$as_me:$LINENO: result: failed" >&5
7964 echo "${ECHO_T}failed" >&6; }
7965 else
7966   { echo "$as_me:$LINENO: result: ok" >&5
7967 echo "${ECHO_T}ok" >&6; }
7968 fi
7969
7970 { echo "$as_me:$LINENO: checking for objdir" >&5
7971 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7972 if test "${lt_cv_objdir+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975   rm -f .libs 2>/dev/null
7976 mkdir .libs 2>/dev/null
7977 if test -d .libs; then
7978   lt_cv_objdir=.libs
7979 else
7980   # MS-DOS does not allow filenames that begin with a dot.
7981   lt_cv_objdir=_libs
7982 fi
7983 rmdir .libs 2>/dev/null
7984 fi
7985 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7986 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7987 objdir=$lt_cv_objdir
7988
7989
7990
7991
7992
7993 case $host_os in
7994 aix3*)
7995   # AIX sometimes has problems with the GCC collect2 program.  For some
7996   # reason, if we set the COLLECT_NAMES environment variable, the problems
7997   # vanish in a puff of smoke.
7998   if test "X${COLLECT_NAMES+set}" != Xset; then
7999     COLLECT_NAMES=
8000     export COLLECT_NAMES
8001   fi
8002   ;;
8003 esac
8004
8005 # Sed substitution that helps us do robust quoting.  It backslashifies
8006 # metacharacters that are still active within double-quoted strings.
8007 Xsed='sed -e 1s/^X//'
8008 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8009
8010 # Same as above, but do not quote variable references.
8011 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8012
8013 # Sed substitution to delay expansion of an escaped shell variable in a
8014 # double_quote_subst'ed string.
8015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8016
8017 # Sed substitution to avoid accidental globbing in evaled expressions
8018 no_glob_subst='s/\*/\\\*/g'
8019
8020 # Constants:
8021 rm="rm -f"
8022
8023 # Global variables:
8024 default_ofile=libtool
8025 can_build_shared=yes
8026
8027 # All known linkers require a `.a' archive for static linking (except MSVC,
8028 # which needs '.lib').
8029 libext=a
8030 ltmain="$ac_aux_dir/ltmain.sh"
8031 ofile="$default_ofile"
8032 with_gnu_ld="$lt_cv_prog_gnu_ld"
8033
8034 if test -n "$ac_tool_prefix"; then
8035   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}ar; ac_word=$2
8037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039 if test "${ac_cv_prog_AR+set}" = set; then
8040   echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042   if test -n "$AR"; then
8043   ac_cv_prog_AR="$AR" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050   for ac_exec_ext in '' $ac_executable_extensions; do
8051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052     ac_cv_prog_AR="${ac_tool_prefix}ar"
8053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057 done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 AR=$ac_cv_prog_AR
8063 if test -n "$AR"; then
8064   { echo "$as_me:$LINENO: result: $AR" >&5
8065 echo "${ECHO_T}$AR" >&6; }
8066 else
8067   { echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6; }
8069 fi
8070
8071
8072 fi
8073 if test -z "$ac_cv_prog_AR"; then
8074   ac_ct_AR=$AR
8075   # Extract the first word of "ar", so it can be a program name with args.
8076 set dummy ar; ac_word=$2
8077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8079 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   if test -n "$ac_ct_AR"; then
8083   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088   IFS=$as_save_IFS
8089   test -z "$as_dir" && as_dir=.
8090   for ac_exec_ext in '' $ac_executable_extensions; do
8091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092     ac_cv_prog_ac_ct_AR="ar"
8093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094     break 2
8095   fi
8096 done
8097 done
8098 IFS=$as_save_IFS
8099
8100 fi
8101 fi
8102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8103 if test -n "$ac_ct_AR"; then
8104   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8105 echo "${ECHO_T}$ac_ct_AR" >&6; }
8106 else
8107   { echo "$as_me:$LINENO: result: no" >&5
8108 echo "${ECHO_T}no" >&6; }
8109 fi
8110
8111   if test "x$ac_ct_AR" = x; then
8112     AR="false"
8113   else
8114     case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8117 whose name does not start with the host triplet.  If you think this
8118 configuration is useful to you, please write to autoconf@gnu.org." >&5
8119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8120 whose name does not start with the host triplet.  If you think this
8121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8122 ac_tool_warned=yes ;;
8123 esac
8124     AR=$ac_ct_AR
8125   fi
8126 else
8127   AR="$ac_cv_prog_AR"
8128 fi
8129
8130 if test -n "$ac_tool_prefix"; then
8131   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8135 if test "${ac_cv_prog_RANLIB+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   if test -n "$RANLIB"; then
8139   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144   IFS=$as_save_IFS
8145   test -z "$as_dir" && as_dir=.
8146   for ac_exec_ext in '' $ac_executable_extensions; do
8147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150     break 2
8151   fi
8152 done
8153 done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 RANLIB=$ac_cv_prog_RANLIB
8159 if test -n "$RANLIB"; then
8160   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8161 echo "${ECHO_T}$RANLIB" >&6; }
8162 else
8163   { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8165 fi
8166
8167
8168 fi
8169 if test -z "$ac_cv_prog_RANLIB"; then
8170   ac_ct_RANLIB=$RANLIB
8171   # Extract the first word of "ranlib", so it can be a program name with args.
8172 set dummy ranlib; ac_word=$2
8173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   if test -n "$ac_ct_RANLIB"; then
8179   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184   IFS=$as_save_IFS
8185   test -z "$as_dir" && as_dir=.
8186   for ac_exec_ext in '' $ac_executable_extensions; do
8187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188     ac_cv_prog_ac_ct_RANLIB="ranlib"
8189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190     break 2
8191   fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8199 if test -n "$ac_ct_RANLIB"; then
8200   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8201 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8202 else
8203   { echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6; }
8205 fi
8206
8207   if test "x$ac_ct_RANLIB" = x; then
8208     RANLIB=":"
8209   else
8210     case $cross_compiling:$ac_tool_warned in
8211 yes:)
8212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8213 whose name does not start with the host triplet.  If you think this
8214 configuration is useful to you, please write to autoconf@gnu.org." >&5
8215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8216 whose name does not start with the host triplet.  If you think this
8217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8218 ac_tool_warned=yes ;;
8219 esac
8220     RANLIB=$ac_ct_RANLIB
8221   fi
8222 else
8223   RANLIB="$ac_cv_prog_RANLIB"
8224 fi
8225
8226 if test -n "$ac_tool_prefix"; then
8227   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8228 set dummy ${ac_tool_prefix}strip; ac_word=$2
8229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8231 if test "${ac_cv_prog_STRIP+set}" = set; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   if test -n "$STRIP"; then
8235   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240   IFS=$as_save_IFS
8241   test -z "$as_dir" && as_dir=.
8242   for ac_exec_ext in '' $ac_executable_extensions; do
8243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8244     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249 done
8250 IFS=$as_save_IFS
8251
8252 fi
8253 fi
8254 STRIP=$ac_cv_prog_STRIP
8255 if test -n "$STRIP"; then
8256   { echo "$as_me:$LINENO: result: $STRIP" >&5
8257 echo "${ECHO_T}$STRIP" >&6; }
8258 else
8259   { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8261 fi
8262
8263
8264 fi
8265 if test -z "$ac_cv_prog_STRIP"; then
8266   ac_ct_STRIP=$STRIP
8267   # Extract the first word of "strip", so it can be a program name with args.
8268 set dummy strip; ac_word=$2
8269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8271 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   if test -n "$ac_ct_STRIP"; then
8275   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282   for ac_exec_ext in '' $ac_executable_extensions; do
8283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284     ac_cv_prog_ac_ct_STRIP="strip"
8285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289 done
8290 IFS=$as_save_IFS
8291
8292 fi
8293 fi
8294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8295 if test -n "$ac_ct_STRIP"; then
8296   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8297 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8298 else
8299   { echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6; }
8301 fi
8302
8303   if test "x$ac_ct_STRIP" = x; then
8304     STRIP=":"
8305   else
8306     case $cross_compiling:$ac_tool_warned in
8307 yes:)
8308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8309 whose name does not start with the host triplet.  If you think this
8310 configuration is useful to you, please write to autoconf@gnu.org." >&5
8311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8312 whose name does not start with the host triplet.  If you think this
8313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8314 ac_tool_warned=yes ;;
8315 esac
8316     STRIP=$ac_ct_STRIP
8317   fi
8318 else
8319   STRIP="$ac_cv_prog_STRIP"
8320 fi
8321
8322
8323 old_CC="$CC"
8324 old_CFLAGS="$CFLAGS"
8325
8326 # Set sane defaults for various variables
8327 test -z "$AR" && AR=ar
8328 test -z "$AR_FLAGS" && AR_FLAGS=cru
8329 test -z "$AS" && AS=as
8330 test -z "$CC" && CC=cc
8331 test -z "$LTCC" && LTCC=$CC
8332 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8333 test -z "$DLLTOOL" && DLLTOOL=dlltool
8334 test -z "$LD" && LD=ld
8335 test -z "$LN_S" && LN_S="ln -s"
8336 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8337 test -z "$NM" && NM=nm
8338 test -z "$SED" && SED=sed
8339 test -z "$OBJDUMP" && OBJDUMP=objdump
8340 test -z "$RANLIB" && RANLIB=:
8341 test -z "$STRIP" && STRIP=:
8342 test -z "$ac_objext" && ac_objext=o
8343
8344 # Determine commands to create old-style static archives.
8345 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8346 old_postinstall_cmds='chmod 644 $oldlib'
8347 old_postuninstall_cmds=
8348
8349 if test -n "$RANLIB"; then
8350   case $host_os in
8351   openbsd*)
8352     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8353     ;;
8354   *)
8355     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8356     ;;
8357   esac
8358   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8359 fi
8360
8361 for cc_temp in $compiler""; do
8362   case $cc_temp in
8363     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8364     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8365     \-*) ;;
8366     *) break;;
8367   esac
8368 done
8369 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8370
8371
8372 # Only perform the check for file, if the check method requires it
8373 case $deplibs_check_method in
8374 file_magic*)
8375   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8376     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8377 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8378 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   case $MAGIC_CMD in
8382 [\\/*] |  ?:[\\/]*)
8383   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8384   ;;
8385 *)
8386   lt_save_MAGIC_CMD="$MAGIC_CMD"
8387   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8388   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8389   for ac_dir in $ac_dummy; do
8390     IFS="$lt_save_ifs"
8391     test -z "$ac_dir" && ac_dir=.
8392     if test -f $ac_dir/${ac_tool_prefix}file; then
8393       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8394       if test -n "$file_magic_test_file"; then
8395         case $deplibs_check_method in
8396         "file_magic "*)
8397           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8398           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8399           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8400             $EGREP "$file_magic_regex" > /dev/null; then
8401             :
8402           else
8403             cat <<EOF 1>&2
8404
8405 *** Warning: the command libtool uses to detect shared libraries,
8406 *** $file_magic_cmd, produces output that libtool cannot recognize.
8407 *** The result is that libtool may fail to recognize shared libraries
8408 *** as such.  This will affect the creation of libtool libraries that
8409 *** depend on shared libraries, but programs linked with such libtool
8410 *** libraries will work regardless of this problem.  Nevertheless, you
8411 *** may want to report the problem to your system manager and/or to
8412 *** bug-libtool@gnu.org
8413
8414 EOF
8415           fi ;;
8416         esac
8417       fi
8418       break
8419     fi
8420   done
8421   IFS="$lt_save_ifs"
8422   MAGIC_CMD="$lt_save_MAGIC_CMD"
8423   ;;
8424 esac
8425 fi
8426
8427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428 if test -n "$MAGIC_CMD"; then
8429   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8430 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8431 else
8432   { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8434 fi
8435
8436 if test -z "$lt_cv_path_MAGIC_CMD"; then
8437   if test -n "$ac_tool_prefix"; then
8438     { echo "$as_me:$LINENO: checking for file" >&5
8439 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8440 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443   case $MAGIC_CMD in
8444 [\\/*] |  ?:[\\/]*)
8445   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8446   ;;
8447 *)
8448   lt_save_MAGIC_CMD="$MAGIC_CMD"
8449   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8450   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8451   for ac_dir in $ac_dummy; do
8452     IFS="$lt_save_ifs"
8453     test -z "$ac_dir" && ac_dir=.
8454     if test -f $ac_dir/file; then
8455       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8456       if test -n "$file_magic_test_file"; then
8457         case $deplibs_check_method in
8458         "file_magic "*)
8459           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8460           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8461           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8462             $EGREP "$file_magic_regex" > /dev/null; then
8463             :
8464           else
8465             cat <<EOF 1>&2
8466
8467 *** Warning: the command libtool uses to detect shared libraries,
8468 *** $file_magic_cmd, produces output that libtool cannot recognize.
8469 *** The result is that libtool may fail to recognize shared libraries
8470 *** as such.  This will affect the creation of libtool libraries that
8471 *** depend on shared libraries, but programs linked with such libtool
8472 *** libraries will work regardless of this problem.  Nevertheless, you
8473 *** may want to report the problem to your system manager and/or to
8474 *** bug-libtool@gnu.org
8475
8476 EOF
8477           fi ;;
8478         esac
8479       fi
8480       break
8481     fi
8482   done
8483   IFS="$lt_save_ifs"
8484   MAGIC_CMD="$lt_save_MAGIC_CMD"
8485   ;;
8486 esac
8487 fi
8488
8489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8490 if test -n "$MAGIC_CMD"; then
8491   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8492 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8493 else
8494   { echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6; }
8496 fi
8497
8498   else
8499     MAGIC_CMD=:
8500   fi
8501 fi
8502
8503   fi
8504   ;;
8505 esac
8506
8507
8508   case $host_os in
8509     rhapsody* | darwin*)
8510     if test -n "$ac_tool_prefix"; then
8511   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8512 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8515 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8516   echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518   if test -n "$DSYMUTIL"; then
8519   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524   IFS=$as_save_IFS
8525   test -z "$as_dir" && as_dir=.
8526   for ac_exec_ext in '' $ac_executable_extensions; do
8527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8530     break 2
8531   fi
8532 done
8533 done
8534 IFS=$as_save_IFS
8535
8536 fi
8537 fi
8538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8539 if test -n "$DSYMUTIL"; then
8540   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8541 echo "${ECHO_T}$DSYMUTIL" >&6; }
8542 else
8543   { echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6; }
8545 fi
8546
8547
8548 fi
8549 if test -z "$ac_cv_prog_DSYMUTIL"; then
8550   ac_ct_DSYMUTIL=$DSYMUTIL
8551   # Extract the first word of "dsymutil", so it can be a program name with args.
8552 set dummy dsymutil; ac_word=$2
8553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8555 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8556   echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558   if test -n "$ac_ct_DSYMUTIL"; then
8559   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8560 else
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8563 do
8564   IFS=$as_save_IFS
8565   test -z "$as_dir" && as_dir=.
8566   for ac_exec_ext in '' $ac_executable_extensions; do
8567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8568     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8570     break 2
8571   fi
8572 done
8573 done
8574 IFS=$as_save_IFS
8575
8576 fi
8577 fi
8578 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8579 if test -n "$ac_ct_DSYMUTIL"; then
8580   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8581 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8582 else
8583   { echo "$as_me:$LINENO: result: no" >&5
8584 echo "${ECHO_T}no" >&6; }
8585 fi
8586
8587   if test "x$ac_ct_DSYMUTIL" = x; then
8588     DSYMUTIL=":"
8589   else
8590     case $cross_compiling:$ac_tool_warned in
8591 yes:)
8592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8593 whose name does not start with the host triplet.  If you think this
8594 configuration is useful to you, please write to autoconf@gnu.org." >&5
8595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8596 whose name does not start with the host triplet.  If you think this
8597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8598 ac_tool_warned=yes ;;
8599 esac
8600     DSYMUTIL=$ac_ct_DSYMUTIL
8601   fi
8602 else
8603   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8604 fi
8605
8606     if test -n "$ac_tool_prefix"; then
8607   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8608 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8611 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8612   echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614   if test -n "$NMEDIT"; then
8615   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8616 else
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8619 do
8620   IFS=$as_save_IFS
8621   test -z "$as_dir" && as_dir=.
8622   for ac_exec_ext in '' $ac_executable_extensions; do
8623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8624     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626     break 2
8627   fi
8628 done
8629 done
8630 IFS=$as_save_IFS
8631
8632 fi
8633 fi
8634 NMEDIT=$ac_cv_prog_NMEDIT
8635 if test -n "$NMEDIT"; then
8636   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8637 echo "${ECHO_T}$NMEDIT" >&6; }
8638 else
8639   { echo "$as_me:$LINENO: result: no" >&5
8640 echo "${ECHO_T}no" >&6; }
8641 fi
8642
8643
8644 fi
8645 if test -z "$ac_cv_prog_NMEDIT"; then
8646   ac_ct_NMEDIT=$NMEDIT
8647   # Extract the first word of "nmedit", so it can be a program name with args.
8648 set dummy nmedit; ac_word=$2
8649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8651 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   if test -n "$ac_ct_NMEDIT"; then
8655   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8656 else
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8659 do
8660   IFS=$as_save_IFS
8661   test -z "$as_dir" && as_dir=.
8662   for ac_exec_ext in '' $ac_executable_extensions; do
8663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8664     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8666     break 2
8667   fi
8668 done
8669 done
8670 IFS=$as_save_IFS
8671
8672 fi
8673 fi
8674 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8675 if test -n "$ac_ct_NMEDIT"; then
8676   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8677 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8678 else
8679   { echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6; }
8681 fi
8682
8683   if test "x$ac_ct_NMEDIT" = x; then
8684     NMEDIT=":"
8685   else
8686     case $cross_compiling:$ac_tool_warned in
8687 yes:)
8688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8689 whose name does not start with the host triplet.  If you think this
8690 configuration is useful to you, please write to autoconf@gnu.org." >&5
8691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8692 whose name does not start with the host triplet.  If you think this
8693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8694 ac_tool_warned=yes ;;
8695 esac
8696     NMEDIT=$ac_ct_NMEDIT
8697   fi
8698 else
8699   NMEDIT="$ac_cv_prog_NMEDIT"
8700 fi
8701
8702
8703     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8704 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8705 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   lt_cv_apple_cc_single_mod=no
8709       if test -z "${LT_MULTI_MODULE}"; then
8710    # By default we will add the -single_module flag. You can override
8711    # by either setting the environment variable LT_MULTI_MODULE
8712    # non-empty at configure time, or by adding -multi_module to the
8713    # link flags.
8714    echo "int foo(void){return 1;}" > conftest.c
8715    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8716      -dynamiclib ${wl}-single_module conftest.c
8717    if test -f libconftest.dylib; then
8718      lt_cv_apple_cc_single_mod=yes
8719      rm -rf libconftest.dylib*
8720    fi
8721    rm conftest.c
8722       fi
8723 fi
8724 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8725 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8726     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8727 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8728 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   lt_cv_ld_exported_symbols_list=no
8732       save_LDFLAGS=$LDFLAGS
8733       echo "_main" > conftest.sym
8734       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8735       cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741
8742 int
8743 main ()
8744 {
8745
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   lt_cv_ld_exported_symbols_list=yes
8769 else
8770   echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773         lt_cv_ld_exported_symbols_list=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    LDFLAGS="$save_LDFLAGS"
8779
8780 fi
8781 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8782 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8783     case $host_os in
8784     rhapsody* | darwin1.[0123])
8785       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8786     darwin1.*)
8787      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8788     darwin*)
8789       # if running on 10.5 or later, the deployment target defaults
8790       # to the OS version, if on x86, and 10.4, the deployment
8791       # target defaults to 10.4. Don't you love it?
8792       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8793    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8794      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8795    10.[012]*)
8796      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8797    10.*)
8798      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8799       esac
8800     ;;
8801   esac
8802     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8803       _lt_dar_single_mod='$single_module'
8804     fi
8805     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8806       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8807     else
8808       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8809     fi
8810     if test "$DSYMUTIL" != ":"; then
8811       _lt_dsymutil="~$DSYMUTIL \$lib || :"
8812     else
8813       _lt_dsymutil=
8814     fi
8815     ;;
8816   esac
8817
8818
8819 enable_dlopen=no
8820 enable_win32_dll=no
8821
8822 # Check whether --enable-libtool-lock was given.
8823 if test "${enable_libtool_lock+set}" = set; then
8824   enableval=$enable_libtool_lock;
8825 fi
8826
8827 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8828
8829
8830 # Check whether --with-pic was given.
8831 if test "${with_pic+set}" = set; then
8832   withval=$with_pic; pic_mode="$withval"
8833 else
8834   pic_mode=default
8835 fi
8836
8837 test -z "$pic_mode" && pic_mode=default
8838
8839 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
8840 #
8841 # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
8842 #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
8843 #        calls AC_LIBTOOL_CONFIG and creates libtool.
8844 #
8845 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
8846 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
8847 if test "x$ltmain" = "x" ; then
8848   { echo "$as_me:$LINENO: result: no" >&5
8849 echo "${ECHO_T}no" >&6; }
8850   { { echo "$as_me:$LINENO: error:
8851
8852 *** [Gentoo] sanity check failed! ***
8853 *** \$ltmain is not defined, please check the patch for consistency! ***
8854 " >&5
8855 echo "$as_me: error:
8856
8857 *** [Gentoo] sanity check failed! ***
8858 *** \$ltmain is not defined, please check the patch for consistency! ***
8859 " >&2;}
8860    { (exit 1); exit 1; }; }
8861 fi
8862 gentoo_lt_version="1.5.26"
8863 gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
8864 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
8865   { echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6; }
8867   { { echo "$as_me:$LINENO: error:
8868
8869 *** [Gentoo] sanity check failed! ***
8870 *** libtool.m4 and ltmain.sh have a version mismatch! ***
8871 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
8872
8873 Please run:
8874
8875   libtoolize --copy --force
8876
8877 if appropriate, please contact the maintainer of this
8878 package (or your distribution) for help.
8879 " >&5
8880 echo "$as_me: error:
8881
8882 *** [Gentoo] sanity check failed! ***
8883 *** libtool.m4 and ltmain.sh have a version mismatch! ***
8884 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
8885
8886 Please run:
8887
8888   libtoolize --copy --force
8889
8890 if appropriate, please contact the maintainer of this
8891 package (or your distribution) for help.
8892 " >&2;}
8893    { (exit 1); exit 1; }; }
8894 else
8895   { echo "$as_me:$LINENO: result: yes" >&5
8896 echo "${ECHO_T}yes" >&6; }
8897 fi
8898
8899
8900 # Use C for the default configuration in the libtool script
8901 tagname=
8902 lt_save_CC="$CC"
8903 ac_ext=c
8904 ac_cpp='$CPP $CPPFLAGS'
8905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8908
8909
8910 # Source file extension for C test sources.
8911 ac_ext=c
8912
8913 # Object file extension for compiled C test sources.
8914 objext=o
8915 objext=$objext
8916
8917 # Code to be used in simple compile tests
8918 lt_simple_compile_test_code="int some_variable = 0;"
8919
8920 # Code to be used in simple link tests
8921 lt_simple_link_test_code='int main(){return(0);}'
8922
8923
8924 # If no C compiler was specified, use CC.
8925 LTCC=${LTCC-"$CC"}
8926
8927 # If no C compiler flags were specified, use CFLAGS.
8928 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8929
8930 # Allow CC to be a program name with arguments.
8931 compiler=$CC
8932
8933
8934 # save warnings/boilerplate of simple test code
8935 ac_outfile=conftest.$ac_objext
8936 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8937 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8938 _lt_compiler_boilerplate=`cat conftest.err`
8939 $rm conftest*
8940
8941 ac_outfile=conftest.$ac_objext
8942 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8943 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8944 _lt_linker_boilerplate=`cat conftest.err`
8945 $rm -r conftest*
8946
8947
8948
8949 lt_prog_compiler_no_builtin_flag=
8950
8951 if test "$GCC" = yes; then
8952   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8953
8954
8955 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8956 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8957 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8958   echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960   lt_cv_prog_compiler_rtti_exceptions=no
8961   ac_outfile=conftest.$ac_objext
8962    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8963    lt_compiler_flag="-fno-rtti -fno-exceptions"
8964    # Insert the option either (1) after the last *FLAGS variable, or
8965    # (2) before a word containing "conftest.", or (3) at the end.
8966    # Note that $ac_compile itself does not contain backslashes and begins
8967    # with a dollar sign (not a hyphen), so the echo should work correctly.
8968    # The option is referenced via a variable to avoid confusing sed.
8969    lt_compile=`echo "$ac_compile" | $SED \
8970    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8972    -e 's:$: $lt_compiler_flag:'`
8973    (eval echo "\"\$as_me:8973: $lt_compile\"" >&5)
8974    (eval "$lt_compile" 2>conftest.err)
8975    ac_status=$?
8976    cat conftest.err >&5
8977    echo "$as_me:8977: \$? = $ac_status" >&5
8978    if (exit $ac_status) && test -s "$ac_outfile"; then
8979      # The compiler can only warn and ignore the option if not recognized
8980      # So say no if there are warnings other than the usual output.
8981      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8982      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8983      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8984        lt_cv_prog_compiler_rtti_exceptions=yes
8985      fi
8986    fi
8987    $rm conftest*
8988
8989 fi
8990 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8991 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8992
8993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8994     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8995 else
8996     :
8997 fi
8998
8999 fi
9000
9001 lt_prog_compiler_wl=
9002 lt_prog_compiler_pic=
9003 lt_prog_compiler_static=
9004
9005 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9006 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9007
9008   if test "$GCC" = yes; then
9009     lt_prog_compiler_wl='-Wl,'
9010     lt_prog_compiler_static='-static'
9011
9012     case $host_os in
9013       aix*)
9014       # All AIX code is PIC.
9015       if test "$host_cpu" = ia64; then
9016         # AIX 5 now supports IA64 processor
9017         lt_prog_compiler_static='-Bstatic'
9018       fi
9019       ;;
9020
9021     amigaos*)
9022       # FIXME: we need at least 68020 code to build shared libraries, but
9023       # adding the `-m68020' flag to GCC prevents building anything better,
9024       # like `-m68040'.
9025       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9026       ;;
9027
9028     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9029       # PIC is the default for these OSes.
9030       ;;
9031
9032     mingw* | cygwin* | pw32* | os2*)
9033       # This hack is so that the source file can tell whether it is being
9034       # built for inclusion in a dll (and should export symbols for example).
9035       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9036       # (--disable-auto-import) libraries
9037       lt_prog_compiler_pic='-DDLL_EXPORT'
9038       ;;
9039
9040     darwin* | rhapsody*)
9041       # PIC is the default on this platform
9042       # Common symbols not allowed in MH_DYLIB files
9043       lt_prog_compiler_pic='-fno-common'
9044       ;;
9045
9046     interix[3-9]*)
9047       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9048       # Instead, we relocate shared libraries at runtime.
9049       ;;
9050
9051     msdosdjgpp*)
9052       # Just because we use GCC doesn't mean we suddenly get shared libraries
9053       # on systems that don't support them.
9054       lt_prog_compiler_can_build_shared=no
9055       enable_shared=no
9056       ;;
9057
9058     sysv4*MP*)
9059       if test -d /usr/nec; then
9060         lt_prog_compiler_pic=-Kconform_pic
9061       fi
9062       ;;
9063
9064     hpux*)
9065       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9066       # not for PA HP-UX.
9067       case $host_cpu in
9068       hppa*64*|ia64*)
9069         # +Z the default
9070         ;;
9071       *)
9072         lt_prog_compiler_pic='-fPIC'
9073         ;;
9074       esac
9075       ;;
9076
9077     *)
9078       lt_prog_compiler_pic='-fPIC'
9079       ;;
9080     esac
9081   else
9082     # PORTME Check for flag to pass linker flags through the system compiler.
9083     case $host_os in
9084     aix*)
9085       lt_prog_compiler_wl='-Wl,'
9086       if test "$host_cpu" = ia64; then
9087         # AIX 5 now supports IA64 processor
9088         lt_prog_compiler_static='-Bstatic'
9089       else
9090         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9091       fi
9092       ;;
9093       darwin*)
9094         # PIC is the default on this platform
9095         # Common symbols not allowed in MH_DYLIB files
9096        case $cc_basename in
9097          xlc*)
9098          lt_prog_compiler_pic='-qnocommon'
9099          lt_prog_compiler_wl='-Wl,'
9100          ;;
9101        esac
9102        ;;
9103
9104     mingw* | cygwin* | pw32* | os2*)
9105       # This hack is so that the source file can tell whether it is being
9106       # built for inclusion in a dll (and should export symbols for example).
9107       lt_prog_compiler_pic='-DDLL_EXPORT'
9108       ;;
9109
9110     hpux9* | hpux10* | hpux11*)
9111       lt_prog_compiler_wl='-Wl,'
9112       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9113       # not for PA HP-UX.
9114       case $host_cpu in
9115       hppa*64*|ia64*)
9116         # +Z the default
9117         ;;
9118       *)
9119         lt_prog_compiler_pic='+Z'
9120         ;;
9121       esac
9122       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9123       lt_prog_compiler_static='${wl}-a ${wl}archive'
9124       ;;
9125
9126     irix5* | irix6* | nonstopux*)
9127       lt_prog_compiler_wl='-Wl,'
9128       # PIC (with -KPIC) is the default.
9129       lt_prog_compiler_static='-non_shared'
9130       ;;
9131
9132     newsos6)
9133       lt_prog_compiler_pic='-KPIC'
9134       lt_prog_compiler_static='-Bstatic'
9135       ;;
9136
9137     linux* | k*bsd*-gnu)
9138       case $cc_basename in
9139       icc* | ecc*)
9140         lt_prog_compiler_wl='-Wl,'
9141         lt_prog_compiler_pic='-KPIC'
9142         lt_prog_compiler_static='-static'
9143         ;;
9144       pgcc* | pgf77* | pgf90* | pgf95*)
9145         # Portland Group compilers (*not* the Pentium gcc compiler,
9146         # which looks to be a dead project)
9147         lt_prog_compiler_wl='-Wl,'
9148         lt_prog_compiler_pic='-fpic'
9149         lt_prog_compiler_static='-Bstatic'
9150         ;;
9151       ccc*)
9152         lt_prog_compiler_wl='-Wl,'
9153         # All Alpha code is PIC.
9154         lt_prog_compiler_static='-non_shared'
9155         ;;
9156       *)
9157         case `$CC -V 2>&1 | sed 5q` in
9158         *Sun\ C*)
9159           # Sun C 5.9
9160           lt_prog_compiler_pic='-KPIC'
9161           lt_prog_compiler_static='-Bstatic'
9162           lt_prog_compiler_wl='-Wl,'
9163           ;;
9164         *Sun\ F*)
9165           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9166           lt_prog_compiler_pic='-KPIC'
9167           lt_prog_compiler_static='-Bstatic'
9168           lt_prog_compiler_wl=''
9169           ;;
9170         esac
9171         ;;
9172       esac
9173       ;;
9174
9175     osf3* | osf4* | osf5*)
9176       lt_prog_compiler_wl='-Wl,'
9177       # All OSF/1 code is PIC.
9178       lt_prog_compiler_static='-non_shared'
9179       ;;
9180
9181     rdos*)
9182       lt_prog_compiler_static='-non_shared'
9183       ;;
9184
9185     solaris*)
9186       lt_prog_compiler_pic='-KPIC'
9187       lt_prog_compiler_static='-Bstatic'
9188       case $cc_basename in
9189       f77* | f90* | f95*)
9190         lt_prog_compiler_wl='-Qoption ld ';;
9191       *)
9192         lt_prog_compiler_wl='-Wl,';;
9193       esac
9194       ;;
9195
9196     sunos4*)
9197       lt_prog_compiler_wl='-Qoption ld '
9198       lt_prog_compiler_pic='-PIC'
9199       lt_prog_compiler_static='-Bstatic'
9200       ;;
9201
9202     sysv4 | sysv4.2uw2* | sysv4.3*)
9203       lt_prog_compiler_wl='-Wl,'
9204       lt_prog_compiler_pic='-KPIC'
9205       lt_prog_compiler_static='-Bstatic'
9206       ;;
9207
9208     sysv4*MP*)
9209       if test -d /usr/nec ;then
9210         lt_prog_compiler_pic='-Kconform_pic'
9211         lt_prog_compiler_static='-Bstatic'
9212       fi
9213       ;;
9214
9215     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9216       lt_prog_compiler_wl='-Wl,'
9217       lt_prog_compiler_pic='-KPIC'
9218       lt_prog_compiler_static='-Bstatic'
9219       ;;
9220
9221     unicos*)
9222       lt_prog_compiler_wl='-Wl,'
9223       lt_prog_compiler_can_build_shared=no
9224       ;;
9225
9226     uts4*)
9227       lt_prog_compiler_pic='-pic'
9228       lt_prog_compiler_static='-Bstatic'
9229       ;;
9230
9231     *)
9232       lt_prog_compiler_can_build_shared=no
9233       ;;
9234     esac
9235   fi
9236
9237 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9238 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9239
9240 #
9241 # Check to make sure the PIC flag actually works.
9242 #
9243 if test -n "$lt_prog_compiler_pic"; then
9244
9245 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9246 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9247 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9248   echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250   lt_cv_prog_compiler_pic_works=no
9251   ac_outfile=conftest.$ac_objext
9252    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9253    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9254    # Insert the option either (1) after the last *FLAGS variable, or
9255    # (2) before a word containing "conftest.", or (3) at the end.
9256    # Note that $ac_compile itself does not contain backslashes and begins
9257    # with a dollar sign (not a hyphen), so the echo should work correctly.
9258    # The option is referenced via a variable to avoid confusing sed.
9259    lt_compile=`echo "$ac_compile" | $SED \
9260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9262    -e 's:$: $lt_compiler_flag:'`
9263    (eval echo "\"\$as_me:9263: $lt_compile\"" >&5)
9264    (eval "$lt_compile" 2>conftest.err)
9265    ac_status=$?
9266    cat conftest.err >&5
9267    echo "$as_me:9267: \$? = $ac_status" >&5
9268    if (exit $ac_status) && test -s "$ac_outfile"; then
9269      # The compiler can only warn and ignore the option if not recognized
9270      # So say no if there are warnings other than the usual output.
9271      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9272      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9273      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9274        lt_cv_prog_compiler_pic_works=yes
9275      fi
9276    fi
9277    $rm conftest*
9278
9279 fi
9280 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9281 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9282
9283 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9284     case $lt_prog_compiler_pic in
9285      "" | " "*) ;;
9286      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9287      esac
9288 else
9289     lt_prog_compiler_pic=
9290      lt_prog_compiler_can_build_shared=no
9291 fi
9292
9293 fi
9294 case $host_os in
9295   # For platforms which do not support PIC, -DPIC is meaningless:
9296   *djgpp*)
9297     lt_prog_compiler_pic=
9298     ;;
9299   *)
9300     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9301     ;;
9302 esac
9303
9304 #
9305 # Check to make sure the static flag actually works.
9306 #
9307 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9308 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9309 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9310 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313   lt_cv_prog_compiler_static_works=no
9314    save_LDFLAGS="$LDFLAGS"
9315    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9316    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9317    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9318      # The linker can only warn and ignore the option if not recognized
9319      # So say no if there are warnings
9320      if test -s conftest.err; then
9321        # Append any errors to the config.log.
9322        cat conftest.err 1>&5
9323        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9324        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9325        if diff conftest.exp conftest.er2 >/dev/null; then
9326          lt_cv_prog_compiler_static_works=yes
9327        fi
9328      else
9329        lt_cv_prog_compiler_static_works=yes
9330      fi
9331    fi
9332    $rm -r conftest*
9333    LDFLAGS="$save_LDFLAGS"
9334
9335 fi
9336 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9337 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9338
9339 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9340     :
9341 else
9342     lt_prog_compiler_static=
9343 fi
9344
9345
9346 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9347 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9348 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   lt_cv_prog_compiler_c_o=no
9352    $rm -r conftest 2>/dev/null
9353    mkdir conftest
9354    cd conftest
9355    mkdir out
9356    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9357
9358    lt_compiler_flag="-o out/conftest2.$ac_objext"
9359    # Insert the option either (1) after the last *FLAGS variable, or
9360    # (2) before a word containing "conftest.", or (3) at the end.
9361    # Note that $ac_compile itself does not contain backslashes and begins
9362    # with a dollar sign (not a hyphen), so the echo should work correctly.
9363    lt_compile=`echo "$ac_compile" | $SED \
9364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9366    -e 's:$: $lt_compiler_flag:'`
9367    (eval echo "\"\$as_me:9367: $lt_compile\"" >&5)
9368    (eval "$lt_compile" 2>out/conftest.err)
9369    ac_status=$?
9370    cat out/conftest.err >&5
9371    echo "$as_me:9371: \$? = $ac_status" >&5
9372    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9373    then
9374      # The compiler can only warn and ignore the option if not recognized
9375      # So say no if there are warnings
9376      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9377      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9378      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9379        lt_cv_prog_compiler_c_o=yes
9380      fi
9381    fi
9382    chmod u+w . 2>&5
9383    $rm conftest*
9384    # SGI C++ compiler will create directory out/ii_files/ for
9385    # template instantiation
9386    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9387    $rm out/* && rmdir out
9388    cd ..
9389    rmdir conftest
9390    $rm conftest*
9391
9392 fi
9393 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9394 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9395
9396
9397 hard_links="nottested"
9398 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9399   # do not overwrite the value of need_locks provided by the user
9400   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9401 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9402   hard_links=yes
9403   $rm conftest*
9404   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9405   touch conftest.a
9406   ln conftest.a conftest.b 2>&5 || hard_links=no
9407   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9408   { echo "$as_me:$LINENO: result: $hard_links" >&5
9409 echo "${ECHO_T}$hard_links" >&6; }
9410   if test "$hard_links" = no; then
9411     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9412 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9413     need_locks=warn
9414   fi
9415 else
9416   need_locks=no
9417 fi
9418
9419 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9420 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9421
9422   runpath_var=
9423   allow_undefined_flag=
9424   enable_shared_with_static_runtimes=no
9425   archive_cmds=
9426   archive_expsym_cmds=
9427   old_archive_From_new_cmds=
9428   old_archive_from_expsyms_cmds=
9429   export_dynamic_flag_spec=
9430   whole_archive_flag_spec=
9431   thread_safe_flag_spec=
9432   hardcode_libdir_flag_spec=
9433   hardcode_libdir_flag_spec_ld=
9434   hardcode_libdir_separator=
9435   hardcode_direct=no
9436   hardcode_minus_L=no
9437   hardcode_shlibpath_var=unsupported
9438   link_all_deplibs=unknown
9439   hardcode_automatic=no
9440   module_cmds=
9441   module_expsym_cmds=
9442   always_export_symbols=no
9443   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9444   # include_expsyms should be a list of space-separated symbols to be *always*
9445   # included in the symbol list
9446   include_expsyms=
9447   # exclude_expsyms can be an extended regexp of symbols to exclude
9448   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9449   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9450   # as well as any symbol that contains `d'.
9451   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9452   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9453   # platforms (ab)use it in PIC code, but their linkers get confused if
9454   # the symbol is explicitly referenced.  Since portable code cannot
9455   # rely on this symbol name, it's probably fine to never include it in
9456   # preloaded symbol tables.
9457   # Exclude shared library initialization/finalization symbols.
9458   extract_expsyms_cmds=
9459   # Just being paranoid about ensuring that cc_basename is set.
9460   for cc_temp in $compiler""; do
9461   case $cc_temp in
9462     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9463     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9464     \-*) ;;
9465     *) break;;
9466   esac
9467 done
9468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9469
9470   case $host_os in
9471   cygwin* | mingw* | pw32*)
9472     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9473     # When not using gcc, we currently assume that we are using
9474     # Microsoft Visual C++.
9475     if test "$GCC" != yes; then
9476       with_gnu_ld=no
9477     fi
9478     ;;
9479   interix*)
9480     # we just hope/assume this is gcc and not c89 (= MSVC++)
9481     with_gnu_ld=yes
9482     ;;
9483   openbsd*)
9484     with_gnu_ld=no
9485     ;;
9486   esac
9487
9488   ld_shlibs=yes
9489   if test "$with_gnu_ld" = yes; then
9490     # If archive_cmds runs LD, not CC, wlarc should be empty
9491     wlarc='${wl}'
9492
9493     # Set some defaults for GNU ld with shared library support. These
9494     # are reset later if shared libraries are not supported. Putting them
9495     # here allows them to be overridden if necessary.
9496     runpath_var=LD_RUN_PATH
9497     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9498     export_dynamic_flag_spec='${wl}--export-dynamic'
9499     # ancient GNU ld didn't support --whole-archive et. al.
9500     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9501         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9502       else
9503         whole_archive_flag_spec=
9504     fi
9505     supports_anon_versioning=no
9506     case `$LD -v 2>/dev/null` in
9507       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9508       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9509       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9510       *\ 2.11.*) ;; # other 2.11 versions
9511       *) supports_anon_versioning=yes ;;
9512     esac
9513
9514     # See if GNU ld supports shared libraries.
9515     case $host_os in
9516     aix[3-9]*)
9517       # On AIX/PPC, the GNU linker is very broken
9518       if test "$host_cpu" != ia64; then
9519         ld_shlibs=no
9520         cat <<EOF 1>&2
9521
9522 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9523 *** to be unable to reliably create shared libraries on AIX.
9524 *** Therefore, libtool is disabling shared libraries support.  If you
9525 *** really care for shared libraries, you may want to modify your PATH
9526 *** so that a non-GNU linker is found, and then restart.
9527
9528 EOF
9529       fi
9530       ;;
9531
9532     amigaos*)
9533       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)'
9534       hardcode_libdir_flag_spec='-L$libdir'
9535       hardcode_minus_L=yes
9536
9537       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9538       # that the semantics of dynamic libraries on AmigaOS, at least up
9539       # to version 4, is to share data among multiple programs linked
9540       # with the same dynamic library.  Since this doesn't match the
9541       # behavior of shared libraries on other platforms, we can't use
9542       # them.
9543       ld_shlibs=no
9544       ;;
9545
9546     beos*)
9547       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9548         allow_undefined_flag=unsupported
9549         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9550         # support --undefined.  This deserves some investigation.  FIXME
9551         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552       else
9553         ld_shlibs=no
9554       fi
9555       ;;
9556
9557     cygwin* | mingw* | pw32*)
9558       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9559       # as there is no search path for DLLs.
9560       hardcode_libdir_flag_spec='-L$libdir'
9561       allow_undefined_flag=unsupported
9562       always_export_symbols=no
9563       enable_shared_with_static_runtimes=yes
9564       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9565
9566       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9567         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9568         # If the export-symbols file already is a .def file (1st line
9569         # is EXPORTS), use it as is; otherwise, prepend...
9570         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9571           cp $export_symbols $output_objdir/$soname.def;
9572         else
9573           echo EXPORTS > $output_objdir/$soname.def;
9574           cat $export_symbols >> $output_objdir/$soname.def;
9575         fi~
9576         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9577       else
9578         ld_shlibs=no
9579       fi
9580       ;;
9581
9582     interix[3-9]*)
9583       hardcode_direct=no
9584       hardcode_shlibpath_var=no
9585       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9586       export_dynamic_flag_spec='${wl}-E'
9587       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9588       # Instead, shared libraries are loaded at an image base (0x10000000 by
9589       # default) and relocated if they conflict, which is a slow very memory
9590       # consuming and fragmenting process.  To avoid this, we pick a random,
9591       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9592       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9593       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9594       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9595       ;;
9596
9597     gnu* | linux* | k*bsd*-gnu)
9598       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9599         tmp_addflag=
9600         case $cc_basename,$host_cpu in
9601         pgcc*)                          # Portland Group C compiler
9602           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9603           tmp_addflag=' $pic_flag'
9604           ;;
9605         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9606           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9607           tmp_addflag=' $pic_flag -Mnomain' ;;
9608         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9609           tmp_addflag=' -i_dynamic' ;;
9610         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9611           tmp_addflag=' -i_dynamic -nofor_main' ;;
9612         ifc* | ifort*)                  # Intel Fortran compiler
9613           tmp_addflag=' -nofor_main' ;;
9614         esac
9615         case `$CC -V 2>&1 | sed 5q` in
9616         *Sun\ C*)                       # Sun C 5.9
9617           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9618           tmp_sharedflag='-G' ;;
9619         *Sun\ F*)                       # Sun Fortran 8.3
9620           tmp_sharedflag='-G' ;;
9621         *)
9622           tmp_sharedflag='-shared' ;;
9623         esac
9624         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9625
9626         if test $supports_anon_versioning = yes; then
9627           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9628   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9629   $echo "local: *; };" >> $output_objdir/$libname.ver~
9630           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9631         fi
9632       else
9633         ld_shlibs=no
9634       fi
9635       ;;
9636
9637     netbsd*)
9638       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9639         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9640         wlarc=
9641       else
9642         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9644       fi
9645       ;;
9646
9647     solaris*)
9648       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9649         ld_shlibs=no
9650         cat <<EOF 1>&2
9651
9652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9653 *** create shared libraries on Solaris systems.  Therefore, libtool
9654 *** is disabling shared libraries support.  We urge you to upgrade GNU
9655 *** binutils to release 2.9.1 or newer.  Another option is to modify
9656 *** your PATH or compiler configuration so that the native linker is
9657 *** used, and then restart.
9658
9659 EOF
9660       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9661         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9663       else
9664         ld_shlibs=no
9665       fi
9666       ;;
9667
9668     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9669       case `$LD -v 2>&1` in
9670         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9671         ld_shlibs=no
9672         cat <<_LT_EOF 1>&2
9673
9674 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9675 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9676 *** is disabling shared libraries support.  We urge you to upgrade GNU
9677 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9678 *** your PATH or compiler configuration so that the native linker is
9679 *** used, and then restart.
9680
9681 _LT_EOF
9682         ;;
9683         *)
9684           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9685             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9686             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9687             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9688           else
9689             ld_shlibs=no
9690           fi
9691         ;;
9692       esac
9693       ;;
9694
9695     sunos4*)
9696       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9697       wlarc=
9698       hardcode_direct=yes
9699       hardcode_shlibpath_var=no
9700       ;;
9701
9702     *)
9703       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9704         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9705         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9706       else
9707         ld_shlibs=no
9708       fi
9709       ;;
9710     esac
9711
9712     if test "$ld_shlibs" = no; then
9713       runpath_var=
9714       hardcode_libdir_flag_spec=
9715       export_dynamic_flag_spec=
9716       whole_archive_flag_spec=
9717     fi
9718   else
9719     # PORTME fill in a description of your system's linker (not GNU ld)
9720     case $host_os in
9721     aix3*)
9722       allow_undefined_flag=unsupported
9723       always_export_symbols=yes
9724       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'
9725       # Note: this linker hardcodes the directories in LIBPATH if there
9726       # are no directories specified by -L.
9727       hardcode_minus_L=yes
9728       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9729         # Neither direct hardcoding nor static linking is supported with a
9730         # broken collect2.
9731         hardcode_direct=unsupported
9732       fi
9733       ;;
9734
9735     aix[4-9]*)
9736       if test "$host_cpu" = ia64; then
9737         # On IA64, the linker does run time linking by default, so we don't
9738         # have to do anything special.
9739         aix_use_runtimelinking=no
9740         exp_sym_flag='-Bexport'
9741         no_entry_flag=""
9742       else
9743         # If we're using GNU nm, then we don't want the "-C" option.
9744         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9745         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9746           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'
9747         else
9748           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'
9749         fi
9750         aix_use_runtimelinking=no
9751
9752         # Test if we are trying to use run time linking or normal
9753         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9754         # need to do runtime linking.
9755         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9756           for ld_flag in $LDFLAGS; do
9757           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9758             aix_use_runtimelinking=yes
9759             break
9760           fi
9761           done
9762           ;;
9763         esac
9764
9765         exp_sym_flag='-bexport'
9766         no_entry_flag='-bnoentry'
9767       fi
9768
9769       # When large executables or shared objects are built, AIX ld can
9770       # have problems creating the table of contents.  If linking a library
9771       # or program results in "error TOC overflow" add -mminimal-toc to
9772       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9773       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9774
9775       archive_cmds=''
9776       hardcode_direct=yes
9777       hardcode_libdir_separator=':'
9778       link_all_deplibs=yes
9779
9780       if test "$GCC" = yes; then
9781         case $host_os in aix4.[012]|aix4.[012].*)
9782         # We only want to do this on AIX 4.2 and lower, the check
9783         # below for broken collect2 doesn't work under 4.3+
9784           collect2name=`${CC} -print-prog-name=collect2`
9785           if test -f "$collect2name" && \
9786            strings "$collect2name" | grep resolve_lib_name >/dev/null
9787           then
9788           # We have reworked collect2
9789           :
9790           else
9791           # We have old collect2
9792           hardcode_direct=unsupported
9793           # It fails to find uninstalled libraries when the uninstalled
9794           # path is not listed in the libpath.  Setting hardcode_minus_L
9795           # to unsupported forces relinking
9796           hardcode_minus_L=yes
9797           hardcode_libdir_flag_spec='-L$libdir'
9798           hardcode_libdir_separator=
9799           fi
9800           ;;
9801         esac
9802         shared_flag='-shared'
9803         if test "$aix_use_runtimelinking" = yes; then
9804           shared_flag="$shared_flag "'${wl}-G'
9805         fi
9806       else
9807         # not using gcc
9808         if test "$host_cpu" = ia64; then
9809         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9810         # chokes on -Wl,-G. The following line is correct:
9811           shared_flag='-G'
9812         else
9813           if test "$aix_use_runtimelinking" = yes; then
9814             shared_flag='${wl}-G'
9815           else
9816             shared_flag='${wl}-bM:SRE'
9817           fi
9818         fi
9819       fi
9820
9821       # It seems that -bexpall does not export symbols beginning with
9822       # underscore (_), so it is better to generate a list of symbols to export.
9823       always_export_symbols=yes
9824       if test "$aix_use_runtimelinking" = yes; then
9825         # Warning - without using the other runtime loading flags (-brtl),
9826         # -berok will link without error, but may produce a broken library.
9827         allow_undefined_flag='-berok'
9828        # Determine the default libpath from the value encoded in an empty executable.
9829        cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835
9836 int
9837 main ()
9838 {
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } && {
9858          test -z "$ac_c_werror_flag" ||
9859          test ! -s conftest.err
9860        } && test -s conftest$ac_exeext &&
9861        $as_test_x conftest$ac_exeext; then
9862
9863 lt_aix_libpath_sed='
9864     /Import File Strings/,/^$/ {
9865         /^0/ {
9866             s/^0  *\(.*\)$/\1/
9867             p
9868         }
9869     }'
9870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871 # Check for a 64-bit object if we didn't find anything.
9872 if test -z "$aix_libpath"; then
9873   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874 fi
9875 else
9876   echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879
9880 fi
9881
9882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9883       conftest$ac_exeext conftest.$ac_ext
9884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9885
9886        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9887         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9888        else
9889         if test "$host_cpu" = ia64; then
9890           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9891           allow_undefined_flag="-z nodefs"
9892           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9893         else
9894          # Determine the default libpath from the value encoded in an empty executable.
9895          cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901
9902 int
9903 main ()
9904 {
9905
9906   ;
9907   return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (ac_try="$ac_link"
9912 case "(($ac_try" in
9913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914   *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917   (eval "$ac_link") 2>conftest.er1
9918   ac_status=$?
9919   grep -v '^ *+' conftest.er1 >conftest.err
9920   rm -f conftest.er1
9921   cat conftest.err >&5
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } && {
9924          test -z "$ac_c_werror_flag" ||
9925          test ! -s conftest.err
9926        } && test -s conftest$ac_exeext &&
9927        $as_test_x conftest$ac_exeext; then
9928
9929 lt_aix_libpath_sed='
9930     /Import File Strings/,/^$/ {
9931         /^0/ {
9932             s/^0  *\(.*\)$/\1/
9933             p
9934         }
9935     }'
9936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9937 # Check for a 64-bit object if we didn't find anything.
9938 if test -z "$aix_libpath"; then
9939   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9940 fi
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945
9946 fi
9947
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949       conftest$ac_exeext conftest.$ac_ext
9950 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9951
9952          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9953           # Warning - without using the other run time loading flags,
9954           # -berok will link without error, but may produce a broken library.
9955           no_undefined_flag=' ${wl}-bernotok'
9956           allow_undefined_flag=' ${wl}-berok'
9957           # Exported symbols can be pulled into shared objects from archives
9958           whole_archive_flag_spec='$convenience'
9959           archive_cmds_need_lc=yes
9960           # This is similar to how AIX traditionally builds its shared libraries.
9961           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9962         fi
9963       fi
9964       ;;
9965
9966     amigaos*)
9967       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)'
9968       hardcode_libdir_flag_spec='-L$libdir'
9969       hardcode_minus_L=yes
9970       # see comment about different semantics on the GNU ld section
9971       ld_shlibs=no
9972       ;;
9973
9974     bsdi[45]*)
9975       export_dynamic_flag_spec=-rdynamic
9976       ;;
9977
9978     cygwin* | mingw* | pw32*)
9979       # When not using gcc, we currently assume that we are using
9980       # Microsoft Visual C++.
9981       # hardcode_libdir_flag_spec is actually meaningless, as there is
9982       # no search path for DLLs.
9983       hardcode_libdir_flag_spec=' '
9984       allow_undefined_flag=unsupported
9985       # Tell ltmain to make .lib files, not .a files.
9986       libext=lib
9987       # Tell ltmain to make .dll files, not .so files.
9988       shrext_cmds=".dll"
9989       # FIXME: Setting linknames here is a bad hack.
9990       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9991       # The linker will automatically build a .lib file if we build a DLL.
9992       old_archive_From_new_cmds='true'
9993       # FIXME: Should let the user specify the lib program.
9994       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9995       fix_srcfile_path='`cygpath -w "$srcfile"`'
9996       enable_shared_with_static_runtimes=yes
9997       ;;
9998
9999     darwin* | rhapsody*)
10000       case $host_os in
10001         rhapsody* | darwin1.[012])
10002          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10003          ;;
10004        *) # Darwin 1.3 on
10005          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10006            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10007          else
10008            case ${MACOSX_DEPLOYMENT_TARGET} in
10009              10.[012])
10010                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10011                ;;
10012              10.*)
10013                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10014                ;;
10015            esac
10016          fi
10017          ;;
10018       esac
10019       archive_cmds_need_lc=no
10020       hardcode_direct=no
10021       hardcode_automatic=yes
10022       hardcode_shlibpath_var=unsupported
10023       whole_archive_flag_spec=''
10024       link_all_deplibs=yes
10025     if test "$GCC" = yes ; then
10026         output_verbose_link_cmd='echo'
10027         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10028         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10029         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10030         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10031     else
10032       case $cc_basename in
10033         xlc*)
10034          output_verbose_link_cmd='echo'
10035          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10036          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10037           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10038          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10039           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}'
10040           ;;
10041        *)
10042          ld_shlibs=no
10043           ;;
10044       esac
10045     fi
10046       ;;
10047
10048     dgux*)
10049       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050       hardcode_libdir_flag_spec='-L$libdir'
10051       hardcode_shlibpath_var=no
10052       ;;
10053
10054     freebsd1*)
10055       ld_shlibs=no
10056       ;;
10057
10058     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10059     # support.  Future versions do this automatically, but an explicit c++rt0.o
10060     # does not break anything, and helps significantly (at the cost of a little
10061     # extra space).
10062     freebsd2.2*)
10063       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10064       hardcode_libdir_flag_spec='-R$libdir'
10065       hardcode_direct=yes
10066       hardcode_shlibpath_var=no
10067       ;;
10068
10069     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10070     freebsd2*)
10071       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10072       hardcode_direct=yes
10073       hardcode_minus_L=yes
10074       hardcode_shlibpath_var=no
10075       ;;
10076
10077     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10078     freebsd* | dragonfly*)
10079       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10080       hardcode_libdir_flag_spec='-R$libdir'
10081       hardcode_direct=yes
10082       hardcode_shlibpath_var=no
10083       ;;
10084
10085     hpux9*)
10086       if test "$GCC" = yes; then
10087         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'
10088       else
10089         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'
10090       fi
10091       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10092       hardcode_libdir_separator=:
10093       hardcode_direct=yes
10094
10095       # hardcode_minus_L: Not really in the search PATH,
10096       # but as the default location of the library.
10097       hardcode_minus_L=yes
10098       export_dynamic_flag_spec='${wl}-E'
10099       ;;
10100
10101     hpux10*)
10102       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10103         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10104       else
10105         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10106       fi
10107       if test "$with_gnu_ld" = no; then
10108         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10109         hardcode_libdir_separator=:
10110
10111         hardcode_direct=yes
10112         export_dynamic_flag_spec='${wl}-E'
10113
10114         # hardcode_minus_L: Not really in the search PATH,
10115         # but as the default location of the library.
10116         hardcode_minus_L=yes
10117       fi
10118       ;;
10119
10120     hpux11*)
10121       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10122         case $host_cpu in
10123         hppa*64*)
10124           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10125           ;;
10126         ia64*)
10127           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10128           ;;
10129         *)
10130           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131           ;;
10132         esac
10133       else
10134         case $host_cpu in
10135         hppa*64*)
10136           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10137           ;;
10138         ia64*)
10139           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10140           ;;
10141         *)
10142           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10143           ;;
10144         esac
10145       fi
10146       if test "$with_gnu_ld" = no; then
10147         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10148         hardcode_libdir_separator=:
10149
10150         case $host_cpu in
10151         hppa*64*|ia64*)
10152           hardcode_libdir_flag_spec_ld='+b $libdir'
10153           hardcode_direct=no
10154           hardcode_shlibpath_var=no
10155           ;;
10156         *)
10157           hardcode_direct=yes
10158           export_dynamic_flag_spec='${wl}-E'
10159
10160           # hardcode_minus_L: Not really in the search PATH,
10161           # but as the default location of the library.
10162           hardcode_minus_L=yes
10163           ;;
10164         esac
10165       fi
10166       ;;
10167
10168     irix5* | irix6* | nonstopux*)
10169       if test "$GCC" = yes; then
10170         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'
10171       else
10172         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'
10173         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10174       fi
10175       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10176       hardcode_libdir_separator=:
10177       link_all_deplibs=yes
10178       ;;
10179
10180     netbsd*)
10181       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10182         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10183       else
10184         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10185       fi
10186       hardcode_libdir_flag_spec='-R$libdir'
10187       hardcode_direct=yes
10188       hardcode_shlibpath_var=no
10189       ;;
10190
10191     newsos6)
10192       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193       hardcode_direct=yes
10194       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195       hardcode_libdir_separator=:
10196       hardcode_shlibpath_var=no
10197       ;;
10198
10199     openbsd*)
10200       if test -f /usr/libexec/ld.so; then
10201         hardcode_direct=yes
10202         hardcode_shlibpath_var=no
10203         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10204           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10205           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10206           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10207           export_dynamic_flag_spec='${wl}-E'
10208         else
10209           case $host_os in
10210            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10211              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10212              hardcode_libdir_flag_spec='-R$libdir'
10213              ;;
10214            *)
10215              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10216              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10217              ;;
10218           esac
10219         fi
10220       else
10221         ld_shlibs=no
10222       fi
10223       ;;
10224
10225     os2*)
10226       hardcode_libdir_flag_spec='-L$libdir'
10227       hardcode_minus_L=yes
10228       allow_undefined_flag=unsupported
10229       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'
10230       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10231       ;;
10232
10233     osf3*)
10234       if test "$GCC" = yes; then
10235         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10236         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'
10237       else
10238         allow_undefined_flag=' -expect_unresolved \*'
10239         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'
10240       fi
10241       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10242       hardcode_libdir_separator=:
10243       ;;
10244
10245     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10246       if test "$GCC" = yes; then
10247         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10248         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'
10249         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10250       else
10251         allow_undefined_flag=' -expect_unresolved \*'
10252         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'
10253         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10254         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10255
10256         # Both c and cxx compiler support -rpath directly
10257         hardcode_libdir_flag_spec='-rpath $libdir'
10258       fi
10259       hardcode_libdir_separator=:
10260       ;;
10261
10262     solaris*)
10263       no_undefined_flag=' -z text'
10264       if test "$GCC" = yes; then
10265         wlarc='${wl}'
10266         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10267         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10268           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10269       else
10270         wlarc=''
10271         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10273         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10274       fi
10275       hardcode_libdir_flag_spec='-R$libdir'
10276       hardcode_shlibpath_var=no
10277       case $host_os in
10278       solaris2.[0-5] | solaris2.[0-5].*) ;;
10279       *)
10280         # The compiler driver will combine and reorder linker options,
10281         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10282         # but is careful enough not to reorder.
10283         # Supported since Solaris 2.6 (maybe 2.5.1?)
10284         if test "$GCC" = yes; then
10285           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10286         else
10287           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10288         fi
10289         ;;
10290       esac
10291       link_all_deplibs=yes
10292       ;;
10293
10294     sunos4*)
10295       if test "x$host_vendor" = xsequent; then
10296         # Use $CC to link under sequent, because it throws in some extra .o
10297         # files that make .init and .fini sections work.
10298         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10299       else
10300         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10301       fi
10302       hardcode_libdir_flag_spec='-L$libdir'
10303       hardcode_direct=yes
10304       hardcode_minus_L=yes
10305       hardcode_shlibpath_var=no
10306       ;;
10307
10308     sysv4)
10309       case $host_vendor in
10310         sni)
10311           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312           hardcode_direct=yes # is this really true???
10313         ;;
10314         siemens)
10315           ## LD is ld it makes a PLAMLIB
10316           ## CC just makes a GrossModule.
10317           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10318           reload_cmds='$CC -r -o $output$reload_objs'
10319           hardcode_direct=no
10320         ;;
10321         motorola)
10322           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10324         ;;
10325       esac
10326       runpath_var='LD_RUN_PATH'
10327       hardcode_shlibpath_var=no
10328       ;;
10329
10330     sysv4.3*)
10331       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10332       hardcode_shlibpath_var=no
10333       export_dynamic_flag_spec='-Bexport'
10334       ;;
10335
10336     sysv4*MP*)
10337       if test -d /usr/nec; then
10338         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339         hardcode_shlibpath_var=no
10340         runpath_var=LD_RUN_PATH
10341         hardcode_runpath_var=yes
10342         ld_shlibs=yes
10343       fi
10344       ;;
10345
10346     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10347       no_undefined_flag='${wl}-z,text'
10348       archive_cmds_need_lc=no
10349       hardcode_shlibpath_var=no
10350       runpath_var='LD_RUN_PATH'
10351
10352       if test "$GCC" = yes; then
10353         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355       else
10356         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358       fi
10359       ;;
10360
10361     sysv5* | sco3.2v5* | sco5v6*)
10362       # Note: We can NOT use -z defs as we might desire, because we do not
10363       # link with -lc, and that would cause any symbols used from libc to
10364       # always be unresolved, which means just about no library would
10365       # ever link correctly.  If we're not using GNU ld we use -z text
10366       # though, which does catch some bad symbols but isn't as heavy-handed
10367       # as -z defs.
10368       no_undefined_flag='${wl}-z,text'
10369       allow_undefined_flag='${wl}-z,nodefs'
10370       archive_cmds_need_lc=no
10371       hardcode_shlibpath_var=no
10372       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10373       hardcode_libdir_separator=':'
10374       link_all_deplibs=yes
10375       export_dynamic_flag_spec='${wl}-Bexport'
10376       runpath_var='LD_RUN_PATH'
10377
10378       if test "$GCC" = yes; then
10379         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10380         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10381       else
10382         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10383         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10384       fi
10385       ;;
10386
10387     uts4*)
10388       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389       hardcode_libdir_flag_spec='-L$libdir'
10390       hardcode_shlibpath_var=no
10391       ;;
10392
10393     *)
10394       ld_shlibs=no
10395       ;;
10396     esac
10397   fi
10398
10399 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10400 echo "${ECHO_T}$ld_shlibs" >&6; }
10401 test "$ld_shlibs" = no && can_build_shared=no
10402
10403 #
10404 # Do we need to explicitly link libc?
10405 #
10406 case "x$archive_cmds_need_lc" in
10407 x|xyes)
10408   # Assume -lc should be added
10409   archive_cmds_need_lc=yes
10410
10411   if test "$enable_shared" = yes && test "$GCC" = yes; then
10412     case $archive_cmds in
10413     *'~'*)
10414       # FIXME: we may have to deal with multi-command sequences.
10415       ;;
10416     '$CC '*)
10417       # Test whether the compiler implicitly links with -lc since on some
10418       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10419       # to ld, don't add -lc before -lgcc.
10420       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10421 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10422       $rm conftest*
10423       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10424
10425       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426   (eval $ac_compile) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); } 2>conftest.err; then
10430         soname=conftest
10431         lib=conftest
10432         libobjs=conftest.$ac_objext
10433         deplibs=
10434         wl=$lt_prog_compiler_wl
10435         pic_flag=$lt_prog_compiler_pic
10436         compiler_flags=-v
10437         linker_flags=-v
10438         verstring=
10439         output_objdir=.
10440         libname=conftest
10441         lt_save_allow_undefined_flag=$allow_undefined_flag
10442         allow_undefined_flag=
10443         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10444   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); }
10448         then
10449           archive_cmds_need_lc=no
10450         else
10451           archive_cmds_need_lc=yes
10452         fi
10453         allow_undefined_flag=$lt_save_allow_undefined_flag
10454       else
10455         cat conftest.err 1>&5
10456       fi
10457       $rm conftest*
10458       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10459 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10460       ;;
10461     esac
10462   fi
10463   ;;
10464 esac
10465
10466 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10467 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10468 library_names_spec=
10469 libname_spec='lib$name'
10470 soname_spec=
10471 shrext_cmds=".so"
10472 postinstall_cmds=
10473 postuninstall_cmds=
10474 finish_cmds=
10475 finish_eval=
10476 shlibpath_var=
10477 shlibpath_overrides_runpath=unknown
10478 version_type=none
10479 dynamic_linker="$host_os ld.so"
10480 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10481
10482 if test "$GCC" = yes; then
10483   case $host_os in
10484     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10485     *) lt_awk_arg="/^libraries:/" ;;
10486   esac
10487   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10488   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10489     # if the path contains ";" then we assume it to be the separator
10490     # otherwise default to the standard path separator (i.e. ":") - it is
10491     # assumed that no part of a normal pathname contains ";" but that should
10492     # okay in the real world where ";" in dirpaths is itself problematic.
10493     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10494   else
10495     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10496   fi
10497   # Ok, now we have the path, separated by spaces, we can step through it
10498   # and add multilib dir if necessary.
10499   lt_tmp_lt_search_path_spec=
10500   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10501   for lt_sys_path in $lt_search_path_spec; do
10502     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10503       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10504     else
10505       test -d "$lt_sys_path" && \
10506         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10507     fi
10508   done
10509   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10510 BEGIN {RS=" "; FS="/|\n";} {
10511   lt_foo="";
10512   lt_count=0;
10513   for (lt_i = NF; lt_i > 0; lt_i--) {
10514     if ($lt_i != "" && $lt_i != ".") {
10515       if ($lt_i == "..") {
10516         lt_count++;
10517       } else {
10518         if (lt_count == 0) {
10519           lt_foo="/" $lt_i lt_foo;
10520         } else {
10521           lt_count--;
10522         }
10523       }
10524     }
10525   }
10526   if (lt_foo != "") { lt_freq[lt_foo]++; }
10527   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10528 }'`
10529   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10530 else
10531   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10532 fi
10533 need_lib_prefix=unknown
10534 hardcode_into_libs=no
10535
10536 # when you set need_version to no, make sure it does not cause -set_version
10537 # flags to be left without arguments
10538 need_version=unknown
10539
10540 case $host_os in
10541 aix3*)
10542   version_type=linux
10543   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10544   shlibpath_var=LIBPATH
10545
10546   # AIX 3 has no versioning support, so we append a major version to the name.
10547   soname_spec='${libname}${release}${shared_ext}$major'
10548   ;;
10549
10550 aix[4-9]*)
10551   version_type=linux
10552   need_lib_prefix=no
10553   need_version=no
10554   hardcode_into_libs=yes
10555   if test "$host_cpu" = ia64; then
10556     # AIX 5 supports IA64
10557     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10558     shlibpath_var=LD_LIBRARY_PATH
10559   else
10560     # With GCC up to 2.95.x, collect2 would create an import file
10561     # for dependence libraries.  The import file would start with
10562     # the line `#! .'.  This would cause the generated library to
10563     # depend on `.', always an invalid library.  This was fixed in
10564     # development snapshots of GCC prior to 3.0.
10565     case $host_os in
10566       aix4 | aix4.[01] | aix4.[01].*)
10567       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10568            echo ' yes '
10569            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10570         :
10571       else
10572         can_build_shared=no
10573       fi
10574       ;;
10575     esac
10576     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10577     # soname into executable. Probably we can add versioning support to
10578     # collect2, so additional links can be useful in future.
10579     if test "$aix_use_runtimelinking" = yes; then
10580       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10581       # instead of lib<name>.a to let people know that these are not
10582       # typical AIX shared libraries.
10583       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584     else
10585       # We preserve .a as extension for shared libraries through AIX4.2
10586       # and later when we are not doing run time linking.
10587       library_names_spec='${libname}${release}.a $libname.a'
10588       soname_spec='${libname}${release}${shared_ext}$major'
10589     fi
10590     shlibpath_var=LIBPATH
10591   fi
10592   ;;
10593
10594 amigaos*)
10595   library_names_spec='$libname.ixlibrary $libname.a'
10596   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10597   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'
10598   ;;
10599
10600 beos*)
10601   library_names_spec='${libname}${shared_ext}'
10602   dynamic_linker="$host_os ld.so"
10603   shlibpath_var=LIBRARY_PATH
10604   ;;
10605
10606 bsdi[45]*)
10607   version_type=linux
10608   need_version=no
10609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610   soname_spec='${libname}${release}${shared_ext}$major'
10611   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10612   shlibpath_var=LD_LIBRARY_PATH
10613   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10614   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10615   # the default ld.so.conf also contains /usr/contrib/lib and
10616   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10617   # libtool to hard-code these into programs
10618   ;;
10619
10620 cygwin* | mingw* | pw32*)
10621   version_type=windows
10622   shrext_cmds=".dll"
10623   need_version=no
10624   need_lib_prefix=no
10625
10626   case $GCC,$host_os in
10627   yes,cygwin* | yes,mingw* | yes,pw32*)
10628     library_names_spec='$libname.dll.a'
10629     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10630     postinstall_cmds='base_file=`basename \${file}`~
10631       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10632       dldir=$destdir/`dirname \$dlpath`~
10633       test -d \$dldir || mkdir -p \$dldir~
10634       $install_prog $dir/$dlname \$dldir/$dlname~
10635       chmod a+x \$dldir/$dlname'
10636     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10637       dlpath=$dir/\$dldll~
10638        $rm \$dlpath'
10639     shlibpath_overrides_runpath=yes
10640
10641     case $host_os in
10642     cygwin*)
10643       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10644       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10645       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10646       ;;
10647     mingw*)
10648       # MinGW DLLs use traditional 'lib' prefix
10649       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10650       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10651       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10652         # It is most probably a Windows format PATH printed by
10653         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10654         # path with ; separators, and with drive letters. We can handle the
10655         # drive letters (cygwin fileutils understands them), so leave them,
10656         # especially as we might pass files found there to a mingw objdump,
10657         # which wouldn't understand a cygwinified path. Ahh.
10658         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10659       else
10660         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10661       fi
10662       ;;
10663     pw32*)
10664       # pw32 DLLs use 'pw' prefix rather than 'lib'
10665       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10666       ;;
10667     esac
10668     ;;
10669
10670   *)
10671     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10672     ;;
10673   esac
10674   dynamic_linker='Win32 ld.exe'
10675   # FIXME: first we should search . and the directory the executable is in
10676   shlibpath_var=PATH
10677   ;;
10678
10679 darwin* | rhapsody*)
10680   dynamic_linker="$host_os dyld"
10681   version_type=darwin
10682   need_lib_prefix=no
10683   need_version=no
10684   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10685   soname_spec='${libname}${release}${major}$shared_ext'
10686   shlibpath_overrides_runpath=yes
10687   shlibpath_var=DYLD_LIBRARY_PATH
10688   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10689
10690   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10691   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10692   ;;
10693
10694 dgux*)
10695   version_type=linux
10696   need_lib_prefix=no
10697   need_version=no
10698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10699   soname_spec='${libname}${release}${shared_ext}$major'
10700   shlibpath_var=LD_LIBRARY_PATH
10701   ;;
10702
10703 freebsd1*)
10704   dynamic_linker=no
10705   ;;
10706
10707 freebsd* | dragonfly*)
10708   # DragonFly does not have aout.  When/if they implement a new
10709   # versioning mechanism, adjust this.
10710   if test -x /usr/bin/objformat; then
10711     objformat=`/usr/bin/objformat`
10712   else
10713     case $host_os in
10714     freebsd[123]*) objformat=aout ;;
10715     *) objformat=elf ;;
10716     esac
10717   fi
10718   # Handle Gentoo/FreeBSD as it was Linux
10719   case $host_vendor in
10720     gentoo)
10721       version_type=linux ;;
10722     *)
10723       version_type=freebsd-$objformat ;;
10724   esac
10725
10726   case $version_type in
10727     freebsd-elf*)
10728       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10729       need_version=no
10730       need_lib_prefix=no
10731       ;;
10732     freebsd-*)
10733       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10734       need_version=yes
10735       ;;
10736     linux)
10737       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10738       soname_spec='${libname}${release}${shared_ext}$major'
10739       need_lib_prefix=no
10740       need_version=no
10741       ;;
10742   esac
10743   shlibpath_var=LD_LIBRARY_PATH
10744   case $host_os in
10745   freebsd2*)
10746     shlibpath_overrides_runpath=yes
10747     ;;
10748   freebsd3.[01]* | freebsdelf3.[01]*)
10749     shlibpath_overrides_runpath=yes
10750     hardcode_into_libs=yes
10751     ;;
10752   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10753   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10754     shlibpath_overrides_runpath=no
10755     hardcode_into_libs=yes
10756     ;;
10757   *) # from 4.6 on, and DragonFly
10758     shlibpath_overrides_runpath=yes
10759     hardcode_into_libs=yes
10760     ;;
10761   esac
10762   ;;
10763
10764 gnu*)
10765   version_type=linux
10766   need_lib_prefix=no
10767   need_version=no
10768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10769   soname_spec='${libname}${release}${shared_ext}$major'
10770   shlibpath_var=LD_LIBRARY_PATH
10771   hardcode_into_libs=yes
10772   ;;
10773
10774 hpux9* | hpux10* | hpux11*)
10775   # Give a soname corresponding to the major version so that dld.sl refuses to
10776   # link against other versions.
10777   version_type=sunos
10778   need_lib_prefix=no
10779   need_version=no
10780   case $host_cpu in
10781   ia64*)
10782     shrext_cmds='.so'
10783     hardcode_into_libs=yes
10784     dynamic_linker="$host_os dld.so"
10785     shlibpath_var=LD_LIBRARY_PATH
10786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788     soname_spec='${libname}${release}${shared_ext}$major'
10789     if test "X$HPUX_IA64_MODE" = X32; then
10790       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10791     else
10792       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10793     fi
10794     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10795     ;;
10796    hppa*64*)
10797      shrext_cmds='.sl'
10798      hardcode_into_libs=yes
10799      dynamic_linker="$host_os dld.sl"
10800      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10801      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10802      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803      soname_spec='${libname}${release}${shared_ext}$major'
10804      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10805      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10806      ;;
10807    *)
10808     shrext_cmds='.sl'
10809     dynamic_linker="$host_os dld.sl"
10810     shlibpath_var=SHLIB_PATH
10811     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813     soname_spec='${libname}${release}${shared_ext}$major'
10814     ;;
10815   esac
10816   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10817   postinstall_cmds='chmod 555 $lib'
10818   ;;
10819
10820 interix[3-9]*)
10821   version_type=linux
10822   need_lib_prefix=no
10823   need_version=no
10824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10825   soname_spec='${libname}${release}${shared_ext}$major'
10826   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10827   shlibpath_var=LD_LIBRARY_PATH
10828   shlibpath_overrides_runpath=no
10829   hardcode_into_libs=yes
10830   ;;
10831
10832 irix5* | irix6* | nonstopux*)
10833   case $host_os in
10834     nonstopux*) version_type=nonstopux ;;
10835     *)
10836         if test "$lt_cv_prog_gnu_ld" = yes; then
10837                 version_type=linux
10838         else
10839                 version_type=irix
10840         fi ;;
10841   esac
10842   need_lib_prefix=no
10843   need_version=no
10844   soname_spec='${libname}${release}${shared_ext}$major'
10845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10846   case $host_os in
10847   irix5* | nonstopux*)
10848     libsuff= shlibsuff=
10849     ;;
10850   *)
10851     case $LD in # libtool.m4 will add one of these switches to LD
10852     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10853       libsuff= shlibsuff= libmagic=32-bit;;
10854     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10855       libsuff=32 shlibsuff=N32 libmagic=N32;;
10856     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10857       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10858     *) libsuff= shlibsuff= libmagic=never-match;;
10859     esac
10860     ;;
10861   esac
10862   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10863   shlibpath_overrides_runpath=no
10864   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10865   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10866   hardcode_into_libs=yes
10867   ;;
10868
10869 # No shared lib support for Linux oldld, aout, or coff.
10870 linux*oldld* | linux*aout* | linux*coff*)
10871   dynamic_linker=no
10872   ;;
10873
10874 # This must be Linux ELF.
10875 linux* | k*bsd*-gnu)
10876   version_type=linux
10877   need_lib_prefix=no
10878   need_version=no
10879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880   soname_spec='${libname}${release}${shared_ext}$major'
10881   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10882   shlibpath_var=LD_LIBRARY_PATH
10883   shlibpath_overrides_runpath=no
10884   # This implies no fast_install, which is unacceptable.
10885   # Some rework will be needed to allow for fast_install
10886   # before this can be enabled.
10887   hardcode_into_libs=yes
10888
10889   # Append ld.so.conf contents to the search path
10890   if test -f /etc/ld.so.conf; then
10891     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10892     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10893   fi
10894
10895   # We used to test for /lib/ld.so.1 and disable shared libraries on
10896   # powerpc, because MkLinux only supported shared libraries with the
10897   # GNU dynamic linker.  Since this was broken with cross compilers,
10898   # most powerpc-linux boxes support dynamic linking these days and
10899   # people can always --disable-shared, the test was removed, and we
10900   # assume the GNU/Linux dynamic linker is in use.
10901   dynamic_linker='GNU/Linux ld.so'
10902   ;;
10903
10904 netbsd*)
10905   version_type=sunos
10906   need_lib_prefix=no
10907   need_version=no
10908   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10910     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10911     dynamic_linker='NetBSD (a.out) ld.so'
10912   else
10913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10914     soname_spec='${libname}${release}${shared_ext}$major'
10915     dynamic_linker='NetBSD ld.elf_so'
10916   fi
10917   shlibpath_var=LD_LIBRARY_PATH
10918   shlibpath_overrides_runpath=yes
10919   hardcode_into_libs=yes
10920   ;;
10921
10922 newsos6)
10923   version_type=linux
10924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925   shlibpath_var=LD_LIBRARY_PATH
10926   shlibpath_overrides_runpath=yes
10927   ;;
10928
10929 nto-qnx*)
10930   version_type=linux
10931   need_lib_prefix=no
10932   need_version=no
10933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934   soname_spec='${libname}${release}${shared_ext}$major'
10935   shlibpath_var=LD_LIBRARY_PATH
10936   shlibpath_overrides_runpath=yes
10937   ;;
10938
10939 openbsd*)
10940   version_type=sunos
10941   sys_lib_dlsearch_path_spec="/usr/lib"
10942   need_lib_prefix=no
10943   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10944   case $host_os in
10945     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10946     *)                         need_version=no  ;;
10947   esac
10948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10952     case $host_os in
10953       openbsd2.[89] | openbsd2.[89].*)
10954         shlibpath_overrides_runpath=no
10955         ;;
10956       *)
10957         shlibpath_overrides_runpath=yes
10958         ;;
10959       esac
10960   else
10961     shlibpath_overrides_runpath=yes
10962   fi
10963   ;;
10964
10965 os2*)
10966   libname_spec='$name'
10967   shrext_cmds=".dll"
10968   need_lib_prefix=no
10969   library_names_spec='$libname${shared_ext} $libname.a'
10970   dynamic_linker='OS/2 ld.exe'
10971   shlibpath_var=LIBPATH
10972   ;;
10973
10974 osf3* | osf4* | osf5*)
10975   version_type=osf
10976   need_lib_prefix=no
10977   need_version=no
10978   soname_spec='${libname}${release}${shared_ext}$major'
10979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10982   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10983   ;;
10984
10985 rdos*)
10986   dynamic_linker=no
10987   ;;
10988
10989 solaris*)
10990   version_type=linux
10991   need_lib_prefix=no
10992   need_version=no
10993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994   soname_spec='${libname}${release}${shared_ext}$major'
10995   shlibpath_var=LD_LIBRARY_PATH
10996   shlibpath_overrides_runpath=yes
10997   hardcode_into_libs=yes
10998   # ldd complains unless libraries are executable
10999   postinstall_cmds='chmod +x $lib'
11000   ;;
11001
11002 sunos4*)
11003   version_type=sunos
11004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11005   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11006   shlibpath_var=LD_LIBRARY_PATH
11007   shlibpath_overrides_runpath=yes
11008   if test "$with_gnu_ld" = yes; then
11009     need_lib_prefix=no
11010   fi
11011   need_version=yes
11012   ;;
11013
11014 sysv4 | sysv4.3*)
11015   version_type=linux
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017   soname_spec='${libname}${release}${shared_ext}$major'
11018   shlibpath_var=LD_LIBRARY_PATH
11019   case $host_vendor in
11020     sni)
11021       shlibpath_overrides_runpath=no
11022       need_lib_prefix=no
11023       export_dynamic_flag_spec='${wl}-Blargedynsym'
11024       runpath_var=LD_RUN_PATH
11025       ;;
11026     siemens)
11027       need_lib_prefix=no
11028       ;;
11029     motorola)
11030       need_lib_prefix=no
11031       need_version=no
11032       shlibpath_overrides_runpath=no
11033       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11034       ;;
11035   esac
11036   ;;
11037
11038 sysv4*MP*)
11039   if test -d /usr/nec ;then
11040     version_type=linux
11041     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11042     soname_spec='$libname${shared_ext}.$major'
11043     shlibpath_var=LD_LIBRARY_PATH
11044   fi
11045   ;;
11046
11047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11048   version_type=freebsd-elf
11049   need_lib_prefix=no
11050   need_version=no
11051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11052   soname_spec='${libname}${release}${shared_ext}$major'
11053   shlibpath_var=LD_LIBRARY_PATH
11054   hardcode_into_libs=yes
11055   if test "$with_gnu_ld" = yes; then
11056     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11057     shlibpath_overrides_runpath=no
11058   else
11059     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11060     shlibpath_overrides_runpath=yes
11061     case $host_os in
11062       sco3.2v5*)
11063         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11064         ;;
11065     esac
11066   fi
11067   sys_lib_dlsearch_path_spec='/usr/lib'
11068   ;;
11069
11070 uts4*)
11071   version_type=linux
11072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11073   soname_spec='${libname}${release}${shared_ext}$major'
11074   shlibpath_var=LD_LIBRARY_PATH
11075   ;;
11076
11077 *)
11078   dynamic_linker=no
11079   ;;
11080 esac
11081 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11082 echo "${ECHO_T}$dynamic_linker" >&6; }
11083 test "$dynamic_linker" = no && can_build_shared=no
11084
11085 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11089 fi
11090
11091 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11092 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11096 fi
11097
11098 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11099
11100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11101 if test "$GCC" = yes; then
11102   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11103 fi
11104
11105 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11106 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11107 hardcode_action=
11108 if test -n "$hardcode_libdir_flag_spec" || \
11109    test -n "$runpath_var" || \
11110    test "X$hardcode_automatic" = "Xyes" ; then
11111
11112   # We can hardcode non-existant directories.
11113   if test "$hardcode_direct" != no &&
11114      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11115      # have to relink, otherwise we might link with an installed library
11116      # when we should be linking with a yet-to-be-installed one
11117      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11118      test "$hardcode_minus_L" != no; then
11119     # Linking always hardcodes the temporary library directory.
11120     hardcode_action=relink
11121   else
11122     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11123     hardcode_action=immediate
11124   fi
11125 else
11126   # We cannot hardcode anything, or else we can only hardcode existing
11127   # directories.
11128   hardcode_action=unsupported
11129 fi
11130 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11131 echo "${ECHO_T}$hardcode_action" >&6; }
11132
11133 if test "$hardcode_action" = relink; then
11134   # Fast installation is not supported
11135   enable_fast_install=no
11136 elif test "$shlibpath_overrides_runpath" = yes ||
11137      test "$enable_shared" = no; then
11138   # Fast installation is not necessary
11139   enable_fast_install=needless
11140 fi
11141
11142 striplib=
11143 old_striplib=
11144 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11145 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11146 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11147   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11148   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11149   { echo "$as_me:$LINENO: result: yes" >&5
11150 echo "${ECHO_T}yes" >&6; }
11151 else
11152 # FIXME - insert some real tests, host_os isn't really good enough
11153   case $host_os in
11154    darwin*)
11155        if test -n "$STRIP" ; then
11156          striplib="$STRIP -x"
11157          old_striplib="$STRIP -S"
11158          { echo "$as_me:$LINENO: result: yes" >&5
11159 echo "${ECHO_T}yes" >&6; }
11160        else
11161   { echo "$as_me:$LINENO: result: no" >&5
11162 echo "${ECHO_T}no" >&6; }
11163 fi
11164        ;;
11165    *)
11166   { echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6; }
11168     ;;
11169   esac
11170 fi
11171
11172 if test "x$enable_dlopen" != xyes; then
11173   enable_dlopen=unknown
11174   enable_dlopen_self=unknown
11175   enable_dlopen_self_static=unknown
11176 else
11177   lt_cv_dlopen=no
11178   lt_cv_dlopen_libs=
11179
11180   case $host_os in
11181   beos*)
11182     lt_cv_dlopen="load_add_on"
11183     lt_cv_dlopen_libs=
11184     lt_cv_dlopen_self=yes
11185     ;;
11186
11187   mingw* | pw32*)
11188     lt_cv_dlopen="LoadLibrary"
11189     lt_cv_dlopen_libs=
11190    ;;
11191
11192   cygwin*)
11193     lt_cv_dlopen="dlopen"
11194     lt_cv_dlopen_libs=
11195    ;;
11196
11197   darwin*)
11198   # if libdl is installed we need to link against it
11199     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11200 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11201 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   ac_check_lib_save_LIBS=$LIBS
11205 LIBS="-ldl  $LIBS"
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212
11213 /* Override any GCC internal prototype to avoid an error.
11214    Use char because int might match the return type of a GCC
11215    builtin and then its argument prototype would still apply.  */
11216 #ifdef __cplusplus
11217 extern "C"
11218 #endif
11219 char dlopen ();
11220 int
11221 main ()
11222 {
11223 return dlopen ();
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (ac_try="$ac_link"
11230 case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235   (eval "$ac_link") 2>conftest.er1
11236   ac_status=$?
11237   grep -v '^ *+' conftest.er1 >conftest.err
11238   rm -f conftest.er1
11239   cat conftest.err >&5
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } && {
11242          test -z "$ac_c_werror_flag" ||
11243          test ! -s conftest.err
11244        } && test -s conftest$ac_exeext &&
11245        $as_test_x conftest$ac_exeext; then
11246   ac_cv_lib_dl_dlopen=yes
11247 else
11248   echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11250
11251         ac_cv_lib_dl_dlopen=no
11252 fi
11253
11254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11255       conftest$ac_exeext conftest.$ac_ext
11256 LIBS=$ac_check_lib_save_LIBS
11257 fi
11258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11260 if test $ac_cv_lib_dl_dlopen = yes; then
11261   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11262 else
11263
11264     lt_cv_dlopen="dyld"
11265     lt_cv_dlopen_libs=
11266     lt_cv_dlopen_self=yes
11267
11268 fi
11269
11270    ;;
11271
11272   *)
11273     { echo "$as_me:$LINENO: checking for shl_load" >&5
11274 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11275 if test "${ac_cv_func_shl_load+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11286 #define shl_load innocuous_shl_load
11287
11288 /* System header to define __stub macros and hopefully few prototypes,
11289     which can conflict with char shl_load (); below.
11290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11291     <limits.h> exists even on freestanding compilers.  */
11292
11293 #ifdef __STDC__
11294 # include <limits.h>
11295 #else
11296 # include <assert.h>
11297 #endif
11298
11299 #undef shl_load
11300
11301 /* Override any GCC internal prototype to avoid an error.
11302    Use char because int might match the return type of a GCC
11303    builtin and then its argument prototype would still apply.  */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char shl_load ();
11308 /* The GNU C library defines this for functions which it implements
11309     to always fail with ENOSYS.  Some functions are actually named
11310     something starting with __ and the normal name is an alias.  */
11311 #if defined __stub_shl_load || defined __stub___shl_load
11312 choke me
11313 #endif
11314
11315 int
11316 main ()
11317 {
11318 return shl_load ();
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (ac_try="$ac_link"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_link") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } && {
11337          test -z "$ac_c_werror_flag" ||
11338          test ! -s conftest.err
11339        } && test -s conftest$ac_exeext &&
11340        $as_test_x conftest$ac_exeext; then
11341   ac_cv_func_shl_load=yes
11342 else
11343   echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346         ac_cv_func_shl_load=no
11347 fi
11348
11349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11350       conftest$ac_exeext conftest.$ac_ext
11351 fi
11352 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11353 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11354 if test $ac_cv_func_shl_load = yes; then
11355   lt_cv_dlopen="shl_load"
11356 else
11357   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11358 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11359 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11360   echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362   ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-ldld  $LIBS"
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370
11371 /* Override any GCC internal prototype to avoid an error.
11372    Use char because int might match the return type of a GCC
11373    builtin and then its argument prototype would still apply.  */
11374 #ifdef __cplusplus
11375 extern "C"
11376 #endif
11377 char shl_load ();
11378 int
11379 main ()
11380 {
11381 return shl_load ();
11382   ;
11383   return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (ac_try="$ac_link"
11388 case "(($ac_try" in
11389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390   *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393   (eval "$ac_link") 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } && {
11400          test -z "$ac_c_werror_flag" ||
11401          test ! -s conftest.err
11402        } && test -s conftest$ac_exeext &&
11403        $as_test_x conftest$ac_exeext; then
11404   ac_cv_lib_dld_shl_load=yes
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409         ac_cv_lib_dld_shl_load=no
11410 fi
11411
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413       conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_lib_save_LIBS
11415 fi
11416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11417 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11418 if test $ac_cv_lib_dld_shl_load = yes; then
11419   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11420 else
11421   { echo "$as_me:$LINENO: checking for dlopen" >&5
11422 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11423 if test "${ac_cv_func_dlopen+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h.  */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h.  */
11432 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11434 #define dlopen innocuous_dlopen
11435
11436 /* System header to define __stub macros and hopefully few prototypes,
11437     which can conflict with char dlopen (); below.
11438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11439     <limits.h> exists even on freestanding compilers.  */
11440
11441 #ifdef __STDC__
11442 # include <limits.h>
11443 #else
11444 # include <assert.h>
11445 #endif
11446
11447 #undef dlopen
11448
11449 /* Override any GCC internal prototype to avoid an error.
11450    Use char because int might match the return type of a GCC
11451    builtin and then its argument prototype would still apply.  */
11452 #ifdef __cplusplus
11453 extern "C"
11454 #endif
11455 char dlopen ();
11456 /* The GNU C library defines this for functions which it implements
11457     to always fail with ENOSYS.  Some functions are actually named
11458     something starting with __ and the normal name is an alias.  */
11459 #if defined __stub_dlopen || defined __stub___dlopen
11460 choke me
11461 #endif
11462
11463 int
11464 main ()
11465 {
11466 return dlopen ();
11467   ;
11468   return 0;
11469 }
11470 _ACEOF
11471 rm -f conftest.$ac_objext conftest$ac_exeext
11472 if { (ac_try="$ac_link"
11473 case "(($ac_try" in
11474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475   *) ac_try_echo=$ac_try;;
11476 esac
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478   (eval "$ac_link") 2>conftest.er1
11479   ac_status=$?
11480   grep -v '^ *+' conftest.er1 >conftest.err
11481   rm -f conftest.er1
11482   cat conftest.err >&5
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } && {
11485          test -z "$ac_c_werror_flag" ||
11486          test ! -s conftest.err
11487        } && test -s conftest$ac_exeext &&
11488        $as_test_x conftest$ac_exeext; then
11489   ac_cv_func_dlopen=yes
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494         ac_cv_func_dlopen=no
11495 fi
11496
11497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11498       conftest$ac_exeext conftest.$ac_ext
11499 fi
11500 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11501 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11502 if test $ac_cv_func_dlopen = yes; then
11503   lt_cv_dlopen="dlopen"
11504 else
11505   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11506 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11507 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   ac_check_lib_save_LIBS=$LIBS
11511 LIBS="-ldl  $LIBS"
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518
11519 /* Override any GCC internal prototype to avoid an error.
11520    Use char because int might match the return type of a GCC
11521    builtin and then its argument prototype would still apply.  */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char dlopen ();
11526 int
11527 main ()
11528 {
11529 return dlopen ();
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
11536 case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_link") 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } && {
11548          test -z "$ac_c_werror_flag" ||
11549          test ! -s conftest.err
11550        } && test -s conftest$ac_exeext &&
11551        $as_test_x conftest$ac_exeext; then
11552   ac_cv_lib_dl_dlopen=yes
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557         ac_cv_lib_dl_dlopen=no
11558 fi
11559
11560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11561       conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11563 fi
11564 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11565 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11566 if test $ac_cv_lib_dl_dlopen = yes; then
11567   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11568 else
11569   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11570 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11571 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574   ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-lsvld  $LIBS"
11576 cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582
11583 /* Override any GCC internal prototype to avoid an error.
11584    Use char because int might match the return type of a GCC
11585    builtin and then its argument prototype would still apply.  */
11586 #ifdef __cplusplus
11587 extern "C"
11588 #endif
11589 char dlopen ();
11590 int
11591 main ()
11592 {
11593 return dlopen ();
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (ac_try="$ac_link"
11600 case "(($ac_try" in
11601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602   *) ac_try_echo=$ac_try;;
11603 esac
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605   (eval "$ac_link") 2>conftest.er1
11606   ac_status=$?
11607   grep -v '^ *+' conftest.er1 >conftest.err
11608   rm -f conftest.er1
11609   cat conftest.err >&5
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } && {
11612          test -z "$ac_c_werror_flag" ||
11613          test ! -s conftest.err
11614        } && test -s conftest$ac_exeext &&
11615        $as_test_x conftest$ac_exeext; then
11616   ac_cv_lib_svld_dlopen=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621         ac_cv_lib_svld_dlopen=no
11622 fi
11623
11624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11625       conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11630 if test $ac_cv_lib_svld_dlopen = yes; then
11631   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11632 else
11633   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-ldld  $LIBS"
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648    Use char because int might match the return type of a GCC
11649    builtin and then its argument prototype would still apply.  */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dld_link ();
11654 int
11655 main ()
11656 {
11657 return dld_link ();
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (ac_try="$ac_link"
11664 case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_link") 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } && {
11676          test -z "$ac_c_werror_flag" ||
11677          test ! -s conftest.err
11678        } && test -s conftest$ac_exeext &&
11679        $as_test_x conftest$ac_exeext; then
11680   ac_cv_lib_dld_dld_link=yes
11681 else
11682   echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685         ac_cv_lib_dld_dld_link=no
11686 fi
11687
11688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11689       conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11691 fi
11692 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11694 if test $ac_cv_lib_dld_dld_link = yes; then
11695   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11696 fi
11697
11698
11699 fi
11700
11701
11702 fi
11703
11704
11705 fi
11706
11707
11708 fi
11709
11710
11711 fi
11712
11713     ;;
11714   esac
11715
11716   if test "x$lt_cv_dlopen" != xno; then
11717     enable_dlopen=yes
11718   else
11719     enable_dlopen=no
11720   fi
11721
11722   case $lt_cv_dlopen in
11723   dlopen)
11724     save_CPPFLAGS="$CPPFLAGS"
11725     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11726
11727     save_LDFLAGS="$LDFLAGS"
11728     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11729
11730     save_LIBS="$LIBS"
11731     LIBS="$lt_cv_dlopen_libs $LIBS"
11732
11733     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11735 if test "${lt_cv_dlopen_self+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738           if test "$cross_compiling" = yes; then :
11739   lt_cv_dlopen_self=cross
11740 else
11741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742   lt_status=$lt_dlunknown
11743   cat > conftest.$ac_ext <<EOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11746
11747 #if HAVE_DLFCN_H
11748 #include <dlfcn.h>
11749 #endif
11750
11751 #include <stdio.h>
11752
11753 #ifdef RTLD_GLOBAL
11754 #  define LT_DLGLOBAL           RTLD_GLOBAL
11755 #else
11756 #  ifdef DL_GLOBAL
11757 #    define LT_DLGLOBAL         DL_GLOBAL
11758 #  else
11759 #    define LT_DLGLOBAL         0
11760 #  endif
11761 #endif
11762
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764    find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11766 #  ifdef RTLD_LAZY
11767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11768 #  else
11769 #    ifdef DL_LAZY
11770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11771 #    else
11772 #      ifdef RTLD_NOW
11773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11774 #      else
11775 #        ifdef DL_NOW
11776 #          define LT_DLLAZY_OR_NOW      DL_NOW
11777 #        else
11778 #          define LT_DLLAZY_OR_NOW      0
11779 #        endif
11780 #      endif
11781 #    endif
11782 #  endif
11783 #endif
11784
11785 #ifdef __cplusplus
11786 extern "C" void exit (int);
11787 #endif
11788
11789 void fnord() { int i=42;}
11790 int main ()
11791 {
11792   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11793   int status = $lt_dlunknown;
11794
11795   if (self)
11796     {
11797       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11798       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799       /* dlclose (self); */
11800     }
11801   else
11802     puts (dlerror ());
11803
11804     exit (status);
11805 }
11806 EOF
11807   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808   (eval $ac_link) 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11812     (./conftest; exit; ) >&5 2>/dev/null
11813     lt_status=$?
11814     case x$lt_status in
11815       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11816       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11817       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11818     esac
11819   else :
11820     # compilation failed
11821     lt_cv_dlopen_self=no
11822   fi
11823 fi
11824 rm -fr conftest*
11825
11826
11827 fi
11828 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11829 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11830
11831     if test "x$lt_cv_dlopen_self" = xyes; then
11832       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11833       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11834 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11835 if test "${lt_cv_dlopen_self_static+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838           if test "$cross_compiling" = yes; then :
11839   lt_cv_dlopen_self_static=cross
11840 else
11841   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11842   lt_status=$lt_dlunknown
11843   cat > conftest.$ac_ext <<EOF
11844 #line 11844 "configure"
11845 #include "confdefs.h"
11846
11847 #if HAVE_DLFCN_H
11848 #include <dlfcn.h>
11849 #endif
11850
11851 #include <stdio.h>
11852
11853 #ifdef RTLD_GLOBAL
11854 #  define LT_DLGLOBAL           RTLD_GLOBAL
11855 #else
11856 #  ifdef DL_GLOBAL
11857 #    define LT_DLGLOBAL         DL_GLOBAL
11858 #  else
11859 #    define LT_DLGLOBAL         0
11860 #  endif
11861 #endif
11862
11863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11864    find out it does not work in some platform. */
11865 #ifndef LT_DLLAZY_OR_NOW
11866 #  ifdef RTLD_LAZY
11867 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11868 #  else
11869 #    ifdef DL_LAZY
11870 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11871 #    else
11872 #      ifdef RTLD_NOW
11873 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11874 #      else
11875 #        ifdef DL_NOW
11876 #          define LT_DLLAZY_OR_NOW      DL_NOW
11877 #        else
11878 #          define LT_DLLAZY_OR_NOW      0
11879 #        endif
11880 #      endif
11881 #    endif
11882 #  endif
11883 #endif
11884
11885 #ifdef __cplusplus
11886 extern "C" void exit (int);
11887 #endif
11888
11889 void fnord() { int i=42;}
11890 int main ()
11891 {
11892   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11893   int status = $lt_dlunknown;
11894
11895   if (self)
11896     {
11897       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11898       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11899       /* dlclose (self); */
11900     }
11901   else
11902     puts (dlerror ());
11903
11904     exit (status);
11905 }
11906 EOF
11907   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908   (eval $ac_link) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11912     (./conftest; exit; ) >&5 2>/dev/null
11913     lt_status=$?
11914     case x$lt_status in
11915       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11916       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11917       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11918     esac
11919   else :
11920     # compilation failed
11921     lt_cv_dlopen_self_static=no
11922   fi
11923 fi
11924 rm -fr conftest*
11925
11926
11927 fi
11928 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11929 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11930     fi
11931
11932     CPPFLAGS="$save_CPPFLAGS"
11933     LDFLAGS="$save_LDFLAGS"
11934     LIBS="$save_LIBS"
11935     ;;
11936   esac
11937
11938   case $lt_cv_dlopen_self in
11939   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11940   *) enable_dlopen_self=unknown ;;
11941   esac
11942
11943   case $lt_cv_dlopen_self_static in
11944   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11945   *) enable_dlopen_self_static=unknown ;;
11946   esac
11947 fi
11948
11949
11950 # Report which library types will actually be built
11951 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11952 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11953 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11954 echo "${ECHO_T}$can_build_shared" >&6; }
11955
11956 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11957 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11958 test "$can_build_shared" = "no" && enable_shared=no
11959
11960 # On AIX, shared libraries and static libraries use the same namespace, and
11961 # are all built from PIC.
11962 case $host_os in
11963 aix3*)
11964   test "$enable_shared" = yes && enable_static=no
11965   if test -n "$RANLIB"; then
11966     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11967     postinstall_cmds='$RANLIB $lib'
11968   fi
11969   ;;
11970
11971 aix[4-9]*)
11972   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11973     test "$enable_shared" = yes && enable_static=no
11974   fi
11975     ;;
11976 esac
11977 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11978 echo "${ECHO_T}$enable_shared" >&6; }
11979
11980 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11981 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11982 # Make sure either enable_shared or enable_static is yes.
11983 test "$enable_shared" = yes || enable_static=yes
11984 { echo "$as_me:$LINENO: result: $enable_static" >&5
11985 echo "${ECHO_T}$enable_static" >&6; }
11986
11987 # The else clause should only fire when bootstrapping the
11988 # libtool distribution, otherwise you forgot to ship ltmain.sh
11989 # with your package, and you will get complaints that there are
11990 # no rules to generate ltmain.sh.
11991 if test -f "$ltmain"; then
11992   # See if we are running on zsh, and set the options which allow our commands through
11993   # without removal of \ escapes.
11994   if test -n "${ZSH_VERSION+set}" ; then
11995     setopt NO_GLOB_SUBST
11996   fi
11997   # Now quote all the things that may contain metacharacters while being
11998   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11999   # variables and quote the copies for generation of the libtool script.
12000   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12001     SED SHELL STRIP \
12002     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12003     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12004     deplibs_check_method reload_flag reload_cmds need_locks \
12005     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12006     lt_cv_sys_global_symbol_to_c_name_address \
12007     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12008     old_postinstall_cmds old_postuninstall_cmds \
12009     compiler \
12010     CC \
12011     LD \
12012     lt_prog_compiler_wl \
12013     lt_prog_compiler_pic \
12014     lt_prog_compiler_static \
12015     lt_prog_compiler_no_builtin_flag \
12016     export_dynamic_flag_spec \
12017     thread_safe_flag_spec \
12018     whole_archive_flag_spec \
12019     enable_shared_with_static_runtimes \
12020     old_archive_cmds \
12021     old_archive_from_new_cmds \
12022     predep_objects \
12023     postdep_objects \
12024     predeps \
12025     postdeps \
12026     compiler_lib_search_path \
12027     compiler_lib_search_dirs \
12028     archive_cmds \
12029     archive_expsym_cmds \
12030     postinstall_cmds \
12031     postuninstall_cmds \
12032     old_archive_from_expsyms_cmds \
12033     allow_undefined_flag \
12034     no_undefined_flag \
12035     export_symbols_cmds \
12036     hardcode_libdir_flag_spec \
12037     hardcode_libdir_flag_spec_ld \
12038     hardcode_libdir_separator \
12039     hardcode_automatic \
12040     module_cmds \
12041     module_expsym_cmds \
12042     lt_cv_prog_compiler_c_o \
12043     fix_srcfile_path \
12044     exclude_expsyms \
12045     include_expsyms; do
12046
12047     case $var in
12048     old_archive_cmds | \
12049     old_archive_from_new_cmds | \
12050     archive_cmds | \
12051     archive_expsym_cmds | \
12052     module_cmds | \
12053     module_expsym_cmds | \
12054     old_archive_from_expsyms_cmds | \
12055     export_symbols_cmds | \
12056     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12057     postinstall_cmds | postuninstall_cmds | \
12058     old_postinstall_cmds | old_postuninstall_cmds | \
12059     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12060       # Double-quote double-evaled strings.
12061       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12062       ;;
12063     *)
12064       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12065       ;;
12066     esac
12067   done
12068
12069   case $lt_echo in
12070   *'\$0 --fallback-echo"')
12071     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12072     ;;
12073   esac
12074
12075 cfgfile="${ofile}T"
12076   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12077   $rm -f "$cfgfile"
12078   { echo "$as_me:$LINENO: creating $ofile" >&5
12079 echo "$as_me: creating $ofile" >&6;}
12080
12081   cat <<__EOF__ >> "$cfgfile"
12082 #! $SHELL
12083
12084 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12085 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12086 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12087 #
12088 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12089 # Free Software Foundation, Inc.
12090 #
12091 # This file is part of GNU Libtool:
12092 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12093 #
12094 # This program is free software; you can redistribute it and/or modify
12095 # it under the terms of the GNU General Public License as published by
12096 # the Free Software Foundation; either version 2 of the License, or
12097 # (at your option) any later version.
12098 #
12099 # This program is distributed in the hope that it will be useful, but
12100 # WITHOUT ANY WARRANTY; without even the implied warranty of
12101 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12102 # General Public License for more details.
12103 #
12104 # You should have received a copy of the GNU General Public License
12105 # along with this program; if not, write to the Free Software
12106 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12107 #
12108 # As a special exception to the GNU General Public License, if you
12109 # distribute this file as part of a program that contains a
12110 # configuration script generated by Autoconf, you may include it under
12111 # the same distribution terms that you use for the rest of that program.
12112
12113 # A sed program that does not truncate output.
12114 SED=$lt_SED
12115
12116 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12117 Xsed="$SED -e 1s/^X//"
12118
12119 # The HP-UX ksh and POSIX shell print the target directory to stdout
12120 # if CDPATH is set.
12121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12122
12123 # The names of the tagged configurations supported by this script.
12124 available_tags=
12125
12126 # ### BEGIN LIBTOOL CONFIG
12127
12128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12129
12130 # Shell to use when invoking shell scripts.
12131 SHELL=$lt_SHELL
12132
12133 # Whether or not to build shared libraries.
12134 build_libtool_libs=$enable_shared
12135
12136 # Whether or not to build static libraries.
12137 build_old_libs=$enable_static
12138
12139 # Whether or not to add -lc for building shared libraries.
12140 build_libtool_need_lc=$archive_cmds_need_lc
12141
12142 # Whether or not to disallow shared libs when runtime libs are static
12143 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12144
12145 # Whether or not to optimize for fast installation.
12146 fast_install=$enable_fast_install
12147
12148 # The host system.
12149 host_alias=$host_alias
12150 host=$host
12151 host_os=$host_os
12152
12153 # The build system.
12154 build_alias=$build_alias
12155 build=$build
12156 build_os=$build_os
12157
12158 # An echo program that does not interpret backslashes.
12159 echo=$lt_echo
12160
12161 # The archiver.
12162 AR=$lt_AR
12163 AR_FLAGS=$lt_AR_FLAGS
12164
12165 # A C compiler.
12166 LTCC=$lt_LTCC
12167
12168 # LTCC compiler flags.
12169 LTCFLAGS=$lt_LTCFLAGS
12170
12171 # A language-specific compiler.
12172 CC=$lt_compiler
12173
12174 # Is the compiler the GNU C compiler?
12175 with_gcc=$GCC
12176
12177 # An ERE matcher.
12178 EGREP=$lt_EGREP
12179
12180 # The linker used to build libraries.
12181 LD=$lt_LD
12182
12183 # Whether we need hard or soft links.
12184 LN_S=$lt_LN_S
12185
12186 # A BSD-compatible nm program.
12187 NM=$lt_NM
12188
12189 # A symbol stripping program
12190 STRIP=$lt_STRIP
12191
12192 # Used to examine libraries when file_magic_cmd begins "file"
12193 MAGIC_CMD=$MAGIC_CMD
12194
12195 # Used on cygwin: DLL creation program.
12196 DLLTOOL="$DLLTOOL"
12197
12198 # Used on cygwin: object dumper.
12199 OBJDUMP="$OBJDUMP"
12200
12201 # Used on cygwin: assembler.
12202 AS="$AS"
12203
12204 # The name of the directory that contains temporary libtool files.
12205 objdir=$objdir
12206
12207 # How to create reloadable object files.
12208 reload_flag=$lt_reload_flag
12209 reload_cmds=$lt_reload_cmds
12210
12211 # How to pass a linker flag through the compiler.
12212 wl=$lt_lt_prog_compiler_wl
12213
12214 # Object file suffix (normally "o").
12215 objext="$ac_objext"
12216
12217 # Old archive suffix (normally "a").
12218 libext="$libext"
12219
12220 # Shared library suffix (normally ".so").
12221 shrext_cmds='$shrext_cmds'
12222
12223 # Executable file suffix (normally "").
12224 exeext="$exeext"
12225
12226 # Additional compiler flags for building library objects.
12227 pic_flag=$lt_lt_prog_compiler_pic
12228 pic_mode=$pic_mode
12229
12230 # What is the maximum length of a command?
12231 max_cmd_len=$lt_cv_sys_max_cmd_len
12232
12233 # Does compiler simultaneously support -c and -o options?
12234 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12235
12236 # Must we lock files when doing compilation?
12237 need_locks=$lt_need_locks
12238
12239 # Do we need the lib prefix for modules?
12240 need_lib_prefix=$need_lib_prefix
12241
12242 # Do we need a version for libraries?
12243 need_version=$need_version
12244
12245 # Whether dlopen is supported.
12246 dlopen_support=$enable_dlopen
12247
12248 # Whether dlopen of programs is supported.
12249 dlopen_self=$enable_dlopen_self
12250
12251 # Whether dlopen of statically linked programs is supported.
12252 dlopen_self_static=$enable_dlopen_self_static
12253
12254 # Compiler flag to prevent dynamic linking.
12255 link_static_flag=$lt_lt_prog_compiler_static
12256
12257 # Compiler flag to turn off builtin functions.
12258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12259
12260 # Compiler flag to allow reflexive dlopens.
12261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12262
12263 # Compiler flag to generate shared objects directly from archives.
12264 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12265
12266 # Compiler flag to generate thread-safe objects.
12267 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12268
12269 # Library versioning type.
12270 version_type=$version_type
12271
12272 # Format of library name prefix.
12273 libname_spec=$lt_libname_spec
12274
12275 # List of archive names.  First name is the real one, the rest are links.
12276 # The last name is the one that the linker finds with -lNAME.
12277 library_names_spec=$lt_library_names_spec
12278
12279 # The coded name of the library, if different from the real name.
12280 soname_spec=$lt_soname_spec
12281
12282 # Commands used to build and install an old-style archive.
12283 RANLIB=$lt_RANLIB
12284 old_archive_cmds=$lt_old_archive_cmds
12285 old_postinstall_cmds=$lt_old_postinstall_cmds
12286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12287
12288 # Create an old-style archive from a shared archive.
12289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12290
12291 # Create a temporary old-style archive to link instead of a shared archive.
12292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12293
12294 # Commands used to build and install a shared archive.
12295 archive_cmds=$lt_archive_cmds
12296 archive_expsym_cmds=$lt_archive_expsym_cmds
12297 postinstall_cmds=$lt_postinstall_cmds
12298 postuninstall_cmds=$lt_postuninstall_cmds
12299
12300 # Commands used to build a loadable module (assumed same as above if empty)
12301 module_cmds=$lt_module_cmds
12302 module_expsym_cmds=$lt_module_expsym_cmds
12303
12304 # Commands to strip libraries.
12305 old_striplib=$lt_old_striplib
12306 striplib=$lt_striplib
12307
12308 # Dependencies to place before the objects being linked to create a
12309 # shared library.
12310 predep_objects=$lt_predep_objects
12311
12312 # Dependencies to place after the objects being linked to create a
12313 # shared library.
12314 postdep_objects=$lt_postdep_objects
12315
12316 # Dependencies to place before the objects being linked to create a
12317 # shared library.
12318 predeps=$lt_predeps
12319
12320 # Dependencies to place after the objects being linked to create a
12321 # shared library.
12322 postdeps=$lt_postdeps
12323
12324 # The directories searched by this compiler when creating a shared
12325 # library
12326 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12327
12328 # The library search path used internally by the compiler when linking
12329 # a shared library.
12330 compiler_lib_search_path=$lt_compiler_lib_search_path
12331
12332 # Method to check whether dependent libraries are shared objects.
12333 deplibs_check_method=$lt_deplibs_check_method
12334
12335 # Command to use when deplibs_check_method == file_magic.
12336 file_magic_cmd=$lt_file_magic_cmd
12337
12338 # Flag that allows shared libraries with undefined symbols to be built.
12339 allow_undefined_flag=$lt_allow_undefined_flag
12340
12341 # Flag that forces no undefined symbols.
12342 no_undefined_flag=$lt_no_undefined_flag
12343
12344 # Commands used to finish a libtool library installation in a directory.
12345 finish_cmds=$lt_finish_cmds
12346
12347 # Same as above, but a single script fragment to be evaled but not shown.
12348 finish_eval=$lt_finish_eval
12349
12350 # Take the output of nm and produce a listing of raw symbols and C names.
12351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12352
12353 # Transform the output of nm in a proper C declaration
12354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12355
12356 # Transform the output of nm in a C name address pair
12357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12358
12359 # This is the shared library runtime path variable.
12360 runpath_var=$runpath_var
12361
12362 # This is the shared library path variable.
12363 shlibpath_var=$shlibpath_var
12364
12365 # Is shlibpath searched before the hard-coded library search path?
12366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12367
12368 # How to hardcode a shared library path into an executable.
12369 hardcode_action=$hardcode_action
12370
12371 # Whether we should hardcode library paths into libraries.
12372 hardcode_into_libs=$hardcode_into_libs
12373
12374 # Flag to hardcode \$libdir into a binary during linking.
12375 # This must work even if \$libdir does not exist.
12376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12377
12378 # If ld is used when linking, flag to hardcode \$libdir into
12379 # a binary during linking. This must work even if \$libdir does
12380 # not exist.
12381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12382
12383 # Whether we need a single -rpath flag with a separated argument.
12384 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12385
12386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12387 # resulting binary.
12388 hardcode_direct=$hardcode_direct
12389
12390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12391 # resulting binary.
12392 hardcode_minus_L=$hardcode_minus_L
12393
12394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12395 # the resulting binary.
12396 hardcode_shlibpath_var=$hardcode_shlibpath_var
12397
12398 # Set to yes if building a shared library automatically hardcodes DIR into the library
12399 # and all subsequent libraries and executables linked against it.
12400 hardcode_automatic=$hardcode_automatic
12401
12402 # Variables whose values should be saved in libtool wrapper scripts and
12403 # restored at relink time.
12404 variables_saved_for_relink="$variables_saved_for_relink"
12405
12406 # Whether libtool must link a program against all its dependency libraries.
12407 link_all_deplibs=$link_all_deplibs
12408
12409 # Compile-time system search path for libraries
12410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12411
12412 # Run-time system search path for libraries
12413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12414
12415 # Fix the shell variable \$srcfile for the compiler.
12416 fix_srcfile_path=$lt_fix_srcfile_path
12417
12418 # Set to yes if exported symbols are required.
12419 always_export_symbols=$always_export_symbols
12420
12421 # The commands to list exported symbols.
12422 export_symbols_cmds=$lt_export_symbols_cmds
12423
12424 # The commands to extract the exported symbol list from a shared archive.
12425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12426
12427 # Symbols that should not be listed in the preloaded symbols.
12428 exclude_expsyms=$lt_exclude_expsyms
12429
12430 # Symbols that must always be exported.
12431 include_expsyms=$lt_include_expsyms
12432
12433 # ### END LIBTOOL CONFIG
12434
12435 __EOF__
12436
12437
12438   case $host_os in
12439   aix3*)
12440     cat <<\EOF >> "$cfgfile"
12441
12442 # AIX sometimes has problems with the GCC collect2 program.  For some
12443 # reason, if we set the COLLECT_NAMES environment variable, the problems
12444 # vanish in a puff of smoke.
12445 if test "X${COLLECT_NAMES+set}" != Xset; then
12446   COLLECT_NAMES=
12447   export COLLECT_NAMES
12448 fi
12449 EOF
12450     ;;
12451   esac
12452
12453   # We use sed instead of cat because bash on DJGPP gets confused if
12454   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12455   # text mode, it properly converts lines to CR/LF.  This bash problem
12456   # is reportedly fixed, but why not run on old versions too?
12457   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12458
12459   mv -f "$cfgfile" "$ofile" || \
12460     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12461   chmod +x "$ofile"
12462
12463 else
12464   # If there is no Makefile yet, we rely on a make rule to execute
12465   # `config.status --recheck' to rerun these tests and create the
12466   # libtool script then.
12467   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12468   if test -f "$ltmain_in"; then
12469     test -f Makefile && make "$ltmain"
12470   fi
12471 fi
12472
12473
12474 ac_ext=c
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
12480 CC="$lt_save_CC"
12481
12482
12483 # Check whether --with-tags was given.
12484 if test "${with_tags+set}" = set; then
12485   withval=$with_tags; tagnames="$withval"
12486 fi
12487
12488
12489 if test -f "$ltmain" && test -n "$tagnames"; then
12490   if test ! -f "${ofile}"; then
12491     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12492 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12493   fi
12494
12495   if test -z "$LTCC"; then
12496     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12497     if test -z "$LTCC"; then
12498       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12499 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12500     else
12501       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12502 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12503     fi
12504   fi
12505   if test -z "$LTCFLAGS"; then
12506     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12507   fi
12508
12509   # Extract list of available tagged configurations in $ofile.
12510   # Note that this assumes the entire list is on one line.
12511   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12512
12513   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12514   for tagname in $tagnames; do
12515     IFS="$lt_save_ifs"
12516     # Check whether tagname contains only valid characters
12517     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12518     "") ;;
12519     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12520 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12521    { (exit 1); exit 1; }; }
12522         ;;
12523     esac
12524
12525     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12526     then
12527       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12528 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12529    { (exit 1); exit 1; }; }
12530     fi
12531
12532     # Update the list of available tags.
12533     if test -n "$tagname"; then
12534       echo appending configuration tag \"$tagname\" to $ofile
12535
12536       case $tagname in
12537       CXX)
12538         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12539             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12540             (test "X$CXX" != "Xg++"))) ; then
12541           ac_ext=cpp
12542 ac_cpp='$CXXCPP $CPPFLAGS'
12543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12546
12547
12548
12549
12550 archive_cmds_need_lc_CXX=no
12551 allow_undefined_flag_CXX=
12552 always_export_symbols_CXX=no
12553 archive_expsym_cmds_CXX=
12554 export_dynamic_flag_spec_CXX=
12555 hardcode_direct_CXX=no
12556 hardcode_libdir_flag_spec_CXX=
12557 hardcode_libdir_flag_spec_ld_CXX=
12558 hardcode_libdir_separator_CXX=
12559 hardcode_minus_L_CXX=no
12560 hardcode_shlibpath_var_CXX=unsupported
12561 hardcode_automatic_CXX=no
12562 module_cmds_CXX=
12563 module_expsym_cmds_CXX=
12564 link_all_deplibs_CXX=unknown
12565 old_archive_cmds_CXX=$old_archive_cmds
12566 no_undefined_flag_CXX=
12567 whole_archive_flag_spec_CXX=
12568 enable_shared_with_static_runtimes_CXX=no
12569
12570 # Dependencies to place before and after the object being linked:
12571 predep_objects_CXX=
12572 postdep_objects_CXX=
12573 predeps_CXX=
12574 postdeps_CXX=
12575 compiler_lib_search_path_CXX=
12576 compiler_lib_search_dirs_CXX=
12577
12578 # Source file extension for C++ test sources.
12579 ac_ext=cpp
12580
12581 # Object file extension for compiled C++ test sources.
12582 objext=o
12583 objext_CXX=$objext
12584
12585 # Code to be used in simple compile tests
12586 lt_simple_compile_test_code="int some_variable = 0;"
12587
12588 # Code to be used in simple link tests
12589 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12590
12591 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12592
12593 # If no C compiler was specified, use CC.
12594 LTCC=${LTCC-"$CC"}
12595
12596 # If no C compiler flags were specified, use CFLAGS.
12597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12598
12599 # Allow CC to be a program name with arguments.
12600 compiler=$CC
12601
12602
12603 # save warnings/boilerplate of simple test code
12604 ac_outfile=conftest.$ac_objext
12605 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12607 _lt_compiler_boilerplate=`cat conftest.err`
12608 $rm conftest*
12609
12610 ac_outfile=conftest.$ac_objext
12611 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12613 _lt_linker_boilerplate=`cat conftest.err`
12614 $rm -r conftest*
12615
12616
12617 # Allow CC to be a program name with arguments.
12618 lt_save_CC=$CC
12619 lt_save_LD=$LD
12620 lt_save_GCC=$GCC
12621 GCC=$GXX
12622 lt_save_with_gnu_ld=$with_gnu_ld
12623 lt_save_path_LD=$lt_cv_path_LD
12624 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12625   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12626 else
12627   $as_unset lt_cv_prog_gnu_ld
12628 fi
12629 if test -n "${lt_cv_path_LDCXX+set}"; then
12630   lt_cv_path_LD=$lt_cv_path_LDCXX
12631 else
12632   $as_unset lt_cv_path_LD
12633 fi
12634 test -z "${LDCXX+set}" || LD=$LDCXX
12635 CC=${CXX-"c++"}
12636 compiler=$CC
12637 compiler_CXX=$CC
12638 for cc_temp in $compiler""; do
12639   case $cc_temp in
12640     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12641     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12642     \-*) ;;
12643     *) break;;
12644   esac
12645 done
12646 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12647
12648
12649 # We don't want -fno-exception wen compiling C++ code, so set the
12650 # no_builtin_flag separately
12651 if test "$GXX" = yes; then
12652   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12653 else
12654   lt_prog_compiler_no_builtin_flag_CXX=
12655 fi
12656
12657 if test "$GXX" = yes; then
12658   # Set up default GNU C++ configuration
12659
12660
12661 # Check whether --with-gnu-ld was given.
12662 if test "${with_gnu_ld+set}" = set; then
12663   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12664 else
12665   with_gnu_ld=no
12666 fi
12667
12668 ac_prog=ld
12669 if test "$GCC" = yes; then
12670   # Check if gcc -print-prog-name=ld gives a path.
12671   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12672 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12673   case $host in
12674   *-*-mingw*)
12675     # gcc leaves a trailing carriage return which upsets mingw
12676     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12677   *)
12678     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12679   esac
12680   case $ac_prog in
12681     # Accept absolute paths.
12682     [\\/]* | ?:[\\/]*)
12683       re_direlt='/[^/][^/]*/\.\./'
12684       # Canonicalize the pathname of ld
12685       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12686       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12687         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12688       done
12689       test -z "$LD" && LD="$ac_prog"
12690       ;;
12691   "")
12692     # If it fails, then pretend we aren't using GCC.
12693     ac_prog=ld
12694     ;;
12695   *)
12696     # If it is relative, then search for the first ld in PATH.
12697     with_gnu_ld=unknown
12698     ;;
12699   esac
12700 elif test "$with_gnu_ld" = yes; then
12701   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12702 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12703 else
12704   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12705 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12706 fi
12707 if test "${lt_cv_path_LD+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   if test -z "$LD"; then
12711   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12712   for ac_dir in $PATH; do
12713     IFS="$lt_save_ifs"
12714     test -z "$ac_dir" && ac_dir=.
12715     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12716       lt_cv_path_LD="$ac_dir/$ac_prog"
12717       # Check to see if the program is GNU ld.  I'd rather use --version,
12718       # but apparently some variants of GNU ld only accept -v.
12719       # Break only if it was the GNU/non-GNU ld that we prefer.
12720       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12721       *GNU* | *'with BFD'*)
12722         test "$with_gnu_ld" != no && break
12723         ;;
12724       *)
12725         test "$with_gnu_ld" != yes && break
12726         ;;
12727       esac
12728     fi
12729   done
12730   IFS="$lt_save_ifs"
12731 else
12732   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12733 fi
12734 fi
12735
12736 LD="$lt_cv_path_LD"
12737 if test -n "$LD"; then
12738   { echo "$as_me:$LINENO: result: $LD" >&5
12739 echo "${ECHO_T}$LD" >&6; }
12740 else
12741   { echo "$as_me:$LINENO: result: no" >&5
12742 echo "${ECHO_T}no" >&6; }
12743 fi
12744 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12745 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12746    { (exit 1); exit 1; }; }
12747 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12748 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12749 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12753 case `$LD -v 2>&1 </dev/null` in
12754 *GNU* | *'with BFD'*)
12755   lt_cv_prog_gnu_ld=yes
12756   ;;
12757 *)
12758   lt_cv_prog_gnu_ld=no
12759   ;;
12760 esac
12761 fi
12762 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12763 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12764 with_gnu_ld=$lt_cv_prog_gnu_ld
12765
12766
12767
12768   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12769   # archiving commands below assume that GNU ld is being used.
12770   if test "$with_gnu_ld" = yes; then
12771     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12772     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'
12773
12774     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12775     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12776
12777     # If archive_cmds runs LD, not CC, wlarc should be empty
12778     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12779     #     investigate it a little bit more. (MM)
12780     wlarc='${wl}'
12781
12782     # ancient GNU ld didn't support --whole-archive et. al.
12783     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12784         grep 'no-whole-archive' > /dev/null; then
12785       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12786     else
12787       whole_archive_flag_spec_CXX=
12788     fi
12789   else
12790     with_gnu_ld=no
12791     wlarc=
12792
12793     # A generic and very simple default shared library creation
12794     # command for GNU C++ for the case where it uses the native
12795     # linker, instead of GNU ld.  If possible, this setting should
12796     # overridden to take advantage of the native linker features on
12797     # the platform it is being used on.
12798     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12799   fi
12800
12801   # Commands to make compiler produce verbose output that lists
12802   # what "hidden" libraries, object files and flags are used when
12803   # linking a shared library.
12804   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12805
12806 else
12807   GXX=no
12808   with_gnu_ld=no
12809   wlarc=
12810 fi
12811
12812 # PORTME: fill in a description of your system's C++ link characteristics
12813 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12814 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12815 ld_shlibs_CXX=yes
12816 case $host_os in
12817   aix3*)
12818     # FIXME: insert proper C++ library support
12819     ld_shlibs_CXX=no
12820     ;;
12821   aix[4-9]*)
12822     if test "$host_cpu" = ia64; then
12823       # On IA64, the linker does run time linking by default, so we don't
12824       # have to do anything special.
12825       aix_use_runtimelinking=no
12826       exp_sym_flag='-Bexport'
12827       no_entry_flag=""
12828     else
12829       aix_use_runtimelinking=no
12830
12831       # Test if we are trying to use run time linking or normal
12832       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12833       # need to do runtime linking.
12834       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12835         for ld_flag in $LDFLAGS; do
12836           case $ld_flag in
12837           *-brtl*)
12838             aix_use_runtimelinking=yes
12839             break
12840             ;;
12841           esac
12842         done
12843         ;;
12844       esac
12845
12846       exp_sym_flag='-bexport'
12847       no_entry_flag='-bnoentry'
12848     fi
12849
12850     # When large executables or shared objects are built, AIX ld can
12851     # have problems creating the table of contents.  If linking a library
12852     # or program results in "error TOC overflow" add -mminimal-toc to
12853     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12854     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12855
12856     archive_cmds_CXX=''
12857     hardcode_direct_CXX=yes
12858     hardcode_libdir_separator_CXX=':'
12859     link_all_deplibs_CXX=yes
12860
12861     if test "$GXX" = yes; then
12862       case $host_os in aix4.[012]|aix4.[012].*)
12863       # We only want to do this on AIX 4.2 and lower, the check
12864       # below for broken collect2 doesn't work under 4.3+
12865         collect2name=`${CC} -print-prog-name=collect2`
12866         if test -f "$collect2name" && \
12867            strings "$collect2name" | grep resolve_lib_name >/dev/null
12868         then
12869           # We have reworked collect2
12870           :
12871         else
12872           # We have old collect2
12873           hardcode_direct_CXX=unsupported
12874           # It fails to find uninstalled libraries when the uninstalled
12875           # path is not listed in the libpath.  Setting hardcode_minus_L
12876           # to unsupported forces relinking
12877           hardcode_minus_L_CXX=yes
12878           hardcode_libdir_flag_spec_CXX='-L$libdir'
12879           hardcode_libdir_separator_CXX=
12880         fi
12881         ;;
12882       esac
12883       shared_flag='-shared'
12884       if test "$aix_use_runtimelinking" = yes; then
12885         shared_flag="$shared_flag "'${wl}-G'
12886       fi
12887     else
12888       # not using gcc
12889       if test "$host_cpu" = ia64; then
12890         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12891         # chokes on -Wl,-G. The following line is correct:
12892         shared_flag='-G'
12893       else
12894         if test "$aix_use_runtimelinking" = yes; then
12895           shared_flag='${wl}-G'
12896         else
12897           shared_flag='${wl}-bM:SRE'
12898         fi
12899       fi
12900     fi
12901
12902     # It seems that -bexpall does not export symbols beginning with
12903     # underscore (_), so it is better to generate a list of symbols to export.
12904     always_export_symbols_CXX=yes
12905     if test "$aix_use_runtimelinking" = yes; then
12906       # Warning - without using the other runtime loading flags (-brtl),
12907       # -berok will link without error, but may produce a broken library.
12908       allow_undefined_flag_CXX='-berok'
12909       # Determine the default libpath from the value encoded in an empty executable.
12910       cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h.  */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h.  */
12916
12917 int
12918 main ()
12919 {
12920
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_link") 2>conftest.er1
12933   ac_status=$?
12934   grep -v '^ *+' conftest.er1 >conftest.err
12935   rm -f conftest.er1
12936   cat conftest.err >&5
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } && {
12939          test -z "$ac_cxx_werror_flag" ||
12940          test ! -s conftest.err
12941        } && test -s conftest$ac_exeext &&
12942        $as_test_x conftest$ac_exeext; then
12943
12944 lt_aix_libpath_sed='
12945     /Import File Strings/,/^$/ {
12946         /^0/ {
12947             s/^0  *\(.*\)$/\1/
12948             p
12949         }
12950     }'
12951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12952 # Check for a 64-bit object if we didn't find anything.
12953 if test -z "$aix_libpath"; then
12954   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12955 fi
12956 else
12957   echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960
12961 fi
12962
12963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12964       conftest$ac_exeext conftest.$ac_ext
12965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12966
12967       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12968
12969       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12970      else
12971       if test "$host_cpu" = ia64; then
12972         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12973         allow_undefined_flag_CXX="-z nodefs"
12974         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12975       else
12976         # Determine the default libpath from the value encoded in an empty executable.
12977         cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h.  */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h.  */
12983
12984 int
12985 main ()
12986 {
12987
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996   *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999   (eval "$ac_link") 2>conftest.er1
13000   ac_status=$?
13001   grep -v '^ *+' conftest.er1 >conftest.err
13002   rm -f conftest.er1
13003   cat conftest.err >&5
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); } && {
13006          test -z "$ac_cxx_werror_flag" ||
13007          test ! -s conftest.err
13008        } && test -s conftest$ac_exeext &&
13009        $as_test_x conftest$ac_exeext; then
13010
13011 lt_aix_libpath_sed='
13012     /Import File Strings/,/^$/ {
13013         /^0/ {
13014             s/^0  *\(.*\)$/\1/
13015             p
13016         }
13017     }'
13018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019 # Check for a 64-bit object if we didn't find anything.
13020 if test -z "$aix_libpath"; then
13021   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13022 fi
13023 else
13024   echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027
13028 fi
13029
13030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13031       conftest$ac_exeext conftest.$ac_ext
13032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13033
13034         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13035         # Warning - without using the other run time loading flags,
13036         # -berok will link without error, but may produce a broken library.
13037         no_undefined_flag_CXX=' ${wl}-bernotok'
13038         allow_undefined_flag_CXX=' ${wl}-berok'
13039         # Exported symbols can be pulled into shared objects from archives
13040         whole_archive_flag_spec_CXX='$convenience'
13041         archive_cmds_need_lc_CXX=yes
13042         # This is similar to how AIX traditionally builds its shared libraries.
13043         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13044       fi
13045     fi
13046     ;;
13047
13048   beos*)
13049     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13050       allow_undefined_flag_CXX=unsupported
13051       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13052       # support --undefined.  This deserves some investigation.  FIXME
13053       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13054     else
13055       ld_shlibs_CXX=no
13056     fi
13057     ;;
13058
13059   chorus*)
13060     case $cc_basename in
13061       *)
13062         # FIXME: insert proper C++ library support
13063         ld_shlibs_CXX=no
13064         ;;
13065     esac
13066     ;;
13067
13068   cygwin* | mingw* | pw32*)
13069     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13070     # as there is no search path for DLLs.
13071     hardcode_libdir_flag_spec_CXX='-L$libdir'
13072     allow_undefined_flag_CXX=unsupported
13073     always_export_symbols_CXX=no
13074     enable_shared_with_static_runtimes_CXX=yes
13075
13076     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13077       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13078       # If the export-symbols file already is a .def file (1st line
13079       # is EXPORTS), use it as is; otherwise, prepend...
13080       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13081         cp $export_symbols $output_objdir/$soname.def;
13082       else
13083         echo EXPORTS > $output_objdir/$soname.def;
13084         cat $export_symbols >> $output_objdir/$soname.def;
13085       fi~
13086       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13087     else
13088       ld_shlibs_CXX=no
13089     fi
13090   ;;
13091       darwin* | rhapsody*)
13092       archive_cmds_need_lc_CXX=no
13093       hardcode_direct_CXX=no
13094       hardcode_automatic_CXX=yes
13095       hardcode_shlibpath_var_CXX=unsupported
13096       whole_archive_flag_spec_CXX=''
13097       link_all_deplibs_CXX=yes
13098       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13099       if test "$GXX" = yes ; then
13100       output_verbose_link_cmd='echo'
13101       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13102       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13103       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13104       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13105       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13106         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13107         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13108       fi
13109       else
13110       case $cc_basename in
13111         xlc*)
13112          output_verbose_link_cmd='echo'
13113           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13114           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13115           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13116           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13117           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}'
13118           ;;
13119        *)
13120          ld_shlibs_CXX=no
13121           ;;
13122       esac
13123       fi
13124         ;;
13125
13126   dgux*)
13127     case $cc_basename in
13128       ec++*)
13129         # FIXME: insert proper C++ library support
13130         ld_shlibs_CXX=no
13131         ;;
13132       ghcx*)
13133         # Green Hills C++ Compiler
13134         # FIXME: insert proper C++ library support
13135         ld_shlibs_CXX=no
13136         ;;
13137       *)
13138         # FIXME: insert proper C++ library support
13139         ld_shlibs_CXX=no
13140         ;;
13141     esac
13142     ;;
13143   freebsd[12]*)
13144     # C++ shared libraries reported to be fairly broken before switch to ELF
13145     ld_shlibs_CXX=no
13146     ;;
13147   freebsd-elf*)
13148     archive_cmds_need_lc_CXX=no
13149     ;;
13150   freebsd* | dragonfly*)
13151     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13152     # conventions
13153     ld_shlibs_CXX=yes
13154     ;;
13155   gnu*)
13156     ;;
13157   hpux9*)
13158     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13159     hardcode_libdir_separator_CXX=:
13160     export_dynamic_flag_spec_CXX='${wl}-E'
13161     hardcode_direct_CXX=yes
13162     hardcode_minus_L_CXX=yes # Not in the search PATH,
13163                                 # but as the default
13164                                 # location of the library.
13165
13166     case $cc_basename in
13167     CC*)
13168       # FIXME: insert proper C++ library support
13169       ld_shlibs_CXX=no
13170       ;;
13171     aCC*)
13172       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'
13173       # Commands to make compiler produce verbose output that lists
13174       # what "hidden" libraries, object files and flags are used when
13175       # linking a shared library.
13176       #
13177       # There doesn't appear to be a way to prevent this compiler from
13178       # explicitly linking system object files so we need to strip them
13179       # from the output so that they don't get included in the library
13180       # dependencies.
13181       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'
13182       ;;
13183     *)
13184       if test "$GXX" = yes; then
13185         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'
13186       else
13187         # FIXME: insert proper C++ library support
13188         ld_shlibs_CXX=no
13189       fi
13190       ;;
13191     esac
13192     ;;
13193   hpux10*|hpux11*)
13194     if test $with_gnu_ld = no; then
13195       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13196       hardcode_libdir_separator_CXX=:
13197
13198       case $host_cpu in
13199       hppa*64*|ia64*) ;;
13200       *)
13201         export_dynamic_flag_spec_CXX='${wl}-E'
13202         ;;
13203       esac
13204     fi
13205     case $host_cpu in
13206     hppa*64*|ia64*)
13207       hardcode_direct_CXX=no
13208       hardcode_shlibpath_var_CXX=no
13209       ;;
13210     *)
13211       hardcode_direct_CXX=yes
13212       hardcode_minus_L_CXX=yes # Not in the search PATH,
13213                                               # but as the default
13214                                               # location of the library.
13215       ;;
13216     esac
13217
13218     case $cc_basename in
13219       CC*)
13220         # FIXME: insert proper C++ library support
13221         ld_shlibs_CXX=no
13222         ;;
13223       aCC*)
13224         case $host_cpu in
13225         hppa*64*)
13226           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13227           ;;
13228         ia64*)
13229           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13230           ;;
13231         *)
13232           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13233           ;;
13234         esac
13235         # Commands to make compiler produce verbose output that lists
13236         # what "hidden" libraries, object files and flags are used when
13237         # linking a shared library.
13238         #
13239         # There doesn't appear to be a way to prevent this compiler from
13240         # explicitly linking system object files so we need to strip them
13241         # from the output so that they don't get included in the library
13242         # dependencies.
13243         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'
13244         ;;
13245       *)
13246         if test "$GXX" = yes; then
13247           if test $with_gnu_ld = no; then
13248             case $host_cpu in
13249             hppa*64*)
13250               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13251               ;;
13252             ia64*)
13253               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13254               ;;
13255             *)
13256               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'
13257               ;;
13258             esac
13259           fi
13260         else
13261           # FIXME: insert proper C++ library support
13262           ld_shlibs_CXX=no
13263         fi
13264         ;;
13265     esac
13266     ;;
13267   interix[3-9]*)
13268     hardcode_direct_CXX=no
13269     hardcode_shlibpath_var_CXX=no
13270     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13271     export_dynamic_flag_spec_CXX='${wl}-E'
13272     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13273     # Instead, shared libraries are loaded at an image base (0x10000000 by
13274     # default) and relocated if they conflict, which is a slow very memory
13275     # consuming and fragmenting process.  To avoid this, we pick a random,
13276     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13277     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13278     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13279     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13280     ;;
13281   irix5* | irix6*)
13282     case $cc_basename in
13283       CC*)
13284         # SGI C++
13285         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13286
13287         # Archives containing C++ object files must be created using
13288         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13289         # necessary to make sure instantiated templates are included
13290         # in the archive.
13291         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13292         ;;
13293       *)
13294         if test "$GXX" = yes; then
13295           if test "$with_gnu_ld" = no; then
13296             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13297           else
13298             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'
13299           fi
13300         fi
13301         link_all_deplibs_CXX=yes
13302         ;;
13303     esac
13304     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13305     hardcode_libdir_separator_CXX=:
13306     ;;
13307   linux* | k*bsd*-gnu)
13308     case $cc_basename in
13309       KCC*)
13310         # Kuck and Associates, Inc. (KAI) C++ Compiler
13311
13312         # KCC will only create a shared library if the output file
13313         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13314         # to its proper name (with version) after linking.
13315         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'
13316         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'
13317         # Commands to make compiler produce verbose output that lists
13318         # what "hidden" libraries, object files and flags are used when
13319         # linking a shared library.
13320         #
13321         # There doesn't appear to be a way to prevent this compiler from
13322         # explicitly linking system object files so we need to strip them
13323         # from the output so that they don't get included in the library
13324         # dependencies.
13325         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'
13326
13327         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13328         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13329
13330         # Archives containing C++ object files must be created using
13331         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13332         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13333         ;;
13334       icpc*)
13335         # Intel C++
13336         with_gnu_ld=yes
13337         # version 8.0 and above of icpc choke on multiply defined symbols
13338         # if we add $predep_objects and $postdep_objects, however 7.1 and
13339         # earlier do not add the objects themselves.
13340         case `$CC -V 2>&1` in
13341         *"Version 7."*)
13342           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13343           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'
13344           ;;
13345         *)  # Version 8.0 or newer
13346           tmp_idyn=
13347           case $host_cpu in
13348             ia64*) tmp_idyn=' -i_dynamic';;
13349           esac
13350           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13351           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13352           ;;
13353         esac
13354         archive_cmds_need_lc_CXX=no
13355         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13356         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13357         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13358         ;;
13359       pgCC* | pgcpp*)
13360         # Portland Group C++ compiler
13361         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13362         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13363
13364         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13365         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13366         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13367         ;;
13368       cxx*)
13369         # Compaq C++
13370         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13371         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'
13372
13373         runpath_var=LD_RUN_PATH
13374         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13375         hardcode_libdir_separator_CXX=:
13376
13377         # Commands to make compiler produce verbose output that lists
13378         # what "hidden" libraries, object files and flags are used when
13379         # linking a shared library.
13380         #
13381         # There doesn't appear to be a way to prevent this compiler from
13382         # explicitly linking system object files so we need to strip them
13383         # from the output so that they don't get included in the library
13384         # dependencies.
13385         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'
13386         ;;
13387       *)
13388         case `$CC -V 2>&1 | sed 5q` in
13389         *Sun\ C*)
13390           # Sun C++ 5.9
13391           no_undefined_flag_CXX=' -zdefs'
13392           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13393           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13394           hardcode_libdir_flag_spec_CXX='-R$libdir'
13395           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13396
13397           # Not sure whether something based on
13398           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13399           # would be better.
13400           output_verbose_link_cmd='echo'
13401
13402           # Archives containing C++ object files must be created using
13403           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13404           # necessary to make sure instantiated templates are included
13405           # in the archive.
13406           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13407           ;;
13408         esac
13409         ;;
13410     esac
13411     ;;
13412   lynxos*)
13413     # FIXME: insert proper C++ library support
13414     ld_shlibs_CXX=no
13415     ;;
13416   m88k*)
13417     # FIXME: insert proper C++ library support
13418     ld_shlibs_CXX=no
13419     ;;
13420   mvs*)
13421     case $cc_basename in
13422       cxx*)
13423         # FIXME: insert proper C++ library support
13424         ld_shlibs_CXX=no
13425         ;;
13426       *)
13427         # FIXME: insert proper C++ library support
13428         ld_shlibs_CXX=no
13429         ;;
13430     esac
13431     ;;
13432   netbsd*)
13433     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13434       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13435       wlarc=
13436       hardcode_libdir_flag_spec_CXX='-R$libdir'
13437       hardcode_direct_CXX=yes
13438       hardcode_shlibpath_var_CXX=no
13439     fi
13440     # Workaround some broken pre-1.5 toolchains
13441     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13442     ;;
13443   openbsd2*)
13444     # C++ shared libraries are fairly broken
13445     ld_shlibs_CXX=no
13446     ;;
13447   openbsd*)
13448     if test -f /usr/libexec/ld.so; then
13449       hardcode_direct_CXX=yes
13450       hardcode_shlibpath_var_CXX=no
13451       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13452       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13453       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13454         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13455         export_dynamic_flag_spec_CXX='${wl}-E'
13456         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13457       fi
13458       output_verbose_link_cmd='echo'
13459     else
13460       ld_shlibs_CXX=no
13461     fi
13462     ;;
13463   osf3*)
13464     case $cc_basename in
13465       KCC*)
13466         # Kuck and Associates, Inc. (KAI) C++ Compiler
13467
13468         # KCC will only create a shared library if the output file
13469         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13470         # to its proper name (with version) after linking.
13471         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'
13472
13473         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13474         hardcode_libdir_separator_CXX=:
13475
13476         # Archives containing C++ object files must be created using
13477         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13478         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13479
13480         ;;
13481       RCC*)
13482         # Rational C++ 2.4.1
13483         # FIXME: insert proper C++ library support
13484         ld_shlibs_CXX=no
13485         ;;
13486       cxx*)
13487         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13488         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13489
13490         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13491         hardcode_libdir_separator_CXX=:
13492
13493         # Commands to make compiler produce verbose output that lists
13494         # what "hidden" libraries, object files and flags are used when
13495         # linking a shared library.
13496         #
13497         # There doesn't appear to be a way to prevent this compiler from
13498         # explicitly linking system object files so we need to strip them
13499         # from the output so that they don't get included in the library
13500         # dependencies.
13501         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'
13502         ;;
13503       *)
13504         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13505           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13506           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13507
13508           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13509           hardcode_libdir_separator_CXX=:
13510
13511           # Commands to make compiler produce verbose output that lists
13512           # what "hidden" libraries, object files and flags are used when
13513           # linking a shared library.
13514           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13515
13516         else
13517           # FIXME: insert proper C++ library support
13518           ld_shlibs_CXX=no
13519         fi
13520         ;;
13521     esac
13522     ;;
13523   osf4* | osf5*)
13524     case $cc_basename in
13525       KCC*)
13526         # Kuck and Associates, Inc. (KAI) C++ Compiler
13527
13528         # KCC will only create a shared library if the output file
13529         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13530         # to its proper name (with version) after linking.
13531         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'
13532
13533         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13534         hardcode_libdir_separator_CXX=:
13535
13536         # Archives containing C++ object files must be created using
13537         # the KAI C++ compiler.
13538         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13539         ;;
13540       RCC*)
13541         # Rational C++ 2.4.1
13542         # FIXME: insert proper C++ library support
13543         ld_shlibs_CXX=no
13544         ;;
13545       cxx*)
13546         allow_undefined_flag_CXX=' -expect_unresolved \*'
13547         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13548         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13549           echo "-hidden">> $lib.exp~
13550           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13551           $rm $lib.exp'
13552
13553         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13554         hardcode_libdir_separator_CXX=:
13555
13556         # Commands to make compiler produce verbose output that lists
13557         # what "hidden" libraries, object files and flags are used when
13558         # linking a shared library.
13559         #
13560         # There doesn't appear to be a way to prevent this compiler from
13561         # explicitly linking system object files so we need to strip them
13562         # from the output so that they don't get included in the library
13563         # dependencies.
13564         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'
13565         ;;
13566       *)
13567         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13568           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13569          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13570
13571           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13572           hardcode_libdir_separator_CXX=:
13573
13574           # Commands to make compiler produce verbose output that lists
13575           # what "hidden" libraries, object files and flags are used when
13576           # linking a shared library.
13577           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13578
13579         else
13580           # FIXME: insert proper C++ library support
13581           ld_shlibs_CXX=no
13582         fi
13583         ;;
13584     esac
13585     ;;
13586   psos*)
13587     # FIXME: insert proper C++ library support
13588     ld_shlibs_CXX=no
13589     ;;
13590   sunos4*)
13591     case $cc_basename in
13592       CC*)
13593         # Sun C++ 4.x
13594         # FIXME: insert proper C++ library support
13595         ld_shlibs_CXX=no
13596         ;;
13597       lcc*)
13598         # Lucid
13599         # FIXME: insert proper C++ library support
13600         ld_shlibs_CXX=no
13601         ;;
13602       *)
13603         # FIXME: insert proper C++ library support
13604         ld_shlibs_CXX=no
13605         ;;
13606     esac
13607     ;;
13608   solaris*)
13609     case $cc_basename in
13610       CC*)
13611         # Sun C++ 4.2, 5.x and Centerline C++
13612         archive_cmds_need_lc_CXX=yes
13613         no_undefined_flag_CXX=' -zdefs'
13614         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13615         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13616         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13617
13618         hardcode_libdir_flag_spec_CXX='-R$libdir'
13619         hardcode_shlibpath_var_CXX=no
13620         case $host_os in
13621           solaris2.[0-5] | solaris2.[0-5].*) ;;
13622           *)
13623             # The compiler driver will combine and reorder linker options,
13624             # but understands `-z linker_flag'.
13625             # Supported since Solaris 2.6 (maybe 2.5.1?)
13626             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13627             ;;
13628         esac
13629         link_all_deplibs_CXX=yes
13630
13631         output_verbose_link_cmd='echo'
13632
13633         # Archives containing C++ object files must be created using
13634         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13635         # necessary to make sure instantiated templates are included
13636         # in the archive.
13637         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13638         ;;
13639       gcx*)
13640         # Green Hills C++ Compiler
13641         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13642
13643         # The C++ compiler must be used to create the archive.
13644         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13645         ;;
13646       *)
13647         # GNU C++ compiler with Solaris linker
13648         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13649           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13650           if $CC --version | grep -v '^2\.7' > /dev/null; then
13651             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13652             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13653                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13654
13655             # Commands to make compiler produce verbose output that lists
13656             # what "hidden" libraries, object files and flags are used when
13657             # linking a shared library.
13658             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13659           else
13660             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13661             # platform.
13662             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13663             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13664                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13665
13666             # Commands to make compiler produce verbose output that lists
13667             # what "hidden" libraries, object files and flags are used when
13668             # linking a shared library.
13669             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13670           fi
13671
13672           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13673           case $host_os in
13674           solaris2.[0-5] | solaris2.[0-5].*) ;;
13675           *)
13676             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13677             ;;
13678           esac
13679         fi
13680         ;;
13681     esac
13682     ;;
13683   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13684     no_undefined_flag_CXX='${wl}-z,text'
13685     archive_cmds_need_lc_CXX=no
13686     hardcode_shlibpath_var_CXX=no
13687     runpath_var='LD_RUN_PATH'
13688
13689     case $cc_basename in
13690       CC*)
13691         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13692         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13693         ;;
13694       *)
13695         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13696         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13697         ;;
13698     esac
13699     ;;
13700   sysv5* | sco3.2v5* | sco5v6*)
13701     # Note: We can NOT use -z defs as we might desire, because we do not
13702     # link with -lc, and that would cause any symbols used from libc to
13703     # always be unresolved, which means just about no library would
13704     # ever link correctly.  If we're not using GNU ld we use -z text
13705     # though, which does catch some bad symbols but isn't as heavy-handed
13706     # as -z defs.
13707     # For security reasons, it is highly recommended that you always
13708     # use absolute paths for naming shared libraries, and exclude the
13709     # DT_RUNPATH tag from executables and libraries.  But doing so
13710     # requires that you compile everything twice, which is a pain.
13711     # So that behaviour is only enabled if SCOABSPATH is set to a
13712     # non-empty value in the environment.  Most likely only useful for
13713     # creating official distributions of packages.
13714     # This is a hack until libtool officially supports absolute path
13715     # names for shared libraries.
13716     no_undefined_flag_CXX='${wl}-z,text'
13717     allow_undefined_flag_CXX='${wl}-z,nodefs'
13718     archive_cmds_need_lc_CXX=no
13719     hardcode_shlibpath_var_CXX=no
13720     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13721     hardcode_libdir_separator_CXX=':'
13722     link_all_deplibs_CXX=yes
13723     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13724     runpath_var='LD_RUN_PATH'
13725
13726     case $cc_basename in
13727       CC*)
13728         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13729         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13730         ;;
13731       *)
13732         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13733         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13734         ;;
13735     esac
13736     ;;
13737   tandem*)
13738     case $cc_basename in
13739       NCC*)
13740         # NonStop-UX NCC 3.20
13741         # FIXME: insert proper C++ library support
13742         ld_shlibs_CXX=no
13743         ;;
13744       *)
13745         # FIXME: insert proper C++ library support
13746         ld_shlibs_CXX=no
13747         ;;
13748     esac
13749     ;;
13750   vxworks*)
13751     # FIXME: insert proper C++ library support
13752     ld_shlibs_CXX=no
13753     ;;
13754   *)
13755     # FIXME: insert proper C++ library support
13756     ld_shlibs_CXX=no
13757     ;;
13758 esac
13759 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13760 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13761 test "$ld_shlibs_CXX" = no && can_build_shared=no
13762
13763 GCC_CXX="$GXX"
13764 LD_CXX="$LD"
13765
13766 cat > conftest.$ac_ext <<EOF
13767 class Foo
13768 {
13769 public:
13770   Foo (void) { a = 0; }
13771 private:
13772   int a;
13773 };
13774 EOF
13775
13776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777   (eval $ac_compile) 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); }; then
13781   # Parse the compiler output and extract the necessary
13782   # objects, libraries and library flags.
13783
13784   # Sentinel used to keep track of whether or not we are before
13785   # the conftest object file.
13786   pre_test_object_deps_done=no
13787
13788   # The `*' in the case matches for architectures that use `case' in
13789   # $output_verbose_cmd can trigger glob expansion during the loop
13790   # eval without this substitution.
13791   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13792
13793   for p in `eval $output_verbose_link_cmd`; do
13794     case $p in
13795
13796     -L* | -R* | -l*)
13797        # Some compilers place space between "-{L,R}" and the path.
13798        # Remove the space.
13799        if test $p = "-L" \
13800           || test $p = "-R"; then
13801          prev=$p
13802          continue
13803        else
13804          prev=
13805        fi
13806
13807        if test "$pre_test_object_deps_done" = no; then
13808          case $p in
13809          -L* | -R*)
13810            # Internal compiler library paths should come after those
13811            # provided the user.  The postdeps already come after the
13812            # user supplied libs so there is no need to process them.
13813            if test -z "$compiler_lib_search_path_CXX"; then
13814              compiler_lib_search_path_CXX="${prev}${p}"
13815            else
13816              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13817            fi
13818            ;;
13819          # The "-l" case would never come before the object being
13820          # linked, so don't bother handling this case.
13821          esac
13822        else
13823          if test -z "$postdeps_CXX"; then
13824            postdeps_CXX="${prev}${p}"
13825          else
13826            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13827          fi
13828        fi
13829        ;;
13830
13831     *.$objext)
13832        # This assumes that the test object file only shows up
13833        # once in the compiler output.
13834        if test "$p" = "conftest.$objext"; then
13835          pre_test_object_deps_done=yes
13836          continue
13837        fi
13838
13839        if test "$pre_test_object_deps_done" = no; then
13840          if test -z "$predep_objects_CXX"; then
13841            predep_objects_CXX="$p"
13842          else
13843            predep_objects_CXX="$predep_objects_CXX $p"
13844          fi
13845        else
13846          if test -z "$postdep_objects_CXX"; then
13847            postdep_objects_CXX="$p"
13848          else
13849            postdep_objects_CXX="$postdep_objects_CXX $p"
13850          fi
13851        fi
13852        ;;
13853
13854     *) ;; # Ignore the rest.
13855
13856     esac
13857   done
13858
13859   # Clean up.
13860   rm -f a.out a.exe
13861 else
13862   echo "libtool.m4: error: problem compiling CXX test program"
13863 fi
13864
13865 $rm -f confest.$objext
13866
13867 compiler_lib_search_dirs_CXX=
13868 if test -n "$compiler_lib_search_path_CXX"; then
13869   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13870 fi
13871
13872 # PORTME: override above test on systems where it is broken
13873 case $host_os in
13874 interix[3-9]*)
13875   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13876   # hack all around it, let's just trust "g++" to DTRT.
13877   predep_objects_CXX=
13878   postdep_objects_CXX=
13879   postdeps_CXX=
13880   ;;
13881
13882 linux*)
13883   case `$CC -V 2>&1 | sed 5q` in
13884   *Sun\ C*)
13885     # Sun C++ 5.9
13886     #
13887     # The more standards-conforming stlport4 library is
13888     # incompatible with the Cstd library. Avoid specifying
13889     # it if it's in CXXFLAGS. Ignore libCrun as
13890     # -library=stlport4 depends on it.
13891     case " $CXX $CXXFLAGS " in
13892     *" -library=stlport4 "*)
13893       solaris_use_stlport4=yes
13894       ;;
13895     esac
13896     if test "$solaris_use_stlport4" != yes; then
13897       postdeps_CXX='-library=Cstd -library=Crun'
13898     fi
13899     ;;
13900   esac
13901   ;;
13902
13903 solaris*)
13904   case $cc_basename in
13905   CC*)
13906     # The more standards-conforming stlport4 library is
13907     # incompatible with the Cstd library. Avoid specifying
13908     # it if it's in CXXFLAGS. Ignore libCrun as
13909     # -library=stlport4 depends on it.
13910     case " $CXX $CXXFLAGS " in
13911     *" -library=stlport4 "*)
13912       solaris_use_stlport4=yes
13913       ;;
13914     esac
13915
13916     # Adding this requires a known-good setup of shared libraries for
13917     # Sun compiler versions before 5.6, else PIC objects from an old
13918     # archive will be linked into the output, leading to subtle bugs.
13919     if test "$solaris_use_stlport4" != yes; then
13920       postdeps_CXX='-library=Cstd -library=Crun'
13921     fi
13922     ;;
13923   esac
13924   ;;
13925 esac
13926
13927 case " $postdeps_CXX " in
13928 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13929 esac
13930
13931 lt_prog_compiler_wl_CXX=
13932 lt_prog_compiler_pic_CXX=
13933 lt_prog_compiler_static_CXX=
13934
13935 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13936 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13937
13938   # C++ specific cases for pic, static, wl, etc.
13939   if test "$GXX" = yes; then
13940     lt_prog_compiler_wl_CXX='-Wl,'
13941     lt_prog_compiler_static_CXX='-static'
13942
13943     case $host_os in
13944     aix*)
13945       # All AIX code is PIC.
13946       if test "$host_cpu" = ia64; then
13947         # AIX 5 now supports IA64 processor
13948         lt_prog_compiler_static_CXX='-Bstatic'
13949       fi
13950       ;;
13951     amigaos*)
13952       # FIXME: we need at least 68020 code to build shared libraries, but
13953       # adding the `-m68020' flag to GCC prevents building anything better,
13954       # like `-m68040'.
13955       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13956       ;;
13957     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13958       # PIC is the default for these OSes.
13959       ;;
13960     mingw* | cygwin* | os2* | pw32*)
13961       # This hack is so that the source file can tell whether it is being
13962       # built for inclusion in a dll (and should export symbols for example).
13963       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13964       # (--disable-auto-import) libraries
13965       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13966       ;;
13967     darwin* | rhapsody*)
13968       # PIC is the default on this platform
13969       # Common symbols not allowed in MH_DYLIB files
13970       lt_prog_compiler_pic_CXX='-fno-common'
13971       ;;
13972     *djgpp*)
13973       # DJGPP does not support shared libraries at all
13974       lt_prog_compiler_pic_CXX=
13975       ;;
13976     interix[3-9]*)
13977       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13978       # Instead, we relocate shared libraries at runtime.
13979       ;;
13980     sysv4*MP*)
13981       if test -d /usr/nec; then
13982         lt_prog_compiler_pic_CXX=-Kconform_pic
13983       fi
13984       ;;
13985     hpux*)
13986       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13987       # not for PA HP-UX.
13988       case $host_cpu in
13989       hppa*64*|ia64*)
13990         ;;
13991       *)
13992         lt_prog_compiler_pic_CXX='-fPIC'
13993         ;;
13994       esac
13995       ;;
13996     *)
13997       lt_prog_compiler_pic_CXX='-fPIC'
13998       ;;
13999     esac
14000   else
14001     case $host_os in
14002       aix[4-9]*)
14003         # All AIX code is PIC.
14004         if test "$host_cpu" = ia64; then
14005           # AIX 5 now supports IA64 processor
14006           lt_prog_compiler_static_CXX='-Bstatic'
14007         else
14008           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14009         fi
14010         ;;
14011       chorus*)
14012         case $cc_basename in
14013         cxch68*)
14014           # Green Hills C++ Compiler
14015           # _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"
14016           ;;
14017         esac
14018         ;;
14019        darwin*)
14020          # PIC is the default on this platform
14021          # Common symbols not allowed in MH_DYLIB files
14022          case $cc_basename in
14023            xlc*)
14024            lt_prog_compiler_pic_CXX='-qnocommon'
14025            lt_prog_compiler_wl_CXX='-Wl,'
14026            ;;
14027          esac
14028        ;;
14029       dgux*)
14030         case $cc_basename in
14031           ec++*)
14032             lt_prog_compiler_pic_CXX='-KPIC'
14033             ;;
14034           ghcx*)
14035             # Green Hills C++ Compiler
14036             lt_prog_compiler_pic_CXX='-pic'
14037             ;;
14038           *)
14039             ;;
14040         esac
14041         ;;
14042       freebsd* | dragonfly*)
14043         # FreeBSD uses GNU C++
14044         ;;
14045       hpux9* | hpux10* | hpux11*)
14046         case $cc_basename in
14047           CC*)
14048             lt_prog_compiler_wl_CXX='-Wl,'
14049             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14050             if test "$host_cpu" != ia64; then
14051               lt_prog_compiler_pic_CXX='+Z'
14052             fi
14053             ;;
14054           aCC*)
14055             lt_prog_compiler_wl_CXX='-Wl,'
14056             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14057             case $host_cpu in
14058             hppa*64*|ia64*)
14059               # +Z the default
14060               ;;
14061             *)
14062               lt_prog_compiler_pic_CXX='+Z'
14063               ;;
14064             esac
14065             ;;
14066           *)
14067             ;;
14068         esac
14069         ;;
14070       interix*)
14071         # This is c89, which is MS Visual C++ (no shared libs)
14072         # Anyone wants to do a port?
14073         ;;
14074       irix5* | irix6* | nonstopux*)
14075         case $cc_basename in
14076           CC*)
14077             lt_prog_compiler_wl_CXX='-Wl,'
14078             lt_prog_compiler_static_CXX='-non_shared'
14079             # CC pic flag -KPIC is the default.
14080             ;;
14081           *)
14082             ;;
14083         esac
14084         ;;
14085       linux* | k*bsd*-gnu)
14086         case $cc_basename in
14087           KCC*)
14088             # KAI C++ Compiler
14089             lt_prog_compiler_wl_CXX='--backend -Wl,'
14090             lt_prog_compiler_pic_CXX='-fPIC'
14091             ;;
14092           icpc* | ecpc*)
14093             # Intel C++
14094             lt_prog_compiler_wl_CXX='-Wl,'
14095             lt_prog_compiler_pic_CXX='-KPIC'
14096             lt_prog_compiler_static_CXX='-static'
14097             ;;
14098           pgCC* | pgcpp*)
14099             # Portland Group C++ compiler.
14100             lt_prog_compiler_wl_CXX='-Wl,'
14101             lt_prog_compiler_pic_CXX='-fpic'
14102             lt_prog_compiler_static_CXX='-Bstatic'
14103             ;;
14104           cxx*)
14105             # Compaq C++
14106             # Make sure the PIC flag is empty.  It appears that all Alpha
14107             # Linux and Compaq Tru64 Unix objects are PIC.
14108             lt_prog_compiler_pic_CXX=
14109             lt_prog_compiler_static_CXX='-non_shared'
14110             ;;
14111           *)
14112             case `$CC -V 2>&1 | sed 5q` in
14113             *Sun\ C*)
14114               # Sun C++ 5.9
14115               lt_prog_compiler_pic_CXX='-KPIC'
14116               lt_prog_compiler_static_CXX='-Bstatic'
14117               lt_prog_compiler_wl_CXX='-Qoption ld '
14118               ;;
14119             esac
14120             ;;
14121         esac
14122         ;;
14123       lynxos*)
14124         ;;
14125       m88k*)
14126         ;;
14127       mvs*)
14128         case $cc_basename in
14129           cxx*)
14130             lt_prog_compiler_pic_CXX='-W c,exportall'
14131             ;;
14132           *)
14133             ;;
14134         esac
14135         ;;
14136       netbsd*)
14137         ;;
14138       osf3* | osf4* | osf5*)
14139         case $cc_basename in
14140           KCC*)
14141             lt_prog_compiler_wl_CXX='--backend -Wl,'
14142             ;;
14143           RCC*)
14144             # Rational C++ 2.4.1
14145             lt_prog_compiler_pic_CXX='-pic'
14146             ;;
14147           cxx*)
14148             # Digital/Compaq C++
14149             lt_prog_compiler_wl_CXX='-Wl,'
14150             # Make sure the PIC flag is empty.  It appears that all Alpha
14151             # Linux and Compaq Tru64 Unix objects are PIC.
14152             lt_prog_compiler_pic_CXX=
14153             lt_prog_compiler_static_CXX='-non_shared'
14154             ;;
14155           *)
14156             ;;
14157         esac
14158         ;;
14159       psos*)
14160         ;;
14161       solaris*)
14162         case $cc_basename in
14163           CC*)
14164             # Sun C++ 4.2, 5.x and Centerline C++
14165             lt_prog_compiler_pic_CXX='-KPIC'
14166             lt_prog_compiler_static_CXX='-Bstatic'
14167             lt_prog_compiler_wl_CXX='-Qoption ld '
14168             ;;
14169           gcx*)
14170             # Green Hills C++ Compiler
14171             lt_prog_compiler_pic_CXX='-PIC'
14172             ;;
14173           *)
14174             ;;
14175         esac
14176         ;;
14177       sunos4*)
14178         case $cc_basename in
14179           CC*)
14180             # Sun C++ 4.x
14181             lt_prog_compiler_pic_CXX='-pic'
14182             lt_prog_compiler_static_CXX='-Bstatic'
14183             ;;
14184           lcc*)
14185             # Lucid
14186             lt_prog_compiler_pic_CXX='-pic'
14187             ;;
14188           *)
14189             ;;
14190         esac
14191         ;;
14192       tandem*)
14193         case $cc_basename in
14194           NCC*)
14195             # NonStop-UX NCC 3.20
14196             lt_prog_compiler_pic_CXX='-KPIC'
14197             ;;
14198           *)
14199             ;;
14200         esac
14201         ;;
14202       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14203         case $cc_basename in
14204           CC*)
14205             lt_prog_compiler_wl_CXX='-Wl,'
14206             lt_prog_compiler_pic_CXX='-KPIC'
14207             lt_prog_compiler_static_CXX='-Bstatic'
14208             ;;
14209         esac
14210         ;;
14211       vxworks*)
14212         ;;
14213       *)
14214         lt_prog_compiler_can_build_shared_CXX=no
14215         ;;
14216     esac
14217   fi
14218
14219 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14220 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14221
14222 #
14223 # Check to make sure the PIC flag actually works.
14224 #
14225 if test -n "$lt_prog_compiler_pic_CXX"; then
14226
14227 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14229 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   lt_cv_prog_compiler_pic_works_CXX=no
14233   ac_outfile=conftest.$ac_objext
14234    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14235    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14236    # Insert the option either (1) after the last *FLAGS variable, or
14237    # (2) before a word containing "conftest.", or (3) at the end.
14238    # Note that $ac_compile itself does not contain backslashes and begins
14239    # with a dollar sign (not a hyphen), so the echo should work correctly.
14240    # The option is referenced via a variable to avoid confusing sed.
14241    lt_compile=`echo "$ac_compile" | $SED \
14242    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14244    -e 's:$: $lt_compiler_flag:'`
14245    (eval echo "\"\$as_me:14245: $lt_compile\"" >&5)
14246    (eval "$lt_compile" 2>conftest.err)
14247    ac_status=$?
14248    cat conftest.err >&5
14249    echo "$as_me:14249: \$? = $ac_status" >&5
14250    if (exit $ac_status) && test -s "$ac_outfile"; then
14251      # The compiler can only warn and ignore the option if not recognized
14252      # So say no if there are warnings other than the usual output.
14253      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14254      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14255      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14256        lt_cv_prog_compiler_pic_works_CXX=yes
14257      fi
14258    fi
14259    $rm conftest*
14260
14261 fi
14262 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14263 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14264
14265 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14266     case $lt_prog_compiler_pic_CXX in
14267      "" | " "*) ;;
14268      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14269      esac
14270 else
14271     lt_prog_compiler_pic_CXX=
14272      lt_prog_compiler_can_build_shared_CXX=no
14273 fi
14274
14275 fi
14276 case $host_os in
14277   # For platforms which do not support PIC, -DPIC is meaningless:
14278   *djgpp*)
14279     lt_prog_compiler_pic_CXX=
14280     ;;
14281   *)
14282     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14283     ;;
14284 esac
14285
14286 #
14287 # Check to make sure the static flag actually works.
14288 #
14289 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14290 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14291 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14292 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14293   echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295   lt_cv_prog_compiler_static_works_CXX=no
14296    save_LDFLAGS="$LDFLAGS"
14297    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14298    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14299    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14300      # The linker can only warn and ignore the option if not recognized
14301      # So say no if there are warnings
14302      if test -s conftest.err; then
14303        # Append any errors to the config.log.
14304        cat conftest.err 1>&5
14305        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14306        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14307        if diff conftest.exp conftest.er2 >/dev/null; then
14308          lt_cv_prog_compiler_static_works_CXX=yes
14309        fi
14310      else
14311        lt_cv_prog_compiler_static_works_CXX=yes
14312      fi
14313    fi
14314    $rm -r conftest*
14315    LDFLAGS="$save_LDFLAGS"
14316
14317 fi
14318 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14319 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14320
14321 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14322     :
14323 else
14324     lt_prog_compiler_static_CXX=
14325 fi
14326
14327
14328 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14330 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333   lt_cv_prog_compiler_c_o_CXX=no
14334    $rm -r conftest 2>/dev/null
14335    mkdir conftest
14336    cd conftest
14337    mkdir out
14338    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14339
14340    lt_compiler_flag="-o out/conftest2.$ac_objext"
14341    # Insert the option either (1) after the last *FLAGS variable, or
14342    # (2) before a word containing "conftest.", or (3) at the end.
14343    # Note that $ac_compile itself does not contain backslashes and begins
14344    # with a dollar sign (not a hyphen), so the echo should work correctly.
14345    lt_compile=`echo "$ac_compile" | $SED \
14346    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14348    -e 's:$: $lt_compiler_flag:'`
14349    (eval echo "\"\$as_me:14349: $lt_compile\"" >&5)
14350    (eval "$lt_compile" 2>out/conftest.err)
14351    ac_status=$?
14352    cat out/conftest.err >&5
14353    echo "$as_me:14353: \$? = $ac_status" >&5
14354    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14355    then
14356      # The compiler can only warn and ignore the option if not recognized
14357      # So say no if there are warnings
14358      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14359      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14360      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14361        lt_cv_prog_compiler_c_o_CXX=yes
14362      fi
14363    fi
14364    chmod u+w . 2>&5
14365    $rm conftest*
14366    # SGI C++ compiler will create directory out/ii_files/ for
14367    # template instantiation
14368    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14369    $rm out/* && rmdir out
14370    cd ..
14371    rmdir conftest
14372    $rm conftest*
14373
14374 fi
14375 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14376 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14377
14378
14379 hard_links="nottested"
14380 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14381   # do not overwrite the value of need_locks provided by the user
14382   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14383 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14384   hard_links=yes
14385   $rm conftest*
14386   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14387   touch conftest.a
14388   ln conftest.a conftest.b 2>&5 || hard_links=no
14389   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14390   { echo "$as_me:$LINENO: result: $hard_links" >&5
14391 echo "${ECHO_T}$hard_links" >&6; }
14392   if test "$hard_links" = no; then
14393     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14394 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14395     need_locks=warn
14396   fi
14397 else
14398   need_locks=no
14399 fi
14400
14401 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14402 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14403
14404   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14405   case $host_os in
14406   aix[4-9]*)
14407     # If we're using GNU nm, then we don't want the "-C" option.
14408     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14409     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14410       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'
14411     else
14412       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'
14413     fi
14414     ;;
14415   pw32*)
14416     export_symbols_cmds_CXX="$ltdll_cmds"
14417   ;;
14418   cygwin* | mingw*)
14419     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14420   ;;
14421   *)
14422     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14423   ;;
14424   esac
14425   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14426
14427 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14428 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14429 test "$ld_shlibs_CXX" = no && can_build_shared=no
14430
14431 #
14432 # Do we need to explicitly link libc?
14433 #
14434 case "x$archive_cmds_need_lc_CXX" in
14435 x|xyes)
14436   # Assume -lc should be added
14437   archive_cmds_need_lc_CXX=yes
14438
14439   if test "$enable_shared" = yes && test "$GCC" = yes; then
14440     case $archive_cmds_CXX in
14441     *'~'*)
14442       # FIXME: we may have to deal with multi-command sequences.
14443       ;;
14444     '$CC '*)
14445       # Test whether the compiler implicitly links with -lc since on some
14446       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14447       # to ld, don't add -lc before -lgcc.
14448       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14450       $rm conftest*
14451       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14452
14453       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14454   (eval $ac_compile) 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } 2>conftest.err; then
14458         soname=conftest
14459         lib=conftest
14460         libobjs=conftest.$ac_objext
14461         deplibs=
14462         wl=$lt_prog_compiler_wl_CXX
14463         pic_flag=$lt_prog_compiler_pic_CXX
14464         compiler_flags=-v
14465         linker_flags=-v
14466         verstring=
14467         output_objdir=.
14468         libname=conftest
14469         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14470         allow_undefined_flag_CXX=
14471         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14472   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }
14476         then
14477           archive_cmds_need_lc_CXX=no
14478         else
14479           archive_cmds_need_lc_CXX=yes
14480         fi
14481         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14482       else
14483         cat conftest.err 1>&5
14484       fi
14485       $rm conftest*
14486       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14487 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14488       ;;
14489     esac
14490   fi
14491   ;;
14492 esac
14493
14494 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14495 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14496 library_names_spec=
14497 libname_spec='lib$name'
14498 soname_spec=
14499 shrext_cmds=".so"
14500 postinstall_cmds=
14501 postuninstall_cmds=
14502 finish_cmds=
14503 finish_eval=
14504 shlibpath_var=
14505 shlibpath_overrides_runpath=unknown
14506 version_type=none
14507 dynamic_linker="$host_os ld.so"
14508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14509
14510 need_lib_prefix=unknown
14511 hardcode_into_libs=no
14512
14513 # when you set need_version to no, make sure it does not cause -set_version
14514 # flags to be left without arguments
14515 need_version=unknown
14516
14517 case $host_os in
14518 aix3*)
14519   version_type=linux
14520   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14521   shlibpath_var=LIBPATH
14522
14523   # AIX 3 has no versioning support, so we append a major version to the name.
14524   soname_spec='${libname}${release}${shared_ext}$major'
14525   ;;
14526
14527 aix[4-9]*)
14528   version_type=linux
14529   need_lib_prefix=no
14530   need_version=no
14531   hardcode_into_libs=yes
14532   if test "$host_cpu" = ia64; then
14533     # AIX 5 supports IA64
14534     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14535     shlibpath_var=LD_LIBRARY_PATH
14536   else
14537     # With GCC up to 2.95.x, collect2 would create an import file
14538     # for dependence libraries.  The import file would start with
14539     # the line `#! .'.  This would cause the generated library to
14540     # depend on `.', always an invalid library.  This was fixed in
14541     # development snapshots of GCC prior to 3.0.
14542     case $host_os in
14543       aix4 | aix4.[01] | aix4.[01].*)
14544       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14545            echo ' yes '
14546            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14547         :
14548       else
14549         can_build_shared=no
14550       fi
14551       ;;
14552     esac
14553     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14554     # soname into executable. Probably we can add versioning support to
14555     # collect2, so additional links can be useful in future.
14556     if test "$aix_use_runtimelinking" = yes; then
14557       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14558       # instead of lib<name>.a to let people know that these are not
14559       # typical AIX shared libraries.
14560       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561     else
14562       # We preserve .a as extension for shared libraries through AIX4.2
14563       # and later when we are not doing run time linking.
14564       library_names_spec='${libname}${release}.a $libname.a'
14565       soname_spec='${libname}${release}${shared_ext}$major'
14566     fi
14567     shlibpath_var=LIBPATH
14568   fi
14569   ;;
14570
14571 amigaos*)
14572   library_names_spec='$libname.ixlibrary $libname.a'
14573   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14574   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'
14575   ;;
14576
14577 beos*)
14578   library_names_spec='${libname}${shared_ext}'
14579   dynamic_linker="$host_os ld.so"
14580   shlibpath_var=LIBRARY_PATH
14581   ;;
14582
14583 bsdi[45]*)
14584   version_type=linux
14585   need_version=no
14586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587   soname_spec='${libname}${release}${shared_ext}$major'
14588   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14589   shlibpath_var=LD_LIBRARY_PATH
14590   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14591   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14592   # the default ld.so.conf also contains /usr/contrib/lib and
14593   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14594   # libtool to hard-code these into programs
14595   ;;
14596
14597 cygwin* | mingw* | pw32*)
14598   version_type=windows
14599   shrext_cmds=".dll"
14600   need_version=no
14601   need_lib_prefix=no
14602
14603   case $GCC,$host_os in
14604   yes,cygwin* | yes,mingw* | yes,pw32*)
14605     library_names_spec='$libname.dll.a'
14606     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14607     postinstall_cmds='base_file=`basename \${file}`~
14608       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14609       dldir=$destdir/`dirname \$dlpath`~
14610       test -d \$dldir || mkdir -p \$dldir~
14611       $install_prog $dir/$dlname \$dldir/$dlname~
14612       chmod a+x \$dldir/$dlname'
14613     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14614       dlpath=$dir/\$dldll~
14615        $rm \$dlpath'
14616     shlibpath_overrides_runpath=yes
14617
14618     case $host_os in
14619     cygwin*)
14620       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14621       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14622       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14623       ;;
14624     mingw*)
14625       # MinGW DLLs use traditional 'lib' prefix
14626       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14627       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14628       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14629         # It is most probably a Windows format PATH printed by
14630         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14631         # path with ; separators, and with drive letters. We can handle the
14632         # drive letters (cygwin fileutils understands them), so leave them,
14633         # especially as we might pass files found there to a mingw objdump,
14634         # which wouldn't understand a cygwinified path. Ahh.
14635         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14636       else
14637         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14638       fi
14639       ;;
14640     pw32*)
14641       # pw32 DLLs use 'pw' prefix rather than 'lib'
14642       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14643       ;;
14644     esac
14645     ;;
14646
14647   *)
14648     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14649     ;;
14650   esac
14651   dynamic_linker='Win32 ld.exe'
14652   # FIXME: first we should search . and the directory the executable is in
14653   shlibpath_var=PATH
14654   ;;
14655
14656 darwin* | rhapsody*)
14657   dynamic_linker="$host_os dyld"
14658   version_type=darwin
14659   need_lib_prefix=no
14660   need_version=no
14661   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14662   soname_spec='${libname}${release}${major}$shared_ext'
14663   shlibpath_overrides_runpath=yes
14664   shlibpath_var=DYLD_LIBRARY_PATH
14665   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14666
14667   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14668   ;;
14669
14670 dgux*)
14671   version_type=linux
14672   need_lib_prefix=no
14673   need_version=no
14674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14675   soname_spec='${libname}${release}${shared_ext}$major'
14676   shlibpath_var=LD_LIBRARY_PATH
14677   ;;
14678
14679 freebsd1*)
14680   dynamic_linker=no
14681   ;;
14682
14683 freebsd* | dragonfly*)
14684   # DragonFly does not have aout.  When/if they implement a new
14685   # versioning mechanism, adjust this.
14686   if test -x /usr/bin/objformat; then
14687     objformat=`/usr/bin/objformat`
14688   else
14689     case $host_os in
14690     freebsd[123]*) objformat=aout ;;
14691     *) objformat=elf ;;
14692     esac
14693   fi
14694   # Handle Gentoo/FreeBSD as it was Linux
14695   case $host_vendor in
14696     gentoo)
14697       version_type=linux ;;
14698     *)
14699       version_type=freebsd-$objformat ;;
14700   esac
14701
14702   case $version_type in
14703     freebsd-elf*)
14704       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14705       need_version=no
14706       need_lib_prefix=no
14707       ;;
14708     freebsd-*)
14709       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14710       need_version=yes
14711       ;;
14712     linux)
14713       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14714       soname_spec='${libname}${release}${shared_ext}$major'
14715       need_lib_prefix=no
14716       need_version=no
14717       ;;
14718   esac
14719   shlibpath_var=LD_LIBRARY_PATH
14720   case $host_os in
14721   freebsd2*)
14722     shlibpath_overrides_runpath=yes
14723     ;;
14724   freebsd3.[01]* | freebsdelf3.[01]*)
14725     shlibpath_overrides_runpath=yes
14726     hardcode_into_libs=yes
14727     ;;
14728   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14729   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14730     shlibpath_overrides_runpath=no
14731     hardcode_into_libs=yes
14732     ;;
14733   *) # from 4.6 on, and DragonFly
14734     shlibpath_overrides_runpath=yes
14735     hardcode_into_libs=yes
14736     ;;
14737   esac
14738   ;;
14739
14740 gnu*)
14741   version_type=linux
14742   need_lib_prefix=no
14743   need_version=no
14744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14745   soname_spec='${libname}${release}${shared_ext}$major'
14746   shlibpath_var=LD_LIBRARY_PATH
14747   hardcode_into_libs=yes
14748   ;;
14749
14750 hpux9* | hpux10* | hpux11*)
14751   # Give a soname corresponding to the major version so that dld.sl refuses to
14752   # link against other versions.
14753   version_type=sunos
14754   need_lib_prefix=no
14755   need_version=no
14756   case $host_cpu in
14757   ia64*)
14758     shrext_cmds='.so'
14759     hardcode_into_libs=yes
14760     dynamic_linker="$host_os dld.so"
14761     shlibpath_var=LD_LIBRARY_PATH
14762     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764     soname_spec='${libname}${release}${shared_ext}$major'
14765     if test "X$HPUX_IA64_MODE" = X32; then
14766       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14767     else
14768       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14769     fi
14770     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14771     ;;
14772    hppa*64*)
14773      shrext_cmds='.sl'
14774      hardcode_into_libs=yes
14775      dynamic_linker="$host_os dld.sl"
14776      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14777      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14778      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779      soname_spec='${libname}${release}${shared_ext}$major'
14780      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14781      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14782      ;;
14783    *)
14784     shrext_cmds='.sl'
14785     dynamic_linker="$host_os dld.sl"
14786     shlibpath_var=SHLIB_PATH
14787     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789     soname_spec='${libname}${release}${shared_ext}$major'
14790     ;;
14791   esac
14792   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14793   postinstall_cmds='chmod 555 $lib'
14794   ;;
14795
14796 interix[3-9]*)
14797   version_type=linux
14798   need_lib_prefix=no
14799   need_version=no
14800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14801   soname_spec='${libname}${release}${shared_ext}$major'
14802   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14803   shlibpath_var=LD_LIBRARY_PATH
14804   shlibpath_overrides_runpath=no
14805   hardcode_into_libs=yes
14806   ;;
14807
14808 irix5* | irix6* | nonstopux*)
14809   case $host_os in
14810     nonstopux*) version_type=nonstopux ;;
14811     *)
14812         if test "$lt_cv_prog_gnu_ld" = yes; then
14813                 version_type=linux
14814         else
14815                 version_type=irix
14816         fi ;;
14817   esac
14818   need_lib_prefix=no
14819   need_version=no
14820   soname_spec='${libname}${release}${shared_ext}$major'
14821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14822   case $host_os in
14823   irix5* | nonstopux*)
14824     libsuff= shlibsuff=
14825     ;;
14826   *)
14827     case $LD in # libtool.m4 will add one of these switches to LD
14828     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14829       libsuff= shlibsuff= libmagic=32-bit;;
14830     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14831       libsuff=32 shlibsuff=N32 libmagic=N32;;
14832     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14833       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14834     *) libsuff= shlibsuff= libmagic=never-match;;
14835     esac
14836     ;;
14837   esac
14838   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14839   shlibpath_overrides_runpath=no
14840   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14841   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14842   hardcode_into_libs=yes
14843   ;;
14844
14845 # No shared lib support for Linux oldld, aout, or coff.
14846 linux*oldld* | linux*aout* | linux*coff*)
14847   dynamic_linker=no
14848   ;;
14849
14850 # This must be Linux ELF.
14851 linux* | k*bsd*-gnu)
14852   version_type=linux
14853   need_lib_prefix=no
14854   need_version=no
14855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856   soname_spec='${libname}${release}${shared_ext}$major'
14857   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14858   shlibpath_var=LD_LIBRARY_PATH
14859   shlibpath_overrides_runpath=no
14860   # This implies no fast_install, which is unacceptable.
14861   # Some rework will be needed to allow for fast_install
14862   # before this can be enabled.
14863   hardcode_into_libs=yes
14864
14865   # Append ld.so.conf contents to the search path
14866   if test -f /etc/ld.so.conf; then
14867     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14868     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14869   fi
14870
14871   # We used to test for /lib/ld.so.1 and disable shared libraries on
14872   # powerpc, because MkLinux only supported shared libraries with the
14873   # GNU dynamic linker.  Since this was broken with cross compilers,
14874   # most powerpc-linux boxes support dynamic linking these days and
14875   # people can always --disable-shared, the test was removed, and we
14876   # assume the GNU/Linux dynamic linker is in use.
14877   dynamic_linker='GNU/Linux ld.so'
14878   ;;
14879
14880 netbsd*)
14881   version_type=sunos
14882   need_lib_prefix=no
14883   need_version=no
14884   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14886     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14887     dynamic_linker='NetBSD (a.out) ld.so'
14888   else
14889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14890     soname_spec='${libname}${release}${shared_ext}$major'
14891     dynamic_linker='NetBSD ld.elf_so'
14892   fi
14893   shlibpath_var=LD_LIBRARY_PATH
14894   shlibpath_overrides_runpath=yes
14895   hardcode_into_libs=yes
14896   ;;
14897
14898 newsos6)
14899   version_type=linux
14900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   shlibpath_overrides_runpath=yes
14903   ;;
14904
14905 nto-qnx*)
14906   version_type=linux
14907   need_lib_prefix=no
14908   need_version=no
14909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910   soname_spec='${libname}${release}${shared_ext}$major'
14911   shlibpath_var=LD_LIBRARY_PATH
14912   shlibpath_overrides_runpath=yes
14913   ;;
14914
14915 openbsd*)
14916   version_type=sunos
14917   sys_lib_dlsearch_path_spec="/usr/lib"
14918   need_lib_prefix=no
14919   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14920   case $host_os in
14921     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14922     *)                         need_version=no  ;;
14923   esac
14924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14926   shlibpath_var=LD_LIBRARY_PATH
14927   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14928     case $host_os in
14929       openbsd2.[89] | openbsd2.[89].*)
14930         shlibpath_overrides_runpath=no
14931         ;;
14932       *)
14933         shlibpath_overrides_runpath=yes
14934         ;;
14935       esac
14936   else
14937     shlibpath_overrides_runpath=yes
14938   fi
14939   ;;
14940
14941 os2*)
14942   libname_spec='$name'
14943   shrext_cmds=".dll"
14944   need_lib_prefix=no
14945   library_names_spec='$libname${shared_ext} $libname.a'
14946   dynamic_linker='OS/2 ld.exe'
14947   shlibpath_var=LIBPATH
14948   ;;
14949
14950 osf3* | osf4* | osf5*)
14951   version_type=osf
14952   need_lib_prefix=no
14953   need_version=no
14954   soname_spec='${libname}${release}${shared_ext}$major'
14955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14958   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14959   ;;
14960
14961 rdos*)
14962   dynamic_linker=no
14963   ;;
14964
14965 solaris*)
14966   version_type=linux
14967   need_lib_prefix=no
14968   need_version=no
14969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970   soname_spec='${libname}${release}${shared_ext}$major'
14971   shlibpath_var=LD_LIBRARY_PATH
14972   shlibpath_overrides_runpath=yes
14973   hardcode_into_libs=yes
14974   # ldd complains unless libraries are executable
14975   postinstall_cmds='chmod +x $lib'
14976   ;;
14977
14978 sunos4*)
14979   version_type=sunos
14980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14981   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14982   shlibpath_var=LD_LIBRARY_PATH
14983   shlibpath_overrides_runpath=yes
14984   if test "$with_gnu_ld" = yes; then
14985     need_lib_prefix=no
14986   fi
14987   need_version=yes
14988   ;;
14989
14990 sysv4 | sysv4.3*)
14991   version_type=linux
14992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14993   soname_spec='${libname}${release}${shared_ext}$major'
14994   shlibpath_var=LD_LIBRARY_PATH
14995   case $host_vendor in
14996     sni)
14997       shlibpath_overrides_runpath=no
14998       need_lib_prefix=no
14999       export_dynamic_flag_spec='${wl}-Blargedynsym'
15000       runpath_var=LD_RUN_PATH
15001       ;;
15002     siemens)
15003       need_lib_prefix=no
15004       ;;
15005     motorola)
15006       need_lib_prefix=no
15007       need_version=no
15008       shlibpath_overrides_runpath=no
15009       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15010       ;;
15011   esac
15012   ;;
15013
15014 sysv4*MP*)
15015   if test -d /usr/nec ;then
15016     version_type=linux
15017     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15018     soname_spec='$libname${shared_ext}.$major'
15019     shlibpath_var=LD_LIBRARY_PATH
15020   fi
15021   ;;
15022
15023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15024   version_type=freebsd-elf
15025   need_lib_prefix=no
15026   need_version=no
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15028   soname_spec='${libname}${release}${shared_ext}$major'
15029   shlibpath_var=LD_LIBRARY_PATH
15030   hardcode_into_libs=yes
15031   if test "$with_gnu_ld" = yes; then
15032     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15033     shlibpath_overrides_runpath=no
15034   else
15035     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15036     shlibpath_overrides_runpath=yes
15037     case $host_os in
15038       sco3.2v5*)
15039         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15040         ;;
15041     esac
15042   fi
15043   sys_lib_dlsearch_path_spec='/usr/lib'
15044   ;;
15045
15046 uts4*)
15047   version_type=linux
15048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049   soname_spec='${libname}${release}${shared_ext}$major'
15050   shlibpath_var=LD_LIBRARY_PATH
15051   ;;
15052
15053 *)
15054   dynamic_linker=no
15055   ;;
15056 esac
15057 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15058 echo "${ECHO_T}$dynamic_linker" >&6; }
15059 test "$dynamic_linker" = no && can_build_shared=no
15060
15061 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15062   echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15065 fi
15066
15067 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15068 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15069   echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15072 fi
15073
15074 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15075
15076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15077 if test "$GCC" = yes; then
15078   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15079 fi
15080
15081 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15082 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15083 hardcode_action_CXX=
15084 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15085    test -n "$runpath_var_CXX" || \
15086    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15087
15088   # We can hardcode non-existant directories.
15089   if test "$hardcode_direct_CXX" != no &&
15090      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15091      # have to relink, otherwise we might link with an installed library
15092      # when we should be linking with a yet-to-be-installed one
15093      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15094      test "$hardcode_minus_L_CXX" != no; then
15095     # Linking always hardcodes the temporary library directory.
15096     hardcode_action_CXX=relink
15097   else
15098     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15099     hardcode_action_CXX=immediate
15100   fi
15101 else
15102   # We cannot hardcode anything, or else we can only hardcode existing
15103   # directories.
15104   hardcode_action_CXX=unsupported
15105 fi
15106 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15107 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15108
15109 if test "$hardcode_action_CXX" = relink; then
15110   # Fast installation is not supported
15111   enable_fast_install=no
15112 elif test "$shlibpath_overrides_runpath" = yes ||
15113      test "$enable_shared" = no; then
15114   # Fast installation is not necessary
15115   enable_fast_install=needless
15116 fi
15117
15118
15119 # The else clause should only fire when bootstrapping the
15120 # libtool distribution, otherwise you forgot to ship ltmain.sh
15121 # with your package, and you will get complaints that there are
15122 # no rules to generate ltmain.sh.
15123 if test -f "$ltmain"; then
15124   # See if we are running on zsh, and set the options which allow our commands through
15125   # without removal of \ escapes.
15126   if test -n "${ZSH_VERSION+set}" ; then
15127     setopt NO_GLOB_SUBST
15128   fi
15129   # Now quote all the things that may contain metacharacters while being
15130   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15131   # variables and quote the copies for generation of the libtool script.
15132   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15133     SED SHELL STRIP \
15134     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15135     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15136     deplibs_check_method reload_flag reload_cmds need_locks \
15137     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15138     lt_cv_sys_global_symbol_to_c_name_address \
15139     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15140     old_postinstall_cmds old_postuninstall_cmds \
15141     compiler_CXX \
15142     CC_CXX \
15143     LD_CXX \
15144     lt_prog_compiler_wl_CXX \
15145     lt_prog_compiler_pic_CXX \
15146     lt_prog_compiler_static_CXX \
15147     lt_prog_compiler_no_builtin_flag_CXX \
15148     export_dynamic_flag_spec_CXX \
15149     thread_safe_flag_spec_CXX \
15150     whole_archive_flag_spec_CXX \
15151     enable_shared_with_static_runtimes_CXX \
15152     old_archive_cmds_CXX \
15153     old_archive_from_new_cmds_CXX \
15154     predep_objects_CXX \
15155     postdep_objects_CXX \
15156     predeps_CXX \
15157     postdeps_CXX \
15158     compiler_lib_search_path_CXX \
15159     compiler_lib_search_dirs_CXX \
15160     archive_cmds_CXX \
15161     archive_expsym_cmds_CXX \
15162     postinstall_cmds_CXX \
15163     postuninstall_cmds_CXX \
15164     old_archive_from_expsyms_cmds_CXX \
15165     allow_undefined_flag_CXX \
15166     no_undefined_flag_CXX \
15167     export_symbols_cmds_CXX \
15168     hardcode_libdir_flag_spec_CXX \
15169     hardcode_libdir_flag_spec_ld_CXX \
15170     hardcode_libdir_separator_CXX \
15171     hardcode_automatic_CXX \
15172     module_cmds_CXX \
15173     module_expsym_cmds_CXX \
15174     lt_cv_prog_compiler_c_o_CXX \
15175     fix_srcfile_path_CXX \
15176     exclude_expsyms_CXX \
15177     include_expsyms_CXX; do
15178
15179     case $var in
15180     old_archive_cmds_CXX | \
15181     old_archive_from_new_cmds_CXX | \
15182     archive_cmds_CXX | \
15183     archive_expsym_cmds_CXX | \
15184     module_cmds_CXX | \
15185     module_expsym_cmds_CXX | \
15186     old_archive_from_expsyms_cmds_CXX | \
15187     export_symbols_cmds_CXX | \
15188     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15189     postinstall_cmds | postuninstall_cmds | \
15190     old_postinstall_cmds | old_postuninstall_cmds | \
15191     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15192       # Double-quote double-evaled strings.
15193       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15194       ;;
15195     *)
15196       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15197       ;;
15198     esac
15199   done
15200
15201   case $lt_echo in
15202   *'\$0 --fallback-echo"')
15203     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15204     ;;
15205   esac
15206
15207 cfgfile="$ofile"
15208
15209   cat <<__EOF__ >> "$cfgfile"
15210 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15211
15212 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15213
15214 # Shell to use when invoking shell scripts.
15215 SHELL=$lt_SHELL
15216
15217 # Whether or not to build shared libraries.
15218 build_libtool_libs=$enable_shared
15219
15220 # Whether or not to build static libraries.
15221 build_old_libs=$enable_static
15222
15223 # Whether or not to add -lc for building shared libraries.
15224 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15225
15226 # Whether or not to disallow shared libs when runtime libs are static
15227 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15228
15229 # Whether or not to optimize for fast installation.
15230 fast_install=$enable_fast_install
15231
15232 # The host system.
15233 host_alias=$host_alias
15234 host=$host
15235 host_os=$host_os
15236
15237 # The build system.
15238 build_alias=$build_alias
15239 build=$build
15240 build_os=$build_os
15241
15242 # An echo program that does not interpret backslashes.
15243 echo=$lt_echo
15244
15245 # The archiver.
15246 AR=$lt_AR
15247 AR_FLAGS=$lt_AR_FLAGS
15248
15249 # A C compiler.
15250 LTCC=$lt_LTCC
15251
15252 # LTCC compiler flags.
15253 LTCFLAGS=$lt_LTCFLAGS
15254
15255 # A language-specific compiler.
15256 CC=$lt_compiler_CXX
15257
15258 # Is the compiler the GNU C compiler?
15259 with_gcc=$GCC_CXX
15260
15261 # An ERE matcher.
15262 EGREP=$lt_EGREP
15263
15264 # The linker used to build libraries.
15265 LD=$lt_LD_CXX
15266
15267 # Whether we need hard or soft links.
15268 LN_S=$lt_LN_S
15269
15270 # A BSD-compatible nm program.
15271 NM=$lt_NM
15272
15273 # A symbol stripping program
15274 STRIP=$lt_STRIP
15275
15276 # Used to examine libraries when file_magic_cmd begins "file"
15277 MAGIC_CMD=$MAGIC_CMD
15278
15279 # Used on cygwin: DLL creation program.
15280 DLLTOOL="$DLLTOOL"
15281
15282 # Used on cygwin: object dumper.
15283 OBJDUMP="$OBJDUMP"
15284
15285 # Used on cygwin: assembler.
15286 AS="$AS"
15287
15288 # The name of the directory that contains temporary libtool files.
15289 objdir=$objdir
15290
15291 # How to create reloadable object files.
15292 reload_flag=$lt_reload_flag
15293 reload_cmds=$lt_reload_cmds
15294
15295 # How to pass a linker flag through the compiler.
15296 wl=$lt_lt_prog_compiler_wl_CXX
15297
15298 # Object file suffix (normally "o").
15299 objext="$ac_objext"
15300
15301 # Old archive suffix (normally "a").
15302 libext="$libext"
15303
15304 # Shared library suffix (normally ".so").
15305 shrext_cmds='$shrext_cmds'
15306
15307 # Executable file suffix (normally "").
15308 exeext="$exeext"
15309
15310 # Additional compiler flags for building library objects.
15311 pic_flag=$lt_lt_prog_compiler_pic_CXX
15312 pic_mode=$pic_mode
15313
15314 # What is the maximum length of a command?
15315 max_cmd_len=$lt_cv_sys_max_cmd_len
15316
15317 # Does compiler simultaneously support -c and -o options?
15318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15319
15320 # Must we lock files when doing compilation?
15321 need_locks=$lt_need_locks
15322
15323 # Do we need the lib prefix for modules?
15324 need_lib_prefix=$need_lib_prefix
15325
15326 # Do we need a version for libraries?
15327 need_version=$need_version
15328
15329 # Whether dlopen is supported.
15330 dlopen_support=$enable_dlopen
15331
15332 # Whether dlopen of programs is supported.
15333 dlopen_self=$enable_dlopen_self
15334
15335 # Whether dlopen of statically linked programs is supported.
15336 dlopen_self_static=$enable_dlopen_self_static
15337
15338 # Compiler flag to prevent dynamic linking.
15339 link_static_flag=$lt_lt_prog_compiler_static_CXX
15340
15341 # Compiler flag to turn off builtin functions.
15342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15343
15344 # Compiler flag to allow reflexive dlopens.
15345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15346
15347 # Compiler flag to generate shared objects directly from archives.
15348 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15349
15350 # Compiler flag to generate thread-safe objects.
15351 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15352
15353 # Library versioning type.
15354 version_type=$version_type
15355
15356 # Format of library name prefix.
15357 libname_spec=$lt_libname_spec
15358
15359 # List of archive names.  First name is the real one, the rest are links.
15360 # The last name is the one that the linker finds with -lNAME.
15361 library_names_spec=$lt_library_names_spec
15362
15363 # The coded name of the library, if different from the real name.
15364 soname_spec=$lt_soname_spec
15365
15366 # Commands used to build and install an old-style archive.
15367 RANLIB=$lt_RANLIB
15368 old_archive_cmds=$lt_old_archive_cmds_CXX
15369 old_postinstall_cmds=$lt_old_postinstall_cmds
15370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15371
15372 # Create an old-style archive from a shared archive.
15373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15374
15375 # Create a temporary old-style archive to link instead of a shared archive.
15376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15377
15378 # Commands used to build and install a shared archive.
15379 archive_cmds=$lt_archive_cmds_CXX
15380 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15381 postinstall_cmds=$lt_postinstall_cmds
15382 postuninstall_cmds=$lt_postuninstall_cmds
15383
15384 # Commands used to build a loadable module (assumed same as above if empty)
15385 module_cmds=$lt_module_cmds_CXX
15386 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15387
15388 # Commands to strip libraries.
15389 old_striplib=$lt_old_striplib
15390 striplib=$lt_striplib
15391
15392 # Dependencies to place before the objects being linked to create a
15393 # shared library.
15394 predep_objects=$lt_predep_objects_CXX
15395
15396 # Dependencies to place after the objects being linked to create a
15397 # shared library.
15398 postdep_objects=$lt_postdep_objects_CXX
15399
15400 # Dependencies to place before the objects being linked to create a
15401 # shared library.
15402 predeps=$lt_predeps_CXX
15403
15404 # Dependencies to place after the objects being linked to create a
15405 # shared library.
15406 postdeps=$lt_postdeps_CXX
15407
15408 # The directories searched by this compiler when creating a shared
15409 # library
15410 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15411
15412 # The library search path used internally by the compiler when linking
15413 # a shared library.
15414 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15415
15416 # Method to check whether dependent libraries are shared objects.
15417 deplibs_check_method=$lt_deplibs_check_method
15418
15419 # Command to use when deplibs_check_method == file_magic.
15420 file_magic_cmd=$lt_file_magic_cmd
15421
15422 # Flag that allows shared libraries with undefined symbols to be built.
15423 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15424
15425 # Flag that forces no undefined symbols.
15426 no_undefined_flag=$lt_no_undefined_flag_CXX
15427
15428 # Commands used to finish a libtool library installation in a directory.
15429 finish_cmds=$lt_finish_cmds
15430
15431 # Same as above, but a single script fragment to be evaled but not shown.
15432 finish_eval=$lt_finish_eval
15433
15434 # Take the output of nm and produce a listing of raw symbols and C names.
15435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15436
15437 # Transform the output of nm in a proper C declaration
15438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15439
15440 # Transform the output of nm in a C name address pair
15441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15442
15443 # This is the shared library runtime path variable.
15444 runpath_var=$runpath_var
15445
15446 # This is the shared library path variable.
15447 shlibpath_var=$shlibpath_var
15448
15449 # Is shlibpath searched before the hard-coded library search path?
15450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15451
15452 # How to hardcode a shared library path into an executable.
15453 hardcode_action=$hardcode_action_CXX
15454
15455 # Whether we should hardcode library paths into libraries.
15456 hardcode_into_libs=$hardcode_into_libs
15457
15458 # Flag to hardcode \$libdir into a binary during linking.
15459 # This must work even if \$libdir does not exist.
15460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15461
15462 # If ld is used when linking, flag to hardcode \$libdir into
15463 # a binary during linking. This must work even if \$libdir does
15464 # not exist.
15465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15466
15467 # Whether we need a single -rpath flag with a separated argument.
15468 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15469
15470 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15471 # resulting binary.
15472 hardcode_direct=$hardcode_direct_CXX
15473
15474 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15475 # resulting binary.
15476 hardcode_minus_L=$hardcode_minus_L_CXX
15477
15478 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15479 # the resulting binary.
15480 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15481
15482 # Set to yes if building a shared library automatically hardcodes DIR into the library
15483 # and all subsequent libraries and executables linked against it.
15484 hardcode_automatic=$hardcode_automatic_CXX
15485
15486 # Variables whose values should be saved in libtool wrapper scripts and
15487 # restored at relink time.
15488 variables_saved_for_relink="$variables_saved_for_relink"
15489
15490 # Whether libtool must link a program against all its dependency libraries.
15491 link_all_deplibs=$link_all_deplibs_CXX
15492
15493 # Compile-time system search path for libraries
15494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15495
15496 # Run-time system search path for libraries
15497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15498
15499 # Fix the shell variable \$srcfile for the compiler.
15500 fix_srcfile_path=$lt_fix_srcfile_path
15501
15502 # Set to yes if exported symbols are required.
15503 always_export_symbols=$always_export_symbols_CXX
15504
15505 # The commands to list exported symbols.
15506 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15507
15508 # The commands to extract the exported symbol list from a shared archive.
15509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15510
15511 # Symbols that should not be listed in the preloaded symbols.
15512 exclude_expsyms=$lt_exclude_expsyms_CXX
15513
15514 # Symbols that must always be exported.
15515 include_expsyms=$lt_include_expsyms_CXX
15516
15517 # ### END LIBTOOL TAG CONFIG: $tagname
15518
15519 __EOF__
15520
15521
15522 else
15523   # If there is no Makefile yet, we rely on a make rule to execute
15524   # `config.status --recheck' to rerun these tests and create the
15525   # libtool script then.
15526   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15527   if test -f "$ltmain_in"; then
15528     test -f Makefile && make "$ltmain"
15529   fi
15530 fi
15531
15532
15533 ac_ext=c
15534 ac_cpp='$CPP $CPPFLAGS'
15535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15538
15539 CC=$lt_save_CC
15540 LDCXX=$LD
15541 LD=$lt_save_LD
15542 GCC=$lt_save_GCC
15543 with_gnu_ldcxx=$with_gnu_ld
15544 with_gnu_ld=$lt_save_with_gnu_ld
15545 lt_cv_path_LDCXX=$lt_cv_path_LD
15546 lt_cv_path_LD=$lt_save_path_LD
15547 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15548 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15549
15550         else
15551           tagname=""
15552         fi
15553         ;;
15554
15555       F77)
15556         if test -n "$F77" && test "X$F77" != "Xno"; then
15557
15558 ac_ext=f
15559 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15560 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15561 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15562
15563
15564 archive_cmds_need_lc_F77=no
15565 allow_undefined_flag_F77=
15566 always_export_symbols_F77=no
15567 archive_expsym_cmds_F77=
15568 export_dynamic_flag_spec_F77=
15569 hardcode_direct_F77=no
15570 hardcode_libdir_flag_spec_F77=
15571 hardcode_libdir_flag_spec_ld_F77=
15572 hardcode_libdir_separator_F77=
15573 hardcode_minus_L_F77=no
15574 hardcode_automatic_F77=no
15575 module_cmds_F77=
15576 module_expsym_cmds_F77=
15577 link_all_deplibs_F77=unknown
15578 old_archive_cmds_F77=$old_archive_cmds
15579 no_undefined_flag_F77=
15580 whole_archive_flag_spec_F77=
15581 enable_shared_with_static_runtimes_F77=no
15582
15583 # Source file extension for f77 test sources.
15584 ac_ext=f
15585
15586 # Object file extension for compiled f77 test sources.
15587 objext=o
15588 objext_F77=$objext
15589
15590 # Code to be used in simple compile tests
15591 lt_simple_compile_test_code="\
15592       subroutine t
15593       return
15594       end
15595 "
15596
15597 # Code to be used in simple link tests
15598 lt_simple_link_test_code="\
15599       program t
15600       end
15601 "
15602
15603 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15604
15605 # If no C compiler was specified, use CC.
15606 LTCC=${LTCC-"$CC"}
15607
15608 # If no C compiler flags were specified, use CFLAGS.
15609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15610
15611 # Allow CC to be a program name with arguments.
15612 compiler=$CC
15613
15614
15615 # save warnings/boilerplate of simple test code
15616 ac_outfile=conftest.$ac_objext
15617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15619 _lt_compiler_boilerplate=`cat conftest.err`
15620 $rm conftest*
15621
15622 ac_outfile=conftest.$ac_objext
15623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15625 _lt_linker_boilerplate=`cat conftest.err`
15626 $rm -r conftest*
15627
15628
15629 # Allow CC to be a program name with arguments.
15630 lt_save_CC="$CC"
15631 CC=${F77-"f77"}
15632 compiler=$CC
15633 compiler_F77=$CC
15634 for cc_temp in $compiler""; do
15635   case $cc_temp in
15636     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15637     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15638     \-*) ;;
15639     *) break;;
15640   esac
15641 done
15642 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15643
15644
15645 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15646 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15647 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15648 echo "${ECHO_T}$can_build_shared" >&6; }
15649
15650 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15651 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15652 test "$can_build_shared" = "no" && enable_shared=no
15653
15654 # On AIX, shared libraries and static libraries use the same namespace, and
15655 # are all built from PIC.
15656 case $host_os in
15657 aix3*)
15658   test "$enable_shared" = yes && enable_static=no
15659   if test -n "$RANLIB"; then
15660     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15661     postinstall_cmds='$RANLIB $lib'
15662   fi
15663   ;;
15664 aix[4-9]*)
15665   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15666     test "$enable_shared" = yes && enable_static=no
15667   fi
15668   ;;
15669 esac
15670 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15671 echo "${ECHO_T}$enable_shared" >&6; }
15672
15673 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15674 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15675 # Make sure either enable_shared or enable_static is yes.
15676 test "$enable_shared" = yes || enable_static=yes
15677 { echo "$as_me:$LINENO: result: $enable_static" >&5
15678 echo "${ECHO_T}$enable_static" >&6; }
15679
15680 GCC_F77="$G77"
15681 LD_F77="$LD"
15682
15683 lt_prog_compiler_wl_F77=
15684 lt_prog_compiler_pic_F77=
15685 lt_prog_compiler_static_F77=
15686
15687 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15689
15690   if test "$GCC" = yes; then
15691     lt_prog_compiler_wl_F77='-Wl,'
15692     lt_prog_compiler_static_F77='-static'
15693
15694     case $host_os in
15695       aix*)
15696       # All AIX code is PIC.
15697       if test "$host_cpu" = ia64; then
15698         # AIX 5 now supports IA64 processor
15699         lt_prog_compiler_static_F77='-Bstatic'
15700       fi
15701       ;;
15702
15703     amigaos*)
15704       # FIXME: we need at least 68020 code to build shared libraries, but
15705       # adding the `-m68020' flag to GCC prevents building anything better,
15706       # like `-m68040'.
15707       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15708       ;;
15709
15710     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15711       # PIC is the default for these OSes.
15712       ;;
15713
15714     mingw* | cygwin* | pw32* | os2*)
15715       # This hack is so that the source file can tell whether it is being
15716       # built for inclusion in a dll (and should export symbols for example).
15717       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15718       # (--disable-auto-import) libraries
15719       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15720       ;;
15721
15722     darwin* | rhapsody*)
15723       # PIC is the default on this platform
15724       # Common symbols not allowed in MH_DYLIB files
15725       lt_prog_compiler_pic_F77='-fno-common'
15726       ;;
15727
15728     interix[3-9]*)
15729       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15730       # Instead, we relocate shared libraries at runtime.
15731       ;;
15732
15733     msdosdjgpp*)
15734       # Just because we use GCC doesn't mean we suddenly get shared libraries
15735       # on systems that don't support them.
15736       lt_prog_compiler_can_build_shared_F77=no
15737       enable_shared=no
15738       ;;
15739
15740     sysv4*MP*)
15741       if test -d /usr/nec; then
15742         lt_prog_compiler_pic_F77=-Kconform_pic
15743       fi
15744       ;;
15745
15746     hpux*)
15747       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15748       # not for PA HP-UX.
15749       case $host_cpu in
15750       hppa*64*|ia64*)
15751         # +Z the default
15752         ;;
15753       *)
15754         lt_prog_compiler_pic_F77='-fPIC'
15755         ;;
15756       esac
15757       ;;
15758
15759     *)
15760       lt_prog_compiler_pic_F77='-fPIC'
15761       ;;
15762     esac
15763   else
15764     # PORTME Check for flag to pass linker flags through the system compiler.
15765     case $host_os in
15766     aix*)
15767       lt_prog_compiler_wl_F77='-Wl,'
15768       if test "$host_cpu" = ia64; then
15769         # AIX 5 now supports IA64 processor
15770         lt_prog_compiler_static_F77='-Bstatic'
15771       else
15772         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15773       fi
15774       ;;
15775       darwin*)
15776         # PIC is the default on this platform
15777         # Common symbols not allowed in MH_DYLIB files
15778        case $cc_basename in
15779          xlc*)
15780          lt_prog_compiler_pic_F77='-qnocommon'
15781          lt_prog_compiler_wl_F77='-Wl,'
15782          ;;
15783        esac
15784        ;;
15785
15786     mingw* | cygwin* | pw32* | os2*)
15787       # This hack is so that the source file can tell whether it is being
15788       # built for inclusion in a dll (and should export symbols for example).
15789       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15790       ;;
15791
15792     hpux9* | hpux10* | hpux11*)
15793       lt_prog_compiler_wl_F77='-Wl,'
15794       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15795       # not for PA HP-UX.
15796       case $host_cpu in
15797       hppa*64*|ia64*)
15798         # +Z the default
15799         ;;
15800       *)
15801         lt_prog_compiler_pic_F77='+Z'
15802         ;;
15803       esac
15804       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15805       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15806       ;;
15807
15808     irix5* | irix6* | nonstopux*)
15809       lt_prog_compiler_wl_F77='-Wl,'
15810       # PIC (with -KPIC) is the default.
15811       lt_prog_compiler_static_F77='-non_shared'
15812       ;;
15813
15814     newsos6)
15815       lt_prog_compiler_pic_F77='-KPIC'
15816       lt_prog_compiler_static_F77='-Bstatic'
15817       ;;
15818
15819     linux* | k*bsd*-gnu)
15820       case $cc_basename in
15821       icc* | ecc*)
15822         lt_prog_compiler_wl_F77='-Wl,'
15823         lt_prog_compiler_pic_F77='-KPIC'
15824         lt_prog_compiler_static_F77='-static'
15825         ;;
15826       pgcc* | pgf77* | pgf90* | pgf95*)
15827         # Portland Group compilers (*not* the Pentium gcc compiler,
15828         # which looks to be a dead project)
15829         lt_prog_compiler_wl_F77='-Wl,'
15830         lt_prog_compiler_pic_F77='-fpic'
15831         lt_prog_compiler_static_F77='-Bstatic'
15832         ;;
15833       ccc*)
15834         lt_prog_compiler_wl_F77='-Wl,'
15835         # All Alpha code is PIC.
15836         lt_prog_compiler_static_F77='-non_shared'
15837         ;;
15838       *)
15839         case `$CC -V 2>&1 | sed 5q` in
15840         *Sun\ C*)
15841           # Sun C 5.9
15842           lt_prog_compiler_pic_F77='-KPIC'
15843           lt_prog_compiler_static_F77='-Bstatic'
15844           lt_prog_compiler_wl_F77='-Wl,'
15845           ;;
15846         *Sun\ F*)
15847           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15848           lt_prog_compiler_pic_F77='-KPIC'
15849           lt_prog_compiler_static_F77='-Bstatic'
15850           lt_prog_compiler_wl_F77=''
15851           ;;
15852         esac
15853         ;;
15854       esac
15855       ;;
15856
15857     osf3* | osf4* | osf5*)
15858       lt_prog_compiler_wl_F77='-Wl,'
15859       # All OSF/1 code is PIC.
15860       lt_prog_compiler_static_F77='-non_shared'
15861       ;;
15862
15863     rdos*)
15864       lt_prog_compiler_static_F77='-non_shared'
15865       ;;
15866
15867     solaris*)
15868       lt_prog_compiler_pic_F77='-KPIC'
15869       lt_prog_compiler_static_F77='-Bstatic'
15870       case $cc_basename in
15871       f77* | f90* | f95*)
15872         lt_prog_compiler_wl_F77='-Qoption ld ';;
15873       *)
15874         lt_prog_compiler_wl_F77='-Wl,';;
15875       esac
15876       ;;
15877
15878     sunos4*)
15879       lt_prog_compiler_wl_F77='-Qoption ld '
15880       lt_prog_compiler_pic_F77='-PIC'
15881       lt_prog_compiler_static_F77='-Bstatic'
15882       ;;
15883
15884     sysv4 | sysv4.2uw2* | sysv4.3*)
15885       lt_prog_compiler_wl_F77='-Wl,'
15886       lt_prog_compiler_pic_F77='-KPIC'
15887       lt_prog_compiler_static_F77='-Bstatic'
15888       ;;
15889
15890     sysv4*MP*)
15891       if test -d /usr/nec ;then
15892         lt_prog_compiler_pic_F77='-Kconform_pic'
15893         lt_prog_compiler_static_F77='-Bstatic'
15894       fi
15895       ;;
15896
15897     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15898       lt_prog_compiler_wl_F77='-Wl,'
15899       lt_prog_compiler_pic_F77='-KPIC'
15900       lt_prog_compiler_static_F77='-Bstatic'
15901       ;;
15902
15903     unicos*)
15904       lt_prog_compiler_wl_F77='-Wl,'
15905       lt_prog_compiler_can_build_shared_F77=no
15906       ;;
15907
15908     uts4*)
15909       lt_prog_compiler_pic_F77='-pic'
15910       lt_prog_compiler_static_F77='-Bstatic'
15911       ;;
15912
15913     *)
15914       lt_prog_compiler_can_build_shared_F77=no
15915       ;;
15916     esac
15917   fi
15918
15919 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15920 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15921
15922 #
15923 # Check to make sure the PIC flag actually works.
15924 #
15925 if test -n "$lt_prog_compiler_pic_F77"; then
15926
15927 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15929 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   lt_cv_prog_compiler_pic_works_F77=no
15933   ac_outfile=conftest.$ac_objext
15934    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15935    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15936    # Insert the option either (1) after the last *FLAGS variable, or
15937    # (2) before a word containing "conftest.", or (3) at the end.
15938    # Note that $ac_compile itself does not contain backslashes and begins
15939    # with a dollar sign (not a hyphen), so the echo should work correctly.
15940    # The option is referenced via a variable to avoid confusing sed.
15941    lt_compile=`echo "$ac_compile" | $SED \
15942    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15943    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15944    -e 's:$: $lt_compiler_flag:'`
15945    (eval echo "\"\$as_me:15945: $lt_compile\"" >&5)
15946    (eval "$lt_compile" 2>conftest.err)
15947    ac_status=$?
15948    cat conftest.err >&5
15949    echo "$as_me:15949: \$? = $ac_status" >&5
15950    if (exit $ac_status) && test -s "$ac_outfile"; then
15951      # The compiler can only warn and ignore the option if not recognized
15952      # So say no if there are warnings other than the usual output.
15953      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15954      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15955      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15956        lt_cv_prog_compiler_pic_works_F77=yes
15957      fi
15958    fi
15959    $rm conftest*
15960
15961 fi
15962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15963 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15964
15965 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15966     case $lt_prog_compiler_pic_F77 in
15967      "" | " "*) ;;
15968      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15969      esac
15970 else
15971     lt_prog_compiler_pic_F77=
15972      lt_prog_compiler_can_build_shared_F77=no
15973 fi
15974
15975 fi
15976 case $host_os in
15977   # For platforms which do not support PIC, -DPIC is meaningless:
15978   *djgpp*)
15979     lt_prog_compiler_pic_F77=
15980     ;;
15981   *)
15982     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15983     ;;
15984 esac
15985
15986 #
15987 # Check to make sure the static flag actually works.
15988 #
15989 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15990 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15991 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15992 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15993   echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995   lt_cv_prog_compiler_static_works_F77=no
15996    save_LDFLAGS="$LDFLAGS"
15997    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15998    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15999    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16000      # The linker can only warn and ignore the option if not recognized
16001      # So say no if there are warnings
16002      if test -s conftest.err; then
16003        # Append any errors to the config.log.
16004        cat conftest.err 1>&5
16005        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16006        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16007        if diff conftest.exp conftest.er2 >/dev/null; then
16008          lt_cv_prog_compiler_static_works_F77=yes
16009        fi
16010      else
16011        lt_cv_prog_compiler_static_works_F77=yes
16012      fi
16013    fi
16014    $rm -r conftest*
16015    LDFLAGS="$save_LDFLAGS"
16016
16017 fi
16018 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16019 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16020
16021 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16022     :
16023 else
16024     lt_prog_compiler_static_F77=
16025 fi
16026
16027
16028 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16029 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16030 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   lt_cv_prog_compiler_c_o_F77=no
16034    $rm -r conftest 2>/dev/null
16035    mkdir conftest
16036    cd conftest
16037    mkdir out
16038    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16039
16040    lt_compiler_flag="-o out/conftest2.$ac_objext"
16041    # Insert the option either (1) after the last *FLAGS variable, or
16042    # (2) before a word containing "conftest.", or (3) at the end.
16043    # Note that $ac_compile itself does not contain backslashes and begins
16044    # with a dollar sign (not a hyphen), so the echo should work correctly.
16045    lt_compile=`echo "$ac_compile" | $SED \
16046    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16048    -e 's:$: $lt_compiler_flag:'`
16049    (eval echo "\"\$as_me:16049: $lt_compile\"" >&5)
16050    (eval "$lt_compile" 2>out/conftest.err)
16051    ac_status=$?
16052    cat out/conftest.err >&5
16053    echo "$as_me:16053: \$? = $ac_status" >&5
16054    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16055    then
16056      # The compiler can only warn and ignore the option if not recognized
16057      # So say no if there are warnings
16058      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16059      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16060      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16061        lt_cv_prog_compiler_c_o_F77=yes
16062      fi
16063    fi
16064    chmod u+w . 2>&5
16065    $rm conftest*
16066    # SGI C++ compiler will create directory out/ii_files/ for
16067    # template instantiation
16068    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16069    $rm out/* && rmdir out
16070    cd ..
16071    rmdir conftest
16072    $rm conftest*
16073
16074 fi
16075 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16076 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16077
16078
16079 hard_links="nottested"
16080 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16081   # do not overwrite the value of need_locks provided by the user
16082   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16083 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16084   hard_links=yes
16085   $rm conftest*
16086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087   touch conftest.a
16088   ln conftest.a conftest.b 2>&5 || hard_links=no
16089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16090   { echo "$as_me:$LINENO: result: $hard_links" >&5
16091 echo "${ECHO_T}$hard_links" >&6; }
16092   if test "$hard_links" = no; then
16093     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16094 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16095     need_locks=warn
16096   fi
16097 else
16098   need_locks=no
16099 fi
16100
16101 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16102 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16103
16104   runpath_var=
16105   allow_undefined_flag_F77=
16106   enable_shared_with_static_runtimes_F77=no
16107   archive_cmds_F77=
16108   archive_expsym_cmds_F77=
16109   old_archive_From_new_cmds_F77=
16110   old_archive_from_expsyms_cmds_F77=
16111   export_dynamic_flag_spec_F77=
16112   whole_archive_flag_spec_F77=
16113   thread_safe_flag_spec_F77=
16114   hardcode_libdir_flag_spec_F77=
16115   hardcode_libdir_flag_spec_ld_F77=
16116   hardcode_libdir_separator_F77=
16117   hardcode_direct_F77=no
16118   hardcode_minus_L_F77=no
16119   hardcode_shlibpath_var_F77=unsupported
16120   link_all_deplibs_F77=unknown
16121   hardcode_automatic_F77=no
16122   module_cmds_F77=
16123   module_expsym_cmds_F77=
16124   always_export_symbols_F77=no
16125   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16126   # include_expsyms should be a list of space-separated symbols to be *always*
16127   # included in the symbol list
16128   include_expsyms_F77=
16129   # exclude_expsyms can be an extended regexp of symbols to exclude
16130   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16131   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16132   # as well as any symbol that contains `d'.
16133   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16134   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16135   # platforms (ab)use it in PIC code, but their linkers get confused if
16136   # the symbol is explicitly referenced.  Since portable code cannot
16137   # rely on this symbol name, it's probably fine to never include it in
16138   # preloaded symbol tables.
16139   # Exclude shared library initialization/finalization symbols.
16140   extract_expsyms_cmds=
16141   # Just being paranoid about ensuring that cc_basename is set.
16142   for cc_temp in $compiler""; do
16143   case $cc_temp in
16144     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16145     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16146     \-*) ;;
16147     *) break;;
16148   esac
16149 done
16150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16151
16152   case $host_os in
16153   cygwin* | mingw* | pw32*)
16154     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16155     # When not using gcc, we currently assume that we are using
16156     # Microsoft Visual C++.
16157     if test "$GCC" != yes; then
16158       with_gnu_ld=no
16159     fi
16160     ;;
16161   interix*)
16162     # we just hope/assume this is gcc and not c89 (= MSVC++)
16163     with_gnu_ld=yes
16164     ;;
16165   openbsd*)
16166     with_gnu_ld=no
16167     ;;
16168   esac
16169
16170   ld_shlibs_F77=yes
16171   if test "$with_gnu_ld" = yes; then
16172     # If archive_cmds runs LD, not CC, wlarc should be empty
16173     wlarc='${wl}'
16174
16175     # Set some defaults for GNU ld with shared library support. These
16176     # are reset later if shared libraries are not supported. Putting them
16177     # here allows them to be overridden if necessary.
16178     runpath_var=LD_RUN_PATH
16179     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16180     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16181     # ancient GNU ld didn't support --whole-archive et. al.
16182     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16183         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16184       else
16185         whole_archive_flag_spec_F77=
16186     fi
16187     supports_anon_versioning=no
16188     case `$LD -v 2>/dev/null` in
16189       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16190       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16191       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16192       *\ 2.11.*) ;; # other 2.11 versions
16193       *) supports_anon_versioning=yes ;;
16194     esac
16195
16196     # See if GNU ld supports shared libraries.
16197     case $host_os in
16198     aix[3-9]*)
16199       # On AIX/PPC, the GNU linker is very broken
16200       if test "$host_cpu" != ia64; then
16201         ld_shlibs_F77=no
16202         cat <<EOF 1>&2
16203
16204 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16205 *** to be unable to reliably create shared libraries on AIX.
16206 *** Therefore, libtool is disabling shared libraries support.  If you
16207 *** really care for shared libraries, you may want to modify your PATH
16208 *** so that a non-GNU linker is found, and then restart.
16209
16210 EOF
16211       fi
16212       ;;
16213
16214     amigaos*)
16215       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)'
16216       hardcode_libdir_flag_spec_F77='-L$libdir'
16217       hardcode_minus_L_F77=yes
16218
16219       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16220       # that the semantics of dynamic libraries on AmigaOS, at least up
16221       # to version 4, is to share data among multiple programs linked
16222       # with the same dynamic library.  Since this doesn't match the
16223       # behavior of shared libraries on other platforms, we can't use
16224       # them.
16225       ld_shlibs_F77=no
16226       ;;
16227
16228     beos*)
16229       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16230         allow_undefined_flag_F77=unsupported
16231         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16232         # support --undefined.  This deserves some investigation.  FIXME
16233         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16234       else
16235         ld_shlibs_F77=no
16236       fi
16237       ;;
16238
16239     cygwin* | mingw* | pw32*)
16240       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16241       # as there is no search path for DLLs.
16242       hardcode_libdir_flag_spec_F77='-L$libdir'
16243       allow_undefined_flag_F77=unsupported
16244       always_export_symbols_F77=no
16245       enable_shared_with_static_runtimes_F77=yes
16246       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16247
16248       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16249         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16250         # If the export-symbols file already is a .def file (1st line
16251         # is EXPORTS), use it as is; otherwise, prepend...
16252         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16253           cp $export_symbols $output_objdir/$soname.def;
16254         else
16255           echo EXPORTS > $output_objdir/$soname.def;
16256           cat $export_symbols >> $output_objdir/$soname.def;
16257         fi~
16258         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16259       else
16260         ld_shlibs_F77=no
16261       fi
16262       ;;
16263
16264     interix[3-9]*)
16265       hardcode_direct_F77=no
16266       hardcode_shlibpath_var_F77=no
16267       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16268       export_dynamic_flag_spec_F77='${wl}-E'
16269       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16270       # Instead, shared libraries are loaded at an image base (0x10000000 by
16271       # default) and relocated if they conflict, which is a slow very memory
16272       # consuming and fragmenting process.  To avoid this, we pick a random,
16273       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16274       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16275       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16276       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16277       ;;
16278
16279     gnu* | linux* | k*bsd*-gnu)
16280       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16281         tmp_addflag=
16282         case $cc_basename,$host_cpu in
16283         pgcc*)                          # Portland Group C compiler
16284           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16285           tmp_addflag=' $pic_flag'
16286           ;;
16287         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16288           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16289           tmp_addflag=' $pic_flag -Mnomain' ;;
16290         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16291           tmp_addflag=' -i_dynamic' ;;
16292         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16293           tmp_addflag=' -i_dynamic -nofor_main' ;;
16294         ifc* | ifort*)                  # Intel Fortran compiler
16295           tmp_addflag=' -nofor_main' ;;
16296         esac
16297         case `$CC -V 2>&1 | sed 5q` in
16298         *Sun\ C*)                       # Sun C 5.9
16299           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16300           tmp_sharedflag='-G' ;;
16301         *Sun\ F*)                       # Sun Fortran 8.3
16302           tmp_sharedflag='-G' ;;
16303         *)
16304           tmp_sharedflag='-shared' ;;
16305         esac
16306         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16307
16308         if test $supports_anon_versioning = yes; then
16309           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16310   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16311   $echo "local: *; };" >> $output_objdir/$libname.ver~
16312           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16313         fi
16314       else
16315         ld_shlibs_F77=no
16316       fi
16317       ;;
16318
16319     netbsd*)
16320       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16321         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16322         wlarc=
16323       else
16324         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16326       fi
16327       ;;
16328
16329     solaris*)
16330       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16331         ld_shlibs_F77=no
16332         cat <<EOF 1>&2
16333
16334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16335 *** create shared libraries on Solaris systems.  Therefore, libtool
16336 *** is disabling shared libraries support.  We urge you to upgrade GNU
16337 *** binutils to release 2.9.1 or newer.  Another option is to modify
16338 *** your PATH or compiler configuration so that the native linker is
16339 *** used, and then restart.
16340
16341 EOF
16342       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16343         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16344         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16345       else
16346         ld_shlibs_F77=no
16347       fi
16348       ;;
16349
16350     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16351       case `$LD -v 2>&1` in
16352         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16353         ld_shlibs_F77=no
16354         cat <<_LT_EOF 1>&2
16355
16356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16357 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16358 *** is disabling shared libraries support.  We urge you to upgrade GNU
16359 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16360 *** your PATH or compiler configuration so that the native linker is
16361 *** used, and then restart.
16362
16363 _LT_EOF
16364         ;;
16365         *)
16366           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16367             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16368             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16369             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16370           else
16371             ld_shlibs_F77=no
16372           fi
16373         ;;
16374       esac
16375       ;;
16376
16377     sunos4*)
16378       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16379       wlarc=
16380       hardcode_direct_F77=yes
16381       hardcode_shlibpath_var_F77=no
16382       ;;
16383
16384     *)
16385       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16386         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16387         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16388       else
16389         ld_shlibs_F77=no
16390       fi
16391       ;;
16392     esac
16393
16394     if test "$ld_shlibs_F77" = no; then
16395       runpath_var=
16396       hardcode_libdir_flag_spec_F77=
16397       export_dynamic_flag_spec_F77=
16398       whole_archive_flag_spec_F77=
16399     fi
16400   else
16401     # PORTME fill in a description of your system's linker (not GNU ld)
16402     case $host_os in
16403     aix3*)
16404       allow_undefined_flag_F77=unsupported
16405       always_export_symbols_F77=yes
16406       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'
16407       # Note: this linker hardcodes the directories in LIBPATH if there
16408       # are no directories specified by -L.
16409       hardcode_minus_L_F77=yes
16410       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16411         # Neither direct hardcoding nor static linking is supported with a
16412         # broken collect2.
16413         hardcode_direct_F77=unsupported
16414       fi
16415       ;;
16416
16417     aix[4-9]*)
16418       if test "$host_cpu" = ia64; then
16419         # On IA64, the linker does run time linking by default, so we don't
16420         # have to do anything special.
16421         aix_use_runtimelinking=no
16422         exp_sym_flag='-Bexport'
16423         no_entry_flag=""
16424       else
16425         # If we're using GNU nm, then we don't want the "-C" option.
16426         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16427         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16428           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'
16429         else
16430           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'
16431         fi
16432         aix_use_runtimelinking=no
16433
16434         # Test if we are trying to use run time linking or normal
16435         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16436         # need to do runtime linking.
16437         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16438           for ld_flag in $LDFLAGS; do
16439           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16440             aix_use_runtimelinking=yes
16441             break
16442           fi
16443           done
16444           ;;
16445         esac
16446
16447         exp_sym_flag='-bexport'
16448         no_entry_flag='-bnoentry'
16449       fi
16450
16451       # When large executables or shared objects are built, AIX ld can
16452       # have problems creating the table of contents.  If linking a library
16453       # or program results in "error TOC overflow" add -mminimal-toc to
16454       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16455       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16456
16457       archive_cmds_F77=''
16458       hardcode_direct_F77=yes
16459       hardcode_libdir_separator_F77=':'
16460       link_all_deplibs_F77=yes
16461
16462       if test "$GCC" = yes; then
16463         case $host_os in aix4.[012]|aix4.[012].*)
16464         # We only want to do this on AIX 4.2 and lower, the check
16465         # below for broken collect2 doesn't work under 4.3+
16466           collect2name=`${CC} -print-prog-name=collect2`
16467           if test -f "$collect2name" && \
16468            strings "$collect2name" | grep resolve_lib_name >/dev/null
16469           then
16470           # We have reworked collect2
16471           :
16472           else
16473           # We have old collect2
16474           hardcode_direct_F77=unsupported
16475           # It fails to find uninstalled libraries when the uninstalled
16476           # path is not listed in the libpath.  Setting hardcode_minus_L
16477           # to unsupported forces relinking
16478           hardcode_minus_L_F77=yes
16479           hardcode_libdir_flag_spec_F77='-L$libdir'
16480           hardcode_libdir_separator_F77=
16481           fi
16482           ;;
16483         esac
16484         shared_flag='-shared'
16485         if test "$aix_use_runtimelinking" = yes; then
16486           shared_flag="$shared_flag "'${wl}-G'
16487         fi
16488       else
16489         # not using gcc
16490         if test "$host_cpu" = ia64; then
16491         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16492         # chokes on -Wl,-G. The following line is correct:
16493           shared_flag='-G'
16494         else
16495           if test "$aix_use_runtimelinking" = yes; then
16496             shared_flag='${wl}-G'
16497           else
16498             shared_flag='${wl}-bM:SRE'
16499           fi
16500         fi
16501       fi
16502
16503       # It seems that -bexpall does not export symbols beginning with
16504       # underscore (_), so it is better to generate a list of symbols to export.
16505       always_export_symbols_F77=yes
16506       if test "$aix_use_runtimelinking" = yes; then
16507         # Warning - without using the other runtime loading flags (-brtl),
16508         # -berok will link without error, but may produce a broken library.
16509         allow_undefined_flag_F77='-berok'
16510        # Determine the default libpath from the value encoded in an empty executable.
16511        cat >conftest.$ac_ext <<_ACEOF
16512       program main
16513
16514       end
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_link") 2>conftest.er1
16524   ac_status=$?
16525   grep -v '^ *+' conftest.er1 >conftest.err
16526   rm -f conftest.er1
16527   cat conftest.err >&5
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); } && {
16530          test -z "$ac_f77_werror_flag" ||
16531          test ! -s conftest.err
16532        } && test -s conftest$ac_exeext &&
16533        $as_test_x conftest$ac_exeext; then
16534
16535 lt_aix_libpath_sed='
16536     /Import File Strings/,/^$/ {
16537         /^0/ {
16538             s/^0  *\(.*\)$/\1/
16539             p
16540         }
16541     }'
16542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16543 # Check for a 64-bit object if we didn't find anything.
16544 if test -z "$aix_libpath"; then
16545   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16546 fi
16547 else
16548   echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551
16552 fi
16553
16554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16555       conftest$ac_exeext conftest.$ac_ext
16556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16557
16558        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16559         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16560        else
16561         if test "$host_cpu" = ia64; then
16562           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16563           allow_undefined_flag_F77="-z nodefs"
16564           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16565         else
16566          # Determine the default libpath from the value encoded in an empty executable.
16567          cat >conftest.$ac_ext <<_ACEOF
16568       program main
16569
16570       end
16571 _ACEOF
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579   (eval "$ac_link") 2>conftest.er1
16580   ac_status=$?
16581   grep -v '^ *+' conftest.er1 >conftest.err
16582   rm -f conftest.er1
16583   cat conftest.err >&5
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } && {
16586          test -z "$ac_f77_werror_flag" ||
16587          test ! -s conftest.err
16588        } && test -s conftest$ac_exeext &&
16589        $as_test_x conftest$ac_exeext; then
16590
16591 lt_aix_libpath_sed='
16592     /Import File Strings/,/^$/ {
16593         /^0/ {
16594             s/^0  *\(.*\)$/\1/
16595             p
16596         }
16597     }'
16598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16599 # Check for a 64-bit object if we didn't find anything.
16600 if test -z "$aix_libpath"; then
16601   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16602 fi
16603 else
16604   echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16606
16607
16608 fi
16609
16610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16611       conftest$ac_exeext conftest.$ac_ext
16612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16613
16614          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16615           # Warning - without using the other run time loading flags,
16616           # -berok will link without error, but may produce a broken library.
16617           no_undefined_flag_F77=' ${wl}-bernotok'
16618           allow_undefined_flag_F77=' ${wl}-berok'
16619           # Exported symbols can be pulled into shared objects from archives
16620           whole_archive_flag_spec_F77='$convenience'
16621           archive_cmds_need_lc_F77=yes
16622           # This is similar to how AIX traditionally builds its shared libraries.
16623           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16624         fi
16625       fi
16626       ;;
16627
16628     amigaos*)
16629       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)'
16630       hardcode_libdir_flag_spec_F77='-L$libdir'
16631       hardcode_minus_L_F77=yes
16632       # see comment about different semantics on the GNU ld section
16633       ld_shlibs_F77=no
16634       ;;
16635
16636     bsdi[45]*)
16637       export_dynamic_flag_spec_F77=-rdynamic
16638       ;;
16639
16640     cygwin* | mingw* | pw32*)
16641       # When not using gcc, we currently assume that we are using
16642       # Microsoft Visual C++.
16643       # hardcode_libdir_flag_spec is actually meaningless, as there is
16644       # no search path for DLLs.
16645       hardcode_libdir_flag_spec_F77=' '
16646       allow_undefined_flag_F77=unsupported
16647       # Tell ltmain to make .lib files, not .a files.
16648       libext=lib
16649       # Tell ltmain to make .dll files, not .so files.
16650       shrext_cmds=".dll"
16651       # FIXME: Setting linknames here is a bad hack.
16652       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16653       # The linker will automatically build a .lib file if we build a DLL.
16654       old_archive_From_new_cmds_F77='true'
16655       # FIXME: Should let the user specify the lib program.
16656       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16657       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16658       enable_shared_with_static_runtimes_F77=yes
16659       ;;
16660
16661     darwin* | rhapsody*)
16662       case $host_os in
16663         rhapsody* | darwin1.[012])
16664          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16665          ;;
16666        *) # Darwin 1.3 on
16667          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16668            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16669          else
16670            case ${MACOSX_DEPLOYMENT_TARGET} in
16671              10.[012])
16672                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16673                ;;
16674              10.*)
16675                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16676                ;;
16677            esac
16678          fi
16679          ;;
16680       esac
16681       archive_cmds_need_lc_F77=no
16682       hardcode_direct_F77=no
16683       hardcode_automatic_F77=yes
16684       hardcode_shlibpath_var_F77=unsupported
16685       whole_archive_flag_spec_F77=''
16686       link_all_deplibs_F77=yes
16687     if test "$GCC" = yes ; then
16688         output_verbose_link_cmd='echo'
16689         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16690         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16691         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16692         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16693     else
16694       case $cc_basename in
16695         xlc*)
16696          output_verbose_link_cmd='echo'
16697          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16698          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16699           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16700          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16701           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}'
16702           ;;
16703        *)
16704          ld_shlibs_F77=no
16705           ;;
16706       esac
16707     fi
16708       ;;
16709
16710     dgux*)
16711       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16712       hardcode_libdir_flag_spec_F77='-L$libdir'
16713       hardcode_shlibpath_var_F77=no
16714       ;;
16715
16716     freebsd1*)
16717       ld_shlibs_F77=no
16718       ;;
16719
16720     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16721     # support.  Future versions do this automatically, but an explicit c++rt0.o
16722     # does not break anything, and helps significantly (at the cost of a little
16723     # extra space).
16724     freebsd2.2*)
16725       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16726       hardcode_libdir_flag_spec_F77='-R$libdir'
16727       hardcode_direct_F77=yes
16728       hardcode_shlibpath_var_F77=no
16729       ;;
16730
16731     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16732     freebsd2*)
16733       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16734       hardcode_direct_F77=yes
16735       hardcode_minus_L_F77=yes
16736       hardcode_shlibpath_var_F77=no
16737       ;;
16738
16739     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16740     freebsd* | dragonfly*)
16741       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16742       hardcode_libdir_flag_spec_F77='-R$libdir'
16743       hardcode_direct_F77=yes
16744       hardcode_shlibpath_var_F77=no
16745       ;;
16746
16747     hpux9*)
16748       if test "$GCC" = yes; then
16749         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'
16750       else
16751         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'
16752       fi
16753       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16754       hardcode_libdir_separator_F77=:
16755       hardcode_direct_F77=yes
16756
16757       # hardcode_minus_L: Not really in the search PATH,
16758       # but as the default location of the library.
16759       hardcode_minus_L_F77=yes
16760       export_dynamic_flag_spec_F77='${wl}-E'
16761       ;;
16762
16763     hpux10*)
16764       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16765         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16766       else
16767         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16768       fi
16769       if test "$with_gnu_ld" = no; then
16770         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16771         hardcode_libdir_separator_F77=:
16772
16773         hardcode_direct_F77=yes
16774         export_dynamic_flag_spec_F77='${wl}-E'
16775
16776         # hardcode_minus_L: Not really in the search PATH,
16777         # but as the default location of the library.
16778         hardcode_minus_L_F77=yes
16779       fi
16780       ;;
16781
16782     hpux11*)
16783       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16784         case $host_cpu in
16785         hppa*64*)
16786           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787           ;;
16788         ia64*)
16789           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16790           ;;
16791         *)
16792           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16793           ;;
16794         esac
16795       else
16796         case $host_cpu in
16797         hppa*64*)
16798           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16799           ;;
16800         ia64*)
16801           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16802           ;;
16803         *)
16804           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16805           ;;
16806         esac
16807       fi
16808       if test "$with_gnu_ld" = no; then
16809         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16810         hardcode_libdir_separator_F77=:
16811
16812         case $host_cpu in
16813         hppa*64*|ia64*)
16814           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16815           hardcode_direct_F77=no
16816           hardcode_shlibpath_var_F77=no
16817           ;;
16818         *)
16819           hardcode_direct_F77=yes
16820           export_dynamic_flag_spec_F77='${wl}-E'
16821
16822           # hardcode_minus_L: Not really in the search PATH,
16823           # but as the default location of the library.
16824           hardcode_minus_L_F77=yes
16825           ;;
16826         esac
16827       fi
16828       ;;
16829
16830     irix5* | irix6* | nonstopux*)
16831       if test "$GCC" = yes; then
16832         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'
16833       else
16834         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'
16835         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16836       fi
16837       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16838       hardcode_libdir_separator_F77=:
16839       link_all_deplibs_F77=yes
16840       ;;
16841
16842     netbsd*)
16843       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16844         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16845       else
16846         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16847       fi
16848       hardcode_libdir_flag_spec_F77='-R$libdir'
16849       hardcode_direct_F77=yes
16850       hardcode_shlibpath_var_F77=no
16851       ;;
16852
16853     newsos6)
16854       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16855       hardcode_direct_F77=yes
16856       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16857       hardcode_libdir_separator_F77=:
16858       hardcode_shlibpath_var_F77=no
16859       ;;
16860
16861     openbsd*)
16862       if test -f /usr/libexec/ld.so; then
16863         hardcode_direct_F77=yes
16864         hardcode_shlibpath_var_F77=no
16865         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16866           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16867           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16868           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16869           export_dynamic_flag_spec_F77='${wl}-E'
16870         else
16871           case $host_os in
16872            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16873              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874              hardcode_libdir_flag_spec_F77='-R$libdir'
16875              ;;
16876            *)
16877              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16878              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16879              ;;
16880           esac
16881         fi
16882       else
16883         ld_shlibs_F77=no
16884       fi
16885       ;;
16886
16887     os2*)
16888       hardcode_libdir_flag_spec_F77='-L$libdir'
16889       hardcode_minus_L_F77=yes
16890       allow_undefined_flag_F77=unsupported
16891       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'
16892       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16893       ;;
16894
16895     osf3*)
16896       if test "$GCC" = yes; then
16897         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16898         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'
16899       else
16900         allow_undefined_flag_F77=' -expect_unresolved \*'
16901         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'
16902       fi
16903       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16904       hardcode_libdir_separator_F77=:
16905       ;;
16906
16907     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16908       if test "$GCC" = yes; then
16909         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16910         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'
16911         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16912       else
16913         allow_undefined_flag_F77=' -expect_unresolved \*'
16914         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'
16915         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~
16916         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16917
16918         # Both c and cxx compiler support -rpath directly
16919         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16920       fi
16921       hardcode_libdir_separator_F77=:
16922       ;;
16923
16924     solaris*)
16925       no_undefined_flag_F77=' -z text'
16926       if test "$GCC" = yes; then
16927         wlarc='${wl}'
16928         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16929         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16930           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16931       else
16932         wlarc=''
16933         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16934         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16935         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16936       fi
16937       hardcode_libdir_flag_spec_F77='-R$libdir'
16938       hardcode_shlibpath_var_F77=no
16939       case $host_os in
16940       solaris2.[0-5] | solaris2.[0-5].*) ;;
16941       *)
16942         # The compiler driver will combine and reorder linker options,
16943         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16944         # but is careful enough not to reorder.
16945         # Supported since Solaris 2.6 (maybe 2.5.1?)
16946         if test "$GCC" = yes; then
16947           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16948         else
16949           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16950         fi
16951         ;;
16952       esac
16953       link_all_deplibs_F77=yes
16954       ;;
16955
16956     sunos4*)
16957       if test "x$host_vendor" = xsequent; then
16958         # Use $CC to link under sequent, because it throws in some extra .o
16959         # files that make .init and .fini sections work.
16960         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16961       else
16962         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16963       fi
16964       hardcode_libdir_flag_spec_F77='-L$libdir'
16965       hardcode_direct_F77=yes
16966       hardcode_minus_L_F77=yes
16967       hardcode_shlibpath_var_F77=no
16968       ;;
16969
16970     sysv4)
16971       case $host_vendor in
16972         sni)
16973           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974           hardcode_direct_F77=yes # is this really true???
16975         ;;
16976         siemens)
16977           ## LD is ld it makes a PLAMLIB
16978           ## CC just makes a GrossModule.
16979           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16980           reload_cmds_F77='$CC -r -o $output$reload_objs'
16981           hardcode_direct_F77=no
16982         ;;
16983         motorola)
16984           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16985           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16986         ;;
16987       esac
16988       runpath_var='LD_RUN_PATH'
16989       hardcode_shlibpath_var_F77=no
16990       ;;
16991
16992     sysv4.3*)
16993       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16994       hardcode_shlibpath_var_F77=no
16995       export_dynamic_flag_spec_F77='-Bexport'
16996       ;;
16997
16998     sysv4*MP*)
16999       if test -d /usr/nec; then
17000         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17001         hardcode_shlibpath_var_F77=no
17002         runpath_var=LD_RUN_PATH
17003         hardcode_runpath_var=yes
17004         ld_shlibs_F77=yes
17005       fi
17006       ;;
17007
17008     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17009       no_undefined_flag_F77='${wl}-z,text'
17010       archive_cmds_need_lc_F77=no
17011       hardcode_shlibpath_var_F77=no
17012       runpath_var='LD_RUN_PATH'
17013
17014       if test "$GCC" = yes; then
17015         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17016         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017       else
17018         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17019         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17020       fi
17021       ;;
17022
17023     sysv5* | sco3.2v5* | sco5v6*)
17024       # Note: We can NOT use -z defs as we might desire, because we do not
17025       # link with -lc, and that would cause any symbols used from libc to
17026       # always be unresolved, which means just about no library would
17027       # ever link correctly.  If we're not using GNU ld we use -z text
17028       # though, which does catch some bad symbols but isn't as heavy-handed
17029       # as -z defs.
17030       no_undefined_flag_F77='${wl}-z,text'
17031       allow_undefined_flag_F77='${wl}-z,nodefs'
17032       archive_cmds_need_lc_F77=no
17033       hardcode_shlibpath_var_F77=no
17034       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17035       hardcode_libdir_separator_F77=':'
17036       link_all_deplibs_F77=yes
17037       export_dynamic_flag_spec_F77='${wl}-Bexport'
17038       runpath_var='LD_RUN_PATH'
17039
17040       if test "$GCC" = yes; then
17041         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17042         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17043       else
17044         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17045         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17046       fi
17047       ;;
17048
17049     uts4*)
17050       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17051       hardcode_libdir_flag_spec_F77='-L$libdir'
17052       hardcode_shlibpath_var_F77=no
17053       ;;
17054
17055     *)
17056       ld_shlibs_F77=no
17057       ;;
17058     esac
17059   fi
17060
17061 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17062 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17063 test "$ld_shlibs_F77" = no && can_build_shared=no
17064
17065 #
17066 # Do we need to explicitly link libc?
17067 #
17068 case "x$archive_cmds_need_lc_F77" in
17069 x|xyes)
17070   # Assume -lc should be added
17071   archive_cmds_need_lc_F77=yes
17072
17073   if test "$enable_shared" = yes && test "$GCC" = yes; then
17074     case $archive_cmds_F77 in
17075     *'~'*)
17076       # FIXME: we may have to deal with multi-command sequences.
17077       ;;
17078     '$CC '*)
17079       # Test whether the compiler implicitly links with -lc since on some
17080       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17081       # to ld, don't add -lc before -lgcc.
17082       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17083 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17084       $rm conftest*
17085       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17086
17087       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17088   (eval $ac_compile) 2>&5
17089   ac_status=$?
17090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); } 2>conftest.err; then
17092         soname=conftest
17093         lib=conftest
17094         libobjs=conftest.$ac_objext
17095         deplibs=
17096         wl=$lt_prog_compiler_wl_F77
17097         pic_flag=$lt_prog_compiler_pic_F77
17098         compiler_flags=-v
17099         linker_flags=-v
17100         verstring=
17101         output_objdir=.
17102         libname=conftest
17103         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17104         allow_undefined_flag_F77=
17105         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17106   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); }
17110         then
17111           archive_cmds_need_lc_F77=no
17112         else
17113           archive_cmds_need_lc_F77=yes
17114         fi
17115         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17116       else
17117         cat conftest.err 1>&5
17118       fi
17119       $rm conftest*
17120       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17121 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17122       ;;
17123     esac
17124   fi
17125   ;;
17126 esac
17127
17128 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17129 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17130 library_names_spec=
17131 libname_spec='lib$name'
17132 soname_spec=
17133 shrext_cmds=".so"
17134 postinstall_cmds=
17135 postuninstall_cmds=
17136 finish_cmds=
17137 finish_eval=
17138 shlibpath_var=
17139 shlibpath_overrides_runpath=unknown
17140 version_type=none
17141 dynamic_linker="$host_os ld.so"
17142 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17143
17144 need_lib_prefix=unknown
17145 hardcode_into_libs=no
17146
17147 # when you set need_version to no, make sure it does not cause -set_version
17148 # flags to be left without arguments
17149 need_version=unknown
17150
17151 case $host_os in
17152 aix3*)
17153   version_type=linux
17154   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17155   shlibpath_var=LIBPATH
17156
17157   # AIX 3 has no versioning support, so we append a major version to the name.
17158   soname_spec='${libname}${release}${shared_ext}$major'
17159   ;;
17160
17161 aix[4-9]*)
17162   version_type=linux
17163   need_lib_prefix=no
17164   need_version=no
17165   hardcode_into_libs=yes
17166   if test "$host_cpu" = ia64; then
17167     # AIX 5 supports IA64
17168     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17169     shlibpath_var=LD_LIBRARY_PATH
17170   else
17171     # With GCC up to 2.95.x, collect2 would create an import file
17172     # for dependence libraries.  The import file would start with
17173     # the line `#! .'.  This would cause the generated library to
17174     # depend on `.', always an invalid library.  This was fixed in
17175     # development snapshots of GCC prior to 3.0.
17176     case $host_os in
17177       aix4 | aix4.[01] | aix4.[01].*)
17178       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17179            echo ' yes '
17180            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17181         :
17182       else
17183         can_build_shared=no
17184       fi
17185       ;;
17186     esac
17187     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17188     # soname into executable. Probably we can add versioning support to
17189     # collect2, so additional links can be useful in future.
17190     if test "$aix_use_runtimelinking" = yes; then
17191       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17192       # instead of lib<name>.a to let people know that these are not
17193       # typical AIX shared libraries.
17194       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195     else
17196       # We preserve .a as extension for shared libraries through AIX4.2
17197       # and later when we are not doing run time linking.
17198       library_names_spec='${libname}${release}.a $libname.a'
17199       soname_spec='${libname}${release}${shared_ext}$major'
17200     fi
17201     shlibpath_var=LIBPATH
17202   fi
17203   ;;
17204
17205 amigaos*)
17206   library_names_spec='$libname.ixlibrary $libname.a'
17207   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17208   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'
17209   ;;
17210
17211 beos*)
17212   library_names_spec='${libname}${shared_ext}'
17213   dynamic_linker="$host_os ld.so"
17214   shlibpath_var=LIBRARY_PATH
17215   ;;
17216
17217 bsdi[45]*)
17218   version_type=linux
17219   need_version=no
17220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221   soname_spec='${libname}${release}${shared_ext}$major'
17222   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17223   shlibpath_var=LD_LIBRARY_PATH
17224   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17225   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17226   # the default ld.so.conf also contains /usr/contrib/lib and
17227   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17228   # libtool to hard-code these into programs
17229   ;;
17230
17231 cygwin* | mingw* | pw32*)
17232   version_type=windows
17233   shrext_cmds=".dll"
17234   need_version=no
17235   need_lib_prefix=no
17236
17237   case $GCC,$host_os in
17238   yes,cygwin* | yes,mingw* | yes,pw32*)
17239     library_names_spec='$libname.dll.a'
17240     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17241     postinstall_cmds='base_file=`basename \${file}`~
17242       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17243       dldir=$destdir/`dirname \$dlpath`~
17244       test -d \$dldir || mkdir -p \$dldir~
17245       $install_prog $dir/$dlname \$dldir/$dlname~
17246       chmod a+x \$dldir/$dlname'
17247     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17248       dlpath=$dir/\$dldll~
17249        $rm \$dlpath'
17250     shlibpath_overrides_runpath=yes
17251
17252     case $host_os in
17253     cygwin*)
17254       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17255       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17256       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17257       ;;
17258     mingw*)
17259       # MinGW DLLs use traditional 'lib' prefix
17260       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17261       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17262       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17263         # It is most probably a Windows format PATH printed by
17264         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17265         # path with ; separators, and with drive letters. We can handle the
17266         # drive letters (cygwin fileutils understands them), so leave them,
17267         # especially as we might pass files found there to a mingw objdump,
17268         # which wouldn't understand a cygwinified path. Ahh.
17269         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17270       else
17271         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17272       fi
17273       ;;
17274     pw32*)
17275       # pw32 DLLs use 'pw' prefix rather than 'lib'
17276       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17277       ;;
17278     esac
17279     ;;
17280
17281   *)
17282     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17283     ;;
17284   esac
17285   dynamic_linker='Win32 ld.exe'
17286   # FIXME: first we should search . and the directory the executable is in
17287   shlibpath_var=PATH
17288   ;;
17289
17290 darwin* | rhapsody*)
17291   dynamic_linker="$host_os dyld"
17292   version_type=darwin
17293   need_lib_prefix=no
17294   need_version=no
17295   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17296   soname_spec='${libname}${release}${major}$shared_ext'
17297   shlibpath_overrides_runpath=yes
17298   shlibpath_var=DYLD_LIBRARY_PATH
17299   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17300
17301   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17302   ;;
17303
17304 dgux*)
17305   version_type=linux
17306   need_lib_prefix=no
17307   need_version=no
17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17309   soname_spec='${libname}${release}${shared_ext}$major'
17310   shlibpath_var=LD_LIBRARY_PATH
17311   ;;
17312
17313 freebsd1*)
17314   dynamic_linker=no
17315   ;;
17316
17317 freebsd* | dragonfly*)
17318   # DragonFly does not have aout.  When/if they implement a new
17319   # versioning mechanism, adjust this.
17320   if test -x /usr/bin/objformat; then
17321     objformat=`/usr/bin/objformat`
17322   else
17323     case $host_os in
17324     freebsd[123]*) objformat=aout ;;
17325     *) objformat=elf ;;
17326     esac
17327   fi
17328   # Handle Gentoo/FreeBSD as it was Linux
17329   case $host_vendor in
17330     gentoo)
17331       version_type=linux ;;
17332     *)
17333       version_type=freebsd-$objformat ;;
17334   esac
17335
17336   case $version_type in
17337     freebsd-elf*)
17338       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17339       need_version=no
17340       need_lib_prefix=no
17341       ;;
17342     freebsd-*)
17343       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17344       need_version=yes
17345       ;;
17346     linux)
17347       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17348       soname_spec='${libname}${release}${shared_ext}$major'
17349       need_lib_prefix=no
17350       need_version=no
17351       ;;
17352   esac
17353   shlibpath_var=LD_LIBRARY_PATH
17354   case $host_os in
17355   freebsd2*)
17356     shlibpath_overrides_runpath=yes
17357     ;;
17358   freebsd3.[01]* | freebsdelf3.[01]*)
17359     shlibpath_overrides_runpath=yes
17360     hardcode_into_libs=yes
17361     ;;
17362   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17363   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17364     shlibpath_overrides_runpath=no
17365     hardcode_into_libs=yes
17366     ;;
17367   *) # from 4.6 on, and DragonFly
17368     shlibpath_overrides_runpath=yes
17369     hardcode_into_libs=yes
17370     ;;
17371   esac
17372   ;;
17373
17374 gnu*)
17375   version_type=linux
17376   need_lib_prefix=no
17377   need_version=no
17378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17379   soname_spec='${libname}${release}${shared_ext}$major'
17380   shlibpath_var=LD_LIBRARY_PATH
17381   hardcode_into_libs=yes
17382   ;;
17383
17384 hpux9* | hpux10* | hpux11*)
17385   # Give a soname corresponding to the major version so that dld.sl refuses to
17386   # link against other versions.
17387   version_type=sunos
17388   need_lib_prefix=no
17389   need_version=no
17390   case $host_cpu in
17391   ia64*)
17392     shrext_cmds='.so'
17393     hardcode_into_libs=yes
17394     dynamic_linker="$host_os dld.so"
17395     shlibpath_var=LD_LIBRARY_PATH
17396     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398     soname_spec='${libname}${release}${shared_ext}$major'
17399     if test "X$HPUX_IA64_MODE" = X32; then
17400       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17401     else
17402       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17403     fi
17404     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17405     ;;
17406    hppa*64*)
17407      shrext_cmds='.sl'
17408      hardcode_into_libs=yes
17409      dynamic_linker="$host_os dld.sl"
17410      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17411      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17412      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413      soname_spec='${libname}${release}${shared_ext}$major'
17414      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17415      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17416      ;;
17417    *)
17418     shrext_cmds='.sl'
17419     dynamic_linker="$host_os dld.sl"
17420     shlibpath_var=SHLIB_PATH
17421     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17423     soname_spec='${libname}${release}${shared_ext}$major'
17424     ;;
17425   esac
17426   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17427   postinstall_cmds='chmod 555 $lib'
17428   ;;
17429
17430 interix[3-9]*)
17431   version_type=linux
17432   need_lib_prefix=no
17433   need_version=no
17434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17435   soname_spec='${libname}${release}${shared_ext}$major'
17436   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17437   shlibpath_var=LD_LIBRARY_PATH
17438   shlibpath_overrides_runpath=no
17439   hardcode_into_libs=yes
17440   ;;
17441
17442 irix5* | irix6* | nonstopux*)
17443   case $host_os in
17444     nonstopux*) version_type=nonstopux ;;
17445     *)
17446         if test "$lt_cv_prog_gnu_ld" = yes; then
17447                 version_type=linux
17448         else
17449                 version_type=irix
17450         fi ;;
17451   esac
17452   need_lib_prefix=no
17453   need_version=no
17454   soname_spec='${libname}${release}${shared_ext}$major'
17455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17456   case $host_os in
17457   irix5* | nonstopux*)
17458     libsuff= shlibsuff=
17459     ;;
17460   *)
17461     case $LD in # libtool.m4 will add one of these switches to LD
17462     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17463       libsuff= shlibsuff= libmagic=32-bit;;
17464     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17465       libsuff=32 shlibsuff=N32 libmagic=N32;;
17466     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17467       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17468     *) libsuff= shlibsuff= libmagic=never-match;;
17469     esac
17470     ;;
17471   esac
17472   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17473   shlibpath_overrides_runpath=no
17474   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17475   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17476   hardcode_into_libs=yes
17477   ;;
17478
17479 # No shared lib support for Linux oldld, aout, or coff.
17480 linux*oldld* | linux*aout* | linux*coff*)
17481   dynamic_linker=no
17482   ;;
17483
17484 # This must be Linux ELF.
17485 linux* | k*bsd*-gnu)
17486   version_type=linux
17487   need_lib_prefix=no
17488   need_version=no
17489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17490   soname_spec='${libname}${release}${shared_ext}$major'
17491   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17492   shlibpath_var=LD_LIBRARY_PATH
17493   shlibpath_overrides_runpath=no
17494   # This implies no fast_install, which is unacceptable.
17495   # Some rework will be needed to allow for fast_install
17496   # before this can be enabled.
17497   hardcode_into_libs=yes
17498
17499   # Append ld.so.conf contents to the search path
17500   if test -f /etc/ld.so.conf; then
17501     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17502     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17503   fi
17504
17505   # We used to test for /lib/ld.so.1 and disable shared libraries on
17506   # powerpc, because MkLinux only supported shared libraries with the
17507   # GNU dynamic linker.  Since this was broken with cross compilers,
17508   # most powerpc-linux boxes support dynamic linking these days and
17509   # people can always --disable-shared, the test was removed, and we
17510   # assume the GNU/Linux dynamic linker is in use.
17511   dynamic_linker='GNU/Linux ld.so'
17512   ;;
17513
17514 netbsd*)
17515   version_type=sunos
17516   need_lib_prefix=no
17517   need_version=no
17518   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17520     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17521     dynamic_linker='NetBSD (a.out) ld.so'
17522   else
17523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17524     soname_spec='${libname}${release}${shared_ext}$major'
17525     dynamic_linker='NetBSD ld.elf_so'
17526   fi
17527   shlibpath_var=LD_LIBRARY_PATH
17528   shlibpath_overrides_runpath=yes
17529   hardcode_into_libs=yes
17530   ;;
17531
17532 newsos6)
17533   version_type=linux
17534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535   shlibpath_var=LD_LIBRARY_PATH
17536   shlibpath_overrides_runpath=yes
17537   ;;
17538
17539 nto-qnx*)
17540   version_type=linux
17541   need_lib_prefix=no
17542   need_version=no
17543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544   soname_spec='${libname}${release}${shared_ext}$major'
17545   shlibpath_var=LD_LIBRARY_PATH
17546   shlibpath_overrides_runpath=yes
17547   ;;
17548
17549 openbsd*)
17550   version_type=sunos
17551   sys_lib_dlsearch_path_spec="/usr/lib"
17552   need_lib_prefix=no
17553   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17554   case $host_os in
17555     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17556     *)                         need_version=no  ;;
17557   esac
17558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17559   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17560   shlibpath_var=LD_LIBRARY_PATH
17561   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17562     case $host_os in
17563       openbsd2.[89] | openbsd2.[89].*)
17564         shlibpath_overrides_runpath=no
17565         ;;
17566       *)
17567         shlibpath_overrides_runpath=yes
17568         ;;
17569       esac
17570   else
17571     shlibpath_overrides_runpath=yes
17572   fi
17573   ;;
17574
17575 os2*)
17576   libname_spec='$name'
17577   shrext_cmds=".dll"
17578   need_lib_prefix=no
17579   library_names_spec='$libname${shared_ext} $libname.a'
17580   dynamic_linker='OS/2 ld.exe'
17581   shlibpath_var=LIBPATH
17582   ;;
17583
17584 osf3* | osf4* | osf5*)
17585   version_type=osf
17586   need_lib_prefix=no
17587   need_version=no
17588   soname_spec='${libname}${release}${shared_ext}$major'
17589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590   shlibpath_var=LD_LIBRARY_PATH
17591   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17592   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17593   ;;
17594
17595 rdos*)
17596   dynamic_linker=no
17597   ;;
17598
17599 solaris*)
17600   version_type=linux
17601   need_lib_prefix=no
17602   need_version=no
17603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604   soname_spec='${libname}${release}${shared_ext}$major'
17605   shlibpath_var=LD_LIBRARY_PATH
17606   shlibpath_overrides_runpath=yes
17607   hardcode_into_libs=yes
17608   # ldd complains unless libraries are executable
17609   postinstall_cmds='chmod +x $lib'
17610   ;;
17611
17612 sunos4*)
17613   version_type=sunos
17614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17615   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17616   shlibpath_var=LD_LIBRARY_PATH
17617   shlibpath_overrides_runpath=yes
17618   if test "$with_gnu_ld" = yes; then
17619     need_lib_prefix=no
17620   fi
17621   need_version=yes
17622   ;;
17623
17624 sysv4 | sysv4.3*)
17625   version_type=linux
17626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17627   soname_spec='${libname}${release}${shared_ext}$major'
17628   shlibpath_var=LD_LIBRARY_PATH
17629   case $host_vendor in
17630     sni)
17631       shlibpath_overrides_runpath=no
17632       need_lib_prefix=no
17633       export_dynamic_flag_spec='${wl}-Blargedynsym'
17634       runpath_var=LD_RUN_PATH
17635       ;;
17636     siemens)
17637       need_lib_prefix=no
17638       ;;
17639     motorola)
17640       need_lib_prefix=no
17641       need_version=no
17642       shlibpath_overrides_runpath=no
17643       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17644       ;;
17645   esac
17646   ;;
17647
17648 sysv4*MP*)
17649   if test -d /usr/nec ;then
17650     version_type=linux
17651     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17652     soname_spec='$libname${shared_ext}.$major'
17653     shlibpath_var=LD_LIBRARY_PATH
17654   fi
17655   ;;
17656
17657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17658   version_type=freebsd-elf
17659   need_lib_prefix=no
17660   need_version=no
17661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17662   soname_spec='${libname}${release}${shared_ext}$major'
17663   shlibpath_var=LD_LIBRARY_PATH
17664   hardcode_into_libs=yes
17665   if test "$with_gnu_ld" = yes; then
17666     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17667     shlibpath_overrides_runpath=no
17668   else
17669     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17670     shlibpath_overrides_runpath=yes
17671     case $host_os in
17672       sco3.2v5*)
17673         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17674         ;;
17675     esac
17676   fi
17677   sys_lib_dlsearch_path_spec='/usr/lib'
17678   ;;
17679
17680 uts4*)
17681   version_type=linux
17682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17683   soname_spec='${libname}${release}${shared_ext}$major'
17684   shlibpath_var=LD_LIBRARY_PATH
17685   ;;
17686
17687 *)
17688   dynamic_linker=no
17689   ;;
17690 esac
17691 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17692 echo "${ECHO_T}$dynamic_linker" >&6; }
17693 test "$dynamic_linker" = no && can_build_shared=no
17694
17695 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17696   echo $ECHO_N "(cached) $ECHO_C" >&6
17697 else
17698   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17699 fi
17700
17701 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17702 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17703   echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17706 fi
17707
17708 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17709
17710 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17711 if test "$GCC" = yes; then
17712   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17713 fi
17714
17715 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17716 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17717 hardcode_action_F77=
17718 if test -n "$hardcode_libdir_flag_spec_F77" || \
17719    test -n "$runpath_var_F77" || \
17720    test "X$hardcode_automatic_F77" = "Xyes" ; then
17721
17722   # We can hardcode non-existant directories.
17723   if test "$hardcode_direct_F77" != no &&
17724      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17725      # have to relink, otherwise we might link with an installed library
17726      # when we should be linking with a yet-to-be-installed one
17727      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17728      test "$hardcode_minus_L_F77" != no; then
17729     # Linking always hardcodes the temporary library directory.
17730     hardcode_action_F77=relink
17731   else
17732     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17733     hardcode_action_F77=immediate
17734   fi
17735 else
17736   # We cannot hardcode anything, or else we can only hardcode existing
17737   # directories.
17738   hardcode_action_F77=unsupported
17739 fi
17740 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17741 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17742
17743 if test "$hardcode_action_F77" = relink; then
17744   # Fast installation is not supported
17745   enable_fast_install=no
17746 elif test "$shlibpath_overrides_runpath" = yes ||
17747      test "$enable_shared" = no; then
17748   # Fast installation is not necessary
17749   enable_fast_install=needless
17750 fi
17751
17752
17753 # The else clause should only fire when bootstrapping the
17754 # libtool distribution, otherwise you forgot to ship ltmain.sh
17755 # with your package, and you will get complaints that there are
17756 # no rules to generate ltmain.sh.
17757 if test -f "$ltmain"; then
17758   # See if we are running on zsh, and set the options which allow our commands through
17759   # without removal of \ escapes.
17760   if test -n "${ZSH_VERSION+set}" ; then
17761     setopt NO_GLOB_SUBST
17762   fi
17763   # Now quote all the things that may contain metacharacters while being
17764   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17765   # variables and quote the copies for generation of the libtool script.
17766   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17767     SED SHELL STRIP \
17768     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17769     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17770     deplibs_check_method reload_flag reload_cmds need_locks \
17771     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17772     lt_cv_sys_global_symbol_to_c_name_address \
17773     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17774     old_postinstall_cmds old_postuninstall_cmds \
17775     compiler_F77 \
17776     CC_F77 \
17777     LD_F77 \
17778     lt_prog_compiler_wl_F77 \
17779     lt_prog_compiler_pic_F77 \
17780     lt_prog_compiler_static_F77 \
17781     lt_prog_compiler_no_builtin_flag_F77 \
17782     export_dynamic_flag_spec_F77 \
17783     thread_safe_flag_spec_F77 \
17784     whole_archive_flag_spec_F77 \
17785     enable_shared_with_static_runtimes_F77 \
17786     old_archive_cmds_F77 \
17787     old_archive_from_new_cmds_F77 \
17788     predep_objects_F77 \
17789     postdep_objects_F77 \
17790     predeps_F77 \
17791     postdeps_F77 \
17792     compiler_lib_search_path_F77 \
17793     compiler_lib_search_dirs_F77 \
17794     archive_cmds_F77 \
17795     archive_expsym_cmds_F77 \
17796     postinstall_cmds_F77 \
17797     postuninstall_cmds_F77 \
17798     old_archive_from_expsyms_cmds_F77 \
17799     allow_undefined_flag_F77 \
17800     no_undefined_flag_F77 \
17801     export_symbols_cmds_F77 \
17802     hardcode_libdir_flag_spec_F77 \
17803     hardcode_libdir_flag_spec_ld_F77 \
17804     hardcode_libdir_separator_F77 \
17805     hardcode_automatic_F77 \
17806     module_cmds_F77 \
17807     module_expsym_cmds_F77 \
17808     lt_cv_prog_compiler_c_o_F77 \
17809     fix_srcfile_path_F77 \
17810     exclude_expsyms_F77 \
17811     include_expsyms_F77; do
17812
17813     case $var in
17814     old_archive_cmds_F77 | \
17815     old_archive_from_new_cmds_F77 | \
17816     archive_cmds_F77 | \
17817     archive_expsym_cmds_F77 | \
17818     module_cmds_F77 | \
17819     module_expsym_cmds_F77 | \
17820     old_archive_from_expsyms_cmds_F77 | \
17821     export_symbols_cmds_F77 | \
17822     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17823     postinstall_cmds | postuninstall_cmds | \
17824     old_postinstall_cmds | old_postuninstall_cmds | \
17825     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17826       # Double-quote double-evaled strings.
17827       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17828       ;;
17829     *)
17830       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17831       ;;
17832     esac
17833   done
17834
17835   case $lt_echo in
17836   *'\$0 --fallback-echo"')
17837     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17838     ;;
17839   esac
17840
17841 cfgfile="$ofile"
17842
17843   cat <<__EOF__ >> "$cfgfile"
17844 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17845
17846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17847
17848 # Shell to use when invoking shell scripts.
17849 SHELL=$lt_SHELL
17850
17851 # Whether or not to build shared libraries.
17852 build_libtool_libs=$enable_shared
17853
17854 # Whether or not to build static libraries.
17855 build_old_libs=$enable_static
17856
17857 # Whether or not to add -lc for building shared libraries.
17858 build_libtool_need_lc=$archive_cmds_need_lc_F77
17859
17860 # Whether or not to disallow shared libs when runtime libs are static
17861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17862
17863 # Whether or not to optimize for fast installation.
17864 fast_install=$enable_fast_install
17865
17866 # The host system.
17867 host_alias=$host_alias
17868 host=$host
17869 host_os=$host_os
17870
17871 # The build system.
17872 build_alias=$build_alias
17873 build=$build
17874 build_os=$build_os
17875
17876 # An echo program that does not interpret backslashes.
17877 echo=$lt_echo
17878
17879 # The archiver.
17880 AR=$lt_AR
17881 AR_FLAGS=$lt_AR_FLAGS
17882
17883 # A C compiler.
17884 LTCC=$lt_LTCC
17885
17886 # LTCC compiler flags.
17887 LTCFLAGS=$lt_LTCFLAGS
17888
17889 # A language-specific compiler.
17890 CC=$lt_compiler_F77
17891
17892 # Is the compiler the GNU C compiler?
17893 with_gcc=$GCC_F77
17894
17895 # An ERE matcher.
17896 EGREP=$lt_EGREP
17897
17898 # The linker used to build libraries.
17899 LD=$lt_LD_F77
17900
17901 # Whether we need hard or soft links.
17902 LN_S=$lt_LN_S
17903
17904 # A BSD-compatible nm program.
17905 NM=$lt_NM
17906
17907 # A symbol stripping program
17908 STRIP=$lt_STRIP
17909
17910 # Used to examine libraries when file_magic_cmd begins "file"
17911 MAGIC_CMD=$MAGIC_CMD
17912
17913 # Used on cygwin: DLL creation program.
17914 DLLTOOL="$DLLTOOL"
17915
17916 # Used on cygwin: object dumper.
17917 OBJDUMP="$OBJDUMP"
17918
17919 # Used on cygwin: assembler.
17920 AS="$AS"
17921
17922 # The name of the directory that contains temporary libtool files.
17923 objdir=$objdir
17924
17925 # How to create reloadable object files.
17926 reload_flag=$lt_reload_flag
17927 reload_cmds=$lt_reload_cmds
17928
17929 # How to pass a linker flag through the compiler.
17930 wl=$lt_lt_prog_compiler_wl_F77
17931
17932 # Object file suffix (normally "o").
17933 objext="$ac_objext"
17934
17935 # Old archive suffix (normally "a").
17936 libext="$libext"
17937
17938 # Shared library suffix (normally ".so").
17939 shrext_cmds='$shrext_cmds'
17940
17941 # Executable file suffix (normally "").
17942 exeext="$exeext"
17943
17944 # Additional compiler flags for building library objects.
17945 pic_flag=$lt_lt_prog_compiler_pic_F77
17946 pic_mode=$pic_mode
17947
17948 # What is the maximum length of a command?
17949 max_cmd_len=$lt_cv_sys_max_cmd_len
17950
17951 # Does compiler simultaneously support -c and -o options?
17952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17953
17954 # Must we lock files when doing compilation?
17955 need_locks=$lt_need_locks
17956
17957 # Do we need the lib prefix for modules?
17958 need_lib_prefix=$need_lib_prefix
17959
17960 # Do we need a version for libraries?
17961 need_version=$need_version
17962
17963 # Whether dlopen is supported.
17964 dlopen_support=$enable_dlopen
17965
17966 # Whether dlopen of programs is supported.
17967 dlopen_self=$enable_dlopen_self
17968
17969 # Whether dlopen of statically linked programs is supported.
17970 dlopen_self_static=$enable_dlopen_self_static
17971
17972 # Compiler flag to prevent dynamic linking.
17973 link_static_flag=$lt_lt_prog_compiler_static_F77
17974
17975 # Compiler flag to turn off builtin functions.
17976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17977
17978 # Compiler flag to allow reflexive dlopens.
17979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17980
17981 # Compiler flag to generate shared objects directly from archives.
17982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17983
17984 # Compiler flag to generate thread-safe objects.
17985 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17986
17987 # Library versioning type.
17988 version_type=$version_type
17989
17990 # Format of library name prefix.
17991 libname_spec=$lt_libname_spec
17992
17993 # List of archive names.  First name is the real one, the rest are links.
17994 # The last name is the one that the linker finds with -lNAME.
17995 library_names_spec=$lt_library_names_spec
17996
17997 # The coded name of the library, if different from the real name.
17998 soname_spec=$lt_soname_spec
17999
18000 # Commands used to build and install an old-style archive.
18001 RANLIB=$lt_RANLIB
18002 old_archive_cmds=$lt_old_archive_cmds_F77
18003 old_postinstall_cmds=$lt_old_postinstall_cmds
18004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18005
18006 # Create an old-style archive from a shared archive.
18007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18008
18009 # Create a temporary old-style archive to link instead of a shared archive.
18010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18011
18012 # Commands used to build and install a shared archive.
18013 archive_cmds=$lt_archive_cmds_F77
18014 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18015 postinstall_cmds=$lt_postinstall_cmds
18016 postuninstall_cmds=$lt_postuninstall_cmds
18017
18018 # Commands used to build a loadable module (assumed same as above if empty)
18019 module_cmds=$lt_module_cmds_F77
18020 module_expsym_cmds=$lt_module_expsym_cmds_F77
18021
18022 # Commands to strip libraries.
18023 old_striplib=$lt_old_striplib
18024 striplib=$lt_striplib
18025
18026 # Dependencies to place before the objects being linked to create a
18027 # shared library.
18028 predep_objects=$lt_predep_objects_F77
18029
18030 # Dependencies to place after the objects being linked to create a
18031 # shared library.
18032 postdep_objects=$lt_postdep_objects_F77
18033
18034 # Dependencies to place before the objects being linked to create a
18035 # shared library.
18036 predeps=$lt_predeps_F77
18037
18038 # Dependencies to place after the objects being linked to create a
18039 # shared library.
18040 postdeps=$lt_postdeps_F77
18041
18042 # The directories searched by this compiler when creating a shared
18043 # library
18044 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18045
18046 # The library search path used internally by the compiler when linking
18047 # a shared library.
18048 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18049
18050 # Method to check whether dependent libraries are shared objects.
18051 deplibs_check_method=$lt_deplibs_check_method
18052
18053 # Command to use when deplibs_check_method == file_magic.
18054 file_magic_cmd=$lt_file_magic_cmd
18055
18056 # Flag that allows shared libraries with undefined symbols to be built.
18057 allow_undefined_flag=$lt_allow_undefined_flag_F77
18058
18059 # Flag that forces no undefined symbols.
18060 no_undefined_flag=$lt_no_undefined_flag_F77
18061
18062 # Commands used to finish a libtool library installation in a directory.
18063 finish_cmds=$lt_finish_cmds
18064
18065 # Same as above, but a single script fragment to be evaled but not shown.
18066 finish_eval=$lt_finish_eval
18067
18068 # Take the output of nm and produce a listing of raw symbols and C names.
18069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18070
18071 # Transform the output of nm in a proper C declaration
18072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18073
18074 # Transform the output of nm in a C name address pair
18075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18076
18077 # This is the shared library runtime path variable.
18078 runpath_var=$runpath_var
18079
18080 # This is the shared library path variable.
18081 shlibpath_var=$shlibpath_var
18082
18083 # Is shlibpath searched before the hard-coded library search path?
18084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18085
18086 # How to hardcode a shared library path into an executable.
18087 hardcode_action=$hardcode_action_F77
18088
18089 # Whether we should hardcode library paths into libraries.
18090 hardcode_into_libs=$hardcode_into_libs
18091
18092 # Flag to hardcode \$libdir into a binary during linking.
18093 # This must work even if \$libdir does not exist.
18094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18095
18096 # If ld is used when linking, flag to hardcode \$libdir into
18097 # a binary during linking. This must work even if \$libdir does
18098 # not exist.
18099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18100
18101 # Whether we need a single -rpath flag with a separated argument.
18102 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18103
18104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18105 # resulting binary.
18106 hardcode_direct=$hardcode_direct_F77
18107
18108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18109 # resulting binary.
18110 hardcode_minus_L=$hardcode_minus_L_F77
18111
18112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18113 # the resulting binary.
18114 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18115
18116 # Set to yes if building a shared library automatically hardcodes DIR into the library
18117 # and all subsequent libraries and executables linked against it.
18118 hardcode_automatic=$hardcode_automatic_F77
18119
18120 # Variables whose values should be saved in libtool wrapper scripts and
18121 # restored at relink time.
18122 variables_saved_for_relink="$variables_saved_for_relink"
18123
18124 # Whether libtool must link a program against all its dependency libraries.
18125 link_all_deplibs=$link_all_deplibs_F77
18126
18127 # Compile-time system search path for libraries
18128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18129
18130 # Run-time system search path for libraries
18131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18132
18133 # Fix the shell variable \$srcfile for the compiler.
18134 fix_srcfile_path=$lt_fix_srcfile_path
18135
18136 # Set to yes if exported symbols are required.
18137 always_export_symbols=$always_export_symbols_F77
18138
18139 # The commands to list exported symbols.
18140 export_symbols_cmds=$lt_export_symbols_cmds_F77
18141
18142 # The commands to extract the exported symbol list from a shared archive.
18143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18144
18145 # Symbols that should not be listed in the preloaded symbols.
18146 exclude_expsyms=$lt_exclude_expsyms_F77
18147
18148 # Symbols that must always be exported.
18149 include_expsyms=$lt_include_expsyms_F77
18150
18151 # ### END LIBTOOL TAG CONFIG: $tagname
18152
18153 __EOF__
18154
18155
18156 else
18157   # If there is no Makefile yet, we rely on a make rule to execute
18158   # `config.status --recheck' to rerun these tests and create the
18159   # libtool script then.
18160   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18161   if test -f "$ltmain_in"; then
18162     test -f Makefile && make "$ltmain"
18163   fi
18164 fi
18165
18166
18167 ac_ext=c
18168 ac_cpp='$CPP $CPPFLAGS'
18169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18172
18173 CC="$lt_save_CC"
18174
18175         else
18176           tagname=""
18177         fi
18178         ;;
18179
18180       GCJ)
18181         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18182
18183
18184 # Source file extension for Java test sources.
18185 ac_ext=java
18186
18187 # Object file extension for compiled Java test sources.
18188 objext=o
18189 objext_GCJ=$objext
18190
18191 # Code to be used in simple compile tests
18192 lt_simple_compile_test_code="class foo {}"
18193
18194 # Code to be used in simple link tests
18195 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18196
18197 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18198
18199 # If no C compiler was specified, use CC.
18200 LTCC=${LTCC-"$CC"}
18201
18202 # If no C compiler flags were specified, use CFLAGS.
18203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18204
18205 # Allow CC to be a program name with arguments.
18206 compiler=$CC
18207
18208
18209 # save warnings/boilerplate of simple test code
18210 ac_outfile=conftest.$ac_objext
18211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18213 _lt_compiler_boilerplate=`cat conftest.err`
18214 $rm conftest*
18215
18216 ac_outfile=conftest.$ac_objext
18217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18219 _lt_linker_boilerplate=`cat conftest.err`
18220 $rm -r conftest*
18221
18222
18223 # Allow CC to be a program name with arguments.
18224 lt_save_CC="$CC"
18225 CC=${GCJ-"gcj"}
18226 compiler=$CC
18227 compiler_GCJ=$CC
18228 for cc_temp in $compiler""; do
18229   case $cc_temp in
18230     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18231     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18232     \-*) ;;
18233     *) break;;
18234   esac
18235 done
18236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18237
18238
18239 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18240 archive_cmds_need_lc_GCJ=no
18241
18242 old_archive_cmds_GCJ=$old_archive_cmds
18243
18244
18245 lt_prog_compiler_no_builtin_flag_GCJ=
18246
18247 if test "$GCC" = yes; then
18248   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18249
18250
18251 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18252 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18253 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18254   echo $ECHO_N "(cached) $ECHO_C" >&6
18255 else
18256   lt_cv_prog_compiler_rtti_exceptions=no
18257   ac_outfile=conftest.$ac_objext
18258    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18259    lt_compiler_flag="-fno-rtti -fno-exceptions"
18260    # Insert the option either (1) after the last *FLAGS variable, or
18261    # (2) before a word containing "conftest.", or (3) at the end.
18262    # Note that $ac_compile itself does not contain backslashes and begins
18263    # with a dollar sign (not a hyphen), so the echo should work correctly.
18264    # The option is referenced via a variable to avoid confusing sed.
18265    lt_compile=`echo "$ac_compile" | $SED \
18266    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18267    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18268    -e 's:$: $lt_compiler_flag:'`
18269    (eval echo "\"\$as_me:18269: $lt_compile\"" >&5)
18270    (eval "$lt_compile" 2>conftest.err)
18271    ac_status=$?
18272    cat conftest.err >&5
18273    echo "$as_me:18273: \$? = $ac_status" >&5
18274    if (exit $ac_status) && test -s "$ac_outfile"; then
18275      # The compiler can only warn and ignore the option if not recognized
18276      # So say no if there are warnings other than the usual output.
18277      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18278      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18279      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18280        lt_cv_prog_compiler_rtti_exceptions=yes
18281      fi
18282    fi
18283    $rm conftest*
18284
18285 fi
18286 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18287 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18288
18289 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18290     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18291 else
18292     :
18293 fi
18294
18295 fi
18296
18297 lt_prog_compiler_wl_GCJ=
18298 lt_prog_compiler_pic_GCJ=
18299 lt_prog_compiler_static_GCJ=
18300
18301 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18302 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18303
18304   if test "$GCC" = yes; then
18305     lt_prog_compiler_wl_GCJ='-Wl,'
18306     lt_prog_compiler_static_GCJ='-static'
18307
18308     case $host_os in
18309       aix*)
18310       # All AIX code is PIC.
18311       if test "$host_cpu" = ia64; then
18312         # AIX 5 now supports IA64 processor
18313         lt_prog_compiler_static_GCJ='-Bstatic'
18314       fi
18315       ;;
18316
18317     amigaos*)
18318       # FIXME: we need at least 68020 code to build shared libraries, but
18319       # adding the `-m68020' flag to GCC prevents building anything better,
18320       # like `-m68040'.
18321       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18322       ;;
18323
18324     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18325       # PIC is the default for these OSes.
18326       ;;
18327
18328     mingw* | cygwin* | pw32* | os2*)
18329       # This hack is so that the source file can tell whether it is being
18330       # built for inclusion in a dll (and should export symbols for example).
18331       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18332       # (--disable-auto-import) libraries
18333
18334       ;;
18335
18336     darwin* | rhapsody*)
18337       # PIC is the default on this platform
18338       # Common symbols not allowed in MH_DYLIB files
18339       lt_prog_compiler_pic_GCJ='-fno-common'
18340       ;;
18341
18342     interix[3-9]*)
18343       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18344       # Instead, we relocate shared libraries at runtime.
18345       ;;
18346
18347     msdosdjgpp*)
18348       # Just because we use GCC doesn't mean we suddenly get shared libraries
18349       # on systems that don't support them.
18350       lt_prog_compiler_can_build_shared_GCJ=no
18351       enable_shared=no
18352       ;;
18353
18354     sysv4*MP*)
18355       if test -d /usr/nec; then
18356         lt_prog_compiler_pic_GCJ=-Kconform_pic
18357       fi
18358       ;;
18359
18360     hpux*)
18361       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18362       # not for PA HP-UX.
18363       case $host_cpu in
18364       hppa*64*|ia64*)
18365         # +Z the default
18366         ;;
18367       *)
18368         lt_prog_compiler_pic_GCJ='-fPIC'
18369         ;;
18370       esac
18371       ;;
18372
18373     *)
18374       lt_prog_compiler_pic_GCJ='-fPIC'
18375       ;;
18376     esac
18377   else
18378     # PORTME Check for flag to pass linker flags through the system compiler.
18379     case $host_os in
18380     aix*)
18381       lt_prog_compiler_wl_GCJ='-Wl,'
18382       if test "$host_cpu" = ia64; then
18383         # AIX 5 now supports IA64 processor
18384         lt_prog_compiler_static_GCJ='-Bstatic'
18385       else
18386         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18387       fi
18388       ;;
18389       darwin*)
18390         # PIC is the default on this platform
18391         # Common symbols not allowed in MH_DYLIB files
18392        case $cc_basename in
18393          xlc*)
18394          lt_prog_compiler_pic_GCJ='-qnocommon'
18395          lt_prog_compiler_wl_GCJ='-Wl,'
18396          ;;
18397        esac
18398        ;;
18399
18400     mingw* | cygwin* | pw32* | os2*)
18401       # This hack is so that the source file can tell whether it is being
18402       # built for inclusion in a dll (and should export symbols for example).
18403
18404       ;;
18405
18406     hpux9* | hpux10* | hpux11*)
18407       lt_prog_compiler_wl_GCJ='-Wl,'
18408       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18409       # not for PA HP-UX.
18410       case $host_cpu in
18411       hppa*64*|ia64*)
18412         # +Z the default
18413         ;;
18414       *)
18415         lt_prog_compiler_pic_GCJ='+Z'
18416         ;;
18417       esac
18418       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18419       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18420       ;;
18421
18422     irix5* | irix6* | nonstopux*)
18423       lt_prog_compiler_wl_GCJ='-Wl,'
18424       # PIC (with -KPIC) is the default.
18425       lt_prog_compiler_static_GCJ='-non_shared'
18426       ;;
18427
18428     newsos6)
18429       lt_prog_compiler_pic_GCJ='-KPIC'
18430       lt_prog_compiler_static_GCJ='-Bstatic'
18431       ;;
18432
18433     linux* | k*bsd*-gnu)
18434       case $cc_basename in
18435       icc* | ecc*)
18436         lt_prog_compiler_wl_GCJ='-Wl,'
18437         lt_prog_compiler_pic_GCJ='-KPIC'
18438         lt_prog_compiler_static_GCJ='-static'
18439         ;;
18440       pgcc* | pgf77* | pgf90* | pgf95*)
18441         # Portland Group compilers (*not* the Pentium gcc compiler,
18442         # which looks to be a dead project)
18443         lt_prog_compiler_wl_GCJ='-Wl,'
18444         lt_prog_compiler_pic_GCJ='-fpic'
18445         lt_prog_compiler_static_GCJ='-Bstatic'
18446         ;;
18447       ccc*)
18448         lt_prog_compiler_wl_GCJ='-Wl,'
18449         # All Alpha code is PIC.
18450         lt_prog_compiler_static_GCJ='-non_shared'
18451         ;;
18452       *)
18453         case `$CC -V 2>&1 | sed 5q` in
18454         *Sun\ C*)
18455           # Sun C 5.9
18456           lt_prog_compiler_pic_GCJ='-KPIC'
18457           lt_prog_compiler_static_GCJ='-Bstatic'
18458           lt_prog_compiler_wl_GCJ='-Wl,'
18459           ;;
18460         *Sun\ F*)
18461           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18462           lt_prog_compiler_pic_GCJ='-KPIC'
18463           lt_prog_compiler_static_GCJ='-Bstatic'
18464           lt_prog_compiler_wl_GCJ=''
18465           ;;
18466         esac
18467         ;;
18468       esac
18469       ;;
18470
18471     osf3* | osf4* | osf5*)
18472       lt_prog_compiler_wl_GCJ='-Wl,'
18473       # All OSF/1 code is PIC.
18474       lt_prog_compiler_static_GCJ='-non_shared'
18475       ;;
18476
18477     rdos*)
18478       lt_prog_compiler_static_GCJ='-non_shared'
18479       ;;
18480
18481     solaris*)
18482       lt_prog_compiler_pic_GCJ='-KPIC'
18483       lt_prog_compiler_static_GCJ='-Bstatic'
18484       case $cc_basename in
18485       f77* | f90* | f95*)
18486         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18487       *)
18488         lt_prog_compiler_wl_GCJ='-Wl,';;
18489       esac
18490       ;;
18491
18492     sunos4*)
18493       lt_prog_compiler_wl_GCJ='-Qoption ld '
18494       lt_prog_compiler_pic_GCJ='-PIC'
18495       lt_prog_compiler_static_GCJ='-Bstatic'
18496       ;;
18497
18498     sysv4 | sysv4.2uw2* | sysv4.3*)
18499       lt_prog_compiler_wl_GCJ='-Wl,'
18500       lt_prog_compiler_pic_GCJ='-KPIC'
18501       lt_prog_compiler_static_GCJ='-Bstatic'
18502       ;;
18503
18504     sysv4*MP*)
18505       if test -d /usr/nec ;then
18506         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18507         lt_prog_compiler_static_GCJ='-Bstatic'
18508       fi
18509       ;;
18510
18511     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18512       lt_prog_compiler_wl_GCJ='-Wl,'
18513       lt_prog_compiler_pic_GCJ='-KPIC'
18514       lt_prog_compiler_static_GCJ='-Bstatic'
18515       ;;
18516
18517     unicos*)
18518       lt_prog_compiler_wl_GCJ='-Wl,'
18519       lt_prog_compiler_can_build_shared_GCJ=no
18520       ;;
18521
18522     uts4*)
18523       lt_prog_compiler_pic_GCJ='-pic'
18524       lt_prog_compiler_static_GCJ='-Bstatic'
18525       ;;
18526
18527     *)
18528       lt_prog_compiler_can_build_shared_GCJ=no
18529       ;;
18530     esac
18531   fi
18532
18533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18534 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18535
18536 #
18537 # Check to make sure the PIC flag actually works.
18538 #
18539 if test -n "$lt_prog_compiler_pic_GCJ"; then
18540
18541 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18542 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18543 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18544   echo $ECHO_N "(cached) $ECHO_C" >&6
18545 else
18546   lt_cv_prog_compiler_pic_works_GCJ=no
18547   ac_outfile=conftest.$ac_objext
18548    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18549    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18550    # Insert the option either (1) after the last *FLAGS variable, or
18551    # (2) before a word containing "conftest.", or (3) at the end.
18552    # Note that $ac_compile itself does not contain backslashes and begins
18553    # with a dollar sign (not a hyphen), so the echo should work correctly.
18554    # The option is referenced via a variable to avoid confusing sed.
18555    lt_compile=`echo "$ac_compile" | $SED \
18556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18558    -e 's:$: $lt_compiler_flag:'`
18559    (eval echo "\"\$as_me:18559: $lt_compile\"" >&5)
18560    (eval "$lt_compile" 2>conftest.err)
18561    ac_status=$?
18562    cat conftest.err >&5
18563    echo "$as_me:18563: \$? = $ac_status" >&5
18564    if (exit $ac_status) && test -s "$ac_outfile"; then
18565      # The compiler can only warn and ignore the option if not recognized
18566      # So say no if there are warnings other than the usual output.
18567      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18568      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18569      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18570        lt_cv_prog_compiler_pic_works_GCJ=yes
18571      fi
18572    fi
18573    $rm conftest*
18574
18575 fi
18576 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18577 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18578
18579 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18580     case $lt_prog_compiler_pic_GCJ in
18581      "" | " "*) ;;
18582      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18583      esac
18584 else
18585     lt_prog_compiler_pic_GCJ=
18586      lt_prog_compiler_can_build_shared_GCJ=no
18587 fi
18588
18589 fi
18590 case $host_os in
18591   # For platforms which do not support PIC, -DPIC is meaningless:
18592   *djgpp*)
18593     lt_prog_compiler_pic_GCJ=
18594     ;;
18595   *)
18596     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18597     ;;
18598 esac
18599
18600 #
18601 # Check to make sure the static flag actually works.
18602 #
18603 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18604 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18605 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18606 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18607   echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609   lt_cv_prog_compiler_static_works_GCJ=no
18610    save_LDFLAGS="$LDFLAGS"
18611    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18612    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18613    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18614      # The linker can only warn and ignore the option if not recognized
18615      # So say no if there are warnings
18616      if test -s conftest.err; then
18617        # Append any errors to the config.log.
18618        cat conftest.err 1>&5
18619        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18620        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18621        if diff conftest.exp conftest.er2 >/dev/null; then
18622          lt_cv_prog_compiler_static_works_GCJ=yes
18623        fi
18624      else
18625        lt_cv_prog_compiler_static_works_GCJ=yes
18626      fi
18627    fi
18628    $rm -r conftest*
18629    LDFLAGS="$save_LDFLAGS"
18630
18631 fi
18632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18633 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18634
18635 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18636     :
18637 else
18638     lt_prog_compiler_static_GCJ=
18639 fi
18640
18641
18642 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18643 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18644 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18645   echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647   lt_cv_prog_compiler_c_o_GCJ=no
18648    $rm -r conftest 2>/dev/null
18649    mkdir conftest
18650    cd conftest
18651    mkdir out
18652    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18653
18654    lt_compiler_flag="-o out/conftest2.$ac_objext"
18655    # Insert the option either (1) after the last *FLAGS variable, or
18656    # (2) before a word containing "conftest.", or (3) at the end.
18657    # Note that $ac_compile itself does not contain backslashes and begins
18658    # with a dollar sign (not a hyphen), so the echo should work correctly.
18659    lt_compile=`echo "$ac_compile" | $SED \
18660    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18662    -e 's:$: $lt_compiler_flag:'`
18663    (eval echo "\"\$as_me:18663: $lt_compile\"" >&5)
18664    (eval "$lt_compile" 2>out/conftest.err)
18665    ac_status=$?
18666    cat out/conftest.err >&5
18667    echo "$as_me:18667: \$? = $ac_status" >&5
18668    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18669    then
18670      # The compiler can only warn and ignore the option if not recognized
18671      # So say no if there are warnings
18672      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18673      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18674      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18675        lt_cv_prog_compiler_c_o_GCJ=yes
18676      fi
18677    fi
18678    chmod u+w . 2>&5
18679    $rm conftest*
18680    # SGI C++ compiler will create directory out/ii_files/ for
18681    # template instantiation
18682    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18683    $rm out/* && rmdir out
18684    cd ..
18685    rmdir conftest
18686    $rm conftest*
18687
18688 fi
18689 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18690 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18691
18692
18693 hard_links="nottested"
18694 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18695   # do not overwrite the value of need_locks provided by the user
18696   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18697 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18698   hard_links=yes
18699   $rm conftest*
18700   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18701   touch conftest.a
18702   ln conftest.a conftest.b 2>&5 || hard_links=no
18703   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18704   { echo "$as_me:$LINENO: result: $hard_links" >&5
18705 echo "${ECHO_T}$hard_links" >&6; }
18706   if test "$hard_links" = no; then
18707     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18708 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18709     need_locks=warn
18710   fi
18711 else
18712   need_locks=no
18713 fi
18714
18715 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18716 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18717
18718   runpath_var=
18719   allow_undefined_flag_GCJ=
18720   enable_shared_with_static_runtimes_GCJ=no
18721   archive_cmds_GCJ=
18722   archive_expsym_cmds_GCJ=
18723   old_archive_From_new_cmds_GCJ=
18724   old_archive_from_expsyms_cmds_GCJ=
18725   export_dynamic_flag_spec_GCJ=
18726   whole_archive_flag_spec_GCJ=
18727   thread_safe_flag_spec_GCJ=
18728   hardcode_libdir_flag_spec_GCJ=
18729   hardcode_libdir_flag_spec_ld_GCJ=
18730   hardcode_libdir_separator_GCJ=
18731   hardcode_direct_GCJ=no
18732   hardcode_minus_L_GCJ=no
18733   hardcode_shlibpath_var_GCJ=unsupported
18734   link_all_deplibs_GCJ=unknown
18735   hardcode_automatic_GCJ=no
18736   module_cmds_GCJ=
18737   module_expsym_cmds_GCJ=
18738   always_export_symbols_GCJ=no
18739   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18740   # include_expsyms should be a list of space-separated symbols to be *always*
18741   # included in the symbol list
18742   include_expsyms_GCJ=
18743   # exclude_expsyms can be an extended regexp of symbols to exclude
18744   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18745   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18746   # as well as any symbol that contains `d'.
18747   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18748   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18749   # platforms (ab)use it in PIC code, but their linkers get confused if
18750   # the symbol is explicitly referenced.  Since portable code cannot
18751   # rely on this symbol name, it's probably fine to never include it in
18752   # preloaded symbol tables.
18753   # Exclude shared library initialization/finalization symbols.
18754   extract_expsyms_cmds=
18755   # Just being paranoid about ensuring that cc_basename is set.
18756   for cc_temp in $compiler""; do
18757   case $cc_temp in
18758     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18759     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18760     \-*) ;;
18761     *) break;;
18762   esac
18763 done
18764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18765
18766   case $host_os in
18767   cygwin* | mingw* | pw32*)
18768     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18769     # When not using gcc, we currently assume that we are using
18770     # Microsoft Visual C++.
18771     if test "$GCC" != yes; then
18772       with_gnu_ld=no
18773     fi
18774     ;;
18775   interix*)
18776     # we just hope/assume this is gcc and not c89 (= MSVC++)
18777     with_gnu_ld=yes
18778     ;;
18779   openbsd*)
18780     with_gnu_ld=no
18781     ;;
18782   esac
18783
18784   ld_shlibs_GCJ=yes
18785   if test "$with_gnu_ld" = yes; then
18786     # If archive_cmds runs LD, not CC, wlarc should be empty
18787     wlarc='${wl}'
18788
18789     # Set some defaults for GNU ld with shared library support. These
18790     # are reset later if shared libraries are not supported. Putting them
18791     # here allows them to be overridden if necessary.
18792     runpath_var=LD_RUN_PATH
18793     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18794     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18795     # ancient GNU ld didn't support --whole-archive et. al.
18796     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18797         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18798       else
18799         whole_archive_flag_spec_GCJ=
18800     fi
18801     supports_anon_versioning=no
18802     case `$LD -v 2>/dev/null` in
18803       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18804       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18805       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18806       *\ 2.11.*) ;; # other 2.11 versions
18807       *) supports_anon_versioning=yes ;;
18808     esac
18809
18810     # See if GNU ld supports shared libraries.
18811     case $host_os in
18812     aix[3-9]*)
18813       # On AIX/PPC, the GNU linker is very broken
18814       if test "$host_cpu" != ia64; then
18815         ld_shlibs_GCJ=no
18816         cat <<EOF 1>&2
18817
18818 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18819 *** to be unable to reliably create shared libraries on AIX.
18820 *** Therefore, libtool is disabling shared libraries support.  If you
18821 *** really care for shared libraries, you may want to modify your PATH
18822 *** so that a non-GNU linker is found, and then restart.
18823
18824 EOF
18825       fi
18826       ;;
18827
18828     amigaos*)
18829       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)'
18830       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18831       hardcode_minus_L_GCJ=yes
18832
18833       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18834       # that the semantics of dynamic libraries on AmigaOS, at least up
18835       # to version 4, is to share data among multiple programs linked
18836       # with the same dynamic library.  Since this doesn't match the
18837       # behavior of shared libraries on other platforms, we can't use
18838       # them.
18839       ld_shlibs_GCJ=no
18840       ;;
18841
18842     beos*)
18843       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18844         allow_undefined_flag_GCJ=unsupported
18845         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18846         # support --undefined.  This deserves some investigation.  FIXME
18847         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18848       else
18849         ld_shlibs_GCJ=no
18850       fi
18851       ;;
18852
18853     cygwin* | mingw* | pw32*)
18854       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18855       # as there is no search path for DLLs.
18856       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18857       allow_undefined_flag_GCJ=unsupported
18858       always_export_symbols_GCJ=no
18859       enable_shared_with_static_runtimes_GCJ=yes
18860       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18861
18862       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18863         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18864         # If the export-symbols file already is a .def file (1st line
18865         # is EXPORTS), use it as is; otherwise, prepend...
18866         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18867           cp $export_symbols $output_objdir/$soname.def;
18868         else
18869           echo EXPORTS > $output_objdir/$soname.def;
18870           cat $export_symbols >> $output_objdir/$soname.def;
18871         fi~
18872         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18873       else
18874         ld_shlibs_GCJ=no
18875       fi
18876       ;;
18877
18878     interix[3-9]*)
18879       hardcode_direct_GCJ=no
18880       hardcode_shlibpath_var_GCJ=no
18881       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18882       export_dynamic_flag_spec_GCJ='${wl}-E'
18883       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18884       # Instead, shared libraries are loaded at an image base (0x10000000 by
18885       # default) and relocated if they conflict, which is a slow very memory
18886       # consuming and fragmenting process.  To avoid this, we pick a random,
18887       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18888       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18889       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18890       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18891       ;;
18892
18893     gnu* | linux* | k*bsd*-gnu)
18894       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18895         tmp_addflag=
18896         case $cc_basename,$host_cpu in
18897         pgcc*)                          # Portland Group C compiler
18898           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18899           tmp_addflag=' $pic_flag'
18900           ;;
18901         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18902           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18903           tmp_addflag=' $pic_flag -Mnomain' ;;
18904         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18905           tmp_addflag=' -i_dynamic' ;;
18906         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18907           tmp_addflag=' -i_dynamic -nofor_main' ;;
18908         ifc* | ifort*)                  # Intel Fortran compiler
18909           tmp_addflag=' -nofor_main' ;;
18910         esac
18911         case `$CC -V 2>&1 | sed 5q` in
18912         *Sun\ C*)                       # Sun C 5.9
18913           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18914           tmp_sharedflag='-G' ;;
18915         *Sun\ F*)                       # Sun Fortran 8.3
18916           tmp_sharedflag='-G' ;;
18917         *)
18918           tmp_sharedflag='-shared' ;;
18919         esac
18920         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18921
18922         if test $supports_anon_versioning = yes; then
18923           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18924   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18925   $echo "local: *; };" >> $output_objdir/$libname.ver~
18926           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18927         fi
18928       else
18929         ld_shlibs_GCJ=no
18930       fi
18931       ;;
18932
18933     netbsd*)
18934       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18935         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18936         wlarc=
18937       else
18938         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18939         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18940       fi
18941       ;;
18942
18943     solaris*)
18944       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18945         ld_shlibs_GCJ=no
18946         cat <<EOF 1>&2
18947
18948 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18949 *** create shared libraries on Solaris systems.  Therefore, libtool
18950 *** is disabling shared libraries support.  We urge you to upgrade GNU
18951 *** binutils to release 2.9.1 or newer.  Another option is to modify
18952 *** your PATH or compiler configuration so that the native linker is
18953 *** used, and then restart.
18954
18955 EOF
18956       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18957         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18958         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18959       else
18960         ld_shlibs_GCJ=no
18961       fi
18962       ;;
18963
18964     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18965       case `$LD -v 2>&1` in
18966         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18967         ld_shlibs_GCJ=no
18968         cat <<_LT_EOF 1>&2
18969
18970 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18971 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18972 *** is disabling shared libraries support.  We urge you to upgrade GNU
18973 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18974 *** your PATH or compiler configuration so that the native linker is
18975 *** used, and then restart.
18976
18977 _LT_EOF
18978         ;;
18979         *)
18980           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18981             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18982             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18983             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18984           else
18985             ld_shlibs_GCJ=no
18986           fi
18987         ;;
18988       esac
18989       ;;
18990
18991     sunos4*)
18992       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18993       wlarc=
18994       hardcode_direct_GCJ=yes
18995       hardcode_shlibpath_var_GCJ=no
18996       ;;
18997
18998     *)
18999       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19000         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19001         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19002       else
19003         ld_shlibs_GCJ=no
19004       fi
19005       ;;
19006     esac
19007
19008     if test "$ld_shlibs_GCJ" = no; then
19009       runpath_var=
19010       hardcode_libdir_flag_spec_GCJ=
19011       export_dynamic_flag_spec_GCJ=
19012       whole_archive_flag_spec_GCJ=
19013     fi
19014   else
19015     # PORTME fill in a description of your system's linker (not GNU ld)
19016     case $host_os in
19017     aix3*)
19018       allow_undefined_flag_GCJ=unsupported
19019       always_export_symbols_GCJ=yes
19020       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'
19021       # Note: this linker hardcodes the directories in LIBPATH if there
19022       # are no directories specified by -L.
19023       hardcode_minus_L_GCJ=yes
19024       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19025         # Neither direct hardcoding nor static linking is supported with a
19026         # broken collect2.
19027         hardcode_direct_GCJ=unsupported
19028       fi
19029       ;;
19030
19031     aix[4-9]*)
19032       if test "$host_cpu" = ia64; then
19033         # On IA64, the linker does run time linking by default, so we don't
19034         # have to do anything special.
19035         aix_use_runtimelinking=no
19036         exp_sym_flag='-Bexport'
19037         no_entry_flag=""
19038       else
19039         # If we're using GNU nm, then we don't want the "-C" option.
19040         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19041         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19042           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'
19043         else
19044           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'
19045         fi
19046         aix_use_runtimelinking=no
19047
19048         # Test if we are trying to use run time linking or normal
19049         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19050         # need to do runtime linking.
19051         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19052           for ld_flag in $LDFLAGS; do
19053           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19054             aix_use_runtimelinking=yes
19055             break
19056           fi
19057           done
19058           ;;
19059         esac
19060
19061         exp_sym_flag='-bexport'
19062         no_entry_flag='-bnoentry'
19063       fi
19064
19065       # When large executables or shared objects are built, AIX ld can
19066       # have problems creating the table of contents.  If linking a library
19067       # or program results in "error TOC overflow" add -mminimal-toc to
19068       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19069       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19070
19071       archive_cmds_GCJ=''
19072       hardcode_direct_GCJ=yes
19073       hardcode_libdir_separator_GCJ=':'
19074       link_all_deplibs_GCJ=yes
19075
19076       if test "$GCC" = yes; then
19077         case $host_os in aix4.[012]|aix4.[012].*)
19078         # We only want to do this on AIX 4.2 and lower, the check
19079         # below for broken collect2 doesn't work under 4.3+
19080           collect2name=`${CC} -print-prog-name=collect2`
19081           if test -f "$collect2name" && \
19082            strings "$collect2name" | grep resolve_lib_name >/dev/null
19083           then
19084           # We have reworked collect2
19085           :
19086           else
19087           # We have old collect2
19088           hardcode_direct_GCJ=unsupported
19089           # It fails to find uninstalled libraries when the uninstalled
19090           # path is not listed in the libpath.  Setting hardcode_minus_L
19091           # to unsupported forces relinking
19092           hardcode_minus_L_GCJ=yes
19093           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19094           hardcode_libdir_separator_GCJ=
19095           fi
19096           ;;
19097         esac
19098         shared_flag='-shared'
19099         if test "$aix_use_runtimelinking" = yes; then
19100           shared_flag="$shared_flag "'${wl}-G'
19101         fi
19102       else
19103         # not using gcc
19104         if test "$host_cpu" = ia64; then
19105         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19106         # chokes on -Wl,-G. The following line is correct:
19107           shared_flag='-G'
19108         else
19109           if test "$aix_use_runtimelinking" = yes; then
19110             shared_flag='${wl}-G'
19111           else
19112             shared_flag='${wl}-bM:SRE'
19113           fi
19114         fi
19115       fi
19116
19117       # It seems that -bexpall does not export symbols beginning with
19118       # underscore (_), so it is better to generate a list of symbols to export.
19119       always_export_symbols_GCJ=yes
19120       if test "$aix_use_runtimelinking" = yes; then
19121         # Warning - without using the other runtime loading flags (-brtl),
19122         # -berok will link without error, but may produce a broken library.
19123         allow_undefined_flag_GCJ='-berok'
19124        # Determine the default libpath from the value encoded in an empty executable.
19125        cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h.  */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h.  */
19131
19132 int
19133 main ()
19134 {
19135
19136   ;
19137   return 0;
19138 }
19139 _ACEOF
19140 rm -f conftest.$ac_objext conftest$ac_exeext
19141 if { (ac_try="$ac_link"
19142 case "(($ac_try" in
19143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144   *) ac_try_echo=$ac_try;;
19145 esac
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147   (eval "$ac_link") 2>conftest.er1
19148   ac_status=$?
19149   grep -v '^ *+' conftest.er1 >conftest.err
19150   rm -f conftest.er1
19151   cat conftest.err >&5
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); } && {
19154          test -z "$ac_c_werror_flag" ||
19155          test ! -s conftest.err
19156        } && test -s conftest$ac_exeext &&
19157        $as_test_x conftest$ac_exeext; then
19158
19159 lt_aix_libpath_sed='
19160     /Import File Strings/,/^$/ {
19161         /^0/ {
19162             s/^0  *\(.*\)$/\1/
19163             p
19164         }
19165     }'
19166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19167 # Check for a 64-bit object if we didn't find anything.
19168 if test -z "$aix_libpath"; then
19169   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19170 fi
19171 else
19172   echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19174
19175
19176 fi
19177
19178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19179       conftest$ac_exeext conftest.$ac_ext
19180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19181
19182        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19183         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19184        else
19185         if test "$host_cpu" = ia64; then
19186           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19187           allow_undefined_flag_GCJ="-z nodefs"
19188           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19189         else
19190          # Determine the default libpath from the value encoded in an empty executable.
19191          cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h.  */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h.  */
19197
19198 int
19199 main ()
19200 {
19201
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (ac_try="$ac_link"
19208 case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_link") 2>conftest.er1
19214   ac_status=$?
19215   grep -v '^ *+' conftest.er1 >conftest.err
19216   rm -f conftest.er1
19217   cat conftest.err >&5
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } && {
19220          test -z "$ac_c_werror_flag" ||
19221          test ! -s conftest.err
19222        } && test -s conftest$ac_exeext &&
19223        $as_test_x conftest$ac_exeext; then
19224
19225 lt_aix_libpath_sed='
19226     /Import File Strings/,/^$/ {
19227         /^0/ {
19228             s/^0  *\(.*\)$/\1/
19229             p
19230         }
19231     }'
19232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19233 # Check for a 64-bit object if we didn't find anything.
19234 if test -z "$aix_libpath"; then
19235   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19236 fi
19237 else
19238   echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241
19242 fi
19243
19244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19245       conftest$ac_exeext conftest.$ac_ext
19246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19247
19248          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19249           # Warning - without using the other run time loading flags,
19250           # -berok will link without error, but may produce a broken library.
19251           no_undefined_flag_GCJ=' ${wl}-bernotok'
19252           allow_undefined_flag_GCJ=' ${wl}-berok'
19253           # Exported symbols can be pulled into shared objects from archives
19254           whole_archive_flag_spec_GCJ='$convenience'
19255           archive_cmds_need_lc_GCJ=yes
19256           # This is similar to how AIX traditionally builds its shared libraries.
19257           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19258         fi
19259       fi
19260       ;;
19261
19262     amigaos*)
19263       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)'
19264       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19265       hardcode_minus_L_GCJ=yes
19266       # see comment about different semantics on the GNU ld section
19267       ld_shlibs_GCJ=no
19268       ;;
19269
19270     bsdi[45]*)
19271       export_dynamic_flag_spec_GCJ=-rdynamic
19272       ;;
19273
19274     cygwin* | mingw* | pw32*)
19275       # When not using gcc, we currently assume that we are using
19276       # Microsoft Visual C++.
19277       # hardcode_libdir_flag_spec is actually meaningless, as there is
19278       # no search path for DLLs.
19279       hardcode_libdir_flag_spec_GCJ=' '
19280       allow_undefined_flag_GCJ=unsupported
19281       # Tell ltmain to make .lib files, not .a files.
19282       libext=lib
19283       # Tell ltmain to make .dll files, not .so files.
19284       shrext_cmds=".dll"
19285       # FIXME: Setting linknames here is a bad hack.
19286       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19287       # The linker will automatically build a .lib file if we build a DLL.
19288       old_archive_From_new_cmds_GCJ='true'
19289       # FIXME: Should let the user specify the lib program.
19290       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19291       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19292       enable_shared_with_static_runtimes_GCJ=yes
19293       ;;
19294
19295     darwin* | rhapsody*)
19296       case $host_os in
19297         rhapsody* | darwin1.[012])
19298          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19299          ;;
19300        *) # Darwin 1.3 on
19301          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19302            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19303          else
19304            case ${MACOSX_DEPLOYMENT_TARGET} in
19305              10.[012])
19306                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19307                ;;
19308              10.*)
19309                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19310                ;;
19311            esac
19312          fi
19313          ;;
19314       esac
19315       archive_cmds_need_lc_GCJ=no
19316       hardcode_direct_GCJ=no
19317       hardcode_automatic_GCJ=yes
19318       hardcode_shlibpath_var_GCJ=unsupported
19319       whole_archive_flag_spec_GCJ=''
19320       link_all_deplibs_GCJ=yes
19321     if test "$GCC" = yes ; then
19322         output_verbose_link_cmd='echo'
19323         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19324         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19325         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19326         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19327     else
19328       case $cc_basename in
19329         xlc*)
19330          output_verbose_link_cmd='echo'
19331          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19332          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19333           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19334          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19335           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}'
19336           ;;
19337        *)
19338          ld_shlibs_GCJ=no
19339           ;;
19340       esac
19341     fi
19342       ;;
19343
19344     dgux*)
19345       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19346       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19347       hardcode_shlibpath_var_GCJ=no
19348       ;;
19349
19350     freebsd1*)
19351       ld_shlibs_GCJ=no
19352       ;;
19353
19354     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19355     # support.  Future versions do this automatically, but an explicit c++rt0.o
19356     # does not break anything, and helps significantly (at the cost of a little
19357     # extra space).
19358     freebsd2.2*)
19359       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19360       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19361       hardcode_direct_GCJ=yes
19362       hardcode_shlibpath_var_GCJ=no
19363       ;;
19364
19365     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19366     freebsd2*)
19367       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19368       hardcode_direct_GCJ=yes
19369       hardcode_minus_L_GCJ=yes
19370       hardcode_shlibpath_var_GCJ=no
19371       ;;
19372
19373     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19374     freebsd* | dragonfly*)
19375       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19376       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19377       hardcode_direct_GCJ=yes
19378       hardcode_shlibpath_var_GCJ=no
19379       ;;
19380
19381     hpux9*)
19382       if test "$GCC" = yes; then
19383         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'
19384       else
19385         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'
19386       fi
19387       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19388       hardcode_libdir_separator_GCJ=:
19389       hardcode_direct_GCJ=yes
19390
19391       # hardcode_minus_L: Not really in the search PATH,
19392       # but as the default location of the library.
19393       hardcode_minus_L_GCJ=yes
19394       export_dynamic_flag_spec_GCJ='${wl}-E'
19395       ;;
19396
19397     hpux10*)
19398       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19399         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19400       else
19401         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19402       fi
19403       if test "$with_gnu_ld" = no; then
19404         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19405         hardcode_libdir_separator_GCJ=:
19406
19407         hardcode_direct_GCJ=yes
19408         export_dynamic_flag_spec_GCJ='${wl}-E'
19409
19410         # hardcode_minus_L: Not really in the search PATH,
19411         # but as the default location of the library.
19412         hardcode_minus_L_GCJ=yes
19413       fi
19414       ;;
19415
19416     hpux11*)
19417       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19418         case $host_cpu in
19419         hppa*64*)
19420           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19421           ;;
19422         ia64*)
19423           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19424           ;;
19425         *)
19426           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19427           ;;
19428         esac
19429       else
19430         case $host_cpu in
19431         hppa*64*)
19432           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19433           ;;
19434         ia64*)
19435           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19436           ;;
19437         *)
19438           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19439           ;;
19440         esac
19441       fi
19442       if test "$with_gnu_ld" = no; then
19443         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19444         hardcode_libdir_separator_GCJ=:
19445
19446         case $host_cpu in
19447         hppa*64*|ia64*)
19448           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19449           hardcode_direct_GCJ=no
19450           hardcode_shlibpath_var_GCJ=no
19451           ;;
19452         *)
19453           hardcode_direct_GCJ=yes
19454           export_dynamic_flag_spec_GCJ='${wl}-E'
19455
19456           # hardcode_minus_L: Not really in the search PATH,
19457           # but as the default location of the library.
19458           hardcode_minus_L_GCJ=yes
19459           ;;
19460         esac
19461       fi
19462       ;;
19463
19464     irix5* | irix6* | nonstopux*)
19465       if test "$GCC" = yes; then
19466         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'
19467       else
19468         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'
19469         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19470       fi
19471       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19472       hardcode_libdir_separator_GCJ=:
19473       link_all_deplibs_GCJ=yes
19474       ;;
19475
19476     netbsd*)
19477       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19478         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19479       else
19480         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19481       fi
19482       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19483       hardcode_direct_GCJ=yes
19484       hardcode_shlibpath_var_GCJ=no
19485       ;;
19486
19487     newsos6)
19488       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19489       hardcode_direct_GCJ=yes
19490       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19491       hardcode_libdir_separator_GCJ=:
19492       hardcode_shlibpath_var_GCJ=no
19493       ;;
19494
19495     openbsd*)
19496       if test -f /usr/libexec/ld.so; then
19497         hardcode_direct_GCJ=yes
19498         hardcode_shlibpath_var_GCJ=no
19499         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19500           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19501           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19502           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19503           export_dynamic_flag_spec_GCJ='${wl}-E'
19504         else
19505           case $host_os in
19506            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19507              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19508              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19509              ;;
19510            *)
19511              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19512              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19513              ;;
19514           esac
19515         fi
19516       else
19517         ld_shlibs_GCJ=no
19518       fi
19519       ;;
19520
19521     os2*)
19522       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19523       hardcode_minus_L_GCJ=yes
19524       allow_undefined_flag_GCJ=unsupported
19525       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'
19526       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19527       ;;
19528
19529     osf3*)
19530       if test "$GCC" = yes; then
19531         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19532         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'
19533       else
19534         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19535         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'
19536       fi
19537       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19538       hardcode_libdir_separator_GCJ=:
19539       ;;
19540
19541     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19542       if test "$GCC" = yes; then
19543         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19544         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'
19545         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19546       else
19547         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19548         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'
19549         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~
19550         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19551
19552         # Both c and cxx compiler support -rpath directly
19553         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19554       fi
19555       hardcode_libdir_separator_GCJ=:
19556       ;;
19557
19558     solaris*)
19559       no_undefined_flag_GCJ=' -z text'
19560       if test "$GCC" = yes; then
19561         wlarc='${wl}'
19562         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19563         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19564           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19565       else
19566         wlarc=''
19567         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19568         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19569         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19570       fi
19571       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19572       hardcode_shlibpath_var_GCJ=no
19573       case $host_os in
19574       solaris2.[0-5] | solaris2.[0-5].*) ;;
19575       *)
19576         # The compiler driver will combine and reorder linker options,
19577         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19578         # but is careful enough not to reorder.
19579         # Supported since Solaris 2.6 (maybe 2.5.1?)
19580         if test "$GCC" = yes; then
19581           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19582         else
19583           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19584         fi
19585         ;;
19586       esac
19587       link_all_deplibs_GCJ=yes
19588       ;;
19589
19590     sunos4*)
19591       if test "x$host_vendor" = xsequent; then
19592         # Use $CC to link under sequent, because it throws in some extra .o
19593         # files that make .init and .fini sections work.
19594         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19595       else
19596         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19597       fi
19598       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19599       hardcode_direct_GCJ=yes
19600       hardcode_minus_L_GCJ=yes
19601       hardcode_shlibpath_var_GCJ=no
19602       ;;
19603
19604     sysv4)
19605       case $host_vendor in
19606         sni)
19607           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19608           hardcode_direct_GCJ=yes # is this really true???
19609         ;;
19610         siemens)
19611           ## LD is ld it makes a PLAMLIB
19612           ## CC just makes a GrossModule.
19613           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19614           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19615           hardcode_direct_GCJ=no
19616         ;;
19617         motorola)
19618           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19619           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19620         ;;
19621       esac
19622       runpath_var='LD_RUN_PATH'
19623       hardcode_shlibpath_var_GCJ=no
19624       ;;
19625
19626     sysv4.3*)
19627       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19628       hardcode_shlibpath_var_GCJ=no
19629       export_dynamic_flag_spec_GCJ='-Bexport'
19630       ;;
19631
19632     sysv4*MP*)
19633       if test -d /usr/nec; then
19634         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19635         hardcode_shlibpath_var_GCJ=no
19636         runpath_var=LD_RUN_PATH
19637         hardcode_runpath_var=yes
19638         ld_shlibs_GCJ=yes
19639       fi
19640       ;;
19641
19642     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19643       no_undefined_flag_GCJ='${wl}-z,text'
19644       archive_cmds_need_lc_GCJ=no
19645       hardcode_shlibpath_var_GCJ=no
19646       runpath_var='LD_RUN_PATH'
19647
19648       if test "$GCC" = yes; then
19649         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19650         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19651       else
19652         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19653         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19654       fi
19655       ;;
19656
19657     sysv5* | sco3.2v5* | sco5v6*)
19658       # Note: We can NOT use -z defs as we might desire, because we do not
19659       # link with -lc, and that would cause any symbols used from libc to
19660       # always be unresolved, which means just about no library would
19661       # ever link correctly.  If we're not using GNU ld we use -z text
19662       # though, which does catch some bad symbols but isn't as heavy-handed
19663       # as -z defs.
19664       no_undefined_flag_GCJ='${wl}-z,text'
19665       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19666       archive_cmds_need_lc_GCJ=no
19667       hardcode_shlibpath_var_GCJ=no
19668       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19669       hardcode_libdir_separator_GCJ=':'
19670       link_all_deplibs_GCJ=yes
19671       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19672       runpath_var='LD_RUN_PATH'
19673
19674       if test "$GCC" = yes; then
19675         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19676         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19677       else
19678         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19679         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19680       fi
19681       ;;
19682
19683     uts4*)
19684       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19685       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19686       hardcode_shlibpath_var_GCJ=no
19687       ;;
19688
19689     *)
19690       ld_shlibs_GCJ=no
19691       ;;
19692     esac
19693   fi
19694
19695 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19696 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19697 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19698
19699 #
19700 # Do we need to explicitly link libc?
19701 #
19702 case "x$archive_cmds_need_lc_GCJ" in
19703 x|xyes)
19704   # Assume -lc should be added
19705   archive_cmds_need_lc_GCJ=yes
19706
19707   if test "$enable_shared" = yes && test "$GCC" = yes; then
19708     case $archive_cmds_GCJ in
19709     *'~'*)
19710       # FIXME: we may have to deal with multi-command sequences.
19711       ;;
19712     '$CC '*)
19713       # Test whether the compiler implicitly links with -lc since on some
19714       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19715       # to ld, don't add -lc before -lgcc.
19716       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19717 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19718       $rm conftest*
19719       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19720
19721       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19722   (eval $ac_compile) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } 2>conftest.err; then
19726         soname=conftest
19727         lib=conftest
19728         libobjs=conftest.$ac_objext
19729         deplibs=
19730         wl=$lt_prog_compiler_wl_GCJ
19731         pic_flag=$lt_prog_compiler_pic_GCJ
19732         compiler_flags=-v
19733         linker_flags=-v
19734         verstring=
19735         output_objdir=.
19736         libname=conftest
19737         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19738         allow_undefined_flag_GCJ=
19739         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19740   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }
19744         then
19745           archive_cmds_need_lc_GCJ=no
19746         else
19747           archive_cmds_need_lc_GCJ=yes
19748         fi
19749         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19750       else
19751         cat conftest.err 1>&5
19752       fi
19753       $rm conftest*
19754       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19755 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19756       ;;
19757     esac
19758   fi
19759   ;;
19760 esac
19761
19762 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19763 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19764 library_names_spec=
19765 libname_spec='lib$name'
19766 soname_spec=
19767 shrext_cmds=".so"
19768 postinstall_cmds=
19769 postuninstall_cmds=
19770 finish_cmds=
19771 finish_eval=
19772 shlibpath_var=
19773 shlibpath_overrides_runpath=unknown
19774 version_type=none
19775 dynamic_linker="$host_os ld.so"
19776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19777
19778 need_lib_prefix=unknown
19779 hardcode_into_libs=no
19780
19781 # when you set need_version to no, make sure it does not cause -set_version
19782 # flags to be left without arguments
19783 need_version=unknown
19784
19785 case $host_os in
19786 aix3*)
19787   version_type=linux
19788   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19789   shlibpath_var=LIBPATH
19790
19791   # AIX 3 has no versioning support, so we append a major version to the name.
19792   soname_spec='${libname}${release}${shared_ext}$major'
19793   ;;
19794
19795 aix[4-9]*)
19796   version_type=linux
19797   need_lib_prefix=no
19798   need_version=no
19799   hardcode_into_libs=yes
19800   if test "$host_cpu" = ia64; then
19801     # AIX 5 supports IA64
19802     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19803     shlibpath_var=LD_LIBRARY_PATH
19804   else
19805     # With GCC up to 2.95.x, collect2 would create an import file
19806     # for dependence libraries.  The import file would start with
19807     # the line `#! .'.  This would cause the generated library to
19808     # depend on `.', always an invalid library.  This was fixed in
19809     # development snapshots of GCC prior to 3.0.
19810     case $host_os in
19811       aix4 | aix4.[01] | aix4.[01].*)
19812       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19813            echo ' yes '
19814            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19815         :
19816       else
19817         can_build_shared=no
19818       fi
19819       ;;
19820     esac
19821     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19822     # soname into executable. Probably we can add versioning support to
19823     # collect2, so additional links can be useful in future.
19824     if test "$aix_use_runtimelinking" = yes; then
19825       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19826       # instead of lib<name>.a to let people know that these are not
19827       # typical AIX shared libraries.
19828       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829     else
19830       # We preserve .a as extension for shared libraries through AIX4.2
19831       # and later when we are not doing run time linking.
19832       library_names_spec='${libname}${release}.a $libname.a'
19833       soname_spec='${libname}${release}${shared_ext}$major'
19834     fi
19835     shlibpath_var=LIBPATH
19836   fi
19837   ;;
19838
19839 amigaos*)
19840   library_names_spec='$libname.ixlibrary $libname.a'
19841   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19842   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'
19843   ;;
19844
19845 beos*)
19846   library_names_spec='${libname}${shared_ext}'
19847   dynamic_linker="$host_os ld.so"
19848   shlibpath_var=LIBRARY_PATH
19849   ;;
19850
19851 bsdi[45]*)
19852   version_type=linux
19853   need_version=no
19854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19855   soname_spec='${libname}${release}${shared_ext}$major'
19856   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19857   shlibpath_var=LD_LIBRARY_PATH
19858   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19859   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19860   # the default ld.so.conf also contains /usr/contrib/lib and
19861   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19862   # libtool to hard-code these into programs
19863   ;;
19864
19865 cygwin* | mingw* | pw32*)
19866   version_type=windows
19867   shrext_cmds=".dll"
19868   need_version=no
19869   need_lib_prefix=no
19870
19871   case $GCC,$host_os in
19872   yes,cygwin* | yes,mingw* | yes,pw32*)
19873     library_names_spec='$libname.dll.a'
19874     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19875     postinstall_cmds='base_file=`basename \${file}`~
19876       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19877       dldir=$destdir/`dirname \$dlpath`~
19878       test -d \$dldir || mkdir -p \$dldir~
19879       $install_prog $dir/$dlname \$dldir/$dlname~
19880       chmod a+x \$dldir/$dlname'
19881     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19882       dlpath=$dir/\$dldll~
19883        $rm \$dlpath'
19884     shlibpath_overrides_runpath=yes
19885
19886     case $host_os in
19887     cygwin*)
19888       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19889       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19890       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19891       ;;
19892     mingw*)
19893       # MinGW DLLs use traditional 'lib' prefix
19894       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19895       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19896       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19897         # It is most probably a Windows format PATH printed by
19898         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19899         # path with ; separators, and with drive letters. We can handle the
19900         # drive letters (cygwin fileutils understands them), so leave them,
19901         # especially as we might pass files found there to a mingw objdump,
19902         # which wouldn't understand a cygwinified path. Ahh.
19903         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19904       else
19905         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19906       fi
19907       ;;
19908     pw32*)
19909       # pw32 DLLs use 'pw' prefix rather than 'lib'
19910       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19911       ;;
19912     esac
19913     ;;
19914
19915   *)
19916     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19917     ;;
19918   esac
19919   dynamic_linker='Win32 ld.exe'
19920   # FIXME: first we should search . and the directory the executable is in
19921   shlibpath_var=PATH
19922   ;;
19923
19924 darwin* | rhapsody*)
19925   dynamic_linker="$host_os dyld"
19926   version_type=darwin
19927   need_lib_prefix=no
19928   need_version=no
19929   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19930   soname_spec='${libname}${release}${major}$shared_ext'
19931   shlibpath_overrides_runpath=yes
19932   shlibpath_var=DYLD_LIBRARY_PATH
19933   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19934
19935   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19936   ;;
19937
19938 dgux*)
19939   version_type=linux
19940   need_lib_prefix=no
19941   need_version=no
19942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19943   soname_spec='${libname}${release}${shared_ext}$major'
19944   shlibpath_var=LD_LIBRARY_PATH
19945   ;;
19946
19947 freebsd1*)
19948   dynamic_linker=no
19949   ;;
19950
19951 freebsd* | dragonfly*)
19952   # DragonFly does not have aout.  When/if they implement a new
19953   # versioning mechanism, adjust this.
19954   if test -x /usr/bin/objformat; then
19955     objformat=`/usr/bin/objformat`
19956   else
19957     case $host_os in
19958     freebsd[123]*) objformat=aout ;;
19959     *) objformat=elf ;;
19960     esac
19961   fi
19962   # Handle Gentoo/FreeBSD as it was Linux
19963   case $host_vendor in
19964     gentoo)
19965       version_type=linux ;;
19966     *)
19967       version_type=freebsd-$objformat ;;
19968   esac
19969
19970   case $version_type in
19971     freebsd-elf*)
19972       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19973       need_version=no
19974       need_lib_prefix=no
19975       ;;
19976     freebsd-*)
19977       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19978       need_version=yes
19979       ;;
19980     linux)
19981       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19982       soname_spec='${libname}${release}${shared_ext}$major'
19983       need_lib_prefix=no
19984       need_version=no
19985       ;;
19986   esac
19987   shlibpath_var=LD_LIBRARY_PATH
19988   case $host_os in
19989   freebsd2*)
19990     shlibpath_overrides_runpath=yes
19991     ;;
19992   freebsd3.[01]* | freebsdelf3.[01]*)
19993     shlibpath_overrides_runpath=yes
19994     hardcode_into_libs=yes
19995     ;;
19996   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19997   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19998     shlibpath_overrides_runpath=no
19999     hardcode_into_libs=yes
20000     ;;
20001   *) # from 4.6 on, and DragonFly
20002     shlibpath_overrides_runpath=yes
20003     hardcode_into_libs=yes
20004     ;;
20005   esac
20006   ;;
20007
20008 gnu*)
20009   version_type=linux
20010   need_lib_prefix=no
20011   need_version=no
20012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20013   soname_spec='${libname}${release}${shared_ext}$major'
20014   shlibpath_var=LD_LIBRARY_PATH
20015   hardcode_into_libs=yes
20016   ;;
20017
20018 hpux9* | hpux10* | hpux11*)
20019   # Give a soname corresponding to the major version so that dld.sl refuses to
20020   # link against other versions.
20021   version_type=sunos
20022   need_lib_prefix=no
20023   need_version=no
20024   case $host_cpu in
20025   ia64*)
20026     shrext_cmds='.so'
20027     hardcode_into_libs=yes
20028     dynamic_linker="$host_os dld.so"
20029     shlibpath_var=LD_LIBRARY_PATH
20030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20032     soname_spec='${libname}${release}${shared_ext}$major'
20033     if test "X$HPUX_IA64_MODE" = X32; then
20034       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20035     else
20036       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20037     fi
20038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20039     ;;
20040    hppa*64*)
20041      shrext_cmds='.sl'
20042      hardcode_into_libs=yes
20043      dynamic_linker="$host_os dld.sl"
20044      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20045      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20047      soname_spec='${libname}${release}${shared_ext}$major'
20048      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20049      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20050      ;;
20051    *)
20052     shrext_cmds='.sl'
20053     dynamic_linker="$host_os dld.sl"
20054     shlibpath_var=SHLIB_PATH
20055     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20057     soname_spec='${libname}${release}${shared_ext}$major'
20058     ;;
20059   esac
20060   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20061   postinstall_cmds='chmod 555 $lib'
20062   ;;
20063
20064 interix[3-9]*)
20065   version_type=linux
20066   need_lib_prefix=no
20067   need_version=no
20068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20069   soname_spec='${libname}${release}${shared_ext}$major'
20070   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20071   shlibpath_var=LD_LIBRARY_PATH
20072   shlibpath_overrides_runpath=no
20073   hardcode_into_libs=yes
20074   ;;
20075
20076 irix5* | irix6* | nonstopux*)
20077   case $host_os in
20078     nonstopux*) version_type=nonstopux ;;
20079     *)
20080         if test "$lt_cv_prog_gnu_ld" = yes; then
20081                 version_type=linux
20082         else
20083                 version_type=irix
20084         fi ;;
20085   esac
20086   need_lib_prefix=no
20087   need_version=no
20088   soname_spec='${libname}${release}${shared_ext}$major'
20089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20090   case $host_os in
20091   irix5* | nonstopux*)
20092     libsuff= shlibsuff=
20093     ;;
20094   *)
20095     case $LD in # libtool.m4 will add one of these switches to LD
20096     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20097       libsuff= shlibsuff= libmagic=32-bit;;
20098     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20099       libsuff=32 shlibsuff=N32 libmagic=N32;;
20100     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20101       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20102     *) libsuff= shlibsuff= libmagic=never-match;;
20103     esac
20104     ;;
20105   esac
20106   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20107   shlibpath_overrides_runpath=no
20108   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20109   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20110   hardcode_into_libs=yes
20111   ;;
20112
20113 # No shared lib support for Linux oldld, aout, or coff.
20114 linux*oldld* | linux*aout* | linux*coff*)
20115   dynamic_linker=no
20116   ;;
20117
20118 # This must be Linux ELF.
20119 linux* | k*bsd*-gnu)
20120   version_type=linux
20121   need_lib_prefix=no
20122   need_version=no
20123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20124   soname_spec='${libname}${release}${shared_ext}$major'
20125   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20126   shlibpath_var=LD_LIBRARY_PATH
20127   shlibpath_overrides_runpath=no
20128   # This implies no fast_install, which is unacceptable.
20129   # Some rework will be needed to allow for fast_install
20130   # before this can be enabled.
20131   hardcode_into_libs=yes
20132
20133   # Append ld.so.conf contents to the search path
20134   if test -f /etc/ld.so.conf; then
20135     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20136     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20137   fi
20138
20139   # We used to test for /lib/ld.so.1 and disable shared libraries on
20140   # powerpc, because MkLinux only supported shared libraries with the
20141   # GNU dynamic linker.  Since this was broken with cross compilers,
20142   # most powerpc-linux boxes support dynamic linking these days and
20143   # people can always --disable-shared, the test was removed, and we
20144   # assume the GNU/Linux dynamic linker is in use.
20145   dynamic_linker='GNU/Linux ld.so'
20146   ;;
20147
20148 netbsd*)
20149   version_type=sunos
20150   need_lib_prefix=no
20151   need_version=no
20152   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20154     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20155     dynamic_linker='NetBSD (a.out) ld.so'
20156   else
20157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20158     soname_spec='${libname}${release}${shared_ext}$major'
20159     dynamic_linker='NetBSD ld.elf_so'
20160   fi
20161   shlibpath_var=LD_LIBRARY_PATH
20162   shlibpath_overrides_runpath=yes
20163   hardcode_into_libs=yes
20164   ;;
20165
20166 newsos6)
20167   version_type=linux
20168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20169   shlibpath_var=LD_LIBRARY_PATH
20170   shlibpath_overrides_runpath=yes
20171   ;;
20172
20173 nto-qnx*)
20174   version_type=linux
20175   need_lib_prefix=no
20176   need_version=no
20177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178   soname_spec='${libname}${release}${shared_ext}$major'
20179   shlibpath_var=LD_LIBRARY_PATH
20180   shlibpath_overrides_runpath=yes
20181   ;;
20182
20183 openbsd*)
20184   version_type=sunos
20185   sys_lib_dlsearch_path_spec="/usr/lib"
20186   need_lib_prefix=no
20187   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20188   case $host_os in
20189     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20190     *)                         need_version=no  ;;
20191   esac
20192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20193   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20194   shlibpath_var=LD_LIBRARY_PATH
20195   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20196     case $host_os in
20197       openbsd2.[89] | openbsd2.[89].*)
20198         shlibpath_overrides_runpath=no
20199         ;;
20200       *)
20201         shlibpath_overrides_runpath=yes
20202         ;;
20203       esac
20204   else
20205     shlibpath_overrides_runpath=yes
20206   fi
20207   ;;
20208
20209 os2*)
20210   libname_spec='$name'
20211   shrext_cmds=".dll"
20212   need_lib_prefix=no
20213   library_names_spec='$libname${shared_ext} $libname.a'
20214   dynamic_linker='OS/2 ld.exe'
20215   shlibpath_var=LIBPATH
20216   ;;
20217
20218 osf3* | osf4* | osf5*)
20219   version_type=osf
20220   need_lib_prefix=no
20221   need_version=no
20222   soname_spec='${libname}${release}${shared_ext}$major'
20223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20224   shlibpath_var=LD_LIBRARY_PATH
20225   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20226   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20227   ;;
20228
20229 rdos*)
20230   dynamic_linker=no
20231   ;;
20232
20233 solaris*)
20234   version_type=linux
20235   need_lib_prefix=no
20236   need_version=no
20237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20238   soname_spec='${libname}${release}${shared_ext}$major'
20239   shlibpath_var=LD_LIBRARY_PATH
20240   shlibpath_overrides_runpath=yes
20241   hardcode_into_libs=yes
20242   # ldd complains unless libraries are executable
20243   postinstall_cmds='chmod +x $lib'
20244   ;;
20245
20246 sunos4*)
20247   version_type=sunos
20248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20249   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20250   shlibpath_var=LD_LIBRARY_PATH
20251   shlibpath_overrides_runpath=yes
20252   if test "$with_gnu_ld" = yes; then
20253     need_lib_prefix=no
20254   fi
20255   need_version=yes
20256   ;;
20257
20258 sysv4 | sysv4.3*)
20259   version_type=linux
20260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261   soname_spec='${libname}${release}${shared_ext}$major'
20262   shlibpath_var=LD_LIBRARY_PATH
20263   case $host_vendor in
20264     sni)
20265       shlibpath_overrides_runpath=no
20266       need_lib_prefix=no
20267       export_dynamic_flag_spec='${wl}-Blargedynsym'
20268       runpath_var=LD_RUN_PATH
20269       ;;
20270     siemens)
20271       need_lib_prefix=no
20272       ;;
20273     motorola)
20274       need_lib_prefix=no
20275       need_version=no
20276       shlibpath_overrides_runpath=no
20277       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20278       ;;
20279   esac
20280   ;;
20281
20282 sysv4*MP*)
20283   if test -d /usr/nec ;then
20284     version_type=linux
20285     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20286     soname_spec='$libname${shared_ext}.$major'
20287     shlibpath_var=LD_LIBRARY_PATH
20288   fi
20289   ;;
20290
20291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20292   version_type=freebsd-elf
20293   need_lib_prefix=no
20294   need_version=no
20295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20296   soname_spec='${libname}${release}${shared_ext}$major'
20297   shlibpath_var=LD_LIBRARY_PATH
20298   hardcode_into_libs=yes
20299   if test "$with_gnu_ld" = yes; then
20300     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20301     shlibpath_overrides_runpath=no
20302   else
20303     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20304     shlibpath_overrides_runpath=yes
20305     case $host_os in
20306       sco3.2v5*)
20307         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20308         ;;
20309     esac
20310   fi
20311   sys_lib_dlsearch_path_spec='/usr/lib'
20312   ;;
20313
20314 uts4*)
20315   version_type=linux
20316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20317   soname_spec='${libname}${release}${shared_ext}$major'
20318   shlibpath_var=LD_LIBRARY_PATH
20319   ;;
20320
20321 *)
20322   dynamic_linker=no
20323   ;;
20324 esac
20325 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20326 echo "${ECHO_T}$dynamic_linker" >&6; }
20327 test "$dynamic_linker" = no && can_build_shared=no
20328
20329 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20333 fi
20334
20335 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20336 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20340 fi
20341
20342 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20343
20344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20345 if test "$GCC" = yes; then
20346   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20347 fi
20348
20349 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20350 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20351 hardcode_action_GCJ=
20352 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20353    test -n "$runpath_var_GCJ" || \
20354    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20355
20356   # We can hardcode non-existant directories.
20357   if test "$hardcode_direct_GCJ" != no &&
20358      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20359      # have to relink, otherwise we might link with an installed library
20360      # when we should be linking with a yet-to-be-installed one
20361      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20362      test "$hardcode_minus_L_GCJ" != no; then
20363     # Linking always hardcodes the temporary library directory.
20364     hardcode_action_GCJ=relink
20365   else
20366     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20367     hardcode_action_GCJ=immediate
20368   fi
20369 else
20370   # We cannot hardcode anything, or else we can only hardcode existing
20371   # directories.
20372   hardcode_action_GCJ=unsupported
20373 fi
20374 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20375 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20376
20377 if test "$hardcode_action_GCJ" = relink; then
20378   # Fast installation is not supported
20379   enable_fast_install=no
20380 elif test "$shlibpath_overrides_runpath" = yes ||
20381      test "$enable_shared" = no; then
20382   # Fast installation is not necessary
20383   enable_fast_install=needless
20384 fi
20385
20386
20387 # The else clause should only fire when bootstrapping the
20388 # libtool distribution, otherwise you forgot to ship ltmain.sh
20389 # with your package, and you will get complaints that there are
20390 # no rules to generate ltmain.sh.
20391 if test -f "$ltmain"; then
20392   # See if we are running on zsh, and set the options which allow our commands through
20393   # without removal of \ escapes.
20394   if test -n "${ZSH_VERSION+set}" ; then
20395     setopt NO_GLOB_SUBST
20396   fi
20397   # Now quote all the things that may contain metacharacters while being
20398   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20399   # variables and quote the copies for generation of the libtool script.
20400   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20401     SED SHELL STRIP \
20402     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20403     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20404     deplibs_check_method reload_flag reload_cmds need_locks \
20405     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20406     lt_cv_sys_global_symbol_to_c_name_address \
20407     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20408     old_postinstall_cmds old_postuninstall_cmds \
20409     compiler_GCJ \
20410     CC_GCJ \
20411     LD_GCJ \
20412     lt_prog_compiler_wl_GCJ \
20413     lt_prog_compiler_pic_GCJ \
20414     lt_prog_compiler_static_GCJ \
20415     lt_prog_compiler_no_builtin_flag_GCJ \
20416     export_dynamic_flag_spec_GCJ \
20417     thread_safe_flag_spec_GCJ \
20418     whole_archive_flag_spec_GCJ \
20419     enable_shared_with_static_runtimes_GCJ \
20420     old_archive_cmds_GCJ \
20421     old_archive_from_new_cmds_GCJ \
20422     predep_objects_GCJ \
20423     postdep_objects_GCJ \
20424     predeps_GCJ \
20425     postdeps_GCJ \
20426     compiler_lib_search_path_GCJ \
20427     compiler_lib_search_dirs_GCJ \
20428     archive_cmds_GCJ \
20429     archive_expsym_cmds_GCJ \
20430     postinstall_cmds_GCJ \
20431     postuninstall_cmds_GCJ \
20432     old_archive_from_expsyms_cmds_GCJ \
20433     allow_undefined_flag_GCJ \
20434     no_undefined_flag_GCJ \
20435     export_symbols_cmds_GCJ \
20436     hardcode_libdir_flag_spec_GCJ \
20437     hardcode_libdir_flag_spec_ld_GCJ \
20438     hardcode_libdir_separator_GCJ \
20439     hardcode_automatic_GCJ \
20440     module_cmds_GCJ \
20441     module_expsym_cmds_GCJ \
20442     lt_cv_prog_compiler_c_o_GCJ \
20443     fix_srcfile_path_GCJ \
20444     exclude_expsyms_GCJ \
20445     include_expsyms_GCJ; do
20446
20447     case $var in
20448     old_archive_cmds_GCJ | \
20449     old_archive_from_new_cmds_GCJ | \
20450     archive_cmds_GCJ | \
20451     archive_expsym_cmds_GCJ | \
20452     module_cmds_GCJ | \
20453     module_expsym_cmds_GCJ | \
20454     old_archive_from_expsyms_cmds_GCJ | \
20455     export_symbols_cmds_GCJ | \
20456     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20457     postinstall_cmds | postuninstall_cmds | \
20458     old_postinstall_cmds | old_postuninstall_cmds | \
20459     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20460       # Double-quote double-evaled strings.
20461       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20462       ;;
20463     *)
20464       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20465       ;;
20466     esac
20467   done
20468
20469   case $lt_echo in
20470   *'\$0 --fallback-echo"')
20471     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20472     ;;
20473   esac
20474
20475 cfgfile="$ofile"
20476
20477   cat <<__EOF__ >> "$cfgfile"
20478 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20479
20480 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20481
20482 # Shell to use when invoking shell scripts.
20483 SHELL=$lt_SHELL
20484
20485 # Whether or not to build shared libraries.
20486 build_libtool_libs=$enable_shared
20487
20488 # Whether or not to build static libraries.
20489 build_old_libs=$enable_static
20490
20491 # Whether or not to add -lc for building shared libraries.
20492 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20493
20494 # Whether or not to disallow shared libs when runtime libs are static
20495 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20496
20497 # Whether or not to optimize for fast installation.
20498 fast_install=$enable_fast_install
20499
20500 # The host system.
20501 host_alias=$host_alias
20502 host=$host
20503 host_os=$host_os
20504
20505 # The build system.
20506 build_alias=$build_alias
20507 build=$build
20508 build_os=$build_os
20509
20510 # An echo program that does not interpret backslashes.
20511 echo=$lt_echo
20512
20513 # The archiver.
20514 AR=$lt_AR
20515 AR_FLAGS=$lt_AR_FLAGS
20516
20517 # A C compiler.
20518 LTCC=$lt_LTCC
20519
20520 # LTCC compiler flags.
20521 LTCFLAGS=$lt_LTCFLAGS
20522
20523 # A language-specific compiler.
20524 CC=$lt_compiler_GCJ
20525
20526 # Is the compiler the GNU C compiler?
20527 with_gcc=$GCC_GCJ
20528
20529 # An ERE matcher.
20530 EGREP=$lt_EGREP
20531
20532 # The linker used to build libraries.
20533 LD=$lt_LD_GCJ
20534
20535 # Whether we need hard or soft links.
20536 LN_S=$lt_LN_S
20537
20538 # A BSD-compatible nm program.
20539 NM=$lt_NM
20540
20541 # A symbol stripping program
20542 STRIP=$lt_STRIP
20543
20544 # Used to examine libraries when file_magic_cmd begins "file"
20545 MAGIC_CMD=$MAGIC_CMD
20546
20547 # Used on cygwin: DLL creation program.
20548 DLLTOOL="$DLLTOOL"
20549
20550 # Used on cygwin: object dumper.
20551 OBJDUMP="$OBJDUMP"
20552
20553 # Used on cygwin: assembler.
20554 AS="$AS"
20555
20556 # The name of the directory that contains temporary libtool files.
20557 objdir=$objdir
20558
20559 # How to create reloadable object files.
20560 reload_flag=$lt_reload_flag
20561 reload_cmds=$lt_reload_cmds
20562
20563 # How to pass a linker flag through the compiler.
20564 wl=$lt_lt_prog_compiler_wl_GCJ
20565
20566 # Object file suffix (normally "o").
20567 objext="$ac_objext"
20568
20569 # Old archive suffix (normally "a").
20570 libext="$libext"
20571
20572 # Shared library suffix (normally ".so").
20573 shrext_cmds='$shrext_cmds'
20574
20575 # Executable file suffix (normally "").
20576 exeext="$exeext"
20577
20578 # Additional compiler flags for building library objects.
20579 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20580 pic_mode=$pic_mode
20581
20582 # What is the maximum length of a command?
20583 max_cmd_len=$lt_cv_sys_max_cmd_len
20584
20585 # Does compiler simultaneously support -c and -o options?
20586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20587
20588 # Must we lock files when doing compilation?
20589 need_locks=$lt_need_locks
20590
20591 # Do we need the lib prefix for modules?
20592 need_lib_prefix=$need_lib_prefix
20593
20594 # Do we need a version for libraries?
20595 need_version=$need_version
20596
20597 # Whether dlopen is supported.
20598 dlopen_support=$enable_dlopen
20599
20600 # Whether dlopen of programs is supported.
20601 dlopen_self=$enable_dlopen_self
20602
20603 # Whether dlopen of statically linked programs is supported.
20604 dlopen_self_static=$enable_dlopen_self_static
20605
20606 # Compiler flag to prevent dynamic linking.
20607 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20608
20609 # Compiler flag to turn off builtin functions.
20610 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20611
20612 # Compiler flag to allow reflexive dlopens.
20613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20614
20615 # Compiler flag to generate shared objects directly from archives.
20616 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20617
20618 # Compiler flag to generate thread-safe objects.
20619 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20620
20621 # Library versioning type.
20622 version_type=$version_type
20623
20624 # Format of library name prefix.
20625 libname_spec=$lt_libname_spec
20626
20627 # List of archive names.  First name is the real one, the rest are links.
20628 # The last name is the one that the linker finds with -lNAME.
20629 library_names_spec=$lt_library_names_spec
20630
20631 # The coded name of the library, if different from the real name.
20632 soname_spec=$lt_soname_spec
20633
20634 # Commands used to build and install an old-style archive.
20635 RANLIB=$lt_RANLIB
20636 old_archive_cmds=$lt_old_archive_cmds_GCJ
20637 old_postinstall_cmds=$lt_old_postinstall_cmds
20638 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20639
20640 # Create an old-style archive from a shared archive.
20641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20642
20643 # Create a temporary old-style archive to link instead of a shared archive.
20644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20645
20646 # Commands used to build and install a shared archive.
20647 archive_cmds=$lt_archive_cmds_GCJ
20648 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20649 postinstall_cmds=$lt_postinstall_cmds
20650 postuninstall_cmds=$lt_postuninstall_cmds
20651
20652 # Commands used to build a loadable module (assumed same as above if empty)
20653 module_cmds=$lt_module_cmds_GCJ
20654 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20655
20656 # Commands to strip libraries.
20657 old_striplib=$lt_old_striplib
20658 striplib=$lt_striplib
20659
20660 # Dependencies to place before the objects being linked to create a
20661 # shared library.
20662 predep_objects=$lt_predep_objects_GCJ
20663
20664 # Dependencies to place after the objects being linked to create a
20665 # shared library.
20666 postdep_objects=$lt_postdep_objects_GCJ
20667
20668 # Dependencies to place before the objects being linked to create a
20669 # shared library.
20670 predeps=$lt_predeps_GCJ
20671
20672 # Dependencies to place after the objects being linked to create a
20673 # shared library.
20674 postdeps=$lt_postdeps_GCJ
20675
20676 # The directories searched by this compiler when creating a shared
20677 # library
20678 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20679
20680 # The library search path used internally by the compiler when linking
20681 # a shared library.
20682 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20683
20684 # Method to check whether dependent libraries are shared objects.
20685 deplibs_check_method=$lt_deplibs_check_method
20686
20687 # Command to use when deplibs_check_method == file_magic.
20688 file_magic_cmd=$lt_file_magic_cmd
20689
20690 # Flag that allows shared libraries with undefined symbols to be built.
20691 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20692
20693 # Flag that forces no undefined symbols.
20694 no_undefined_flag=$lt_no_undefined_flag_GCJ
20695
20696 # Commands used to finish a libtool library installation in a directory.
20697 finish_cmds=$lt_finish_cmds
20698
20699 # Same as above, but a single script fragment to be evaled but not shown.
20700 finish_eval=$lt_finish_eval
20701
20702 # Take the output of nm and produce a listing of raw symbols and C names.
20703 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20704
20705 # Transform the output of nm in a proper C declaration
20706 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20707
20708 # Transform the output of nm in a C name address pair
20709 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20710
20711 # This is the shared library runtime path variable.
20712 runpath_var=$runpath_var
20713
20714 # This is the shared library path variable.
20715 shlibpath_var=$shlibpath_var
20716
20717 # Is shlibpath searched before the hard-coded library search path?
20718 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20719
20720 # How to hardcode a shared library path into an executable.
20721 hardcode_action=$hardcode_action_GCJ
20722
20723 # Whether we should hardcode library paths into libraries.
20724 hardcode_into_libs=$hardcode_into_libs
20725
20726 # Flag to hardcode \$libdir into a binary during linking.
20727 # This must work even if \$libdir does not exist.
20728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20729
20730 # If ld is used when linking, flag to hardcode \$libdir into
20731 # a binary during linking. This must work even if \$libdir does
20732 # not exist.
20733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20734
20735 # Whether we need a single -rpath flag with a separated argument.
20736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20737
20738 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20739 # resulting binary.
20740 hardcode_direct=$hardcode_direct_GCJ
20741
20742 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20743 # resulting binary.
20744 hardcode_minus_L=$hardcode_minus_L_GCJ
20745
20746 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20747 # the resulting binary.
20748 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20749
20750 # Set to yes if building a shared library automatically hardcodes DIR into the library
20751 # and all subsequent libraries and executables linked against it.
20752 hardcode_automatic=$hardcode_automatic_GCJ
20753
20754 # Variables whose values should be saved in libtool wrapper scripts and
20755 # restored at relink time.
20756 variables_saved_for_relink="$variables_saved_for_relink"
20757
20758 # Whether libtool must link a program against all its dependency libraries.
20759 link_all_deplibs=$link_all_deplibs_GCJ
20760
20761 # Compile-time system search path for libraries
20762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20763
20764 # Run-time system search path for libraries
20765 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20766
20767 # Fix the shell variable \$srcfile for the compiler.
20768 fix_srcfile_path=$lt_fix_srcfile_path
20769
20770 # Set to yes if exported symbols are required.
20771 always_export_symbols=$always_export_symbols_GCJ
20772
20773 # The commands to list exported symbols.
20774 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20775
20776 # The commands to extract the exported symbol list from a shared archive.
20777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20778
20779 # Symbols that should not be listed in the preloaded symbols.
20780 exclude_expsyms=$lt_exclude_expsyms_GCJ
20781
20782 # Symbols that must always be exported.
20783 include_expsyms=$lt_include_expsyms_GCJ
20784
20785 # ### END LIBTOOL TAG CONFIG: $tagname
20786
20787 __EOF__
20788
20789
20790 else
20791   # If there is no Makefile yet, we rely on a make rule to execute
20792   # `config.status --recheck' to rerun these tests and create the
20793   # libtool script then.
20794   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20795   if test -f "$ltmain_in"; then
20796     test -f Makefile && make "$ltmain"
20797   fi
20798 fi
20799
20800
20801 ac_ext=c
20802 ac_cpp='$CPP $CPPFLAGS'
20803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20806
20807 CC="$lt_save_CC"
20808
20809         else
20810           tagname=""
20811         fi
20812         ;;
20813
20814       RC)
20815
20816
20817 # Source file extension for RC test sources.
20818 ac_ext=rc
20819
20820 # Object file extension for compiled RC test sources.
20821 objext=o
20822 objext_RC=$objext
20823
20824 # Code to be used in simple compile tests
20825 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20826
20827 # Code to be used in simple link tests
20828 lt_simple_link_test_code="$lt_simple_compile_test_code"
20829
20830 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20831
20832 # If no C compiler was specified, use CC.
20833 LTCC=${LTCC-"$CC"}
20834
20835 # If no C compiler flags were specified, use CFLAGS.
20836 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20837
20838 # Allow CC to be a program name with arguments.
20839 compiler=$CC
20840
20841
20842 # save warnings/boilerplate of simple test code
20843 ac_outfile=conftest.$ac_objext
20844 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20845 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20846 _lt_compiler_boilerplate=`cat conftest.err`
20847 $rm conftest*
20848
20849 ac_outfile=conftest.$ac_objext
20850 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20851 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20852 _lt_linker_boilerplate=`cat conftest.err`
20853 $rm -r conftest*
20854
20855
20856 # Allow CC to be a program name with arguments.
20857 lt_save_CC="$CC"
20858 CC=${RC-"windres"}
20859 compiler=$CC
20860 compiler_RC=$CC
20861 for cc_temp in $compiler""; do
20862   case $cc_temp in
20863     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20864     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20865     \-*) ;;
20866     *) break;;
20867   esac
20868 done
20869 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20870
20871 lt_cv_prog_compiler_c_o_RC=yes
20872
20873 # The else clause should only fire when bootstrapping the
20874 # libtool distribution, otherwise you forgot to ship ltmain.sh
20875 # with your package, and you will get complaints that there are
20876 # no rules to generate ltmain.sh.
20877 if test -f "$ltmain"; then
20878   # See if we are running on zsh, and set the options which allow our commands through
20879   # without removal of \ escapes.
20880   if test -n "${ZSH_VERSION+set}" ; then
20881     setopt NO_GLOB_SUBST
20882   fi
20883   # Now quote all the things that may contain metacharacters while being
20884   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20885   # variables and quote the copies for generation of the libtool script.
20886   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20887     SED SHELL STRIP \
20888     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20889     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20890     deplibs_check_method reload_flag reload_cmds need_locks \
20891     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20892     lt_cv_sys_global_symbol_to_c_name_address \
20893     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20894     old_postinstall_cmds old_postuninstall_cmds \
20895     compiler_RC \
20896     CC_RC \
20897     LD_RC \
20898     lt_prog_compiler_wl_RC \
20899     lt_prog_compiler_pic_RC \
20900     lt_prog_compiler_static_RC \
20901     lt_prog_compiler_no_builtin_flag_RC \
20902     export_dynamic_flag_spec_RC \
20903     thread_safe_flag_spec_RC \
20904     whole_archive_flag_spec_RC \
20905     enable_shared_with_static_runtimes_RC \
20906     old_archive_cmds_RC \
20907     old_archive_from_new_cmds_RC \
20908     predep_objects_RC \
20909     postdep_objects_RC \
20910     predeps_RC \
20911     postdeps_RC \
20912     compiler_lib_search_path_RC \
20913     compiler_lib_search_dirs_RC \
20914     archive_cmds_RC \
20915     archive_expsym_cmds_RC \
20916     postinstall_cmds_RC \
20917     postuninstall_cmds_RC \
20918     old_archive_from_expsyms_cmds_RC \
20919     allow_undefined_flag_RC \
20920     no_undefined_flag_RC \
20921     export_symbols_cmds_RC \
20922     hardcode_libdir_flag_spec_RC \
20923     hardcode_libdir_flag_spec_ld_RC \
20924     hardcode_libdir_separator_RC \
20925     hardcode_automatic_RC \
20926     module_cmds_RC \
20927     module_expsym_cmds_RC \
20928     lt_cv_prog_compiler_c_o_RC \
20929     fix_srcfile_path_RC \
20930     exclude_expsyms_RC \
20931     include_expsyms_RC; do
20932
20933     case $var in
20934     old_archive_cmds_RC | \
20935     old_archive_from_new_cmds_RC | \
20936     archive_cmds_RC | \
20937     archive_expsym_cmds_RC | \
20938     module_cmds_RC | \
20939     module_expsym_cmds_RC | \
20940     old_archive_from_expsyms_cmds_RC | \
20941     export_symbols_cmds_RC | \
20942     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20943     postinstall_cmds | postuninstall_cmds | \
20944     old_postinstall_cmds | old_postuninstall_cmds | \
20945     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20946       # Double-quote double-evaled strings.
20947       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20948       ;;
20949     *)
20950       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20951       ;;
20952     esac
20953   done
20954
20955   case $lt_echo in
20956   *'\$0 --fallback-echo"')
20957     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20958     ;;
20959   esac
20960
20961 cfgfile="$ofile"
20962
20963   cat <<__EOF__ >> "$cfgfile"
20964 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20965
20966 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20967
20968 # Shell to use when invoking shell scripts.
20969 SHELL=$lt_SHELL
20970
20971 # Whether or not to build shared libraries.
20972 build_libtool_libs=$enable_shared
20973
20974 # Whether or not to build static libraries.
20975 build_old_libs=$enable_static
20976
20977 # Whether or not to add -lc for building shared libraries.
20978 build_libtool_need_lc=$archive_cmds_need_lc_RC
20979
20980 # Whether or not to disallow shared libs when runtime libs are static
20981 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20982
20983 # Whether or not to optimize for fast installation.
20984 fast_install=$enable_fast_install
20985
20986 # The host system.
20987 host_alias=$host_alias
20988 host=$host
20989 host_os=$host_os
20990
20991 # The build system.
20992 build_alias=$build_alias
20993 build=$build
20994 build_os=$build_os
20995
20996 # An echo program that does not interpret backslashes.
20997 echo=$lt_echo
20998
20999 # The archiver.
21000 AR=$lt_AR
21001 AR_FLAGS=$lt_AR_FLAGS
21002
21003 # A C compiler.
21004 LTCC=$lt_LTCC
21005
21006 # LTCC compiler flags.
21007 LTCFLAGS=$lt_LTCFLAGS
21008
21009 # A language-specific compiler.
21010 CC=$lt_compiler_RC
21011
21012 # Is the compiler the GNU C compiler?
21013 with_gcc=$GCC_RC
21014
21015 # An ERE matcher.
21016 EGREP=$lt_EGREP
21017
21018 # The linker used to build libraries.
21019 LD=$lt_LD_RC
21020
21021 # Whether we need hard or soft links.
21022 LN_S=$lt_LN_S
21023
21024 # A BSD-compatible nm program.
21025 NM=$lt_NM
21026
21027 # A symbol stripping program
21028 STRIP=$lt_STRIP
21029
21030 # Used to examine libraries when file_magic_cmd begins "file"
21031 MAGIC_CMD=$MAGIC_CMD
21032
21033 # Used on cygwin: DLL creation program.
21034 DLLTOOL="$DLLTOOL"
21035
21036 # Used on cygwin: object dumper.
21037 OBJDUMP="$OBJDUMP"
21038
21039 # Used on cygwin: assembler.
21040 AS="$AS"
21041
21042 # The name of the directory that contains temporary libtool files.
21043 objdir=$objdir
21044
21045 # How to create reloadable object files.
21046 reload_flag=$lt_reload_flag
21047 reload_cmds=$lt_reload_cmds
21048
21049 # How to pass a linker flag through the compiler.
21050 wl=$lt_lt_prog_compiler_wl_RC
21051
21052 # Object file suffix (normally "o").
21053 objext="$ac_objext"
21054
21055 # Old archive suffix (normally "a").
21056 libext="$libext"
21057
21058 # Shared library suffix (normally ".so").
21059 shrext_cmds='$shrext_cmds'
21060
21061 # Executable file suffix (normally "").
21062 exeext="$exeext"
21063
21064 # Additional compiler flags for building library objects.
21065 pic_flag=$lt_lt_prog_compiler_pic_RC
21066 pic_mode=$pic_mode
21067
21068 # What is the maximum length of a command?
21069 max_cmd_len=$lt_cv_sys_max_cmd_len
21070
21071 # Does compiler simultaneously support -c and -o options?
21072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21073
21074 # Must we lock files when doing compilation?
21075 need_locks=$lt_need_locks
21076
21077 # Do we need the lib prefix for modules?
21078 need_lib_prefix=$need_lib_prefix
21079
21080 # Do we need a version for libraries?
21081 need_version=$need_version
21082
21083 # Whether dlopen is supported.
21084 dlopen_support=$enable_dlopen
21085
21086 # Whether dlopen of programs is supported.
21087 dlopen_self=$enable_dlopen_self
21088
21089 # Whether dlopen of statically linked programs is supported.
21090 dlopen_self_static=$enable_dlopen_self_static
21091
21092 # Compiler flag to prevent dynamic linking.
21093 link_static_flag=$lt_lt_prog_compiler_static_RC
21094
21095 # Compiler flag to turn off builtin functions.
21096 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21097
21098 # Compiler flag to allow reflexive dlopens.
21099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21100
21101 # Compiler flag to generate shared objects directly from archives.
21102 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21103
21104 # Compiler flag to generate thread-safe objects.
21105 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21106
21107 # Library versioning type.
21108 version_type=$version_type
21109
21110 # Format of library name prefix.
21111 libname_spec=$lt_libname_spec
21112
21113 # List of archive names.  First name is the real one, the rest are links.
21114 # The last name is the one that the linker finds with -lNAME.
21115 library_names_spec=$lt_library_names_spec
21116
21117 # The coded name of the library, if different from the real name.
21118 soname_spec=$lt_soname_spec
21119
21120 # Commands used to build and install an old-style archive.
21121 RANLIB=$lt_RANLIB
21122 old_archive_cmds=$lt_old_archive_cmds_RC
21123 old_postinstall_cmds=$lt_old_postinstall_cmds
21124 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21125
21126 # Create an old-style archive from a shared archive.
21127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21128
21129 # Create a temporary old-style archive to link instead of a shared archive.
21130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21131
21132 # Commands used to build and install a shared archive.
21133 archive_cmds=$lt_archive_cmds_RC
21134 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21135 postinstall_cmds=$lt_postinstall_cmds
21136 postuninstall_cmds=$lt_postuninstall_cmds
21137
21138 # Commands used to build a loadable module (assumed same as above if empty)
21139 module_cmds=$lt_module_cmds_RC
21140 module_expsym_cmds=$lt_module_expsym_cmds_RC
21141
21142 # Commands to strip libraries.
21143 old_striplib=$lt_old_striplib
21144 striplib=$lt_striplib
21145
21146 # Dependencies to place before the objects being linked to create a
21147 # shared library.
21148 predep_objects=$lt_predep_objects_RC
21149
21150 # Dependencies to place after the objects being linked to create a
21151 # shared library.
21152 postdep_objects=$lt_postdep_objects_RC
21153
21154 # Dependencies to place before the objects being linked to create a
21155 # shared library.
21156 predeps=$lt_predeps_RC
21157
21158 # Dependencies to place after the objects being linked to create a
21159 # shared library.
21160 postdeps=$lt_postdeps_RC
21161
21162 # The directories searched by this compiler when creating a shared
21163 # library
21164 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21165
21166 # The library search path used internally by the compiler when linking
21167 # a shared library.
21168 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21169
21170 # Method to check whether dependent libraries are shared objects.
21171 deplibs_check_method=$lt_deplibs_check_method
21172
21173 # Command to use when deplibs_check_method == file_magic.
21174 file_magic_cmd=$lt_file_magic_cmd
21175
21176 # Flag that allows shared libraries with undefined symbols to be built.
21177 allow_undefined_flag=$lt_allow_undefined_flag_RC
21178
21179 # Flag that forces no undefined symbols.
21180 no_undefined_flag=$lt_no_undefined_flag_RC
21181
21182 # Commands used to finish a libtool library installation in a directory.
21183 finish_cmds=$lt_finish_cmds
21184
21185 # Same as above, but a single script fragment to be evaled but not shown.
21186 finish_eval=$lt_finish_eval
21187
21188 # Take the output of nm and produce a listing of raw symbols and C names.
21189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21190
21191 # Transform the output of nm in a proper C declaration
21192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21193
21194 # Transform the output of nm in a C name address pair
21195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21196
21197 # This is the shared library runtime path variable.
21198 runpath_var=$runpath_var
21199
21200 # This is the shared library path variable.
21201 shlibpath_var=$shlibpath_var
21202
21203 # Is shlibpath searched before the hard-coded library search path?
21204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21205
21206 # How to hardcode a shared library path into an executable.
21207 hardcode_action=$hardcode_action_RC
21208
21209 # Whether we should hardcode library paths into libraries.
21210 hardcode_into_libs=$hardcode_into_libs
21211
21212 # Flag to hardcode \$libdir into a binary during linking.
21213 # This must work even if \$libdir does not exist.
21214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21215
21216 # If ld is used when linking, flag to hardcode \$libdir into
21217 # a binary during linking. This must work even if \$libdir does
21218 # not exist.
21219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21220
21221 # Whether we need a single -rpath flag with a separated argument.
21222 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21223
21224 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21225 # resulting binary.
21226 hardcode_direct=$hardcode_direct_RC
21227
21228 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21229 # resulting binary.
21230 hardcode_minus_L=$hardcode_minus_L_RC
21231
21232 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21233 # the resulting binary.
21234 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21235
21236 # Set to yes if building a shared library automatically hardcodes DIR into the library
21237 # and all subsequent libraries and executables linked against it.
21238 hardcode_automatic=$hardcode_automatic_RC
21239
21240 # Variables whose values should be saved in libtool wrapper scripts and
21241 # restored at relink time.
21242 variables_saved_for_relink="$variables_saved_for_relink"
21243
21244 # Whether libtool must link a program against all its dependency libraries.
21245 link_all_deplibs=$link_all_deplibs_RC
21246
21247 # Compile-time system search path for libraries
21248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21249
21250 # Run-time system search path for libraries
21251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21252
21253 # Fix the shell variable \$srcfile for the compiler.
21254 fix_srcfile_path=$lt_fix_srcfile_path
21255
21256 # Set to yes if exported symbols are required.
21257 always_export_symbols=$always_export_symbols_RC
21258
21259 # The commands to list exported symbols.
21260 export_symbols_cmds=$lt_export_symbols_cmds_RC
21261
21262 # The commands to extract the exported symbol list from a shared archive.
21263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21264
21265 # Symbols that should not be listed in the preloaded symbols.
21266 exclude_expsyms=$lt_exclude_expsyms_RC
21267
21268 # Symbols that must always be exported.
21269 include_expsyms=$lt_include_expsyms_RC
21270
21271 # ### END LIBTOOL TAG CONFIG: $tagname
21272
21273 __EOF__
21274
21275
21276 else
21277   # If there is no Makefile yet, we rely on a make rule to execute
21278   # `config.status --recheck' to rerun these tests and create the
21279   # libtool script then.
21280   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21281   if test -f "$ltmain_in"; then
21282     test -f Makefile && make "$ltmain"
21283   fi
21284 fi
21285
21286
21287 ac_ext=c
21288 ac_cpp='$CPP $CPPFLAGS'
21289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21292
21293 CC="$lt_save_CC"
21294
21295         ;;
21296
21297       *)
21298         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21299 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21300    { (exit 1); exit 1; }; }
21301         ;;
21302       esac
21303
21304       # Append the new tag name to the list of available tags.
21305       if test -n "$tagname" ; then
21306       available_tags="$available_tags $tagname"
21307     fi
21308     fi
21309   done
21310   IFS="$lt_save_ifs"
21311
21312   # Now substitute the updated list of available tags.
21313   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21314     mv "${ofile}T" "$ofile"
21315     chmod +x "$ofile"
21316   else
21317     rm -f "${ofile}T"
21318     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21319 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21320    { (exit 1); exit 1; }; }
21321   fi
21322 fi
21323
21324
21325
21326 # This can be used to rebuild libtool when needed
21327 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21328
21329 # Always use our own libtool.
21330 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21331
21332 # Prevent multiple expansion
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353 for ac_prog in gawk mawk nawk awk
21354 do
21355   # Extract the first word of "$ac_prog", so it can be a program name with args.
21356 set dummy $ac_prog; ac_word=$2
21357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21359 if test "${ac_cv_prog_AWK+set}" = set; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362   if test -n "$AWK"; then
21363   ac_cv_prog_AWK="$AWK" # Let the user override the test.
21364 else
21365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21366 for as_dir in $PATH
21367 do
21368   IFS=$as_save_IFS
21369   test -z "$as_dir" && as_dir=.
21370   for ac_exec_ext in '' $ac_executable_extensions; do
21371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21372     ac_cv_prog_AWK="$ac_prog"
21373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21374     break 2
21375   fi
21376 done
21377 done
21378 IFS=$as_save_IFS
21379
21380 fi
21381 fi
21382 AWK=$ac_cv_prog_AWK
21383 if test -n "$AWK"; then
21384   { echo "$as_me:$LINENO: result: $AWK" >&5
21385 echo "${ECHO_T}$AWK" >&6; }
21386 else
21387   { echo "$as_me:$LINENO: result: no" >&5
21388 echo "${ECHO_T}no" >&6; }
21389 fi
21390
21391
21392   test -n "$AWK" && break
21393 done
21394
21395 ac_ext=c
21396 ac_cpp='$CPP $CPPFLAGS'
21397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21400 if test -n "$ac_tool_prefix"; then
21401   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
21402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
21403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21405 if test "${ac_cv_prog_CC+set}" = set; then
21406   echo $ECHO_N "(cached) $ECHO_C" >&6
21407 else
21408   if test -n "$CC"; then
21409   ac_cv_prog_CC="$CC" # Let the user override the test.
21410 else
21411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21412 for as_dir in $PATH
21413 do
21414   IFS=$as_save_IFS
21415   test -z "$as_dir" && as_dir=.
21416   for ac_exec_ext in '' $ac_executable_extensions; do
21417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21418     ac_cv_prog_CC="${ac_tool_prefix}gcc"
21419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21420     break 2
21421   fi
21422 done
21423 done
21424 IFS=$as_save_IFS
21425
21426 fi
21427 fi
21428 CC=$ac_cv_prog_CC
21429 if test -n "$CC"; then
21430   { echo "$as_me:$LINENO: result: $CC" >&5
21431 echo "${ECHO_T}$CC" >&6; }
21432 else
21433   { echo "$as_me:$LINENO: result: no" >&5
21434 echo "${ECHO_T}no" >&6; }
21435 fi
21436
21437
21438 fi
21439 if test -z "$ac_cv_prog_CC"; then
21440   ac_ct_CC=$CC
21441   # Extract the first word of "gcc", so it can be a program name with args.
21442 set dummy gcc; ac_word=$2
21443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
21446   echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448   if test -n "$ac_ct_CC"; then
21449   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21450 else
21451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21452 for as_dir in $PATH
21453 do
21454   IFS=$as_save_IFS
21455   test -z "$as_dir" && as_dir=.
21456   for ac_exec_ext in '' $ac_executable_extensions; do
21457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21458     ac_cv_prog_ac_ct_CC="gcc"
21459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21460     break 2
21461   fi
21462 done
21463 done
21464 IFS=$as_save_IFS
21465
21466 fi
21467 fi
21468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
21469 if test -n "$ac_ct_CC"; then
21470   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
21471 echo "${ECHO_T}$ac_ct_CC" >&6; }
21472 else
21473   { echo "$as_me:$LINENO: result: no" >&5
21474 echo "${ECHO_T}no" >&6; }
21475 fi
21476
21477   if test "x$ac_ct_CC" = x; then
21478     CC=""
21479   else
21480     case $cross_compiling:$ac_tool_warned in
21481 yes:)
21482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21483 whose name does not start with the host triplet.  If you think this
21484 configuration is useful to you, please write to autoconf@gnu.org." >&5
21485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21486 whose name does not start with the host triplet.  If you think this
21487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21488 ac_tool_warned=yes ;;
21489 esac
21490     CC=$ac_ct_CC
21491   fi
21492 else
21493   CC="$ac_cv_prog_CC"
21494 fi
21495
21496 if test -z "$CC"; then
21497           if test -n "$ac_tool_prefix"; then
21498     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
21499 set dummy ${ac_tool_prefix}cc; ac_word=$2
21500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21502 if test "${ac_cv_prog_CC+set}" = set; then
21503   echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505   if test -n "$CC"; then
21506   ac_cv_prog_CC="$CC" # Let the user override the test.
21507 else
21508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21509 for as_dir in $PATH
21510 do
21511   IFS=$as_save_IFS
21512   test -z "$as_dir" && as_dir=.
21513   for ac_exec_ext in '' $ac_executable_extensions; do
21514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21515     ac_cv_prog_CC="${ac_tool_prefix}cc"
21516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21517     break 2
21518   fi
21519 done
21520 done
21521 IFS=$as_save_IFS
21522
21523 fi
21524 fi
21525 CC=$ac_cv_prog_CC
21526 if test -n "$CC"; then
21527   { echo "$as_me:$LINENO: result: $CC" >&5
21528 echo "${ECHO_T}$CC" >&6; }
21529 else
21530   { echo "$as_me:$LINENO: result: no" >&5
21531 echo "${ECHO_T}no" >&6; }
21532 fi
21533
21534
21535   fi
21536 fi
21537 if test -z "$CC"; then
21538   # Extract the first word of "cc", so it can be a program name with args.
21539 set dummy cc; ac_word=$2
21540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21542 if test "${ac_cv_prog_CC+set}" = set; then
21543   echo $ECHO_N "(cached) $ECHO_C" >&6
21544 else
21545   if test -n "$CC"; then
21546   ac_cv_prog_CC="$CC" # Let the user override the test.
21547 else
21548   ac_prog_rejected=no
21549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21550 for as_dir in $PATH
21551 do
21552   IFS=$as_save_IFS
21553   test -z "$as_dir" && as_dir=.
21554   for ac_exec_ext in '' $ac_executable_extensions; do
21555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21556     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
21557        ac_prog_rejected=yes
21558        continue
21559      fi
21560     ac_cv_prog_CC="cc"
21561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21562     break 2
21563   fi
21564 done
21565 done
21566 IFS=$as_save_IFS
21567
21568 if test $ac_prog_rejected = yes; then
21569   # We found a bogon in the path, so make sure we never use it.
21570   set dummy $ac_cv_prog_CC
21571   shift
21572   if test $# != 0; then
21573     # We chose a different compiler from the bogus one.
21574     # However, it has the same basename, so the bogon will be chosen
21575     # first if we set CC to just the basename; use the full file name.
21576     shift
21577     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
21578   fi
21579 fi
21580 fi
21581 fi
21582 CC=$ac_cv_prog_CC
21583 if test -n "$CC"; then
21584   { echo "$as_me:$LINENO: result: $CC" >&5
21585 echo "${ECHO_T}$CC" >&6; }
21586 else
21587   { echo "$as_me:$LINENO: result: no" >&5
21588 echo "${ECHO_T}no" >&6; }
21589 fi
21590
21591
21592 fi
21593 if test -z "$CC"; then
21594   if test -n "$ac_tool_prefix"; then
21595   for ac_prog in cl.exe
21596   do
21597     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21601 if test "${ac_cv_prog_CC+set}" = set; then
21602   echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604   if test -n "$CC"; then
21605   ac_cv_prog_CC="$CC" # Let the user override the test.
21606 else
21607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21608 for as_dir in $PATH
21609 do
21610   IFS=$as_save_IFS
21611   test -z "$as_dir" && as_dir=.
21612   for ac_exec_ext in '' $ac_executable_extensions; do
21613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21614     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
21615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21616     break 2
21617   fi
21618 done
21619 done
21620 IFS=$as_save_IFS
21621
21622 fi
21623 fi
21624 CC=$ac_cv_prog_CC
21625 if test -n "$CC"; then
21626   { echo "$as_me:$LINENO: result: $CC" >&5
21627 echo "${ECHO_T}$CC" >&6; }
21628 else
21629   { echo "$as_me:$LINENO: result: no" >&5
21630 echo "${ECHO_T}no" >&6; }
21631 fi
21632
21633
21634     test -n "$CC" && break
21635   done
21636 fi
21637 if test -z "$CC"; then
21638   ac_ct_CC=$CC
21639   for ac_prog in cl.exe
21640 do
21641   # Extract the first word of "$ac_prog", so it can be a program name with args.
21642 set dummy $ac_prog; ac_word=$2
21643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
21646   echo $ECHO_N "(cached) $ECHO_C" >&6
21647 else
21648   if test -n "$ac_ct_CC"; then
21649   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21650 else
21651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21652 for as_dir in $PATH
21653 do
21654   IFS=$as_save_IFS
21655   test -z "$as_dir" && as_dir=.
21656   for ac_exec_ext in '' $ac_executable_extensions; do
21657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21658     ac_cv_prog_ac_ct_CC="$ac_prog"
21659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21660     break 2
21661   fi
21662 done
21663 done
21664 IFS=$as_save_IFS
21665
21666 fi
21667 fi
21668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
21669 if test -n "$ac_ct_CC"; then
21670   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
21671 echo "${ECHO_T}$ac_ct_CC" >&6; }
21672 else
21673   { echo "$as_me:$LINENO: result: no" >&5
21674 echo "${ECHO_T}no" >&6; }
21675 fi
21676
21677
21678   test -n "$ac_ct_CC" && break
21679 done
21680
21681   if test "x$ac_ct_CC" = x; then
21682     CC=""
21683   else
21684     case $cross_compiling:$ac_tool_warned in
21685 yes:)
21686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21687 whose name does not start with the host triplet.  If you think this
21688 configuration is useful to you, please write to autoconf@gnu.org." >&5
21689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21690 whose name does not start with the host triplet.  If you think this
21691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21692 ac_tool_warned=yes ;;
21693 esac
21694     CC=$ac_ct_CC
21695   fi
21696 fi
21697
21698 fi
21699
21700
21701 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
21702 See \`config.log' for more details." >&5
21703 echo "$as_me: error: no acceptable C compiler found in \$PATH
21704 See \`config.log' for more details." >&2;}
21705    { (exit 1); exit 1; }; }
21706
21707 # Provide some information about the compiler.
21708 echo "$as_me:$LINENO: checking for C compiler version" >&5
21709 ac_compiler=`set X $ac_compile; echo $2`
21710 { (ac_try="$ac_compiler --version >&5"
21711 case "(($ac_try" in
21712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713   *) ac_try_echo=$ac_try;;
21714 esac
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716   (eval "$ac_compiler --version >&5") 2>&5
21717   ac_status=$?
21718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719   (exit $ac_status); }
21720 { (ac_try="$ac_compiler -v >&5"
21721 case "(($ac_try" in
21722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723   *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726   (eval "$ac_compiler -v >&5") 2>&5
21727   ac_status=$?
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); }
21730 { (ac_try="$ac_compiler -V >&5"
21731 case "(($ac_try" in
21732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733   *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736   (eval "$ac_compiler -V >&5") 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); }
21740
21741 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
21742 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
21743 if test "${ac_cv_c_compiler_gnu+set}" = set; then
21744   echo $ECHO_N "(cached) $ECHO_C" >&6
21745 else
21746   cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h.  */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h.  */
21752
21753 int
21754 main ()
21755 {
21756 #ifndef __GNUC__
21757        choke me
21758 #endif
21759
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768   *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771   (eval "$ac_compile") 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } && {
21778          test -z "$ac_c_werror_flag" ||
21779          test ! -s conftest.err
21780        } && test -s conftest.$ac_objext; then
21781   ac_compiler_gnu=yes
21782 else
21783   echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786         ac_compiler_gnu=no
21787 fi
21788
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 ac_cv_c_compiler_gnu=$ac_compiler_gnu
21791
21792 fi
21793 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
21794 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
21795 GCC=`test $ac_compiler_gnu = yes && echo yes`
21796 ac_test_CFLAGS=${CFLAGS+set}
21797 ac_save_CFLAGS=$CFLAGS
21798 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
21799 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
21800 if test "${ac_cv_prog_cc_g+set}" = set; then
21801   echo $ECHO_N "(cached) $ECHO_C" >&6
21802 else
21803   ac_save_c_werror_flag=$ac_c_werror_flag
21804    ac_c_werror_flag=yes
21805    ac_cv_prog_cc_g=no
21806    CFLAGS="-g"
21807    cat >conftest.$ac_ext <<_ACEOF
21808 /* confdefs.h.  */
21809 _ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h.  */
21813
21814 int
21815 main ()
21816 {
21817
21818   ;
21819   return 0;
21820 }
21821 _ACEOF
21822 rm -f conftest.$ac_objext
21823 if { (ac_try="$ac_compile"
21824 case "(($ac_try" in
21825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826   *) ac_try_echo=$ac_try;;
21827 esac
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829   (eval "$ac_compile") 2>conftest.er1
21830   ac_status=$?
21831   grep -v '^ *+' conftest.er1 >conftest.err
21832   rm -f conftest.er1
21833   cat conftest.err >&5
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); } && {
21836          test -z "$ac_c_werror_flag" ||
21837          test ! -s conftest.err
21838        } && test -s conftest.$ac_objext; then
21839   ac_cv_prog_cc_g=yes
21840 else
21841   echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844         CFLAGS=""
21845       cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851
21852 int
21853 main ()
21854 {
21855
21856   ;
21857   return 0;
21858 }
21859 _ACEOF
21860 rm -f conftest.$ac_objext
21861 if { (ac_try="$ac_compile"
21862 case "(($ac_try" in
21863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864   *) ac_try_echo=$ac_try;;
21865 esac
21866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21867   (eval "$ac_compile") 2>conftest.er1
21868   ac_status=$?
21869   grep -v '^ *+' conftest.er1 >conftest.err
21870   rm -f conftest.er1
21871   cat conftest.err >&5
21872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873   (exit $ac_status); } && {
21874          test -z "$ac_c_werror_flag" ||
21875          test ! -s conftest.err
21876        } && test -s conftest.$ac_objext; then
21877   :
21878 else
21879   echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882         ac_c_werror_flag=$ac_save_c_werror_flag
21883          CFLAGS="-g"
21884          cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h.  */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h.  */
21890
21891 int
21892 main ()
21893 {
21894
21895   ;
21896   return 0;
21897 }
21898 _ACEOF
21899 rm -f conftest.$ac_objext
21900 if { (ac_try="$ac_compile"
21901 case "(($ac_try" in
21902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903   *) ac_try_echo=$ac_try;;
21904 esac
21905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21906   (eval "$ac_compile") 2>conftest.er1
21907   ac_status=$?
21908   grep -v '^ *+' conftest.er1 >conftest.err
21909   rm -f conftest.er1
21910   cat conftest.err >&5
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } && {
21913          test -z "$ac_c_werror_flag" ||
21914          test ! -s conftest.err
21915        } && test -s conftest.$ac_objext; then
21916   ac_cv_prog_cc_g=yes
21917 else
21918   echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21920
21921
21922 fi
21923
21924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21925 fi
21926
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 fi
21929
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931    ac_c_werror_flag=$ac_save_c_werror_flag
21932 fi
21933 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
21934 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
21935 if test "$ac_test_CFLAGS" = set; then
21936   CFLAGS=$ac_save_CFLAGS
21937 elif test $ac_cv_prog_cc_g = yes; then
21938   if test "$GCC" = yes; then
21939     CFLAGS="-g -O2"
21940   else
21941     CFLAGS="-g"
21942   fi
21943 else
21944   if test "$GCC" = yes; then
21945     CFLAGS="-O2"
21946   else
21947     CFLAGS=
21948   fi
21949 fi
21950 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
21951 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
21952 if test "${ac_cv_prog_cc_c89+set}" = set; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955   ac_cv_prog_cc_c89=no
21956 ac_save_CC=$CC
21957 cat >conftest.$ac_ext <<_ACEOF
21958 /* confdefs.h.  */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h.  */
21963 #include <stdarg.h>
21964 #include <stdio.h>
21965 #include <sys/types.h>
21966 #include <sys/stat.h>
21967 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
21968 struct buf { int x; };
21969 FILE * (*rcsopen) (struct buf *, struct stat *, int);
21970 static char *e (p, i)
21971      char **p;
21972      int i;
21973 {
21974   return p[i];
21975 }
21976 static char *f (char * (*g) (char **, int), char **p, ...)
21977 {
21978   char *s;
21979   va_list v;
21980   va_start (v,p);
21981   s = g (p, va_arg (v,int));
21982   va_end (v);
21983   return s;
21984 }
21985
21986 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
21987    function prototypes and stuff, but not '\xHH' hex character constants.
21988    These don't provoke an error unfortunately, instead are silently treated
21989    as 'x'.  The following induces an error, until -std is added to get
21990    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
21991    array size at least.  It's necessary to write '\x00'==0 to get something
21992    that's true only with -std.  */
21993 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
21994
21995 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
21996    inside strings and character constants.  */
21997 #define FOO(x) 'x'
21998 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
21999
22000 int test (int i, double x);
22001 struct s1 {int (*f) (int a);};
22002 struct s2 {int (*f) (double a);};
22003 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22004 int argc;
22005 char **argv;
22006 int
22007 main ()
22008 {
22009 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
22015         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22016 do
22017   CC="$ac_save_CC $ac_arg"
22018   rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022   *) ac_try_echo=$ac_try;;
22023 esac
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025   (eval "$ac_compile") 2>conftest.er1
22026   ac_status=$?
22027   grep -v '^ *+' conftest.er1 >conftest.err
22028   rm -f conftest.er1
22029   cat conftest.err >&5
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); } && {
22032          test -z "$ac_c_werror_flag" ||
22033          test ! -s conftest.err
22034        } && test -s conftest.$ac_objext; then
22035   ac_cv_prog_cc_c89=$ac_arg
22036 else
22037   echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22039
22040
22041 fi
22042
22043 rm -f core conftest.err conftest.$ac_objext
22044   test "x$ac_cv_prog_cc_c89" != "xno" && break
22045 done
22046 rm -f conftest.$ac_ext
22047 CC=$ac_save_CC
22048
22049 fi
22050 # AC_CACHE_VAL
22051 case "x$ac_cv_prog_cc_c89" in
22052   x)
22053     { echo "$as_me:$LINENO: result: none needed" >&5
22054 echo "${ECHO_T}none needed" >&6; } ;;
22055   xno)
22056     { echo "$as_me:$LINENO: result: unsupported" >&5
22057 echo "${ECHO_T}unsupported" >&6; } ;;
22058   *)
22059     CC="$CC $ac_cv_prog_cc_c89"
22060     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
22061 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
22062 esac
22063
22064
22065 ac_ext=c
22066 ac_cpp='$CPP $CPPFLAGS'
22067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22070
22071 depcc="$CC"   am_compiler_list=
22072
22073 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22074 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
22075 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22076   echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22079   # We make a subdir and do the tests there.  Otherwise we can end up
22080   # making bogus files that we don't know about and never remove.  For
22081   # instance it was reported that on HP-UX the gcc test will end up
22082   # making a dummy file named `D' -- because `-MD' means `put the output
22083   # in D'.
22084   mkdir conftest.dir
22085   # Copy depcomp to subdir because otherwise we won't find it if we're
22086   # using a relative directory.
22087   cp "$am_depcomp" conftest.dir
22088   cd conftest.dir
22089   # We will build objects and dependencies in a subdirectory because
22090   # it helps to detect inapplicable dependency modes.  For instance
22091   # both Tru64's cc and ICC support -MD to output dependencies as a
22092   # side effect of compilation, but ICC will put the dependencies in
22093   # the current directory while Tru64 will put them in the object
22094   # directory.
22095   mkdir sub
22096
22097   am_cv_CC_dependencies_compiler_type=none
22098   if test "$am_compiler_list" = ""; then
22099      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22100   fi
22101   for depmode in $am_compiler_list; do
22102     # Setup a source with many dependencies, because some compilers
22103     # like to wrap large dependency lists on column 80 (with \), and
22104     # we should not choose a depcomp mode which is confused by this.
22105     #
22106     # We need to recreate these files for each test, as the compiler may
22107     # overwrite some of them when testing with obscure command lines.
22108     # This happens at least with the AIX C compiler.
22109     : > sub/conftest.c
22110     for i in 1 2 3 4 5 6; do
22111       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22112       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22113       # Solaris 8's {/usr,}/bin/sh.
22114       touch sub/conftst$i.h
22115     done
22116     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22117
22118     case $depmode in
22119     nosideeffect)
22120       # after this tag, mechanisms are not by side-effect, so they'll
22121       # only be used when explicitly requested
22122       if test "x$enable_dependency_tracking" = xyes; then
22123         continue
22124       else
22125         break
22126       fi
22127       ;;
22128     none) break ;;
22129     esac
22130     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22131     # mode.  It turns out that the SunPro C++ compiler does not properly
22132     # handle `-M -o', and we need to detect this.
22133     if depmode=$depmode \
22134        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22135        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22136        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22137          >/dev/null 2>conftest.err &&
22138        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22139        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22140        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22141        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22142       # icc doesn't choke on unknown options, it will just issue warnings
22143       # or remarks (even with -Werror).  So we grep stderr for any message
22144       # that says an option was ignored or not supported.
22145       # When given -MP, icc 7.0 and 7.1 complain thusly:
22146       #   icc: Command line warning: ignoring option '-M'; no argument required
22147       # The diagnosis changed in icc 8.0:
22148       #   icc: Command line remark: option '-MP' not supported
22149       if (grep 'ignoring option' conftest.err ||
22150           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22151         am_cv_CC_dependencies_compiler_type=$depmode
22152         break
22153       fi
22154     fi
22155   done
22156
22157   cd ..
22158   rm -rf conftest.dir
22159 else
22160   am_cv_CC_dependencies_compiler_type=none
22161 fi
22162
22163 fi
22164 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22165 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
22166 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22167
22168  if
22169   test "x$enable_dependency_tracking" != xno \
22170   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22171   am__fastdepCC_TRUE=
22172   am__fastdepCC_FALSE='#'
22173 else
22174   am__fastdepCC_TRUE='#'
22175   am__fastdepCC_FALSE=
22176 fi
22177
22178
22179 if test "x$CC" != xcc; then
22180   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
22181 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
22182 else
22183   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
22184 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
22185 fi
22186 set dummy $CC; ac_cc=`echo $2 |
22187                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
22188 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
22189   echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191   cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197
22198 int
22199 main ()
22200 {
22201
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 # Make sure it works both with $CC and with simple cc.
22207 # We do the test twice because some compilers refuse to overwrite an
22208 # existing .o file with -o, though they will create one.
22209 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
22210 rm -f conftest2.*
22211 if { (case "(($ac_try" in
22212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213   *) ac_try_echo=$ac_try;;
22214 esac
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216   (eval "$ac_try") 2>&5
22217   ac_status=$?
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } &&
22220    test -f conftest2.$ac_objext && { (case "(($ac_try" in
22221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222   *) ac_try_echo=$ac_try;;
22223 esac
22224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22225   (eval "$ac_try") 2>&5
22226   ac_status=$?
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); };
22229 then
22230   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
22231   if test "x$CC" != xcc; then
22232     # Test first that cc exists at all.
22233     if { ac_try='cc -c conftest.$ac_ext >&5'
22234   { (case "(($ac_try" in
22235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236   *) ac_try_echo=$ac_try;;
22237 esac
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239   (eval "$ac_try") 2>&5
22240   ac_status=$?
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); }; }; then
22243       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
22244       rm -f conftest2.*
22245       if { (case "(($ac_try" in
22246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247   *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250   (eval "$ac_try") 2>&5
22251   ac_status=$?
22252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253   (exit $ac_status); } &&
22254          test -f conftest2.$ac_objext && { (case "(($ac_try" in
22255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256   *) ac_try_echo=$ac_try;;
22257 esac
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259   (eval "$ac_try") 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); };
22263       then
22264         # cc works too.
22265         :
22266       else
22267         # cc exists but doesn't like -o.
22268         eval ac_cv_prog_cc_${ac_cc}_c_o=no
22269       fi
22270     fi
22271   fi
22272 else
22273   eval ac_cv_prog_cc_${ac_cc}_c_o=no
22274 fi
22275 rm -f core conftest*
22276
22277 fi
22278 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
22279   { echo "$as_me:$LINENO: result: yes" >&5
22280 echo "${ECHO_T}yes" >&6; }
22281 else
22282   { echo "$as_me:$LINENO: result: no" >&5
22283 echo "${ECHO_T}no" >&6; }
22284
22285 cat >>confdefs.h <<\_ACEOF
22286 #define NO_MINUS_C_MINUS_O 1
22287 _ACEOF
22288
22289 fi
22290
22291 # FIXME: we rely on the cache variable name because
22292 # there is no other way.
22293 set dummy $CC
22294 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
22295 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
22296    # Losing compiler, so override with the script.
22297    # FIXME: It is wrong to rewrite CC.
22298    # But if we don't then we get into trouble of one sort or another.
22299    # A longer-term fix would be to have automake use am__CC in this case,
22300    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
22301    CC="$am_aux_dir/compile $CC"
22302 fi
22303
22304
22305 ac_ext=c
22306 ac_cpp='$CPP $CPPFLAGS'
22307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22310 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
22311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
22312 # On Suns, sometimes $CPP names a directory.
22313 if test -n "$CPP" && test -d "$CPP"; then
22314   CPP=
22315 fi
22316 if test -z "$CPP"; then
22317   if test "${ac_cv_prog_CPP+set}" = set; then
22318   echo $ECHO_N "(cached) $ECHO_C" >&6
22319 else
22320       # Double quotes because CPP needs to be expanded
22321     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
22322     do
22323       ac_preproc_ok=false
22324 for ac_c_preproc_warn_flag in '' yes
22325 do
22326   # Use a header file that comes with gcc, so configuring glibc
22327   # with a fresh cross-compiler works.
22328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22329   # <limits.h> exists even on freestanding compilers.
22330   # On the NeXT, cc -E runs the code through the compiler's parser,
22331   # not just through cpp. "Syntax error" is here to catch this case.
22332   cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h.  */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h.  */
22338 #ifdef __STDC__
22339 # include <limits.h>
22340 #else
22341 # include <assert.h>
22342 #endif
22343                      Syntax error
22344 _ACEOF
22345 if { (ac_try="$ac_cpp conftest.$ac_ext"
22346 case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22352   ac_status=$?
22353   grep -v '^ *+' conftest.er1 >conftest.err
22354   rm -f conftest.er1
22355   cat conftest.err >&5
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } >/dev/null && {
22358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22359          test ! -s conftest.err
22360        }; then
22361   :
22362 else
22363   echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366   # Broken: fails on valid input.
22367 continue
22368 fi
22369
22370 rm -f conftest.err conftest.$ac_ext
22371
22372   # OK, works on sane cases.  Now check whether nonexistent headers
22373   # can be detected and how.
22374   cat >conftest.$ac_ext <<_ACEOF
22375 /* confdefs.h.  */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h.  */
22380 #include <ac_nonexistent.h>
22381 _ACEOF
22382 if { (ac_try="$ac_cpp conftest.$ac_ext"
22383 case "(($ac_try" in
22384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385   *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22389   ac_status=$?
22390   grep -v '^ *+' conftest.er1 >conftest.err
22391   rm -f conftest.er1
22392   cat conftest.err >&5
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } >/dev/null && {
22395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22396          test ! -s conftest.err
22397        }; then
22398   # Broken: success on invalid input.
22399 continue
22400 else
22401   echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404   # Passes both tests.
22405 ac_preproc_ok=:
22406 break
22407 fi
22408
22409 rm -f conftest.err conftest.$ac_ext
22410
22411 done
22412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22413 rm -f conftest.err conftest.$ac_ext
22414 if $ac_preproc_ok; then
22415   break
22416 fi
22417
22418     done
22419     ac_cv_prog_CPP=$CPP
22420
22421 fi
22422   CPP=$ac_cv_prog_CPP
22423 else
22424   ac_cv_prog_CPP=$CPP
22425 fi
22426 { echo "$as_me:$LINENO: result: $CPP" >&5
22427 echo "${ECHO_T}$CPP" >&6; }
22428 ac_preproc_ok=false
22429 for ac_c_preproc_warn_flag in '' yes
22430 do
22431   # Use a header file that comes with gcc, so configuring glibc
22432   # with a fresh cross-compiler works.
22433   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22434   # <limits.h> exists even on freestanding compilers.
22435   # On the NeXT, cc -E runs the code through the compiler's parser,
22436   # not just through cpp. "Syntax error" is here to catch this case.
22437   cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h.  */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h.  */
22443 #ifdef __STDC__
22444 # include <limits.h>
22445 #else
22446 # include <assert.h>
22447 #endif
22448                      Syntax error
22449 _ACEOF
22450 if { (ac_try="$ac_cpp conftest.$ac_ext"
22451 case "(($ac_try" in
22452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453   *) ac_try_echo=$ac_try;;
22454 esac
22455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22457   ac_status=$?
22458   grep -v '^ *+' conftest.er1 >conftest.err
22459   rm -f conftest.er1
22460   cat conftest.err >&5
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } >/dev/null && {
22463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22464          test ! -s conftest.err
22465        }; then
22466   :
22467 else
22468   echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471   # Broken: fails on valid input.
22472 continue
22473 fi
22474
22475 rm -f conftest.err conftest.$ac_ext
22476
22477   # OK, works on sane cases.  Now check whether nonexistent headers
22478   # can be detected and how.
22479   cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h.  */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h.  */
22485 #include <ac_nonexistent.h>
22486 _ACEOF
22487 if { (ac_try="$ac_cpp conftest.$ac_ext"
22488 case "(($ac_try" in
22489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490   *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22494   ac_status=$?
22495   grep -v '^ *+' conftest.er1 >conftest.err
22496   rm -f conftest.er1
22497   cat conftest.err >&5
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); } >/dev/null && {
22500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22501          test ! -s conftest.err
22502        }; then
22503   # Broken: success on invalid input.
22504 continue
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509   # Passes both tests.
22510 ac_preproc_ok=:
22511 break
22512 fi
22513
22514 rm -f conftest.err conftest.$ac_ext
22515
22516 done
22517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22518 rm -f conftest.err conftest.$ac_ext
22519 if $ac_preproc_ok; then
22520   :
22521 else
22522   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22523 See \`config.log' for more details." >&5
22524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22525 See \`config.log' for more details." >&2;}
22526    { (exit 1); exit 1; }; }
22527 fi
22528
22529 ac_ext=c
22530 ac_cpp='$CPP $CPPFLAGS'
22531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22534
22535
22536 # Handle -Werror default case.
22537 if test "$ENABLE_WERROR" = default; then
22538   case "$host_os" in
22539     *linux*)
22540       if test "$GCC" = yes; then
22541         ENABLE_WERROR=yes
22542       fi
22543       ;;
22544   esac
22545 fi
22546
22547 if test "x${COMPILE_COLLECTIONS}" = xyes; then
22548   # Extract the first word of "perl", so it can be a program name with args.
22549 set dummy perl; ac_word=$2
22550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22552 if test "${ac_cv_path_PERL+set}" = set; then
22553   echo $ECHO_N "(cached) $ECHO_C" >&6
22554 else
22555   case $PERL in
22556   [\\/]* | ?:[\\/]*)
22557   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22558   ;;
22559   *)
22560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22561 for as_dir in $PATH
22562 do
22563   IFS=$as_save_IFS
22564   test -z "$as_dir" && as_dir=.
22565   for ac_exec_ext in '' $ac_executable_extensions; do
22566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22567     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22569     break 2
22570   fi
22571 done
22572 done
22573 IFS=$as_save_IFS
22574
22575   ;;
22576 esac
22577 fi
22578 PERL=$ac_cv_path_PERL
22579 if test -n "$PERL"; then
22580   { echo "$as_me:$LINENO: result: $PERL" >&5
22581 echo "${ECHO_T}$PERL" >&6; }
22582 else
22583   { echo "$as_me:$LINENO: result: no" >&5
22584 echo "${ECHO_T}no" >&6; }
22585 fi
22586
22587
22588
22589
22590   ac_config_files="$ac_config_files lib/mkcollections.pl"
22591
22592   ac_config_commands="$ac_config_commands mkcollections.pl"
22593
22594 fi
22595
22596 if test "x${COMPILE_JNI}" = xyes; then
22597
22598
22599
22600  { echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
22601 echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6; }
22602  if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then
22603   echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605
22606   cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h.  */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h.  */
22612
22613 int
22614 main ()
22615 {
22616 extern int testfunction(int x) __attribute__((,,))
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 rm -f conftest.$ac_objext
22622 if { (ac_try="$ac_compile"
22623 case "(($ac_try" in
22624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625   *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628   (eval "$ac_compile") 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } && {
22635          test -z "$ac_c_werror_flag" ||
22636          test ! -s conftest.err
22637        } && test -s conftest.$ac_objext; then
22638   gcc_cv_c_gcc_attribute_supported=yes
22639 else
22640   echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643         gcc_cv_c_gcc_attribute_supported=no
22644 fi
22645
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647
22648 fi
22649
22650  if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
22651   true
22652   { echo "$as_me:$LINENO: result: yes" >&5
22653 echo "${ECHO_T}yes" >&6; }
22654
22655 cat >>confdefs.h <<\_ACEOF
22656 #define HAVE_GNUC25_ATTRIB
22657 _ACEOF
22658
22659
22660  else
22661   true
22662   { echo "$as_me:$LINENO: result: no" >&5
22663 echo "${ECHO_T}no" >&6; }
22664
22665  fi
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676  { echo "$as_me:$LINENO: checking __attribute__((unused))" >&5
22677 echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6; }
22678  if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then
22679   echo $ECHO_N "(cached) $ECHO_C" >&6
22680 else
22681
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688
22689 int
22690 main ()
22691 {
22692 extern int testfunction(int x) __attribute__((unused))
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701   *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704   (eval "$ac_compile") 2>conftest.er1
22705   ac_status=$?
22706   grep -v '^ *+' conftest.er1 >conftest.err
22707   rm -f conftest.er1
22708   cat conftest.err >&5
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } && {
22711          test -z "$ac_c_werror_flag" ||
22712          test ! -s conftest.err
22713        } && test -s conftest.$ac_objext; then
22714   gcc_cv_c_gcc_attribute_unused=yes
22715 else
22716   echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719         gcc_cv_c_gcc_attribute_unused=no
22720 fi
22721
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723
22724 fi
22725
22726  if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
22727   true
22728   { echo "$as_me:$LINENO: result: yes" >&5
22729 echo "${ECHO_T}yes" >&6; }
22730
22731 cat >>confdefs.h <<\_ACEOF
22732 #define HAVE_GNUC25_UNUSED
22733 _ACEOF
22734
22735
22736  else
22737   true
22738   { echo "$as_me:$LINENO: result: no" >&5
22739 echo "${ECHO_T}no" >&6; }
22740
22741  fi
22742
22743
22744
22745
22746
22747
22748   { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22749 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22750 if test "${ac_cv_header_stdc+set}" = set; then
22751   echo $ECHO_N "(cached) $ECHO_C" >&6
22752 else
22753   cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h.  */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h.  */
22759 #include <stdlib.h>
22760 #include <stdarg.h>
22761 #include <string.h>
22762 #include <float.h>
22763
22764 int
22765 main ()
22766 {
22767
22768   ;
22769   return 0;
22770 }
22771 _ACEOF
22772 rm -f conftest.$ac_objext
22773 if { (ac_try="$ac_compile"
22774 case "(($ac_try" in
22775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776   *) ac_try_echo=$ac_try;;
22777 esac
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779   (eval "$ac_compile") 2>conftest.er1
22780   ac_status=$?
22781   grep -v '^ *+' conftest.er1 >conftest.err
22782   rm -f conftest.er1
22783   cat conftest.err >&5
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } && {
22786          test -z "$ac_c_werror_flag" ||
22787          test ! -s conftest.err
22788        } && test -s conftest.$ac_objext; then
22789   ac_cv_header_stdc=yes
22790 else
22791   echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794         ac_cv_header_stdc=no
22795 fi
22796
22797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798
22799 if test $ac_cv_header_stdc = yes; then
22800   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22801   cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h.  */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h.  */
22807 #include <string.h>
22808
22809 _ACEOF
22810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22811   $EGREP "memchr" >/dev/null 2>&1; then
22812   :
22813 else
22814   ac_cv_header_stdc=no
22815 fi
22816 rm -f conftest*
22817
22818 fi
22819
22820 if test $ac_cv_header_stdc = yes; then
22821   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22822   cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828 #include <stdlib.h>
22829
22830 _ACEOF
22831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22832   $EGREP "free" >/dev/null 2>&1; then
22833   :
22834 else
22835   ac_cv_header_stdc=no
22836 fi
22837 rm -f conftest*
22838
22839 fi
22840
22841 if test $ac_cv_header_stdc = yes; then
22842   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22843   if test "$cross_compiling" = yes; then
22844   :
22845 else
22846   cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852 #include <ctype.h>
22853 #include <stdlib.h>
22854 #if ((' ' & 0x0FF) == 0x020)
22855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22857 #else
22858 # define ISLOWER(c) \
22859                    (('a' <= (c) && (c) <= 'i') \
22860                      || ('j' <= (c) && (c) <= 'r') \
22861                      || ('s' <= (c) && (c) <= 'z'))
22862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22863 #endif
22864
22865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22866 int
22867 main ()
22868 {
22869   int i;
22870   for (i = 0; i < 256; i++)
22871     if (XOR (islower (i), ISLOWER (i))
22872         || toupper (i) != TOUPPER (i))
22873       return 2;
22874   return 0;
22875 }
22876 _ACEOF
22877 rm -f conftest$ac_exeext
22878 if { (ac_try="$ac_link"
22879 case "(($ac_try" in
22880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881   *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884   (eval "$ac_link") 2>&5
22885   ac_status=$?
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22888   { (case "(($ac_try" in
22889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890   *) ac_try_echo=$ac_try;;
22891 esac
22892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22893   (eval "$ac_try") 2>&5
22894   ac_status=$?
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); }; }; then
22897   :
22898 else
22899   echo "$as_me: program exited with status $ac_status" >&5
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903 ( exit $ac_status )
22904 ac_cv_header_stdc=no
22905 fi
22906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22907 fi
22908
22909
22910 fi
22911 fi
22912 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22913 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22914 if test $ac_cv_header_stdc = yes; then
22915
22916 cat >>confdefs.h <<\_ACEOF
22917 #define STDC_HEADERS 1
22918 _ACEOF
22919
22920 fi
22921
22922
22923       { echo "$as_me:$LINENO: checking size of void *" >&5
22924 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22925 if test "${ac_cv_sizeof_void_p+set}" = set; then
22926   echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
22929   cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935 #include "confdefs.h"
22936 #include <sys/types.h>
22937
22938
22939 int
22940 main ()
22941 {
22942 switch (0) case 0: case (sizeof (void *) == $ac_size):;
22943   ;
22944   return 0;
22945 }
22946 _ACEOF
22947 rm -f conftest.$ac_objext
22948 if { (ac_try="$ac_compile"
22949 case "(($ac_try" in
22950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951   *) ac_try_echo=$ac_try;;
22952 esac
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954   (eval "$ac_compile") 2>conftest.er1
22955   ac_status=$?
22956   grep -v '^ *+' conftest.er1 >conftest.err
22957   rm -f conftest.er1
22958   cat conftest.err >&5
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); } && {
22961          test -z "$ac_c_werror_flag" ||
22962          test ! -s conftest.err
22963        } && test -s conftest.$ac_objext; then
22964   ac_cv_sizeof_void_p=$ac_size
22965 else
22966   echo "$as_me: failed program was:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22968
22969
22970 fi
22971
22972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22973   if test x$ac_cv_sizeof_void_p != x ; then break; fi
22974 done
22975
22976 fi
22977
22978 if test x$ac_cv_sizeof_void_p = x ; then
22979   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
22980 echo "$as_me: error: cannot determine a size for void *" >&2;}
22981    { (exit 1); exit 1; }; }
22982 fi
22983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22984 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22985
22986 cat >>confdefs.h <<_ACEOF
22987 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22988 _ACEOF
22989
22990
22991
22992     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22993 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22994 if test "${ac_cv_c_bigendian+set}" = set; then
22995   echo $ECHO_N "(cached) $ECHO_C" >&6
22996 else
22997   ac_cv_c_bigendian=unknown
22998 # See if sys/param.h defines the BYTE_ORDER macro.
22999 cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h.  */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h.  */
23005 #include <sys/types.h>
23006 #include <sys/param.h>
23007 int
23008 main ()
23009 {
23010
23011 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23012  bogus endian macros
23013 #endif
23014   ;
23015   return 0;
23016 }
23017 _ACEOF
23018 rm -f conftest.$ac_objext
23019 if { (ac_try="$ac_compile"
23020 case "(($ac_try" in
23021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022   *) ac_try_echo=$ac_try;;
23023 esac
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025   (eval "$ac_compile") 2>conftest.er1
23026   ac_status=$?
23027   grep -v '^ *+' conftest.er1 >conftest.err
23028   rm -f conftest.er1
23029   cat conftest.err >&5
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); } && {
23032          test -z "$ac_c_werror_flag" ||
23033          test ! -s conftest.err
23034        } && test -s conftest.$ac_objext; then
23035   # It does; now see whether it defined to BIG_ENDIAN or not.
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h.  */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h.  */
23042 #include <sys/types.h>
23043 #include <sys/param.h>
23044 int
23045 main ()
23046 {
23047
23048 #if BYTE_ORDER != BIG_ENDIAN
23049  not big endian
23050 #endif
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059   *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062   (eval "$ac_compile") 2>conftest.er1
23063   ac_status=$?
23064   grep -v '^ *+' conftest.er1 >conftest.err
23065   rm -f conftest.er1
23066   cat conftest.err >&5
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); } && {
23069          test -z "$ac_c_werror_flag" ||
23070          test ! -s conftest.err
23071        } && test -s conftest.$ac_objext; then
23072   ac_cv_c_bigendian=yes
23073 else
23074   echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077         ac_cv_c_bigendian=no
23078 fi
23079
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 else
23082   echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085
23086 fi
23087
23088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23089 if test $ac_cv_c_bigendian = unknown; then
23090 if test "$cross_compiling" = yes; then
23091    echo $ac_n "cross-compiling... " 2>&6
23092 else
23093   cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099 main () {
23100   /* Are we little or big endian?  From Harbison&Steele.  */
23101   union
23102   {
23103     long l;
23104     char c[sizeof (long)];
23105   } u;
23106   u.l = 1;
23107   exit (u.c[sizeof (long) - 1] == 1);
23108 }
23109 _ACEOF
23110 rm -f conftest$ac_exeext
23111 if { (ac_try="$ac_link"
23112 case "(($ac_try" in
23113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114   *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117   (eval "$ac_link") 2>&5
23118   ac_status=$?
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23121   { (case "(($ac_try" in
23122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123   *) ac_try_echo=$ac_try;;
23124 esac
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126   (eval "$ac_try") 2>&5
23127   ac_status=$?
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); }; }; then
23130   ac_cv_c_bigendian=no
23131 else
23132   echo "$as_me: program exited with status $ac_status" >&5
23133 echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23135
23136 ( exit $ac_status )
23137 ac_cv_c_bigendian=yes
23138 fi
23139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23140 fi
23141
23142
23143 fi
23144 fi
23145 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23146 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23147 if test $ac_cv_c_bigendian = unknown; then
23148 { echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
23149 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6; }
23150
23151 cat >conftest.c <<EOF
23152 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23153 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23154 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
23155 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23156 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23157 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
23158 int main() { _ascii (); _ebcdic (); return 0; }
23159 EOF
23160  if test -f conftest.c ; then
23161      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
23162         if test `grep -l BIGenDianSyS conftest.o` ; then
23163            echo $ac_n ' big endian probe OK, ' 1>&6
23164            ac_cv_c_bigendian=yes
23165         fi
23166         if test `grep -l LiTTleEnDian conftest.o` ; then
23167            echo $ac_n ' little endian probe OK, ' 1>&6
23168            if test $ac_cv_c_bigendian = yes ; then
23169             ac_cv_c_bigendian=unknown;
23170            else
23171             ac_cv_c_bigendian=no
23172            fi
23173         fi
23174         echo $ac_n 'guessing bigendian ...  ' >&6
23175      fi
23176   fi
23177 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23178 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23179 fi
23180 if test $ac_cv_c_bigendian = yes; then
23181
23182 cat >>confdefs.h <<\_ACEOF
23183 #define WORDS_BIGENDIAN 1
23184 _ACEOF
23185
23186
23187 cat >>confdefs.h <<\_ACEOF
23188 #define HOST_WORDS_BIG_ENDIAN 1
23189 _ACEOF
23190
23191   BYTEORDER=4321
23192 else
23193   BYTEORDER=1234
23194 fi
23195
23196 cat >>confdefs.h <<_ACEOF
23197 #define BYTEORDER $BYTEORDER
23198 _ACEOF
23199
23200 if test $ac_cv_c_bigendian = unknown; then
23201   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
23202 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
23203    { (exit 1); exit 1; }; }
23204 fi
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
23231                     asm/ioctls.h \
23232                     inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
23233                     sys/time.h \
23234                     sys/select.h \
23235                     crt_externs.h \
23236                     fcntl.h \
23237                     sys/mman.h \
23238                     magic.h \
23239                     sys/event.h sys/epoll.h \
23240                     ifaddrs.h \
23241                     netinet/in_systm.h netinet/ip.h net/if.h \
23242                     sys/loadavg.h
23243 do
23244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23246   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23249   echo $ECHO_N "(cached) $ECHO_C" >&6
23250 fi
23251 ac_res=`eval echo '${'$as_ac_Header'}'`
23252                { echo "$as_me:$LINENO: result: $ac_res" >&5
23253 echo "${ECHO_T}$ac_res" >&6; }
23254 else
23255   # Is the header compilable?
23256 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23258 cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h.  */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h.  */
23264 $ac_includes_default
23265 #include <$ac_header>
23266 _ACEOF
23267 rm -f conftest.$ac_objext
23268 if { (ac_try="$ac_compile"
23269 case "(($ac_try" in
23270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271   *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274   (eval "$ac_compile") 2>conftest.er1
23275   ac_status=$?
23276   grep -v '^ *+' conftest.er1 >conftest.err
23277   rm -f conftest.er1
23278   cat conftest.err >&5
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); } && {
23281          test -z "$ac_c_werror_flag" ||
23282          test ! -s conftest.err
23283        } && test -s conftest.$ac_objext; then
23284   ac_header_compiler=yes
23285 else
23286   echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289         ac_header_compiler=no
23290 fi
23291
23292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23294 echo "${ECHO_T}$ac_header_compiler" >&6; }
23295
23296 # Is the header present?
23297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23299 cat >conftest.$ac_ext <<_ACEOF
23300 /* confdefs.h.  */
23301 _ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h.  */
23305 #include <$ac_header>
23306 _ACEOF
23307 if { (ac_try="$ac_cpp conftest.$ac_ext"
23308 case "(($ac_try" in
23309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310   *) ac_try_echo=$ac_try;;
23311 esac
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23314   ac_status=$?
23315   grep -v '^ *+' conftest.er1 >conftest.err
23316   rm -f conftest.er1
23317   cat conftest.err >&5
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); } >/dev/null && {
23320          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23321          test ! -s conftest.err
23322        }; then
23323   ac_header_preproc=yes
23324 else
23325   echo "$as_me: failed program was:" >&5
23326 sed 's/^/| /' conftest.$ac_ext >&5
23327
23328   ac_header_preproc=no
23329 fi
23330
23331 rm -f conftest.err conftest.$ac_ext
23332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23333 echo "${ECHO_T}$ac_header_preproc" >&6; }
23334
23335 # So?  What about this header?
23336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23337   yes:no: )
23338     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23342     ac_header_preproc=yes
23343     ;;
23344   no:yes:* )
23345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23347     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23348 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23349     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23351     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23352 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23355     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23357     ( cat <<\_ASBOX
23358 ## -------------------------------- ##
23359 ## Report this to classpath@gnu.org ##
23360 ## -------------------------------- ##
23361 _ASBOX
23362      ) | sed "s/^/$as_me: WARNING:     /" >&2
23363     ;;
23364 esac
23365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23368   echo $ECHO_N "(cached) $ECHO_C" >&6
23369 else
23370   eval "$as_ac_Header=\$ac_header_preproc"
23371 fi
23372 ac_res=`eval echo '${'$as_ac_Header'}'`
23373                { echo "$as_me:$LINENO: result: $ac_res" >&5
23374 echo "${ECHO_T}$ac_res" >&6; }
23375
23376 fi
23377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23378   cat >>confdefs.h <<_ACEOF
23379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23380 _ACEOF
23381
23382 fi
23383
23384 done
23385
23386
23387   cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 #include <stdint.h>
23394
23395 _ACEOF
23396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23397   $EGREP "uint32_t" >/dev/null 2>&1; then
23398
23399 cat >>confdefs.h <<\_ACEOF
23400 #define HAVE_INT32_DEFINED 1
23401 _ACEOF
23402
23403 fi
23404 rm -f conftest*
23405
23406   cat >conftest.$ac_ext <<_ACEOF
23407 /* confdefs.h.  */
23408 _ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h.  */
23412 #include <inttypes.h>
23413
23414 _ACEOF
23415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23416   $EGREP "uint32_t" >/dev/null 2>&1; then
23417
23418 cat >>confdefs.h <<\_ACEOF
23419 #define HAVE_INT32_DEFINED 1
23420 _ACEOF
23421
23422 fi
23423 rm -f conftest*
23424
23425   cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h.  */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h.  */
23431 #include <sys/types.h>
23432
23433 _ACEOF
23434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23435   $EGREP "u_int32_t" >/dev/null 2>&1; then
23436
23437 cat >>confdefs.h <<\_ACEOF
23438 #define HAVE_BSD_INT32_DEFINED 1
23439 _ACEOF
23440
23441 fi
23442 rm -f conftest*
23443
23444   cat >conftest.$ac_ext <<_ACEOF
23445 /* confdefs.h.  */
23446 _ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h.  */
23450 #include <sys/config.h>
23451
23452 _ACEOF
23453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23454   $EGREP "u_int32_t" >/dev/null 2>&1; then
23455
23456 cat >>confdefs.h <<\_ACEOF
23457 #define HAVE_BSD_INT32_DEFINED 1
23458 _ACEOF
23459
23460 fi
23461 rm -f conftest*
23462
23463
23464   { echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
23465 echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6; }
23466 if test "${ac_cv_search_inet_pton+set}" = set; then
23467   echo $ECHO_N "(cached) $ECHO_C" >&6
23468 else
23469   ac_func_search_save_LIBS=$LIBS
23470 cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476
23477 /* Override any GCC internal prototype to avoid an error.
23478    Use char because int might match the return type of a GCC
23479    builtin and then its argument prototype would still apply.  */
23480 #ifdef __cplusplus
23481 extern "C"
23482 #endif
23483 char inet_pton ();
23484 int
23485 main ()
23486 {
23487 return inet_pton ();
23488   ;
23489   return 0;
23490 }
23491 _ACEOF
23492 for ac_lib in '' nsl; do
23493   if test -z "$ac_lib"; then
23494     ac_res="none required"
23495   else
23496     ac_res=-l$ac_lib
23497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23498   fi
23499   rm -f conftest.$ac_objext conftest$ac_exeext
23500 if { (ac_try="$ac_link"
23501 case "(($ac_try" in
23502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503   *) ac_try_echo=$ac_try;;
23504 esac
23505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23506   (eval "$ac_link") 2>conftest.er1
23507   ac_status=$?
23508   grep -v '^ *+' conftest.er1 >conftest.err
23509   rm -f conftest.er1
23510   cat conftest.err >&5
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); } && {
23513          test -z "$ac_c_werror_flag" ||
23514          test ! -s conftest.err
23515        } && test -s conftest$ac_exeext &&
23516        $as_test_x conftest$ac_exeext; then
23517   ac_cv_search_inet_pton=$ac_res
23518 else
23519   echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521
23522
23523 fi
23524
23525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23526       conftest$ac_exeext
23527   if test "${ac_cv_search_inet_pton+set}" = set; then
23528   break
23529 fi
23530 done
23531 if test "${ac_cv_search_inet_pton+set}" = set; then
23532   :
23533 else
23534   ac_cv_search_inet_pton=no
23535 fi
23536 rm conftest.$ac_ext
23537 LIBS=$ac_func_search_save_LIBS
23538 fi
23539 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
23540 echo "${ECHO_T}$ac_cv_search_inet_pton" >&6; }
23541 ac_res=$ac_cv_search_inet_pton
23542 if test "$ac_res" != no; then
23543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23544
23545 fi
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603 for ac_func in ftruncate fsync select \
23604                   gethostname socket strerror fork pipe execve open close \
23605                   lseek fstat read readv write writev htonl memset htons connect \
23606                   getsockname getpeername bind listen accept \
23607                   recvfrom send sendto setsockopt getsockopt time mktime \
23608                   gethostbyname_r localtime_r \
23609                   strerror_r \
23610                   fcntl \
23611                   statvfs \
23612                   mmap munmap mincore msync madvise getpagesize sysconf \
23613                   lstat readlink \
23614                   inet_aton inet_addr inet_pton \
23615                   getifaddrs kqueue kevent epoll_create \
23616                   getloadavg
23617 do
23618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23622   echo $ECHO_N "(cached) $ECHO_C" >&6
23623 else
23624   cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h.  */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h.  */
23630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23632 #define $ac_func innocuous_$ac_func
23633
23634 /* System header to define __stub macros and hopefully few prototypes,
23635     which can conflict with char $ac_func (); below.
23636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23637     <limits.h> exists even on freestanding compilers.  */
23638
23639 #ifdef __STDC__
23640 # include <limits.h>
23641 #else
23642 # include <assert.h>
23643 #endif
23644
23645 #undef $ac_func
23646
23647 /* Override any GCC internal prototype to avoid an error.
23648    Use char because int might match the return type of a GCC
23649    builtin and then its argument prototype would still apply.  */
23650 #ifdef __cplusplus
23651 extern "C"
23652 #endif
23653 char $ac_func ();
23654 /* The GNU C library defines this for functions which it implements
23655     to always fail with ENOSYS.  Some functions are actually named
23656     something starting with __ and the normal name is an alias.  */
23657 #if defined __stub_$ac_func || defined __stub___$ac_func
23658 choke me
23659 #endif
23660
23661 int
23662 main ()
23663 {
23664 return $ac_func ();
23665   ;
23666   return 0;
23667 }
23668 _ACEOF
23669 rm -f conftest.$ac_objext conftest$ac_exeext
23670 if { (ac_try="$ac_link"
23671 case "(($ac_try" in
23672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673   *) ac_try_echo=$ac_try;;
23674 esac
23675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676   (eval "$ac_link") 2>conftest.er1
23677   ac_status=$?
23678   grep -v '^ *+' conftest.er1 >conftest.err
23679   rm -f conftest.er1
23680   cat conftest.err >&5
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); } && {
23683          test -z "$ac_c_werror_flag" ||
23684          test ! -s conftest.err
23685        } && test -s conftest$ac_exeext &&
23686        $as_test_x conftest$ac_exeext; then
23687   eval "$as_ac_var=yes"
23688 else
23689   echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692         eval "$as_ac_var=no"
23693 fi
23694
23695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23696       conftest$ac_exeext conftest.$ac_ext
23697 fi
23698 ac_res=`eval echo '${'$as_ac_var'}'`
23699                { echo "$as_me:$LINENO: result: $ac_res" >&5
23700 echo "${ECHO_T}$ac_res" >&6; }
23701 if test `eval echo '${'$as_ac_var'}'` = yes; then
23702   cat >>confdefs.h <<_ACEOF
23703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23704 _ACEOF
23705
23706 fi
23707 done
23708
23709
23710   LIBMAGIC=
23711   { echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
23712 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6; }
23713 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
23714   echo $ECHO_N "(cached) $ECHO_C" >&6
23715 else
23716   ac_check_lib_save_LIBS=$LIBS
23717 LIBS="-lmagic  $LIBS"
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h.  */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h.  */
23724
23725 /* Override any GCC internal prototype to avoid an error.
23726    Use char because int might match the return type of a GCC
23727    builtin and then its argument prototype would still apply.  */
23728 #ifdef __cplusplus
23729 extern "C"
23730 #endif
23731 char magic_open ();
23732 int
23733 main ()
23734 {
23735 return magic_open ();
23736   ;
23737   return 0;
23738 }
23739 _ACEOF
23740 rm -f conftest.$ac_objext conftest$ac_exeext
23741 if { (ac_try="$ac_link"
23742 case "(($ac_try" in
23743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744   *) ac_try_echo=$ac_try;;
23745 esac
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747   (eval "$ac_link") 2>conftest.er1
23748   ac_status=$?
23749   grep -v '^ *+' conftest.er1 >conftest.err
23750   rm -f conftest.er1
23751   cat conftest.err >&5
23752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753   (exit $ac_status); } && {
23754          test -z "$ac_c_werror_flag" ||
23755          test ! -s conftest.err
23756        } && test -s conftest$ac_exeext &&
23757        $as_test_x conftest$ac_exeext; then
23758   ac_cv_lib_magic_magic_open=yes
23759 else
23760   echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23762
23763         ac_cv_lib_magic_magic_open=no
23764 fi
23765
23766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23767       conftest$ac_exeext conftest.$ac_ext
23768 LIBS=$ac_check_lib_save_LIBS
23769 fi
23770 { echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
23771 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6; }
23772 if test $ac_cv_lib_magic_magic_open = yes; then
23773   LIBMAGIC=-lmagic
23774 fi
23775
23776
23777
23778   { echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23779 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6; }
23780   cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h.  */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h.  */
23786 #include <netinet/in.h>
23787 int
23788 main ()
23789 {
23790 struct sockaddr_in6 addr6;
23791   ;
23792   return 0;
23793 }
23794 _ACEOF
23795 rm -f conftest.$ac_objext
23796 if { (ac_try="$ac_compile"
23797 case "(($ac_try" in
23798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799   *) ac_try_echo=$ac_try;;
23800 esac
23801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23802   (eval "$ac_compile") 2>conftest.er1
23803   ac_status=$?
23804   grep -v '^ *+' conftest.er1 >conftest.err
23805   rm -f conftest.er1
23806   cat conftest.err >&5
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); } && {
23809          test -z "$ac_c_werror_flag" ||
23810          test ! -s conftest.err
23811        } && test -s conftest.$ac_objext; then
23812
23813 cat >>confdefs.h <<\_ACEOF
23814 #define HAVE_INET6 1
23815 _ACEOF
23816
23817                      { echo "$as_me:$LINENO: result: yes" >&5
23818 echo "${ECHO_T}yes" >&6; }
23819 else
23820   echo "$as_me: failed program was:" >&5
23821 sed 's/^/| /' conftest.$ac_ext >&5
23822
23823         { echo "$as_me:$LINENO: result: no" >&5
23824 echo "${ECHO_T}no" >&6; }
23825 fi
23826
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23828
23829   { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23830 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23831 if test "${ac_cv_header_time+set}" = set; then
23832   echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834   cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h.  */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h.  */
23840 #include <sys/types.h>
23841 #include <sys/time.h>
23842 #include <time.h>
23843
23844 int
23845 main ()
23846 {
23847 if ((struct tm *) 0)
23848 return 0;
23849   ;
23850   return 0;
23851 }
23852 _ACEOF
23853 rm -f conftest.$ac_objext
23854 if { (ac_try="$ac_compile"
23855 case "(($ac_try" in
23856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857   *) ac_try_echo=$ac_try;;
23858 esac
23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860   (eval "$ac_compile") 2>conftest.er1
23861   ac_status=$?
23862   grep -v '^ *+' conftest.er1 >conftest.err
23863   rm -f conftest.er1
23864   cat conftest.err >&5
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); } && {
23867          test -z "$ac_c_werror_flag" ||
23868          test ! -s conftest.err
23869        } && test -s conftest.$ac_objext; then
23870   ac_cv_header_time=yes
23871 else
23872   echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875         ac_cv_header_time=no
23876 fi
23877
23878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23879 fi
23880 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23881 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23882 if test $ac_cv_header_time = yes; then
23883
23884 cat >>confdefs.h <<\_ACEOF
23885 #define TIME_WITH_SYS_TIME 1
23886 _ACEOF
23887
23888 fi
23889
23890   { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23891 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23892 if test "${ac_cv_struct_tm+set}" = set; then
23893   echo $ECHO_N "(cached) $ECHO_C" >&6
23894 else
23895   cat >conftest.$ac_ext <<_ACEOF
23896 /* confdefs.h.  */
23897 _ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h.  */
23901 #include <sys/types.h>
23902 #include <time.h>
23903
23904 int
23905 main ()
23906 {
23907 struct tm tm;
23908                                      int *p = &tm.tm_sec;
23909                                      return !p;
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext
23915 if { (ac_try="$ac_compile"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_compile") 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } && {
23928          test -z "$ac_c_werror_flag" ||
23929          test ! -s conftest.err
23930        } && test -s conftest.$ac_objext; then
23931   ac_cv_struct_tm=time.h
23932 else
23933   echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23935
23936         ac_cv_struct_tm=sys/time.h
23937 fi
23938
23939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940 fi
23941 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23942 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23943 if test $ac_cv_struct_tm = sys/time.h; then
23944
23945 cat >>confdefs.h <<\_ACEOF
23946 #define TM_IN_SYS_TIME 1
23947 _ACEOF
23948
23949 fi
23950
23951   { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23952 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23953 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23954   echo $ECHO_N "(cached) $ECHO_C" >&6
23955 else
23956   cat >conftest.$ac_ext <<_ACEOF
23957 /* confdefs.h.  */
23958 _ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h.  */
23962 #include <sys/types.h>
23963 #include <$ac_cv_struct_tm>
23964
23965
23966 int
23967 main ()
23968 {
23969 static struct tm ac_aggr;
23970 if (ac_aggr.tm_zone)
23971 return 0;
23972   ;
23973   return 0;
23974 }
23975 _ACEOF
23976 rm -f conftest.$ac_objext
23977 if { (ac_try="$ac_compile"
23978 case "(($ac_try" in
23979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980   *) ac_try_echo=$ac_try;;
23981 esac
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983   (eval "$ac_compile") 2>conftest.er1
23984   ac_status=$?
23985   grep -v '^ *+' conftest.er1 >conftest.err
23986   rm -f conftest.er1
23987   cat conftest.err >&5
23988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); } && {
23990          test -z "$ac_c_werror_flag" ||
23991          test ! -s conftest.err
23992        } && test -s conftest.$ac_objext; then
23993   ac_cv_member_struct_tm_tm_zone=yes
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998         cat >conftest.$ac_ext <<_ACEOF
23999 /* confdefs.h.  */
24000 _ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h.  */
24004 #include <sys/types.h>
24005 #include <$ac_cv_struct_tm>
24006
24007
24008 int
24009 main ()
24010 {
24011 static struct tm ac_aggr;
24012 if (sizeof ac_aggr.tm_zone)
24013 return 0;
24014   ;
24015   return 0;
24016 }
24017 _ACEOF
24018 rm -f conftest.$ac_objext
24019 if { (ac_try="$ac_compile"
24020 case "(($ac_try" in
24021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24022   *) ac_try_echo=$ac_try;;
24023 esac
24024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24025   (eval "$ac_compile") 2>conftest.er1
24026   ac_status=$?
24027   grep -v '^ *+' conftest.er1 >conftest.err
24028   rm -f conftest.er1
24029   cat conftest.err >&5
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); } && {
24032          test -z "$ac_c_werror_flag" ||
24033          test ! -s conftest.err
24034        } && test -s conftest.$ac_objext; then
24035   ac_cv_member_struct_tm_tm_zone=yes
24036 else
24037   echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24039
24040         ac_cv_member_struct_tm_tm_zone=no
24041 fi
24042
24043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24044 fi
24045
24046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24047 fi
24048 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24049 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24050 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24051
24052 cat >>confdefs.h <<_ACEOF
24053 #define HAVE_STRUCT_TM_TM_ZONE 1
24054 _ACEOF
24055
24056
24057 fi
24058
24059 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24060
24061 cat >>confdefs.h <<\_ACEOF
24062 #define HAVE_TM_ZONE 1
24063 _ACEOF
24064
24065 else
24066   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24067 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24068 if test "${ac_cv_have_decl_tzname+set}" = set; then
24069   echo $ECHO_N "(cached) $ECHO_C" >&6
24070 else
24071   cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h.  */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h.  */
24077 #include <time.h>
24078
24079 int
24080 main ()
24081 {
24082 #ifndef tzname
24083   (void) tzname;
24084 #endif
24085
24086   ;
24087   return 0;
24088 }
24089 _ACEOF
24090 rm -f conftest.$ac_objext
24091 if { (ac_try="$ac_compile"
24092 case "(($ac_try" in
24093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094   *) ac_try_echo=$ac_try;;
24095 esac
24096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24097   (eval "$ac_compile") 2>conftest.er1
24098   ac_status=$?
24099   grep -v '^ *+' conftest.er1 >conftest.err
24100   rm -f conftest.er1
24101   cat conftest.err >&5
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); } && {
24104          test -z "$ac_c_werror_flag" ||
24105          test ! -s conftest.err
24106        } && test -s conftest.$ac_objext; then
24107   ac_cv_have_decl_tzname=yes
24108 else
24109   echo "$as_me: failed program was:" >&5
24110 sed 's/^/| /' conftest.$ac_ext >&5
24111
24112         ac_cv_have_decl_tzname=no
24113 fi
24114
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24116 fi
24117 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24118 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24119 if test $ac_cv_have_decl_tzname = yes; then
24120
24121 cat >>confdefs.h <<_ACEOF
24122 #define HAVE_DECL_TZNAME 1
24123 _ACEOF
24124
24125
24126 else
24127   cat >>confdefs.h <<_ACEOF
24128 #define HAVE_DECL_TZNAME 0
24129 _ACEOF
24130
24131
24132 fi
24133
24134
24135   { echo "$as_me:$LINENO: checking for tzname" >&5
24136 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24137 if test "${ac_cv_var_tzname+set}" = set; then
24138   echo $ECHO_N "(cached) $ECHO_C" >&6
24139 else
24140   cat >conftest.$ac_ext <<_ACEOF
24141 /* confdefs.h.  */
24142 _ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h.  */
24146 #include <time.h>
24147 #if !HAVE_DECL_TZNAME
24148 extern char *tzname[];
24149 #endif
24150
24151 int
24152 main ()
24153 {
24154 return tzname[0][0];
24155   ;
24156   return 0;
24157 }
24158 _ACEOF
24159 rm -f conftest.$ac_objext conftest$ac_exeext
24160 if { (ac_try="$ac_link"
24161 case "(($ac_try" in
24162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163   *) ac_try_echo=$ac_try;;
24164 esac
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166   (eval "$ac_link") 2>conftest.er1
24167   ac_status=$?
24168   grep -v '^ *+' conftest.er1 >conftest.err
24169   rm -f conftest.er1
24170   cat conftest.err >&5
24171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172   (exit $ac_status); } && {
24173          test -z "$ac_c_werror_flag" ||
24174          test ! -s conftest.err
24175        } && test -s conftest$ac_exeext &&
24176        $as_test_x conftest$ac_exeext; then
24177   ac_cv_var_tzname=yes
24178 else
24179   echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24181
24182         ac_cv_var_tzname=no
24183 fi
24184
24185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24186       conftest$ac_exeext conftest.$ac_ext
24187 fi
24188 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24189 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24190   if test $ac_cv_var_tzname = yes; then
24191
24192 cat >>confdefs.h <<\_ACEOF
24193 #define HAVE_TZNAME 1
24194 _ACEOF
24195
24196   fi
24197 fi
24198
24199
24200   { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
24201 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
24202   cat >conftest.$ac_ext <<_ACEOF
24203 /* confdefs.h.  */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h.  */
24208 #include <time.h>
24209 int
24210 main ()
24211 {
24212 struct tm tim; tim.tm_gmtoff = 0;
24213   ;
24214   return 0;
24215 }
24216 _ACEOF
24217 rm -f conftest.$ac_objext
24218 if { (ac_try="$ac_compile"
24219 case "(($ac_try" in
24220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24221   *) ac_try_echo=$ac_try;;
24222 esac
24223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24224   (eval "$ac_compile") 2>conftest.er1
24225   ac_status=$?
24226   grep -v '^ *+' conftest.er1 >conftest.err
24227   rm -f conftest.er1
24228   cat conftest.err >&5
24229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230   (exit $ac_status); } && {
24231          test -z "$ac_c_werror_flag" ||
24232          test ! -s conftest.err
24233        } && test -s conftest.$ac_objext; then
24234
24235 cat >>confdefs.h <<\_ACEOF
24236 #define STRUCT_TM_HAS_GMTOFF 1
24237 _ACEOF
24238
24239    { echo "$as_me:$LINENO: result: yes" >&5
24240 echo "${ECHO_T}yes" >&6; }
24241 else
24242   echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24244
24245         { echo "$as_me:$LINENO: result: no" >&5
24246 echo "${ECHO_T}no" >&6; }
24247    { echo "$as_me:$LINENO: checking for global timezone variable" >&5
24248 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6; }
24249                cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h.  */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h.  */
24255 #include <time.h>
24256 int
24257 main ()
24258 {
24259 void i(){long z2 = 2*timezone;}
24260   ;
24261   return 0;
24262 }
24263 _ACEOF
24264 rm -f conftest.$ac_objext
24265 if { (ac_try="$ac_compile"
24266 case "(($ac_try" in
24267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268   *) ac_try_echo=$ac_try;;
24269 esac
24270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24271   (eval "$ac_compile") 2>conftest.er1
24272   ac_status=$?
24273   grep -v '^ *+' conftest.er1 >conftest.err
24274   rm -f conftest.er1
24275   cat conftest.err >&5
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); } && {
24278          test -z "$ac_c_werror_flag" ||
24279          test ! -s conftest.err
24280        } && test -s conftest.$ac_objext; then
24281
24282 cat >>confdefs.h <<\_ACEOF
24283 #define HAVE_TIMEZONE 1
24284 _ACEOF
24285
24286       { echo "$as_me:$LINENO: result: yes" >&5
24287 echo "${ECHO_T}yes" >&6; }
24288 else
24289   echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24291
24292         { echo "$as_me:$LINENO: result: no" >&5
24293 echo "${ECHO_T}no" >&6; }
24294        { echo "$as_me:$LINENO: checking for global _timezone variable" >&5
24295 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6; }
24296               cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h.  */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h.  */
24302 #include <time.h>
24303 int
24304 main ()
24305 {
24306 long z2 = _timezone;
24307   ;
24308   return 0;
24309 }
24310 _ACEOF
24311 rm -f conftest.$ac_objext
24312 if { (ac_try="$ac_compile"
24313 case "(($ac_try" in
24314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315   *) ac_try_echo=$ac_try;;
24316 esac
24317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24318   (eval "$ac_compile") 2>conftest.er1
24319   ac_status=$?
24320   grep -v '^ *+' conftest.er1 >conftest.err
24321   rm -f conftest.er1
24322   cat conftest.err >&5
24323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324   (exit $ac_status); } && {
24325          test -z "$ac_c_werror_flag" ||
24326          test ! -s conftest.err
24327        } && test -s conftest.$ac_objext; then
24328
24329 cat >>confdefs.h <<\_ACEOF
24330 #define HAVE_UNDERSCORE_TIMEZONE 1
24331 _ACEOF
24332
24333           { echo "$as_me:$LINENO: result: yes" >&5
24334 echo "${ECHO_T}yes" >&6; }
24335 else
24336   echo "$as_me: failed program was:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24338
24339         { echo "$as_me:$LINENO: result: no" >&5
24340 echo "${ECHO_T}no" >&6; }
24341 fi
24342
24343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24344 fi
24345
24346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24347 fi
24348
24349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350
24351   { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24352 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24353 if test "${ac_cv_c_const+set}" = set; then
24354   echo $ECHO_N "(cached) $ECHO_C" >&6
24355 else
24356   cat >conftest.$ac_ext <<_ACEOF
24357 /* confdefs.h.  */
24358 _ACEOF
24359 cat confdefs.h >>conftest.$ac_ext
24360 cat >>conftest.$ac_ext <<_ACEOF
24361 /* end confdefs.h.  */
24362
24363 int
24364 main ()
24365 {
24366 /* FIXME: Include the comments suggested by Paul. */
24367 #ifndef __cplusplus
24368   /* Ultrix mips cc rejects this.  */
24369   typedef int charset[2];
24370   const charset cs;
24371   /* SunOS 4.1.1 cc rejects this.  */
24372   char const *const *pcpcc;
24373   char **ppc;
24374   /* NEC SVR4.0.2 mips cc rejects this.  */
24375   struct point {int x, y;};
24376   static struct point const zero = {0,0};
24377   /* AIX XL C 1.02.0.0 rejects this.
24378      It does not let you subtract one const X* pointer from another in
24379      an arm of an if-expression whose if-part is not a constant
24380      expression */
24381   const char *g = "string";
24382   pcpcc = &g + (g ? g-g : 0);
24383   /* HPUX 7.0 cc rejects these. */
24384   ++pcpcc;
24385   ppc = (char**) pcpcc;
24386   pcpcc = (char const *const *) ppc;
24387   { /* SCO 3.2v4 cc rejects this.  */
24388     char *t;
24389     char const *s = 0 ? (char *) 0 : (char const *) 0;
24390
24391     *t++ = 0;
24392     if (s) return 0;
24393   }
24394   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24395     int x[] = {25, 17};
24396     const int *foo = &x[0];
24397     ++foo;
24398   }
24399   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24400     typedef const int *iptr;
24401     iptr p = 0;
24402     ++p;
24403   }
24404   { /* AIX XL C 1.02.0.0 rejects this saying
24405        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24406     struct s { int j; const int *ap[3]; };
24407     struct s *b; b->j = 5;
24408   }
24409   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24410     const int foo = 10;
24411     if (!foo) return 0;
24412   }
24413   return !cs[0] && !zero.x;
24414 #endif
24415
24416   ;
24417   return 0;
24418 }
24419 _ACEOF
24420 rm -f conftest.$ac_objext
24421 if { (ac_try="$ac_compile"
24422 case "(($ac_try" in
24423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424   *) ac_try_echo=$ac_try;;
24425 esac
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427   (eval "$ac_compile") 2>conftest.er1
24428   ac_status=$?
24429   grep -v '^ *+' conftest.er1 >conftest.err
24430   rm -f conftest.er1
24431   cat conftest.err >&5
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); } && {
24434          test -z "$ac_c_werror_flag" ||
24435          test ! -s conftest.err
24436        } && test -s conftest.$ac_objext; then
24437   ac_cv_c_const=yes
24438 else
24439   echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442         ac_cv_c_const=no
24443 fi
24444
24445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24446 fi
24447 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24448 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24449 if test $ac_cv_c_const = no; then
24450
24451 cat >>confdefs.h <<\_ACEOF
24452 #define const
24453 _ACEOF
24454
24455 fi
24456
24457   { echo "$as_me:$LINENO: checking for inline" >&5
24458 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24459 if test "${ac_cv_c_inline+set}" = set; then
24460   echo $ECHO_N "(cached) $ECHO_C" >&6
24461 else
24462   ac_cv_c_inline=no
24463 for ac_kw in inline __inline__ __inline; do
24464   cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470 #ifndef __cplusplus
24471 typedef int foo_t;
24472 static $ac_kw foo_t static_foo () {return 0; }
24473 $ac_kw foo_t foo () {return 0; }
24474 #endif
24475
24476 _ACEOF
24477 rm -f conftest.$ac_objext
24478 if { (ac_try="$ac_compile"
24479 case "(($ac_try" in
24480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481   *) ac_try_echo=$ac_try;;
24482 esac
24483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24484   (eval "$ac_compile") 2>conftest.er1
24485   ac_status=$?
24486   grep -v '^ *+' conftest.er1 >conftest.err
24487   rm -f conftest.er1
24488   cat conftest.err >&5
24489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490   (exit $ac_status); } && {
24491          test -z "$ac_c_werror_flag" ||
24492          test ! -s conftest.err
24493        } && test -s conftest.$ac_objext; then
24494   ac_cv_c_inline=$ac_kw
24495 else
24496   echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24498
24499
24500 fi
24501
24502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24503   test "$ac_cv_c_inline" != no && break
24504 done
24505
24506 fi
24507 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24508 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24509
24510
24511 case $ac_cv_c_inline in
24512   inline | yes) ;;
24513   *)
24514     case $ac_cv_c_inline in
24515       no) ac_val=;;
24516       *) ac_val=$ac_cv_c_inline;;
24517     esac
24518     cat >>confdefs.h <<_ACEOF
24519 #ifndef __cplusplus
24520 #define inline $ac_val
24521 #endif
24522 _ACEOF
24523     ;;
24524 esac
24525
24526   { echo "$as_me:$LINENO: checking for __attribute__" >&5
24527 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
24528 if test "${ac_cv_c_attribute+set}" = set; then
24529   echo $ECHO_N "(cached) $ECHO_C" >&6
24530 else
24531
24532 cat >conftest.$ac_ext <<_ACEOF
24533 /* confdefs.h.  */
24534 _ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h.  */
24538 void foo(void) __attribute__ ((__noreturn__));
24539
24540 _ACEOF
24541 rm -f conftest.$ac_objext
24542 if { (ac_try="$ac_compile"
24543 case "(($ac_try" in
24544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545   *) ac_try_echo=$ac_try;;
24546 esac
24547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24548   (eval "$ac_compile") 2>conftest.er1
24549   ac_status=$?
24550   grep -v '^ *+' conftest.er1 >conftest.err
24551   rm -f conftest.er1
24552   cat conftest.err >&5
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); } && {
24555          test -z "$ac_c_werror_flag" ||
24556          test ! -s conftest.err
24557        } && test -s conftest.$ac_objext; then
24558   ac_cv_c_attribute=yes
24559 else
24560   echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24562
24563         ac_cv_c_attribute=no
24564
24565 fi
24566
24567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568
24569 fi
24570 { echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
24571 echo "${ECHO_T}$ac_cv_c_attribute" >&6; }
24572
24573
24574 case $ac_cv_c_attribute in
24575   yes) ;;
24576   no)
24577     cat >>confdefs.h <<_ACEOF
24578 #define __attribute__(x)    /* nothing */
24579 _ACEOF
24580     ;;
24581 esac
24582
24583
24584
24585     ac_ext=c
24586 ac_cpp='$CPP $CPPFLAGS'
24587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24590
24591     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
24592 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
24593
24594     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
24595   echo $ECHO_N "(cached) $ECHO_C" >&6
24596 else
24597
24598
24599 ################################################################
24600
24601 ac_cv_func_which_gethostbyname_r=unknown
24602
24603 #
24604 # ONE ARGUMENT (sanity check)
24605 #
24606
24607 # This should fail, as there is no variant of gethostbyname_r() that takes
24608 # a single argument. If it actually compiles, then we can assume that
24609 # netdb.h is not declaring the function, and the compiler is thereby
24610 # assuming an implicit prototype. In which case, we're out of luck.
24611 #
24612 cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618 #include <netdb.h>
24619 int
24620 main ()
24621 {
24622
24623             char *name = "www.gnu.org";
24624             (void)gethostbyname_r(name) /* ; */
24625
24626   ;
24627   return 0;
24628 }
24629 _ACEOF
24630 rm -f conftest.$ac_objext
24631 if { (ac_try="$ac_compile"
24632 case "(($ac_try" in
24633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634   *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637   (eval "$ac_compile") 2>conftest.er1
24638   ac_status=$?
24639   grep -v '^ *+' conftest.er1 >conftest.err
24640   rm -f conftest.er1
24641   cat conftest.err >&5
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); } && {
24644          test -z "$ac_c_werror_flag" ||
24645          test ! -s conftest.err
24646        } && test -s conftest.$ac_objext; then
24647   ac_cv_func_which_gethostbyname_r=no
24648 else
24649   echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24651
24652
24653 fi
24654
24655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24656
24657 #
24658 # SIX ARGUMENTS
24659 # (e.g. Linux)
24660 #
24661
24662 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
24663
24664 cat >conftest.$ac_ext <<_ACEOF
24665 /* confdefs.h.  */
24666 _ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h.  */
24670 #include <netdb.h>
24671 int
24672 main ()
24673 {
24674
24675             char *name = "www.gnu.org";
24676             struct hostent ret, *retp;
24677             char buf[1024];
24678             int buflen = 1024;
24679             int my_h_errno;
24680             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
24681
24682   ;
24683   return 0;
24684 }
24685 _ACEOF
24686 rm -f conftest.$ac_objext
24687 if { (ac_try="$ac_compile"
24688 case "(($ac_try" in
24689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690   *) ac_try_echo=$ac_try;;
24691 esac
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693   (eval "$ac_compile") 2>conftest.er1
24694   ac_status=$?
24695   grep -v '^ *+' conftest.er1 >conftest.err
24696   rm -f conftest.er1
24697   cat conftest.err >&5
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); } && {
24700          test -z "$ac_c_werror_flag" ||
24701          test ! -s conftest.err
24702        } && test -s conftest.$ac_objext; then
24703   ac_cv_func_which_gethostbyname_r=six
24704 else
24705   echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708
24709 fi
24710
24711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24712
24713 fi
24714
24715 #
24716 # FIVE ARGUMENTS
24717 # (e.g. Solaris)
24718 #
24719
24720 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
24721
24722 cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728 #include <netdb.h>
24729 int
24730 main ()
24731 {
24732
24733             char *name = "www.gnu.org";
24734             struct hostent ret;
24735             char buf[1024];
24736             int buflen = 1024;
24737             int my_h_errno;
24738             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
24739
24740   ;
24741   return 0;
24742 }
24743 _ACEOF
24744 rm -f conftest.$ac_objext
24745 if { (ac_try="$ac_compile"
24746 case "(($ac_try" in
24747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748   *) ac_try_echo=$ac_try;;
24749 esac
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751   (eval "$ac_compile") 2>conftest.er1
24752   ac_status=$?
24753   grep -v '^ *+' conftest.er1 >conftest.err
24754   rm -f conftest.er1
24755   cat conftest.err >&5
24756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757   (exit $ac_status); } && {
24758          test -z "$ac_c_werror_flag" ||
24759          test ! -s conftest.err
24760        } && test -s conftest.$ac_objext; then
24761   ac_cv_func_which_gethostbyname_r=five
24762 else
24763   echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24765
24766
24767 fi
24768
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24770
24771 fi
24772
24773 #
24774 # THREE ARGUMENTS
24775 # (e.g. AIX, HP-UX, Tru64)
24776 #
24777
24778 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
24779
24780 cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h.  */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h.  */
24786 #include <netdb.h>
24787 int
24788 main ()
24789 {
24790
24791             char *name = "www.gnu.org";
24792             struct hostent ret;
24793             struct hostent_data data;
24794             (void)gethostbyname_r(name, &ret, &data) /* ; */
24795
24796   ;
24797   return 0;
24798 }
24799 _ACEOF
24800 rm -f conftest.$ac_objext
24801 if { (ac_try="$ac_compile"
24802 case "(($ac_try" in
24803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804   *) ac_try_echo=$ac_try;;
24805 esac
24806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24807   (eval "$ac_compile") 2>conftest.er1
24808   ac_status=$?
24809   grep -v '^ *+' conftest.er1 >conftest.err
24810   rm -f conftest.er1
24811   cat conftest.err >&5
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); } && {
24814          test -z "$ac_c_werror_flag" ||
24815          test ! -s conftest.err
24816        } && test -s conftest.$ac_objext; then
24817   ac_cv_func_which_gethostbyname_r=three
24818 else
24819   echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24821
24822
24823 fi
24824
24825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826
24827 fi
24828
24829 ################################################################
24830
24831
24832 fi
24833
24834 case "$ac_cv_func_which_gethostbyname_r" in
24835     three)
24836     { echo "$as_me:$LINENO: result: three" >&5
24837 echo "${ECHO_T}three" >&6; }
24838
24839 cat >>confdefs.h <<\_ACEOF
24840 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
24841 _ACEOF
24842
24843     ;;
24844
24845     five)
24846     { echo "$as_me:$LINENO: result: five" >&5
24847 echo "${ECHO_T}five" >&6; }
24848
24849 cat >>confdefs.h <<\_ACEOF
24850 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
24851 _ACEOF
24852
24853     ;;
24854
24855     six)
24856     { echo "$as_me:$LINENO: result: six" >&5
24857 echo "${ECHO_T}six" >&6; }
24858
24859 cat >>confdefs.h <<\_ACEOF
24860 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
24861 _ACEOF
24862
24863     ;;
24864
24865     no)
24866     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
24867 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
24868     ;;
24869
24870     unknown)
24871     { echo "$as_me:$LINENO: result: can't tell" >&5
24872 echo "${ECHO_T}can't tell" >&6; }
24873     ;;
24874
24875     *)
24876     { { echo "$as_me:$LINENO: error: internal error" >&5
24877 echo "$as_me: error: internal error" >&2;}
24878    { (exit 1); exit 1; }; }
24879     ;;
24880 esac
24881
24882 ac_ext=c
24883 ac_cpp='$CPP $CPPFLAGS'
24884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24887
24888
24889
24890
24891
24892       if test "X$prefix" = "XNONE"; then
24893     acl_final_prefix="$ac_default_prefix"
24894   else
24895     acl_final_prefix="$prefix"
24896   fi
24897   if test "X$exec_prefix" = "XNONE"; then
24898     acl_final_exec_prefix='${prefix}'
24899   else
24900     acl_final_exec_prefix="$exec_prefix"
24901   fi
24902   acl_save_prefix="$prefix"
24903   prefix="$acl_final_prefix"
24904   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
24905   prefix="$acl_save_prefix"
24906
24907
24908 # Check whether --with-gnu-ld was given.
24909 if test "${with_gnu_ld+set}" = set; then
24910   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
24911 else
24912   with_gnu_ld=no
24913 fi
24914
24915 # Prepare PATH_SEPARATOR.
24916 # The user is always right.
24917 if test "${PATH_SEPARATOR+set}" != set; then
24918   echo "#! /bin/sh" >conf$$.sh
24919   echo  "exit 0"   >>conf$$.sh
24920   chmod +x conf$$.sh
24921   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24922     PATH_SEPARATOR=';'
24923   else
24924     PATH_SEPARATOR=:
24925   fi
24926   rm -f conf$$.sh
24927 fi
24928 ac_prog=ld
24929 if test "$GCC" = yes; then
24930   # Check if gcc -print-prog-name=ld gives a path.
24931   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
24932 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
24933   case $host in
24934   *-*-mingw*)
24935     # gcc leaves a trailing carriage return which upsets mingw
24936     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24937   *)
24938     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24939   esac
24940   case $ac_prog in
24941     # Accept absolute paths.
24942     [\\/]* | [A-Za-z]:[\\/]*)
24943       re_direlt='/[^/][^/]*/\.\./'
24944       # Canonicalize the path of ld
24945       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
24946       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24947         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
24948       done
24949       test -z "$LD" && LD="$ac_prog"
24950       ;;
24951   "")
24952     # If it fails, then pretend we aren't using GCC.
24953     ac_prog=ld
24954     ;;
24955   *)
24956     # If it is relative, then search for the first ld in PATH.
24957     with_gnu_ld=unknown
24958     ;;
24959   esac
24960 elif test "$with_gnu_ld" = yes; then
24961   { echo "$as_me:$LINENO: checking for GNU ld" >&5
24962 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
24963 else
24964   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24965 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
24966 fi
24967 if test "${acl_cv_path_LD+set}" = set; then
24968   echo $ECHO_N "(cached) $ECHO_C" >&6
24969 else
24970   if test -z "$LD"; then
24971   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
24972   for ac_dir in $PATH; do
24973     test -z "$ac_dir" && ac_dir=.
24974     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24975       acl_cv_path_LD="$ac_dir/$ac_prog"
24976       # Check to see if the program is GNU ld.  I'd rather use --version,
24977       # but apparently some GNU ld's only accept -v.
24978       # Break only if it was the GNU/non-GNU ld that we prefer.
24979       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
24980         test "$with_gnu_ld" != no && break
24981       else
24982         test "$with_gnu_ld" != yes && break
24983       fi
24984     fi
24985   done
24986   IFS="$ac_save_ifs"
24987 else
24988   acl_cv_path_LD="$LD" # Let the user override the test with a path.
24989 fi
24990 fi
24991
24992 LD="$acl_cv_path_LD"
24993 if test -n "$LD"; then
24994   { echo "$as_me:$LINENO: result: $LD" >&5
24995 echo "${ECHO_T}$LD" >&6; }
24996 else
24997   { echo "$as_me:$LINENO: result: no" >&5
24998 echo "${ECHO_T}no" >&6; }
24999 fi
25000 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
25001 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
25002    { (exit 1); exit 1; }; }
25003 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
25004 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
25005 if test "${acl_cv_prog_gnu_ld+set}" = set; then
25006   echo $ECHO_N "(cached) $ECHO_C" >&6
25007 else
25008   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
25009 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
25010   acl_cv_prog_gnu_ld=yes
25011 else
25012   acl_cv_prog_gnu_ld=no
25013 fi
25014 fi
25015 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
25016 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
25017 with_gnu_ld=$acl_cv_prog_gnu_ld
25018
25019
25020
25021                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
25022 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
25023 if test "${acl_cv_rpath+set}" = set; then
25024   echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026
25027     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
25028     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
25029     . ./conftest.sh
25030     rm -f ./conftest.sh
25031     acl_cv_rpath=done
25032
25033 fi
25034 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
25035 echo "${ECHO_T}$acl_cv_rpath" >&6; }
25036   wl="$acl_cv_wl"
25037   libext="$acl_cv_libext"
25038   shlibext="$acl_cv_shlibext"
25039   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
25040   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
25041   hardcode_direct="$acl_cv_hardcode_direct"
25042   hardcode_minus_L="$acl_cv_hardcode_minus_L"
25043     # Check whether --enable-rpath was given.
25044 if test "${enable_rpath+set}" = set; then
25045   enableval=$enable_rpath; :
25046 else
25047   enable_rpath=yes
25048 fi
25049
25050
25051
25052
25053
25054
25055
25056
25057     use_additional=yes
25058
25059   acl_save_prefix="$prefix"
25060   prefix="$acl_final_prefix"
25061   acl_save_exec_prefix="$exec_prefix"
25062   exec_prefix="$acl_final_exec_prefix"
25063
25064     eval additional_includedir=\"$includedir\"
25065     eval additional_libdir=\"$libdir\"
25066
25067   exec_prefix="$acl_save_exec_prefix"
25068   prefix="$acl_save_prefix"
25069
25070
25071 # Check whether --with-libiconv-prefix was given.
25072 if test "${with_libiconv_prefix+set}" = set; then
25073   withval=$with_libiconv_prefix;
25074     if test "X$withval" = "Xno"; then
25075       use_additional=no
25076     else
25077       if test "X$withval" = "X"; then
25078
25079   acl_save_prefix="$prefix"
25080   prefix="$acl_final_prefix"
25081   acl_save_exec_prefix="$exec_prefix"
25082   exec_prefix="$acl_final_exec_prefix"
25083
25084           eval additional_includedir=\"$includedir\"
25085           eval additional_libdir=\"$libdir\"
25086
25087   exec_prefix="$acl_save_exec_prefix"
25088   prefix="$acl_save_prefix"
25089
25090       else
25091         additional_includedir="$withval/include"
25092         additional_libdir="$withval/lib"
25093       fi
25094     fi
25095
25096 fi
25097
25098       LIBICONV=
25099   LTLIBICONV=
25100   INCICONV=
25101   rpathdirs=
25102   ltrpathdirs=
25103   names_already_handled=
25104   names_next_round='iconv '
25105   while test -n "$names_next_round"; do
25106     names_this_round="$names_next_round"
25107     names_next_round=
25108     for name in $names_this_round; do
25109       already_handled=
25110       for n in $names_already_handled; do
25111         if test "$n" = "$name"; then
25112           already_handled=yes
25113           break
25114         fi
25115       done
25116       if test -z "$already_handled"; then
25117         names_already_handled="$names_already_handled $name"
25118                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25119         eval value=\"\$HAVE_LIB$uppername\"
25120         if test -n "$value"; then
25121           if test "$value" = yes; then
25122             eval value=\"\$LIB$uppername\"
25123             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25124             eval value=\"\$LTLIB$uppername\"
25125             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25126           else
25127                                     :
25128           fi
25129         else
25130                               found_dir=
25131           found_la=
25132           found_so=
25133           found_a=
25134           if test $use_additional = yes; then
25135             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
25136               found_dir="$additional_libdir"
25137               found_so="$additional_libdir/lib$name.$shlibext"
25138               if test -f "$additional_libdir/lib$name.la"; then
25139                 found_la="$additional_libdir/lib$name.la"
25140               fi
25141             else
25142               if test -f "$additional_libdir/lib$name.$libext"; then
25143                 found_dir="$additional_libdir"
25144                 found_a="$additional_libdir/lib$name.$libext"
25145                 if test -f "$additional_libdir/lib$name.la"; then
25146                   found_la="$additional_libdir/lib$name.la"
25147                 fi
25148               fi
25149             fi
25150           fi
25151           if test "X$found_dir" = "X"; then
25152             for x in $LDFLAGS $LTLIBICONV; do
25153
25154   acl_save_prefix="$prefix"
25155   prefix="$acl_final_prefix"
25156   acl_save_exec_prefix="$exec_prefix"
25157   exec_prefix="$acl_final_exec_prefix"
25158   eval x=\"$x\"
25159   exec_prefix="$acl_save_exec_prefix"
25160   prefix="$acl_save_prefix"
25161
25162               case "$x" in
25163                 -L*)
25164                   dir=`echo "X$x" | sed -e 's/^X-L//'`
25165                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
25166                     found_dir="$dir"
25167                     found_so="$dir/lib$name.$shlibext"
25168                     if test -f "$dir/lib$name.la"; then
25169                       found_la="$dir/lib$name.la"
25170                     fi
25171                   else
25172                     if test -f "$dir/lib$name.$libext"; then
25173                       found_dir="$dir"
25174                       found_a="$dir/lib$name.$libext"
25175                       if test -f "$dir/lib$name.la"; then
25176                         found_la="$dir/lib$name.la"
25177                       fi
25178                     fi
25179                   fi
25180                   ;;
25181               esac
25182               if test "X$found_dir" != "X"; then
25183                 break
25184               fi
25185             done
25186           fi
25187           if test "X$found_dir" != "X"; then
25188                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25189             if test "X$found_so" != "X"; then
25190                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
25191                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25192               else
25193                                                                                 haveit=
25194                 for x in $ltrpathdirs; do
25195                   if test "X$x" = "X$found_dir"; then
25196                     haveit=yes
25197                     break
25198                   fi
25199                 done
25200                 if test -z "$haveit"; then
25201                   ltrpathdirs="$ltrpathdirs $found_dir"
25202                 fi
25203                                 if test "$hardcode_direct" = yes; then
25204                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25205                 else
25206                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25207                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25208                                                             haveit=
25209                     for x in $rpathdirs; do
25210                       if test "X$x" = "X$found_dir"; then
25211                         haveit=yes
25212                         break
25213                       fi
25214                     done
25215                     if test -z "$haveit"; then
25216                       rpathdirs="$rpathdirs $found_dir"
25217                     fi
25218                   else
25219                                                                                 haveit=
25220                     for x in $LDFLAGS $LIBICONV; do
25221
25222   acl_save_prefix="$prefix"
25223   prefix="$acl_final_prefix"
25224   acl_save_exec_prefix="$exec_prefix"
25225   exec_prefix="$acl_final_exec_prefix"
25226   eval x=\"$x\"
25227   exec_prefix="$acl_save_exec_prefix"
25228   prefix="$acl_save_prefix"
25229
25230                       if test "X$x" = "X-L$found_dir"; then
25231                         haveit=yes
25232                         break
25233                       fi
25234                     done
25235                     if test -z "$haveit"; then
25236                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25237                     fi
25238                     if test "$hardcode_minus_L" != no; then
25239                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25240                     else
25241                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25242                     fi
25243                   fi
25244                 fi
25245               fi
25246             else
25247               if test "X$found_a" != "X"; then
25248                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25249               else
25250                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25251               fi
25252             fi
25253                         additional_includedir=
25254             case "$found_dir" in
25255               */lib | */lib/)
25256                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
25257                 additional_includedir="$basedir/include"
25258                 ;;
25259             esac
25260             if test "X$additional_includedir" != "X"; then
25261                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25262                 haveit=
25263                 if test "X$additional_includedir" = "X/usr/local/include"; then
25264                   if test -n "$GCC"; then
25265                     case $host_os in
25266                       linux*) haveit=yes;;
25267                     esac
25268                   fi
25269                 fi
25270                 if test -z "$haveit"; then
25271                   for x in $CPPFLAGS $INCICONV; do
25272
25273   acl_save_prefix="$prefix"
25274   prefix="$acl_final_prefix"
25275   acl_save_exec_prefix="$exec_prefix"
25276   exec_prefix="$acl_final_exec_prefix"
25277   eval x=\"$x\"
25278   exec_prefix="$acl_save_exec_prefix"
25279   prefix="$acl_save_prefix"
25280
25281                     if test "X$x" = "X-I$additional_includedir"; then
25282                       haveit=yes
25283                       break
25284                     fi
25285                   done
25286                   if test -z "$haveit"; then
25287                     if test -d "$additional_includedir"; then
25288                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
25289                     fi
25290                   fi
25291                 fi
25292               fi
25293             fi
25294                         if test -n "$found_la"; then
25295                                                         save_libdir="$libdir"
25296               case "$found_la" in
25297                 */* | *\\*) . "$found_la" ;;
25298                 *) . "./$found_la" ;;
25299               esac
25300               libdir="$save_libdir"
25301                             for dep in $dependency_libs; do
25302                 case "$dep" in
25303                   -L*)
25304                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25305                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
25306                       haveit=
25307                       if test "X$additional_libdir" = "X/usr/local/lib"; then
25308                         if test -n "$GCC"; then
25309                           case $host_os in
25310                             linux*) haveit=yes;;
25311                           esac
25312                         fi
25313                       fi
25314                       if test -z "$haveit"; then
25315                         haveit=
25316                         for x in $LDFLAGS $LIBICONV; do
25317
25318   acl_save_prefix="$prefix"
25319   prefix="$acl_final_prefix"
25320   acl_save_exec_prefix="$exec_prefix"
25321   exec_prefix="$acl_final_exec_prefix"
25322   eval x=\"$x\"
25323   exec_prefix="$acl_save_exec_prefix"
25324   prefix="$acl_save_prefix"
25325
25326                           if test "X$x" = "X-L$additional_libdir"; then
25327                             haveit=yes
25328                             break
25329                           fi
25330                         done
25331                         if test -z "$haveit"; then
25332                           if test -d "$additional_libdir"; then
25333                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
25334                           fi
25335                         fi
25336                         haveit=
25337                         for x in $LDFLAGS $LTLIBICONV; do
25338
25339   acl_save_prefix="$prefix"
25340   prefix="$acl_final_prefix"
25341   acl_save_exec_prefix="$exec_prefix"
25342   exec_prefix="$acl_final_exec_prefix"
25343   eval x=\"$x\"
25344   exec_prefix="$acl_save_exec_prefix"
25345   prefix="$acl_save_prefix"
25346
25347                           if test "X$x" = "X-L$additional_libdir"; then
25348                             haveit=yes
25349                             break
25350                           fi
25351                         done
25352                         if test -z "$haveit"; then
25353                           if test -d "$additional_libdir"; then
25354                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
25355                           fi
25356                         fi
25357                       fi
25358                     fi
25359                     ;;
25360                   -R*)
25361                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25362                     if test "$enable_rpath" != no; then
25363                                                                   haveit=
25364                       for x in $rpathdirs; do
25365                         if test "X$x" = "X$dir"; then
25366                           haveit=yes
25367                           break
25368                         fi
25369                       done
25370                       if test -z "$haveit"; then
25371                         rpathdirs="$rpathdirs $dir"
25372                       fi
25373                                                                   haveit=
25374                       for x in $ltrpathdirs; do
25375                         if test "X$x" = "X$dir"; then
25376                           haveit=yes
25377                           break
25378                         fi
25379                       done
25380                       if test -z "$haveit"; then
25381                         ltrpathdirs="$ltrpathdirs $dir"
25382                       fi
25383                     fi
25384                     ;;
25385                   -l*)
25386                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25387                     ;;
25388                   *.la)
25389                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25390                     ;;
25391                   *)
25392                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25393                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25394                     ;;
25395                 esac
25396               done
25397             fi
25398           else
25399                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25400             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25401           fi
25402         fi
25403       fi
25404     done
25405   done
25406   if test "X$rpathdirs" != "X"; then
25407     if test -n "$hardcode_libdir_separator"; then
25408                         alldirs=
25409       for found_dir in $rpathdirs; do
25410         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25411       done
25412             acl_save_libdir="$libdir"
25413       libdir="$alldirs"
25414       eval flag=\"$hardcode_libdir_flag_spec\"
25415       libdir="$acl_save_libdir"
25416       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25417     else
25418             for found_dir in $rpathdirs; do
25419         acl_save_libdir="$libdir"
25420         libdir="$found_dir"
25421         eval flag=\"$hardcode_libdir_flag_spec\"
25422         libdir="$acl_save_libdir"
25423         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25424       done
25425     fi
25426   fi
25427   if test "X$ltrpathdirs" != "X"; then
25428             for found_dir in $ltrpathdirs; do
25429       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
25430     done
25431   fi
25432
25433
25434
25435
25436
25437
25438
25439           am_save_CPPFLAGS="$CPPFLAGS"
25440
25441   for element in $INCICONV; do
25442     haveit=
25443     for x in $CPPFLAGS; do
25444
25445   acl_save_prefix="$prefix"
25446   prefix="$acl_final_prefix"
25447   acl_save_exec_prefix="$exec_prefix"
25448   exec_prefix="$acl_final_exec_prefix"
25449   eval x=\"$x\"
25450   exec_prefix="$acl_save_exec_prefix"
25451   prefix="$acl_save_prefix"
25452
25453       if test "X$x" = "X$element"; then
25454         haveit=yes
25455         break
25456       fi
25457     done
25458     if test -z "$haveit"; then
25459       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25460     fi
25461   done
25462
25463
25464   { echo "$as_me:$LINENO: checking for iconv" >&5
25465 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
25466 if test "${am_cv_func_iconv+set}" = set; then
25467   echo $ECHO_N "(cached) $ECHO_C" >&6
25468 else
25469
25470     am_cv_func_iconv="no, consider installing GNU libiconv"
25471     am_cv_lib_iconv=no
25472     cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h.  */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h.  */
25478 #include <stdlib.h>
25479 #include <iconv.h>
25480 int
25481 main ()
25482 {
25483 iconv_t cd = iconv_open("","");
25484        iconv(cd,NULL,NULL,NULL,NULL);
25485        iconv_close(cd);
25486   ;
25487   return 0;
25488 }
25489 _ACEOF
25490 rm -f conftest.$ac_objext conftest$ac_exeext
25491 if { (ac_try="$ac_link"
25492 case "(($ac_try" in
25493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25494   *) ac_try_echo=$ac_try;;
25495 esac
25496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25497   (eval "$ac_link") 2>conftest.er1
25498   ac_status=$?
25499   grep -v '^ *+' conftest.er1 >conftest.err
25500   rm -f conftest.er1
25501   cat conftest.err >&5
25502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503   (exit $ac_status); } && {
25504          test -z "$ac_c_werror_flag" ||
25505          test ! -s conftest.err
25506        } && test -s conftest$ac_exeext &&
25507        $as_test_x conftest$ac_exeext; then
25508   am_cv_func_iconv=yes
25509 else
25510   echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25512
25513
25514 fi
25515
25516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25517       conftest$ac_exeext conftest.$ac_ext
25518     if test "$am_cv_func_iconv" != yes; then
25519       am_save_LIBS="$LIBS"
25520       LIBS="$LIBS $LIBICONV"
25521       cat >conftest.$ac_ext <<_ACEOF
25522 /* confdefs.h.  */
25523 _ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h.  */
25527 #include <stdlib.h>
25528 #include <iconv.h>
25529 int
25530 main ()
25531 {
25532 iconv_t cd = iconv_open("","");
25533          iconv(cd,NULL,NULL,NULL,NULL);
25534          iconv_close(cd);
25535   ;
25536   return 0;
25537 }
25538 _ACEOF
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (ac_try="$ac_link"
25541 case "(($ac_try" in
25542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25543   *) ac_try_echo=$ac_try;;
25544 esac
25545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25546   (eval "$ac_link") 2>conftest.er1
25547   ac_status=$?
25548   grep -v '^ *+' conftest.er1 >conftest.err
25549   rm -f conftest.er1
25550   cat conftest.err >&5
25551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552   (exit $ac_status); } && {
25553          test -z "$ac_c_werror_flag" ||
25554          test ! -s conftest.err
25555        } && test -s conftest$ac_exeext &&
25556        $as_test_x conftest$ac_exeext; then
25557   am_cv_lib_iconv=yes
25558         am_cv_func_iconv=yes
25559 else
25560   echo "$as_me: failed program was:" >&5
25561 sed 's/^/| /' conftest.$ac_ext >&5
25562
25563
25564 fi
25565
25566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25567       conftest$ac_exeext conftest.$ac_ext
25568       LIBS="$am_save_LIBS"
25569     fi
25570
25571 fi
25572 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25573 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
25574   if test "$am_cv_func_iconv" = yes; then
25575
25576 cat >>confdefs.h <<\_ACEOF
25577 #define HAVE_ICONV 1
25578 _ACEOF
25579
25580   fi
25581   if test "$am_cv_lib_iconv" = yes; then
25582     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
25583 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
25584     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
25585 echo "${ECHO_T}$LIBICONV" >&6; }
25586   else
25587             CPPFLAGS="$am_save_CPPFLAGS"
25588     LIBICONV=
25589     LTLIBICONV=
25590   fi
25591
25592
25593
25594   if test "$am_cv_func_iconv" = yes; then
25595     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
25596 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
25597     if test "${am_cv_proto_iconv+set}" = set; then
25598   echo $ECHO_N "(cached) $ECHO_C" >&6
25599 else
25600
25601       cat >conftest.$ac_ext <<_ACEOF
25602 /* confdefs.h.  */
25603 _ACEOF
25604 cat confdefs.h >>conftest.$ac_ext
25605 cat >>conftest.$ac_ext <<_ACEOF
25606 /* end confdefs.h.  */
25607
25608 #include <stdlib.h>
25609 #include <iconv.h>
25610 extern
25611 #ifdef __cplusplus
25612 "C"
25613 #endif
25614 #if defined(__STDC__) || defined(__cplusplus)
25615 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25616 #else
25617 size_t iconv();
25618 #endif
25619
25620 int
25621 main ()
25622 {
25623
25624   ;
25625   return 0;
25626 }
25627 _ACEOF
25628 rm -f conftest.$ac_objext
25629 if { (ac_try="$ac_compile"
25630 case "(($ac_try" in
25631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632   *) ac_try_echo=$ac_try;;
25633 esac
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635   (eval "$ac_compile") 2>conftest.er1
25636   ac_status=$?
25637   grep -v '^ *+' conftest.er1 >conftest.err
25638   rm -f conftest.er1
25639   cat conftest.err >&5
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); } && {
25642          test -z "$ac_c_werror_flag" ||
25643          test ! -s conftest.err
25644        } && test -s conftest.$ac_objext; then
25645   am_cv_proto_iconv_arg1=""
25646 else
25647   echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650         am_cv_proto_iconv_arg1="const"
25651 fi
25652
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25654       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
25655 fi
25656
25657     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25658     { echo "$as_me:$LINENO: result: ${ac_t:-
25659          }$am_cv_proto_iconv" >&5
25660 echo "${ECHO_T}${ac_t:-
25661          }$am_cv_proto_iconv" >&6; }
25662
25663 cat >>confdefs.h <<_ACEOF
25664 #define ICONV_CONST $am_cv_proto_iconv_arg1
25665 _ACEOF
25666
25667   fi
25668
25669
25670     if test "x${GCC}" = xyes; then
25671
25672             WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
25673
25674
25675             STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
25676
25677
25678             ERROR_CFLAGS=
25679     if test "x${ENABLE_WERROR}" = xyes; then
25680        ERROR_CFLAGS='-Werror'
25681     fi
25682
25683   fi
25684
25685     if test "x${COMPILE_XMLJ}" = xyes; then
25686
25687   succeeded=no
25688
25689   if test -z "$PKG_CONFIG"; then
25690     # Extract the first word of "pkg-config", so it can be a program name with args.
25691 set dummy pkg-config; ac_word=$2
25692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25694 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25695   echo $ECHO_N "(cached) $ECHO_C" >&6
25696 else
25697   case $PKG_CONFIG in
25698   [\\/]* | ?:[\\/]*)
25699   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25700   ;;
25701   *)
25702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25703 for as_dir in $PATH
25704 do
25705   IFS=$as_save_IFS
25706   test -z "$as_dir" && as_dir=.
25707   for ac_exec_ext in '' $ac_executable_extensions; do
25708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25709     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25711     break 2
25712   fi
25713 done
25714 done
25715 IFS=$as_save_IFS
25716
25717   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25718   ;;
25719 esac
25720 fi
25721 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25722 if test -n "$PKG_CONFIG"; then
25723   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25724 echo "${ECHO_T}$PKG_CONFIG" >&6; }
25725 else
25726   { echo "$as_me:$LINENO: result: no" >&5
25727 echo "${ECHO_T}no" >&6; }
25728 fi
25729
25730
25731   fi
25732
25733   if test "$PKG_CONFIG" = "no" ; then
25734      echo "*** The pkg-config script could not be found. Make sure it is"
25735      echo "*** in your path, or set the PKG_CONFIG environment variable"
25736      echo "*** to the full path to pkg-config."
25737      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25738   else
25739      PKG_CONFIG_MIN_VERSION=0.9.0
25740      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25741         { echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
25742 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6; }
25743
25744         if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
25745             { echo "$as_me:$LINENO: result: yes" >&5
25746 echo "${ECHO_T}yes" >&6; }
25747             succeeded=yes
25748
25749             { echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
25750 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6; }
25751             XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
25752             { echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
25753 echo "${ECHO_T}$XML_CFLAGS" >&6; }
25754
25755             { echo "$as_me:$LINENO: checking XML_LIBS" >&5
25756 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6; }
25757             XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
25758             { echo "$as_me:$LINENO: result: $XML_LIBS" >&5
25759 echo "${ECHO_T}$XML_LIBS" >&6; }
25760         else
25761             XML_CFLAGS=""
25762             XML_LIBS=""
25763             ## If we have a custom action on failure, don't print errors, but
25764             ## do set a variable so people can do so.
25765             XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
25766             echo $XML_PKG_ERRORS
25767         fi
25768
25769
25770
25771      else
25772         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25773         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25774      fi
25775   fi
25776
25777   if test $succeeded = yes; then
25778      :
25779   else
25780      { { echo "$as_me:$LINENO: error: Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25781 echo "$as_me: error: Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25782    { (exit 1); exit 1; }; }
25783   fi
25784
25785
25786   succeeded=no
25787
25788   if test -z "$PKG_CONFIG"; then
25789     # Extract the first word of "pkg-config", so it can be a program name with args.
25790 set dummy pkg-config; ac_word=$2
25791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25793 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25794   echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
25796   case $PKG_CONFIG in
25797   [\\/]* | ?:[\\/]*)
25798   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25799   ;;
25800   *)
25801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25802 for as_dir in $PATH
25803 do
25804   IFS=$as_save_IFS
25805   test -z "$as_dir" && as_dir=.
25806   for ac_exec_ext in '' $ac_executable_extensions; do
25807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25808     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25810     break 2
25811   fi
25812 done
25813 done
25814 IFS=$as_save_IFS
25815
25816   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25817   ;;
25818 esac
25819 fi
25820 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25821 if test -n "$PKG_CONFIG"; then
25822   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25823 echo "${ECHO_T}$PKG_CONFIG" >&6; }
25824 else
25825   { echo "$as_me:$LINENO: result: no" >&5
25826 echo "${ECHO_T}no" >&6; }
25827 fi
25828
25829
25830   fi
25831
25832   if test "$PKG_CONFIG" = "no" ; then
25833      echo "*** The pkg-config script could not be found. Make sure it is"
25834      echo "*** in your path, or set the PKG_CONFIG environment variable"
25835      echo "*** to the full path to pkg-config."
25836      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25837   else
25838      PKG_CONFIG_MIN_VERSION=0.9.0
25839      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25840         { echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
25841 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6; }
25842
25843         if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
25844             { echo "$as_me:$LINENO: result: yes" >&5
25845 echo "${ECHO_T}yes" >&6; }
25846             succeeded=yes
25847
25848             { echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
25849 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6; }
25850             XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
25851             { echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
25852 echo "${ECHO_T}$XSLT_CFLAGS" >&6; }
25853
25854             { echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
25855 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6; }
25856             XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
25857             { echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
25858 echo "${ECHO_T}$XSLT_LIBS" >&6; }
25859         else
25860             XSLT_CFLAGS=""
25861             XSLT_LIBS=""
25862             ## If we have a custom action on failure, don't print errors, but
25863             ## do set a variable so people can do so.
25864             XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
25865             echo $XSLT_PKG_ERRORS
25866         fi
25867
25868
25869
25870      else
25871         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25872         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25873      fi
25874   fi
25875
25876   if test $succeeded = yes; then
25877      :
25878   else
25879      { { echo "$as_me:$LINENO: error: Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25880 echo "$as_me: error: Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25881    { (exit 1); exit 1; }; }
25882   fi
25883
25884
25885
25886
25887
25888   fi
25889
25890     if test "x${COMPILE_GTK_PEER}" = xyes; then
25891     { echo "$as_me:$LINENO: checking for X" >&5
25892 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
25893
25894
25895 # Check whether --with-x was given.
25896 if test "${with_x+set}" = set; then
25897   withval=$with_x;
25898 fi
25899
25900 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25901 if test "x$with_x" = xno; then
25902   # The user explicitly disabled X.
25903   have_x=disabled
25904 else
25905   case $x_includes,$x_libraries in #(
25906     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
25907 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
25908    { (exit 1); exit 1; }; };; #(
25909     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
25910   echo $ECHO_N "(cached) $ECHO_C" >&6
25911 else
25912   # One or both of the vars are not set, and there is no cached value.
25913 ac_x_includes=no ac_x_libraries=no
25914 rm -f -r conftest.dir
25915 if mkdir conftest.dir; then
25916   cd conftest.dir
25917   cat >Imakefile <<'_ACEOF'
25918 incroot:
25919         @echo incroot='${INCROOT}'
25920 usrlibdir:
25921         @echo usrlibdir='${USRLIBDIR}'
25922 libdir:
25923         @echo libdir='${LIBDIR}'
25924 _ACEOF
25925   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25926     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25927     for ac_var in incroot usrlibdir libdir; do
25928       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25929     done
25930     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25931     for ac_extension in a so sl; do
25932       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25933          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25934         ac_im_usrlibdir=$ac_im_libdir; break
25935       fi
25936     done
25937     # Screen out bogus values from the imake configuration.  They are
25938     # bogus both because they are the default anyway, and because
25939     # using them would break gcc on systems where it needs fixed includes.
25940     case $ac_im_incroot in
25941         /usr/include) ac_x_includes= ;;
25942         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25943     esac
25944     case $ac_im_usrlibdir in
25945         /usr/lib | /lib) ;;
25946         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25947     esac
25948   fi
25949   cd ..
25950   rm -f -r conftest.dir
25951 fi
25952
25953 # Standard set of common directories for X headers.
25954 # Check X11 before X11Rn because it is often a symlink to the current release.
25955 ac_x_header_dirs='
25956 /usr/X11/include
25957 /usr/X11R6/include
25958 /usr/X11R5/include
25959 /usr/X11R4/include
25960
25961 /usr/include/X11
25962 /usr/include/X11R6
25963 /usr/include/X11R5
25964 /usr/include/X11R4
25965
25966 /usr/local/X11/include
25967 /usr/local/X11R6/include
25968 /usr/local/X11R5/include
25969 /usr/local/X11R4/include
25970
25971 /usr/local/include/X11
25972 /usr/local/include/X11R6
25973 /usr/local/include/X11R5
25974 /usr/local/include/X11R4
25975
25976 /usr/X386/include
25977 /usr/x386/include
25978 /usr/XFree86/include/X11
25979
25980 /usr/include
25981 /usr/local/include
25982 /usr/unsupported/include
25983 /usr/athena/include
25984 /usr/local/x11r5/include
25985 /usr/lpp/Xamples/include
25986
25987 /usr/openwin/include
25988 /usr/openwin/share/include'
25989
25990 if test "$ac_x_includes" = no; then
25991   # Guess where to find include files, by looking for Xlib.h.
25992   # First, try using that file with no special directory specified.
25993   cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999 #include <X11/Xlib.h>
26000 _ACEOF
26001 if { (ac_try="$ac_cpp conftest.$ac_ext"
26002 case "(($ac_try" in
26003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004   *) ac_try_echo=$ac_try;;
26005 esac
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26008   ac_status=$?
26009   grep -v '^ *+' conftest.er1 >conftest.err
26010   rm -f conftest.er1
26011   cat conftest.err >&5
26012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013   (exit $ac_status); } >/dev/null && {
26014          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26015          test ! -s conftest.err
26016        }; then
26017   # We can compile using X headers with no special include directory.
26018 ac_x_includes=
26019 else
26020   echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023   for ac_dir in $ac_x_header_dirs; do
26024   if test -r "$ac_dir/X11/Xlib.h"; then
26025     ac_x_includes=$ac_dir
26026     break
26027   fi
26028 done
26029 fi
26030
26031 rm -f conftest.err conftest.$ac_ext
26032 fi # $ac_x_includes = no
26033
26034 if test "$ac_x_libraries" = no; then
26035   # Check for the libraries.
26036   # See if we find them without any special options.
26037   # Don't add to $LIBS permanently.
26038   ac_save_LIBS=$LIBS
26039   LIBS="-lX11 $LIBS"
26040   cat >conftest.$ac_ext <<_ACEOF
26041 /* confdefs.h.  */
26042 _ACEOF
26043 cat confdefs.h >>conftest.$ac_ext
26044 cat >>conftest.$ac_ext <<_ACEOF
26045 /* end confdefs.h.  */
26046 #include <X11/Xlib.h>
26047 int
26048 main ()
26049 {
26050 XrmInitialize ()
26051   ;
26052   return 0;
26053 }
26054 _ACEOF
26055 rm -f conftest.$ac_objext conftest$ac_exeext
26056 if { (ac_try="$ac_link"
26057 case "(($ac_try" in
26058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059   *) ac_try_echo=$ac_try;;
26060 esac
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062   (eval "$ac_link") 2>conftest.er1
26063   ac_status=$?
26064   grep -v '^ *+' conftest.er1 >conftest.err
26065   rm -f conftest.er1
26066   cat conftest.err >&5
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); } && {
26069          test -z "$ac_c_werror_flag" ||
26070          test ! -s conftest.err
26071        } && test -s conftest$ac_exeext &&
26072        $as_test_x conftest$ac_exeext; then
26073   LIBS=$ac_save_LIBS
26074 # We can link X programs with no special library path.
26075 ac_x_libraries=
26076 else
26077   echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26079
26080         LIBS=$ac_save_LIBS
26081 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26082 do
26083   # Don't even attempt the hair of trying to link an X program!
26084   for ac_extension in a so sl; do
26085     if test -r "$ac_dir/libX11.$ac_extension"; then
26086       ac_x_libraries=$ac_dir
26087       break 2
26088     fi
26089   done
26090 done
26091 fi
26092
26093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26094       conftest$ac_exeext conftest.$ac_ext
26095 fi # $ac_x_libraries = no
26096
26097 case $ac_x_includes,$ac_x_libraries in #(
26098   no,* | *,no | *\'*)
26099     # Didn't find X, or a directory has "'" in its name.
26100     ac_cv_have_x="have_x=no";; #(
26101   *)
26102     # Record where we found X for the cache.
26103     ac_cv_have_x="have_x=yes\
26104         ac_x_includes='$ac_x_includes'\
26105         ac_x_libraries='$ac_x_libraries'"
26106 esac
26107 fi
26108 ;; #(
26109     *) have_x=yes;;
26110   esac
26111   eval "$ac_cv_have_x"
26112 fi # $with_x != no
26113
26114 if test "$have_x" != yes; then
26115   { echo "$as_me:$LINENO: result: $have_x" >&5
26116 echo "${ECHO_T}$have_x" >&6; }
26117   no_x=yes
26118 else
26119   # If each of the values was on the command line, it overrides each guess.
26120   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26121   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26122   # Update the cache value to reflect the command line values.
26123   ac_cv_have_x="have_x=yes\
26124         ac_x_includes='$x_includes'\
26125         ac_x_libraries='$x_libraries'"
26126   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
26127 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
26128 fi
26129
26130 if test "$no_x" = yes; then
26131   # Not all programs may use this symbol, but it does not hurt to define it.
26132
26133 cat >>confdefs.h <<\_ACEOF
26134 #define X_DISPLAY_MISSING 1
26135 _ACEOF
26136
26137   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26138 else
26139   if test -n "$x_includes"; then
26140     X_CFLAGS="$X_CFLAGS -I$x_includes"
26141   fi
26142
26143   # It would also be nice to do this for all -L options, not just this one.
26144   if test -n "$x_libraries"; then
26145     X_LIBS="$X_LIBS -L$x_libraries"
26146     # For Solaris; some versions of Sun CC require a space after -R and
26147     # others require no space.  Words are not sufficient . . . .
26148     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26149 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
26150     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26151     ac_xsave_c_werror_flag=$ac_c_werror_flag
26152     ac_c_werror_flag=yes
26153     cat >conftest.$ac_ext <<_ACEOF
26154 /* confdefs.h.  */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h.  */
26159
26160 int
26161 main ()
26162 {
26163
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 rm -f conftest.$ac_objext conftest$ac_exeext
26169 if { (ac_try="$ac_link"
26170 case "(($ac_try" in
26171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172   *) ac_try_echo=$ac_try;;
26173 esac
26174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175   (eval "$ac_link") 2>conftest.er1
26176   ac_status=$?
26177   grep -v '^ *+' conftest.er1 >conftest.err
26178   rm -f conftest.er1
26179   cat conftest.err >&5
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); } && {
26182          test -z "$ac_c_werror_flag" ||
26183          test ! -s conftest.err
26184        } && test -s conftest$ac_exeext &&
26185        $as_test_x conftest$ac_exeext; then
26186   { echo "$as_me:$LINENO: result: no" >&5
26187 echo "${ECHO_T}no" >&6; }
26188        X_LIBS="$X_LIBS -R$x_libraries"
26189 else
26190   echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.$ac_ext >&5
26192
26193         LIBS="$ac_xsave_LIBS -R $x_libraries"
26194        cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h.  */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h.  */
26200
26201 int
26202 main ()
26203 {
26204
26205   ;
26206   return 0;
26207 }
26208 _ACEOF
26209 rm -f conftest.$ac_objext conftest$ac_exeext
26210 if { (ac_try="$ac_link"
26211 case "(($ac_try" in
26212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213   *) ac_try_echo=$ac_try;;
26214 esac
26215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26216   (eval "$ac_link") 2>conftest.er1
26217   ac_status=$?
26218   grep -v '^ *+' conftest.er1 >conftest.err
26219   rm -f conftest.er1
26220   cat conftest.err >&5
26221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222   (exit $ac_status); } && {
26223          test -z "$ac_c_werror_flag" ||
26224          test ! -s conftest.err
26225        } && test -s conftest$ac_exeext &&
26226        $as_test_x conftest$ac_exeext; then
26227   { echo "$as_me:$LINENO: result: yes" >&5
26228 echo "${ECHO_T}yes" >&6; }
26229           X_LIBS="$X_LIBS -R $x_libraries"
26230 else
26231   echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26233
26234         { echo "$as_me:$LINENO: result: neither works" >&5
26235 echo "${ECHO_T}neither works" >&6; }
26236 fi
26237
26238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26239       conftest$ac_exeext conftest.$ac_ext
26240 fi
26241
26242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26243       conftest$ac_exeext conftest.$ac_ext
26244     ac_c_werror_flag=$ac_xsave_c_werror_flag
26245     LIBS=$ac_xsave_LIBS
26246   fi
26247
26248   # Check for system-dependent libraries X programs must link with.
26249   # Do this before checking for the system-independent R6 libraries
26250   # (-lICE), since we may need -lsocket or whatever for X linking.
26251
26252   if test "$ISC" = yes; then
26253     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26254   else
26255     # Martyn Johnson says this is needed for Ultrix, if the X
26256     # libraries were built with DECnet support.  And Karl Berry says
26257     # the Alpha needs dnet_stub (dnet does not exist).
26258     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26259     cat >conftest.$ac_ext <<_ACEOF
26260 /* confdefs.h.  */
26261 _ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h.  */
26265
26266 /* Override any GCC internal prototype to avoid an error.
26267    Use char because int might match the return type of a GCC
26268    builtin and then its argument prototype would still apply.  */
26269 #ifdef __cplusplus
26270 extern "C"
26271 #endif
26272 char XOpenDisplay ();
26273 int
26274 main ()
26275 {
26276 return XOpenDisplay ();
26277   ;
26278   return 0;
26279 }
26280 _ACEOF
26281 rm -f conftest.$ac_objext conftest$ac_exeext
26282 if { (ac_try="$ac_link"
26283 case "(($ac_try" in
26284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285   *) ac_try_echo=$ac_try;;
26286 esac
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288   (eval "$ac_link") 2>conftest.er1
26289   ac_status=$?
26290   grep -v '^ *+' conftest.er1 >conftest.err
26291   rm -f conftest.er1
26292   cat conftest.err >&5
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } && {
26295          test -z "$ac_c_werror_flag" ||
26296          test ! -s conftest.err
26297        } && test -s conftest$ac_exeext &&
26298        $as_test_x conftest$ac_exeext; then
26299   :
26300 else
26301   echo "$as_me: failed program was:" >&5
26302 sed 's/^/| /' conftest.$ac_ext >&5
26303
26304         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26305 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
26306 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26307   echo $ECHO_N "(cached) $ECHO_C" >&6
26308 else
26309   ac_check_lib_save_LIBS=$LIBS
26310 LIBS="-ldnet  $LIBS"
26311 cat >conftest.$ac_ext <<_ACEOF
26312 /* confdefs.h.  */
26313 _ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h.  */
26317
26318 /* Override any GCC internal prototype to avoid an error.
26319    Use char because int might match the return type of a GCC
26320    builtin and then its argument prototype would still apply.  */
26321 #ifdef __cplusplus
26322 extern "C"
26323 #endif
26324 char dnet_ntoa ();
26325 int
26326 main ()
26327 {
26328 return dnet_ntoa ();
26329   ;
26330   return 0;
26331 }
26332 _ACEOF
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337   *) ac_try_echo=$ac_try;;
26338 esac
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340   (eval "$ac_link") 2>conftest.er1
26341   ac_status=$?
26342   grep -v '^ *+' conftest.er1 >conftest.err
26343   rm -f conftest.er1
26344   cat conftest.err >&5
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); } && {
26347          test -z "$ac_c_werror_flag" ||
26348          test ! -s conftest.err
26349        } && test -s conftest$ac_exeext &&
26350        $as_test_x conftest$ac_exeext; then
26351   ac_cv_lib_dnet_dnet_ntoa=yes
26352 else
26353   echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26355
26356         ac_cv_lib_dnet_dnet_ntoa=no
26357 fi
26358
26359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26360       conftest$ac_exeext conftest.$ac_ext
26361 LIBS=$ac_check_lib_save_LIBS
26362 fi
26363 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26364 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26365 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26366   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26367 fi
26368
26369     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26370       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26371 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
26372 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26373   echo $ECHO_N "(cached) $ECHO_C" >&6
26374 else
26375   ac_check_lib_save_LIBS=$LIBS
26376 LIBS="-ldnet_stub  $LIBS"
26377 cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h.  */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h.  */
26383
26384 /* Override any GCC internal prototype to avoid an error.
26385    Use char because int might match the return type of a GCC
26386    builtin and then its argument prototype would still apply.  */
26387 #ifdef __cplusplus
26388 extern "C"
26389 #endif
26390 char dnet_ntoa ();
26391 int
26392 main ()
26393 {
26394 return dnet_ntoa ();
26395   ;
26396   return 0;
26397 }
26398 _ACEOF
26399 rm -f conftest.$ac_objext conftest$ac_exeext
26400 if { (ac_try="$ac_link"
26401 case "(($ac_try" in
26402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403   *) ac_try_echo=$ac_try;;
26404 esac
26405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406   (eval "$ac_link") 2>conftest.er1
26407   ac_status=$?
26408   grep -v '^ *+' conftest.er1 >conftest.err
26409   rm -f conftest.er1
26410   cat conftest.err >&5
26411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412   (exit $ac_status); } && {
26413          test -z "$ac_c_werror_flag" ||
26414          test ! -s conftest.err
26415        } && test -s conftest$ac_exeext &&
26416        $as_test_x conftest$ac_exeext; then
26417   ac_cv_lib_dnet_stub_dnet_ntoa=yes
26418 else
26419   echo "$as_me: failed program was:" >&5
26420 sed 's/^/| /' conftest.$ac_ext >&5
26421
26422         ac_cv_lib_dnet_stub_dnet_ntoa=no
26423 fi
26424
26425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26426       conftest$ac_exeext conftest.$ac_ext
26427 LIBS=$ac_check_lib_save_LIBS
26428 fi
26429 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26430 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26431 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26432   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26433 fi
26434
26435     fi
26436 fi
26437
26438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26439       conftest$ac_exeext conftest.$ac_ext
26440     LIBS="$ac_xsave_LIBS"
26441
26442     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26443     # to get the SysV transport functions.
26444     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26445     # needs -lnsl.
26446     # The nsl library prevents programs from opening the X display
26447     # on Irix 5.2, according to T.E. Dickey.
26448     # The functions gethostbyname, getservbyname, and inet_addr are
26449     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26450     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
26451 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
26452 if test "${ac_cv_func_gethostbyname+set}" = set; then
26453   echo $ECHO_N "(cached) $ECHO_C" >&6
26454 else
26455   cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h.  */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h.  */
26461 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26463 #define gethostbyname innocuous_gethostbyname
26464
26465 /* System header to define __stub macros and hopefully few prototypes,
26466     which can conflict with char gethostbyname (); below.
26467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26468     <limits.h> exists even on freestanding compilers.  */
26469
26470 #ifdef __STDC__
26471 # include <limits.h>
26472 #else
26473 # include <assert.h>
26474 #endif
26475
26476 #undef gethostbyname
26477
26478 /* Override any GCC internal prototype to avoid an error.
26479    Use char because int might match the return type of a GCC
26480    builtin and then its argument prototype would still apply.  */
26481 #ifdef __cplusplus
26482 extern "C"
26483 #endif
26484 char gethostbyname ();
26485 /* The GNU C library defines this for functions which it implements
26486     to always fail with ENOSYS.  Some functions are actually named
26487     something starting with __ and the normal name is an alias.  */
26488 #if defined __stub_gethostbyname || defined __stub___gethostbyname
26489 choke me
26490 #endif
26491
26492 int
26493 main ()
26494 {
26495 return gethostbyname ();
26496   ;
26497   return 0;
26498 }
26499 _ACEOF
26500 rm -f conftest.$ac_objext conftest$ac_exeext
26501 if { (ac_try="$ac_link"
26502 case "(($ac_try" in
26503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504   *) ac_try_echo=$ac_try;;
26505 esac
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507   (eval "$ac_link") 2>conftest.er1
26508   ac_status=$?
26509   grep -v '^ *+' conftest.er1 >conftest.err
26510   rm -f conftest.er1
26511   cat conftest.err >&5
26512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513   (exit $ac_status); } && {
26514          test -z "$ac_c_werror_flag" ||
26515          test ! -s conftest.err
26516        } && test -s conftest$ac_exeext &&
26517        $as_test_x conftest$ac_exeext; then
26518   ac_cv_func_gethostbyname=yes
26519 else
26520   echo "$as_me: failed program was:" >&5
26521 sed 's/^/| /' conftest.$ac_ext >&5
26522
26523         ac_cv_func_gethostbyname=no
26524 fi
26525
26526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26527       conftest$ac_exeext conftest.$ac_ext
26528 fi
26529 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26530 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
26531
26532     if test $ac_cv_func_gethostbyname = no; then
26533       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26534 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
26535 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26536   echo $ECHO_N "(cached) $ECHO_C" >&6
26537 else
26538   ac_check_lib_save_LIBS=$LIBS
26539 LIBS="-lnsl  $LIBS"
26540 cat >conftest.$ac_ext <<_ACEOF
26541 /* confdefs.h.  */
26542 _ACEOF
26543 cat confdefs.h >>conftest.$ac_ext
26544 cat >>conftest.$ac_ext <<_ACEOF
26545 /* end confdefs.h.  */
26546
26547 /* Override any GCC internal prototype to avoid an error.
26548    Use char because int might match the return type of a GCC
26549    builtin and then its argument prototype would still apply.  */
26550 #ifdef __cplusplus
26551 extern "C"
26552 #endif
26553 char gethostbyname ();
26554 int
26555 main ()
26556 {
26557 return gethostbyname ();
26558   ;
26559   return 0;
26560 }
26561 _ACEOF
26562 rm -f conftest.$ac_objext conftest$ac_exeext
26563 if { (ac_try="$ac_link"
26564 case "(($ac_try" in
26565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26566   *) ac_try_echo=$ac_try;;
26567 esac
26568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26569   (eval "$ac_link") 2>conftest.er1
26570   ac_status=$?
26571   grep -v '^ *+' conftest.er1 >conftest.err
26572   rm -f conftest.er1
26573   cat conftest.err >&5
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); } && {
26576          test -z "$ac_c_werror_flag" ||
26577          test ! -s conftest.err
26578        } && test -s conftest$ac_exeext &&
26579        $as_test_x conftest$ac_exeext; then
26580   ac_cv_lib_nsl_gethostbyname=yes
26581 else
26582   echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26584
26585         ac_cv_lib_nsl_gethostbyname=no
26586 fi
26587
26588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26589       conftest$ac_exeext conftest.$ac_ext
26590 LIBS=$ac_check_lib_save_LIBS
26591 fi
26592 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26593 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26594 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26595   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26596 fi
26597
26598       if test $ac_cv_lib_nsl_gethostbyname = no; then
26599         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26600 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
26601 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26602   echo $ECHO_N "(cached) $ECHO_C" >&6
26603 else
26604   ac_check_lib_save_LIBS=$LIBS
26605 LIBS="-lbsd  $LIBS"
26606 cat >conftest.$ac_ext <<_ACEOF
26607 /* confdefs.h.  */
26608 _ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h.  */
26612
26613 /* Override any GCC internal prototype to avoid an error.
26614    Use char because int might match the return type of a GCC
26615    builtin and then its argument prototype would still apply.  */
26616 #ifdef __cplusplus
26617 extern "C"
26618 #endif
26619 char gethostbyname ();
26620 int
26621 main ()
26622 {
26623 return gethostbyname ();
26624   ;
26625   return 0;
26626 }
26627 _ACEOF
26628 rm -f conftest.$ac_objext conftest$ac_exeext
26629 if { (ac_try="$ac_link"
26630 case "(($ac_try" in
26631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26632   *) ac_try_echo=$ac_try;;
26633 esac
26634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26635   (eval "$ac_link") 2>conftest.er1
26636   ac_status=$?
26637   grep -v '^ *+' conftest.er1 >conftest.err
26638   rm -f conftest.er1
26639   cat conftest.err >&5
26640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); } && {
26642          test -z "$ac_c_werror_flag" ||
26643          test ! -s conftest.err
26644        } && test -s conftest$ac_exeext &&
26645        $as_test_x conftest$ac_exeext; then
26646   ac_cv_lib_bsd_gethostbyname=yes
26647 else
26648   echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26650
26651         ac_cv_lib_bsd_gethostbyname=no
26652 fi
26653
26654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26655       conftest$ac_exeext conftest.$ac_ext
26656 LIBS=$ac_check_lib_save_LIBS
26657 fi
26658 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26659 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
26660 if test $ac_cv_lib_bsd_gethostbyname = yes; then
26661   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26662 fi
26663
26664       fi
26665     fi
26666
26667     # lieder@skyler.mavd.honeywell.com says without -lsocket,
26668     # socket/setsockopt and other routines are undefined under SCO ODT
26669     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
26670     # on later versions), says Simon Leinen: it contains gethostby*
26671     # variants that don't use the name server (or something).  -lsocket
26672     # must be given before -lnsl if both are needed.  We assume that
26673     # if connect needs -lnsl, so does gethostbyname.
26674     { echo "$as_me:$LINENO: checking for connect" >&5
26675 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
26676 if test "${ac_cv_func_connect+set}" = set; then
26677   echo $ECHO_N "(cached) $ECHO_C" >&6
26678 else
26679   cat >conftest.$ac_ext <<_ACEOF
26680 /* confdefs.h.  */
26681 _ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h.  */
26685 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
26686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26687 #define connect innocuous_connect
26688
26689 /* System header to define __stub macros and hopefully few prototypes,
26690     which can conflict with char connect (); below.
26691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26692     <limits.h> exists even on freestanding compilers.  */
26693
26694 #ifdef __STDC__
26695 # include <limits.h>
26696 #else
26697 # include <assert.h>
26698 #endif
26699
26700 #undef connect
26701
26702 /* Override any GCC internal prototype to avoid an error.
26703    Use char because int might match the return type of a GCC
26704    builtin and then its argument prototype would still apply.  */
26705 #ifdef __cplusplus
26706 extern "C"
26707 #endif
26708 char connect ();
26709 /* The GNU C library defines this for functions which it implements
26710     to always fail with ENOSYS.  Some functions are actually named
26711     something starting with __ and the normal name is an alias.  */
26712 #if defined __stub_connect || defined __stub___connect
26713 choke me
26714 #endif
26715
26716 int
26717 main ()
26718 {
26719 return connect ();
26720   ;
26721   return 0;
26722 }
26723 _ACEOF
26724 rm -f conftest.$ac_objext conftest$ac_exeext
26725 if { (ac_try="$ac_link"
26726 case "(($ac_try" in
26727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728   *) ac_try_echo=$ac_try;;
26729 esac
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731   (eval "$ac_link") 2>conftest.er1
26732   ac_status=$?
26733   grep -v '^ *+' conftest.er1 >conftest.err
26734   rm -f conftest.er1
26735   cat conftest.err >&5
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); } && {
26738          test -z "$ac_c_werror_flag" ||
26739          test ! -s conftest.err
26740        } && test -s conftest$ac_exeext &&
26741        $as_test_x conftest$ac_exeext; then
26742   ac_cv_func_connect=yes
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747         ac_cv_func_connect=no
26748 fi
26749
26750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26751       conftest$ac_exeext conftest.$ac_ext
26752 fi
26753 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26754 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
26755
26756     if test $ac_cv_func_connect = no; then
26757       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26758 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
26759 if test "${ac_cv_lib_socket_connect+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762   ac_check_lib_save_LIBS=$LIBS
26763 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26764 cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770
26771 /* Override any GCC internal prototype to avoid an error.
26772    Use char because int might match the return type of a GCC
26773    builtin and then its argument prototype would still apply.  */
26774 #ifdef __cplusplus
26775 extern "C"
26776 #endif
26777 char connect ();
26778 int
26779 main ()
26780 {
26781 return connect ();
26782   ;
26783   return 0;
26784 }
26785 _ACEOF
26786 rm -f conftest.$ac_objext conftest$ac_exeext
26787 if { (ac_try="$ac_link"
26788 case "(($ac_try" in
26789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790   *) ac_try_echo=$ac_try;;
26791 esac
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793   (eval "$ac_link") 2>conftest.er1
26794   ac_status=$?
26795   grep -v '^ *+' conftest.er1 >conftest.err
26796   rm -f conftest.er1
26797   cat conftest.err >&5
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); } && {
26800          test -z "$ac_c_werror_flag" ||
26801          test ! -s conftest.err
26802        } && test -s conftest$ac_exeext &&
26803        $as_test_x conftest$ac_exeext; then
26804   ac_cv_lib_socket_connect=yes
26805 else
26806   echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26808
26809         ac_cv_lib_socket_connect=no
26810 fi
26811
26812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26813       conftest$ac_exeext conftest.$ac_ext
26814 LIBS=$ac_check_lib_save_LIBS
26815 fi
26816 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26817 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
26818 if test $ac_cv_lib_socket_connect = yes; then
26819   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26820 fi
26821
26822     fi
26823
26824     # Guillermo Gomez says -lposix is necessary on A/UX.
26825     { echo "$as_me:$LINENO: checking for remove" >&5
26826 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
26827 if test "${ac_cv_func_remove+set}" = set; then
26828   echo $ECHO_N "(cached) $ECHO_C" >&6
26829 else
26830   cat >conftest.$ac_ext <<_ACEOF
26831 /* confdefs.h.  */
26832 _ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h.  */
26836 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
26837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26838 #define remove innocuous_remove
26839
26840 /* System header to define __stub macros and hopefully few prototypes,
26841     which can conflict with char remove (); below.
26842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26843     <limits.h> exists even on freestanding compilers.  */
26844
26845 #ifdef __STDC__
26846 # include <limits.h>
26847 #else
26848 # include <assert.h>
26849 #endif
26850
26851 #undef remove
26852
26853 /* Override any GCC internal prototype to avoid an error.
26854    Use char because int might match the return type of a GCC
26855    builtin and then its argument prototype would still apply.  */
26856 #ifdef __cplusplus
26857 extern "C"
26858 #endif
26859 char remove ();
26860 /* The GNU C library defines this for functions which it implements
26861     to always fail with ENOSYS.  Some functions are actually named
26862     something starting with __ and the normal name is an alias.  */
26863 #if defined __stub_remove || defined __stub___remove
26864 choke me
26865 #endif
26866
26867 int
26868 main ()
26869 {
26870 return remove ();
26871   ;
26872   return 0;
26873 }
26874 _ACEOF
26875 rm -f conftest.$ac_objext conftest$ac_exeext
26876 if { (ac_try="$ac_link"
26877 case "(($ac_try" in
26878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26879   *) ac_try_echo=$ac_try;;
26880 esac
26881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882   (eval "$ac_link") 2>conftest.er1
26883   ac_status=$?
26884   grep -v '^ *+' conftest.er1 >conftest.err
26885   rm -f conftest.er1
26886   cat conftest.err >&5
26887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888   (exit $ac_status); } && {
26889          test -z "$ac_c_werror_flag" ||
26890          test ! -s conftest.err
26891        } && test -s conftest$ac_exeext &&
26892        $as_test_x conftest$ac_exeext; then
26893   ac_cv_func_remove=yes
26894 else
26895   echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26897
26898         ac_cv_func_remove=no
26899 fi
26900
26901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26902       conftest$ac_exeext conftest.$ac_ext
26903 fi
26904 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26905 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
26906
26907     if test $ac_cv_func_remove = no; then
26908       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26909 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
26910 if test "${ac_cv_lib_posix_remove+set}" = set; then
26911   echo $ECHO_N "(cached) $ECHO_C" >&6
26912 else
26913   ac_check_lib_save_LIBS=$LIBS
26914 LIBS="-lposix  $LIBS"
26915 cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h.  */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h.  */
26921
26922 /* Override any GCC internal prototype to avoid an error.
26923    Use char because int might match the return type of a GCC
26924    builtin and then its argument prototype would still apply.  */
26925 #ifdef __cplusplus
26926 extern "C"
26927 #endif
26928 char remove ();
26929 int
26930 main ()
26931 {
26932 return remove ();
26933   ;
26934   return 0;
26935 }
26936 _ACEOF
26937 rm -f conftest.$ac_objext conftest$ac_exeext
26938 if { (ac_try="$ac_link"
26939 case "(($ac_try" in
26940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941   *) ac_try_echo=$ac_try;;
26942 esac
26943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26944   (eval "$ac_link") 2>conftest.er1
26945   ac_status=$?
26946   grep -v '^ *+' conftest.er1 >conftest.err
26947   rm -f conftest.er1
26948   cat conftest.err >&5
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); } && {
26951          test -z "$ac_c_werror_flag" ||
26952          test ! -s conftest.err
26953        } && test -s conftest$ac_exeext &&
26954        $as_test_x conftest$ac_exeext; then
26955   ac_cv_lib_posix_remove=yes
26956 else
26957   echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960         ac_cv_lib_posix_remove=no
26961 fi
26962
26963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26964       conftest$ac_exeext conftest.$ac_ext
26965 LIBS=$ac_check_lib_save_LIBS
26966 fi
26967 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26968 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
26969 if test $ac_cv_lib_posix_remove = yes; then
26970   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26971 fi
26972
26973     fi
26974
26975     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26976     { echo "$as_me:$LINENO: checking for shmat" >&5
26977 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
26978 if test "${ac_cv_func_shmat+set}" = set; then
26979   echo $ECHO_N "(cached) $ECHO_C" >&6
26980 else
26981   cat >conftest.$ac_ext <<_ACEOF
26982 /* confdefs.h.  */
26983 _ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h.  */
26987 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26989 #define shmat innocuous_shmat
26990
26991 /* System header to define __stub macros and hopefully few prototypes,
26992     which can conflict with char shmat (); below.
26993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26994     <limits.h> exists even on freestanding compilers.  */
26995
26996 #ifdef __STDC__
26997 # include <limits.h>
26998 #else
26999 # include <assert.h>
27000 #endif
27001
27002 #undef shmat
27003
27004 /* Override any GCC internal prototype to avoid an error.
27005    Use char because int might match the return type of a GCC
27006    builtin and then its argument prototype would still apply.  */
27007 #ifdef __cplusplus
27008 extern "C"
27009 #endif
27010 char shmat ();
27011 /* The GNU C library defines this for functions which it implements
27012     to always fail with ENOSYS.  Some functions are actually named
27013     something starting with __ and the normal name is an alias.  */
27014 #if defined __stub_shmat || defined __stub___shmat
27015 choke me
27016 #endif
27017
27018 int
27019 main ()
27020 {
27021 return shmat ();
27022   ;
27023   return 0;
27024 }
27025 _ACEOF
27026 rm -f conftest.$ac_objext conftest$ac_exeext
27027 if { (ac_try="$ac_link"
27028 case "(($ac_try" in
27029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030   *) ac_try_echo=$ac_try;;
27031 esac
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033   (eval "$ac_link") 2>conftest.er1
27034   ac_status=$?
27035   grep -v '^ *+' conftest.er1 >conftest.err
27036   rm -f conftest.er1
27037   cat conftest.err >&5
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); } && {
27040          test -z "$ac_c_werror_flag" ||
27041          test ! -s conftest.err
27042        } && test -s conftest$ac_exeext &&
27043        $as_test_x conftest$ac_exeext; then
27044   ac_cv_func_shmat=yes
27045 else
27046   echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049         ac_cv_func_shmat=no
27050 fi
27051
27052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27053       conftest$ac_exeext conftest.$ac_ext
27054 fi
27055 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27056 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
27057
27058     if test $ac_cv_func_shmat = no; then
27059       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27060 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
27061 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27062   echo $ECHO_N "(cached) $ECHO_C" >&6
27063 else
27064   ac_check_lib_save_LIBS=$LIBS
27065 LIBS="-lipc  $LIBS"
27066 cat >conftest.$ac_ext <<_ACEOF
27067 /* confdefs.h.  */
27068 _ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h.  */
27072
27073 /* Override any GCC internal prototype to avoid an error.
27074    Use char because int might match the return type of a GCC
27075    builtin and then its argument prototype would still apply.  */
27076 #ifdef __cplusplus
27077 extern "C"
27078 #endif
27079 char shmat ();
27080 int
27081 main ()
27082 {
27083 return shmat ();
27084   ;
27085   return 0;
27086 }
27087 _ACEOF
27088 rm -f conftest.$ac_objext conftest$ac_exeext
27089 if { (ac_try="$ac_link"
27090 case "(($ac_try" in
27091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27092   *) ac_try_echo=$ac_try;;
27093 esac
27094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27095   (eval "$ac_link") 2>conftest.er1
27096   ac_status=$?
27097   grep -v '^ *+' conftest.er1 >conftest.err
27098   rm -f conftest.er1
27099   cat conftest.err >&5
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); } && {
27102          test -z "$ac_c_werror_flag" ||
27103          test ! -s conftest.err
27104        } && test -s conftest$ac_exeext &&
27105        $as_test_x conftest$ac_exeext; then
27106   ac_cv_lib_ipc_shmat=yes
27107 else
27108   echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111         ac_cv_lib_ipc_shmat=no
27112 fi
27113
27114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27115       conftest$ac_exeext conftest.$ac_ext
27116 LIBS=$ac_check_lib_save_LIBS
27117 fi
27118 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27119 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
27120 if test $ac_cv_lib_ipc_shmat = yes; then
27121   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27122 fi
27123
27124     fi
27125   fi
27126
27127   # Check for libraries that X11R6 Xt/Xaw programs need.
27128   ac_save_LDFLAGS=$LDFLAGS
27129   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27130   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27131   # check for ICE first), but we must link in the order -lSM -lICE or
27132   # we get undefined symbols.  So assume we have SM if we have ICE.
27133   # These have to be linked with before -lX11, unlike the other
27134   # libraries we check for below, so use a different variable.
27135   # John Interrante, Karl Berry
27136   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27137 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
27138 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27139   echo $ECHO_N "(cached) $ECHO_C" >&6
27140 else
27141   ac_check_lib_save_LIBS=$LIBS
27142 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27143 cat >conftest.$ac_ext <<_ACEOF
27144 /* confdefs.h.  */
27145 _ACEOF
27146 cat confdefs.h >>conftest.$ac_ext
27147 cat >>conftest.$ac_ext <<_ACEOF
27148 /* end confdefs.h.  */
27149
27150 /* Override any GCC internal prototype to avoid an error.
27151    Use char because int might match the return type of a GCC
27152    builtin and then its argument prototype would still apply.  */
27153 #ifdef __cplusplus
27154 extern "C"
27155 #endif
27156 char IceConnectionNumber ();
27157 int
27158 main ()
27159 {
27160 return IceConnectionNumber ();
27161   ;
27162   return 0;
27163 }
27164 _ACEOF
27165 rm -f conftest.$ac_objext conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169   *) ac_try_echo=$ac_try;;
27170 esac
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172   (eval "$ac_link") 2>conftest.er1
27173   ac_status=$?
27174   grep -v '^ *+' conftest.er1 >conftest.err
27175   rm -f conftest.er1
27176   cat conftest.err >&5
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); } && {
27179          test -z "$ac_c_werror_flag" ||
27180          test ! -s conftest.err
27181        } && test -s conftest$ac_exeext &&
27182        $as_test_x conftest$ac_exeext; then
27183   ac_cv_lib_ICE_IceConnectionNumber=yes
27184 else
27185   echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27187
27188         ac_cv_lib_ICE_IceConnectionNumber=no
27189 fi
27190
27191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27192       conftest$ac_exeext conftest.$ac_ext
27193 LIBS=$ac_check_lib_save_LIBS
27194 fi
27195 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27196 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27197 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27198   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27199 fi
27200
27201   LDFLAGS=$ac_save_LDFLAGS
27202
27203 fi
27204
27205     if test "$no_x" = yes; then
27206         { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
27207 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
27208    { (exit 1); exit 1; }; }
27209     fi
27210             { echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
27211 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6; }
27212 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
27213   echo $ECHO_N "(cached) $ECHO_C" >&6
27214 else
27215   ac_check_lib_save_LIBS=$LIBS
27216 LIBS="-lXtst ${X_LIBS} $LIBS"
27217 cat >conftest.$ac_ext <<_ACEOF
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223
27224 /* Override any GCC internal prototype to avoid an error.
27225    Use char because int might match the return type of a GCC
27226    builtin and then its argument prototype would still apply.  */
27227 #ifdef __cplusplus
27228 extern "C"
27229 #endif
27230 char XTestQueryExtension ();
27231 int
27232 main ()
27233 {
27234 return XTestQueryExtension ();
27235   ;
27236   return 0;
27237 }
27238 _ACEOF
27239 rm -f conftest.$ac_objext conftest$ac_exeext
27240 if { (ac_try="$ac_link"
27241 case "(($ac_try" in
27242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27243   *) ac_try_echo=$ac_try;;
27244 esac
27245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27246   (eval "$ac_link") 2>conftest.er1
27247   ac_status=$?
27248   grep -v '^ *+' conftest.er1 >conftest.err
27249   rm -f conftest.er1
27250   cat conftest.err >&5
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); } && {
27253          test -z "$ac_c_werror_flag" ||
27254          test ! -s conftest.err
27255        } && test -s conftest$ac_exeext &&
27256        $as_test_x conftest$ac_exeext; then
27257   ac_cv_lib_Xtst_XTestQueryExtension=yes
27258 else
27259   echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27261
27262         ac_cv_lib_Xtst_XTestQueryExtension=no
27263 fi
27264
27265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27266       conftest$ac_exeext conftest.$ac_ext
27267 LIBS=$ac_check_lib_save_LIBS
27268 fi
27269 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
27270 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
27271 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
27272
27273 cat >>confdefs.h <<\_ACEOF
27274 #define HAVE_XTEST 1
27275 _ACEOF
27276 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
27277 else
27278   true
27279 fi
27280
27281
27282
27283
27284   succeeded=no
27285
27286   if test -z "$PKG_CONFIG"; then
27287     # Extract the first word of "pkg-config", so it can be a program name with args.
27288 set dummy pkg-config; ac_word=$2
27289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27291 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27292   echo $ECHO_N "(cached) $ECHO_C" >&6
27293 else
27294   case $PKG_CONFIG in
27295   [\\/]* | ?:[\\/]*)
27296   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27297   ;;
27298   *)
27299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27300 for as_dir in $PATH
27301 do
27302   IFS=$as_save_IFS
27303   test -z "$as_dir" && as_dir=.
27304   for ac_exec_ext in '' $ac_executable_extensions; do
27305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27306     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27308     break 2
27309   fi
27310 done
27311 done
27312 IFS=$as_save_IFS
27313
27314   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27315   ;;
27316 esac
27317 fi
27318 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27319 if test -n "$PKG_CONFIG"; then
27320   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27321 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27322 else
27323   { echo "$as_me:$LINENO: result: no" >&5
27324 echo "${ECHO_T}no" >&6; }
27325 fi
27326
27327
27328   fi
27329
27330   if test "$PKG_CONFIG" = "no" ; then
27331      echo "*** The pkg-config script could not be found. Make sure it is"
27332      echo "*** in your path, or set the PKG_CONFIG environment variable"
27333      echo "*** to the full path to pkg-config."
27334      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27335   else
27336      PKG_CONFIG_MIN_VERSION=0.9.0
27337      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27338         { echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
27339 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6; }
27340
27341         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
27342             { echo "$as_me:$LINENO: result: yes" >&5
27343 echo "${ECHO_T}yes" >&6; }
27344             succeeded=yes
27345
27346             { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
27347 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
27348             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
27349             { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
27350 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
27351
27352             { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
27353 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
27354             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
27355             { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
27356 echo "${ECHO_T}$GTK_LIBS" >&6; }
27357         else
27358             GTK_CFLAGS=""
27359             GTK_LIBS=""
27360             ## If we have a custom action on failure, don't print errors, but
27361             ## do set a variable so people can do so.
27362             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
27363             echo $GTK_PKG_ERRORS
27364         fi
27365
27366
27367
27368      else
27369         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27370         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27371      fi
27372   fi
27373
27374   if test $succeeded = yes; then
27375      :
27376   else
27377      { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
27378 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
27379    { (exit 1); exit 1; }; }
27380   fi
27381
27382
27383   succeeded=no
27384
27385   if test -z "$PKG_CONFIG"; then
27386     # Extract the first word of "pkg-config", so it can be a program name with args.
27387 set dummy pkg-config; ac_word=$2
27388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27390 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27391   echo $ECHO_N "(cached) $ECHO_C" >&6
27392 else
27393   case $PKG_CONFIG in
27394   [\\/]* | ?:[\\/]*)
27395   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27396   ;;
27397   *)
27398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27399 for as_dir in $PATH
27400 do
27401   IFS=$as_save_IFS
27402   test -z "$as_dir" && as_dir=.
27403   for ac_exec_ext in '' $ac_executable_extensions; do
27404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27405     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27407     break 2
27408   fi
27409 done
27410 done
27411 IFS=$as_save_IFS
27412
27413   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27414   ;;
27415 esac
27416 fi
27417 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27418 if test -n "$PKG_CONFIG"; then
27419   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27420 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27421 else
27422   { echo "$as_me:$LINENO: result: no" >&5
27423 echo "${ECHO_T}no" >&6; }
27424 fi
27425
27426
27427   fi
27428
27429   if test "$PKG_CONFIG" = "no" ; then
27430      echo "*** The pkg-config script could not be found. Make sure it is"
27431      echo "*** in your path, or set the PKG_CONFIG environment variable"
27432      echo "*** to the full path to pkg-config."
27433      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27434   else
27435      PKG_CONFIG_MIN_VERSION=0.9.0
27436      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27437         { echo "$as_me:$LINENO: checking for freetype2" >&5
27438 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
27439
27440         if $PKG_CONFIG --exists "freetype2" ; then
27441             { echo "$as_me:$LINENO: result: yes" >&5
27442 echo "${ECHO_T}yes" >&6; }
27443             succeeded=yes
27444
27445             { echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
27446 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6; }
27447             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
27448             { echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
27449 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6; }
27450
27451             { echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
27452 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6; }
27453             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
27454             { echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
27455 echo "${ECHO_T}$FREETYPE2_LIBS" >&6; }
27456         else
27457             FREETYPE2_CFLAGS=""
27458             FREETYPE2_LIBS=""
27459             ## If we have a custom action on failure, don't print errors, but
27460             ## do set a variable so people can do so.
27461             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
27462             echo $FREETYPE2_PKG_ERRORS
27463         fi
27464
27465
27466
27467      else
27468         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27469         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27470      fi
27471   fi
27472
27473   if test $succeeded = yes; then
27474      :
27475   else
27476      { { echo "$as_me:$LINENO: error: Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
27477 echo "$as_me: error: Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
27478    { (exit 1); exit 1; }; }
27479   fi
27480
27481
27482   succeeded=no
27483
27484   if test -z "$PKG_CONFIG"; then
27485     # Extract the first word of "pkg-config", so it can be a program name with args.
27486 set dummy pkg-config; ac_word=$2
27487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27490   echo $ECHO_N "(cached) $ECHO_C" >&6
27491 else
27492   case $PKG_CONFIG in
27493   [\\/]* | ?:[\\/]*)
27494   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27495   ;;
27496   *)
27497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27498 for as_dir in $PATH
27499 do
27500   IFS=$as_save_IFS
27501   test -z "$as_dir" && as_dir=.
27502   for ac_exec_ext in '' $ac_executable_extensions; do
27503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27504     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27506     break 2
27507   fi
27508 done
27509 done
27510 IFS=$as_save_IFS
27511
27512   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27513   ;;
27514 esac
27515 fi
27516 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27517 if test -n "$PKG_CONFIG"; then
27518   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27519 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27520 else
27521   { echo "$as_me:$LINENO: result: no" >&5
27522 echo "${ECHO_T}no" >&6; }
27523 fi
27524
27525
27526   fi
27527
27528   if test "$PKG_CONFIG" = "no" ; then
27529      echo "*** The pkg-config script could not be found. Make sure it is"
27530      echo "*** in your path, or set the PKG_CONFIG environment variable"
27531      echo "*** to the full path to pkg-config."
27532      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27533   else
27534      PKG_CONFIG_MIN_VERSION=0.9.0
27535      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27536         { echo "$as_me:$LINENO: checking for pangoft2" >&5
27537 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6; }
27538
27539         if $PKG_CONFIG --exists "pangoft2" ; then
27540             { echo "$as_me:$LINENO: result: yes" >&5
27541 echo "${ECHO_T}yes" >&6; }
27542             succeeded=yes
27543
27544             { echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27545 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6; }
27546             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27547             { echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27548 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6; }
27549
27550             { echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27551 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6; }
27552             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27553             { echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27554 echo "${ECHO_T}$PANGOFT2_LIBS" >&6; }
27555         else
27556             PANGOFT2_CFLAGS=""
27557             PANGOFT2_LIBS=""
27558             ## If we have a custom action on failure, don't print errors, but
27559             ## do set a variable so people can do so.
27560             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27561             echo $PANGOFT2_PKG_ERRORS
27562         fi
27563
27564
27565
27566      else
27567         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27568         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27569      fi
27570   fi
27571
27572   if test $succeeded = yes; then
27573      :
27574   else
27575      { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
27576 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
27577    { (exit 1); exit 1; }; }
27578   fi
27579
27580
27581   succeeded=no
27582
27583   if test -z "$PKG_CONFIG"; then
27584     # Extract the first word of "pkg-config", so it can be a program name with args.
27585 set dummy pkg-config; ac_word=$2
27586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27588 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27589   echo $ECHO_N "(cached) $ECHO_C" >&6
27590 else
27591   case $PKG_CONFIG in
27592   [\\/]* | ?:[\\/]*)
27593   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27594   ;;
27595   *)
27596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27597 for as_dir in $PATH
27598 do
27599   IFS=$as_save_IFS
27600   test -z "$as_dir" && as_dir=.
27601   for ac_exec_ext in '' $ac_executable_extensions; do
27602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27603     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27605     break 2
27606   fi
27607 done
27608 done
27609 IFS=$as_save_IFS
27610
27611   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27612   ;;
27613 esac
27614 fi
27615 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27616 if test -n "$PKG_CONFIG"; then
27617   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27618 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27619 else
27620   { echo "$as_me:$LINENO: result: no" >&5
27621 echo "${ECHO_T}no" >&6; }
27622 fi
27623
27624
27625   fi
27626
27627   if test "$PKG_CONFIG" = "no" ; then
27628      echo "*** The pkg-config script could not be found. Make sure it is"
27629      echo "*** in your path, or set the PKG_CONFIG environment variable"
27630      echo "*** to the full path to pkg-config."
27631      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27632   else
27633      PKG_CONFIG_MIN_VERSION=0.9.0
27634      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27635         { echo "$as_me:$LINENO: checking for cairo >= 1.1.8" >&5
27636 echo $ECHO_N "checking for cairo >= 1.1.8... $ECHO_C" >&6; }
27637
27638         if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
27639             { echo "$as_me:$LINENO: result: yes" >&5
27640 echo "${ECHO_T}yes" >&6; }
27641             succeeded=yes
27642
27643             { echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
27644 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6; }
27645             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
27646             { echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
27647 echo "${ECHO_T}$CAIRO_CFLAGS" >&6; }
27648
27649             { echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
27650 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6; }
27651             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
27652             { echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
27653 echo "${ECHO_T}$CAIRO_LIBS" >&6; }
27654         else
27655             CAIRO_CFLAGS=""
27656             CAIRO_LIBS=""
27657             ## If we have a custom action on failure, don't print errors, but
27658             ## do set a variable so people can do so.
27659             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
27660             echo $CAIRO_PKG_ERRORS
27661         fi
27662
27663
27664
27665      else
27666         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27667         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27668      fi
27669   fi
27670
27671   if test $succeeded = yes; then
27672      :
27673   else
27674      { { echo "$as_me:$LINENO: error: Library requirements (cairo >= 1.1.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
27675 echo "$as_me: error: Library requirements (cairo >= 1.1.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
27676    { (exit 1); exit 1; }; }
27677   fi
27678
27679             { echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
27680 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6; }
27681 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
27682   echo $ECHO_N "(cached) $ECHO_C" >&6
27683 else
27684   ac_check_lib_save_LIBS=$LIBS
27685 LIBS="-lXrender ${X_LIBS} $LIBS"
27686 cat >conftest.$ac_ext <<_ACEOF
27687 /* confdefs.h.  */
27688 _ACEOF
27689 cat confdefs.h >>conftest.$ac_ext
27690 cat >>conftest.$ac_ext <<_ACEOF
27691 /* end confdefs.h.  */
27692
27693 /* Override any GCC internal prototype to avoid an error.
27694    Use char because int might match the return type of a GCC
27695    builtin and then its argument prototype would still apply.  */
27696 #ifdef __cplusplus
27697 extern "C"
27698 #endif
27699 char XRenderQueryExtension ();
27700 int
27701 main ()
27702 {
27703 return XRenderQueryExtension ();
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest.$ac_objext conftest$ac_exeext
27709 if { (ac_try="$ac_link"
27710 case "(($ac_try" in
27711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712   *) ac_try_echo=$ac_try;;
27713 esac
27714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27715   (eval "$ac_link") 2>conftest.er1
27716   ac_status=$?
27717   grep -v '^ *+' conftest.er1 >conftest.err
27718   rm -f conftest.er1
27719   cat conftest.err >&5
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } && {
27722          test -z "$ac_c_werror_flag" ||
27723          test ! -s conftest.err
27724        } && test -s conftest$ac_exeext &&
27725        $as_test_x conftest$ac_exeext; then
27726   ac_cv_lib_Xrender_XRenderQueryExtension=yes
27727 else
27728   echo "$as_me: failed program was:" >&5
27729 sed 's/^/| /' conftest.$ac_ext >&5
27730
27731         ac_cv_lib_Xrender_XRenderQueryExtension=no
27732 fi
27733
27734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27735       conftest$ac_exeext conftest.$ac_ext
27736 LIBS=$ac_check_lib_save_LIBS
27737 fi
27738 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
27739 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
27740 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
27741
27742 cat >>confdefs.h <<\_ACEOF
27743 #define HAVE_XRENDER 1
27744 _ACEOF
27745 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
27746 else
27747   true
27748 fi
27749
27750
27751             { echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
27752 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
27753 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
27754   echo $ECHO_N "(cached) $ECHO_C" >&6
27755 else
27756   ac_check_lib_save_LIBS=$LIBS
27757 LIBS="-lXrandr ${X_LIBS} $LIBS"
27758 cat >conftest.$ac_ext <<_ACEOF
27759 /* confdefs.h.  */
27760 _ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h.  */
27764
27765 /* Override any GCC internal prototype to avoid an error.
27766    Use char because int might match the return type of a GCC
27767    builtin and then its argument prototype would still apply.  */
27768 #ifdef __cplusplus
27769 extern "C"
27770 #endif
27771 char XRRQueryExtension ();
27772 int
27773 main ()
27774 {
27775 return XRRQueryExtension ();
27776   ;
27777   return 0;
27778 }
27779 _ACEOF
27780 rm -f conftest.$ac_objext conftest$ac_exeext
27781 if { (ac_try="$ac_link"
27782 case "(($ac_try" in
27783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27784   *) ac_try_echo=$ac_try;;
27785 esac
27786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787   (eval "$ac_link") 2>conftest.er1
27788   ac_status=$?
27789   grep -v '^ *+' conftest.er1 >conftest.err
27790   rm -f conftest.er1
27791   cat conftest.err >&5
27792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793   (exit $ac_status); } && {
27794          test -z "$ac_c_werror_flag" ||
27795          test ! -s conftest.err
27796        } && test -s conftest$ac_exeext &&
27797        $as_test_x conftest$ac_exeext; then
27798   ac_cv_lib_Xrandr_XRRQueryExtension=yes
27799 else
27800   echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27802
27803         ac_cv_lib_Xrandr_XRRQueryExtension=no
27804 fi
27805
27806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27807       conftest$ac_exeext conftest.$ac_ext
27808 LIBS=$ac_check_lib_save_LIBS
27809 fi
27810 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
27811 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
27812 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
27813
27814 cat >>confdefs.h <<\_ACEOF
27815 #define HAVE_XRANDR 1
27816 _ACEOF
27817 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
27818 else
27819   true
27820 fi
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830   fi
27831
27832     if  test "x${COMPILE_GCONF_PEER}" = xyes; then
27833
27834   succeeded=no
27835
27836   if test -z "$PKG_CONFIG"; then
27837     # Extract the first word of "pkg-config", so it can be a program name with args.
27838 set dummy pkg-config; ac_word=$2
27839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27841 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27842   echo $ECHO_N "(cached) $ECHO_C" >&6
27843 else
27844   case $PKG_CONFIG in
27845   [\\/]* | ?:[\\/]*)
27846   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27847   ;;
27848   *)
27849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27850 for as_dir in $PATH
27851 do
27852   IFS=$as_save_IFS
27853   test -z "$as_dir" && as_dir=.
27854   for ac_exec_ext in '' $ac_executable_extensions; do
27855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27856     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27858     break 2
27859   fi
27860 done
27861 done
27862 IFS=$as_save_IFS
27863
27864   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27865   ;;
27866 esac
27867 fi
27868 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27869 if test -n "$PKG_CONFIG"; then
27870   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27871 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27872 else
27873   { echo "$as_me:$LINENO: result: no" >&5
27874 echo "${ECHO_T}no" >&6; }
27875 fi
27876
27877
27878   fi
27879
27880   if test "$PKG_CONFIG" = "no" ; then
27881      echo "*** The pkg-config script could not be found. Make sure it is"
27882      echo "*** in your path, or set the PKG_CONFIG environment variable"
27883      echo "*** to the full path to pkg-config."
27884      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27885   else
27886      PKG_CONFIG_MIN_VERSION=0.9.0
27887      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27888         { echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.6.0" >&5
27889 echo $ECHO_N "checking for gconf-2.0 >= 2.6.0... $ECHO_C" >&6; }
27890
27891         if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
27892             { echo "$as_me:$LINENO: result: yes" >&5
27893 echo "${ECHO_T}yes" >&6; }
27894             succeeded=yes
27895
27896             { echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
27897 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6; }
27898             GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
27899             { echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
27900 echo "${ECHO_T}$GCONF_CFLAGS" >&6; }
27901
27902             { echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
27903 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6; }
27904             GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
27905             { echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
27906 echo "${ECHO_T}$GCONF_LIBS" >&6; }
27907         else
27908             GCONF_CFLAGS=""
27909             GCONF_LIBS=""
27910             ## If we have a custom action on failure, don't print errors, but
27911             ## do set a variable so people can do so.
27912             GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
27913             echo $GCONF_PKG_ERRORS
27914         fi
27915
27916
27917
27918      else
27919         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27920         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27921      fi
27922   fi
27923
27924   if test $succeeded = yes; then
27925      :
27926   else
27927      { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
27928 echo "$as_me: error: Library requirements (gconf-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
27929    { (exit 1); exit 1; }; }
27930   fi
27931
27932
27933
27934
27935   succeeded=no
27936
27937   if test -z "$PKG_CONFIG"; then
27938     # Extract the first word of "pkg-config", so it can be a program name with args.
27939 set dummy pkg-config; ac_word=$2
27940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27942 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27943   echo $ECHO_N "(cached) $ECHO_C" >&6
27944 else
27945   case $PKG_CONFIG in
27946   [\\/]* | ?:[\\/]*)
27947   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27948   ;;
27949   *)
27950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27951 for as_dir in $PATH
27952 do
27953   IFS=$as_save_IFS
27954   test -z "$as_dir" && as_dir=.
27955   for ac_exec_ext in '' $ac_executable_extensions; do
27956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27957     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27959     break 2
27960   fi
27961 done
27962 done
27963 IFS=$as_save_IFS
27964
27965   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27966   ;;
27967 esac
27968 fi
27969 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27970 if test -n "$PKG_CONFIG"; then
27971   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27972 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27973 else
27974   { echo "$as_me:$LINENO: result: no" >&5
27975 echo "${ECHO_T}no" >&6; }
27976 fi
27977
27978
27979   fi
27980
27981   if test "$PKG_CONFIG" = "no" ; then
27982      echo "*** The pkg-config script could not be found. Make sure it is"
27983      echo "*** in your path, or set the PKG_CONFIG environment variable"
27984      echo "*** to the full path to pkg-config."
27985      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27986   else
27987      PKG_CONFIG_MIN_VERSION=0.9.0
27988      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27989         { echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
27990 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6; }
27991
27992         if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
27993             { echo "$as_me:$LINENO: result: yes" >&5
27994 echo "${ECHO_T}yes" >&6; }
27995             succeeded=yes
27996
27997             { echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
27998 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6; }
27999             GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
28000             { echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
28001 echo "${ECHO_T}$GDK_CFLAGS" >&6; }
28002
28003             { echo "$as_me:$LINENO: checking GDK_LIBS" >&5
28004 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6; }
28005             GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
28006             { echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
28007 echo "${ECHO_T}$GDK_LIBS" >&6; }
28008         else
28009             GDK_CFLAGS=""
28010             GDK_LIBS=""
28011             ## If we have a custom action on failure, don't print errors, but
28012             ## do set a variable so people can do so.
28013             GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
28014             echo $GDK_PKG_ERRORS
28015         fi
28016
28017
28018
28019      else
28020         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28021         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28022      fi
28023   fi
28024
28025   if test $succeeded = yes; then
28026      :
28027   else
28028      { { echo "$as_me:$LINENO: error: Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28029 echo "$as_me: error: Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28030    { (exit 1); exit 1; }; }
28031   fi
28032
28033
28034
28035                 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
28036     if test "$USE_GCONF_PREFS_PEER" = ""; then
28037       DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
28038     fi
28039   fi
28040
28041     if  test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
28042     GST_MAJORMINOR=0.10
28043     GST_REQUIRED=0.10.10
28044
28045
28046   succeeded=no
28047
28048   if test -z "$PKG_CONFIG"; then
28049     # Extract the first word of "pkg-config", so it can be a program name with args.
28050 set dummy pkg-config; ac_word=$2
28051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28054   echo $ECHO_N "(cached) $ECHO_C" >&6
28055 else
28056   case $PKG_CONFIG in
28057   [\\/]* | ?:[\\/]*)
28058   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28059   ;;
28060   *)
28061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28062 for as_dir in $PATH
28063 do
28064   IFS=$as_save_IFS
28065   test -z "$as_dir" && as_dir=.
28066   for ac_exec_ext in '' $ac_executable_extensions; do
28067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28068     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28070     break 2
28071   fi
28072 done
28073 done
28074 IFS=$as_save_IFS
28075
28076   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28077   ;;
28078 esac
28079 fi
28080 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28081 if test -n "$PKG_CONFIG"; then
28082   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28083 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28084 else
28085   { echo "$as_me:$LINENO: result: no" >&5
28086 echo "${ECHO_T}no" >&6; }
28087 fi
28088
28089
28090   fi
28091
28092   if test "$PKG_CONFIG" = "no" ; then
28093      echo "*** The pkg-config script could not be found. Make sure it is"
28094      echo "*** in your path, or set the PKG_CONFIG environment variable"
28095      echo "*** to the full path to pkg-config."
28096      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28097   else
28098      PKG_CONFIG_MIN_VERSION=0.9.0
28099      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28100         { echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
28101 echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6; }
28102
28103         if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
28104             { echo "$as_me:$LINENO: result: yes" >&5
28105 echo "${ECHO_T}yes" >&6; }
28106             succeeded=yes
28107
28108             { echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
28109 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6; }
28110             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
28111             { echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
28112 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6; }
28113
28114             { echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
28115 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6; }
28116             GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
28117             { echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
28118 echo "${ECHO_T}$GSTREAMER_LIBS" >&6; }
28119         else
28120             GSTREAMER_CFLAGS=""
28121             GSTREAMER_LIBS=""
28122             ## If we have a custom action on failure, don't print errors, but
28123             ## do set a variable so people can do so.
28124             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
28125             echo $GSTREAMER_PKG_ERRORS
28126         fi
28127
28128
28129
28130      else
28131         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28132         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28133      fi
28134   fi
28135
28136   if test $succeeded = yes; then
28137      :
28138   else
28139      { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28140 echo "$as_me: error: Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28141    { (exit 1); exit 1; }; }
28142   fi
28143
28144
28145
28146
28147
28148   succeeded=no
28149
28150   if test -z "$PKG_CONFIG"; then
28151     # Extract the first word of "pkg-config", so it can be a program name with args.
28152 set dummy pkg-config; ac_word=$2
28153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28155 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28156   echo $ECHO_N "(cached) $ECHO_C" >&6
28157 else
28158   case $PKG_CONFIG in
28159   [\\/]* | ?:[\\/]*)
28160   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28161   ;;
28162   *)
28163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28164 for as_dir in $PATH
28165 do
28166   IFS=$as_save_IFS
28167   test -z "$as_dir" && as_dir=.
28168   for ac_exec_ext in '' $ac_executable_extensions; do
28169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28170     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28172     break 2
28173   fi
28174 done
28175 done
28176 IFS=$as_save_IFS
28177
28178   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28179   ;;
28180 esac
28181 fi
28182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28183 if test -n "$PKG_CONFIG"; then
28184   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28185 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28186 else
28187   { echo "$as_me:$LINENO: result: no" >&5
28188 echo "${ECHO_T}no" >&6; }
28189 fi
28190
28191
28192   fi
28193
28194   if test "$PKG_CONFIG" = "no" ; then
28195      echo "*** The pkg-config script could not be found. Make sure it is"
28196      echo "*** in your path, or set the PKG_CONFIG environment variable"
28197      echo "*** to the full path to pkg-config."
28198      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28199   else
28200      PKG_CONFIG_MIN_VERSION=0.9.0
28201      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28202         { echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
28203 echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6; }
28204
28205         if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
28206             { echo "$as_me:$LINENO: result: yes" >&5
28207 echo "${ECHO_T}yes" >&6; }
28208             succeeded=yes
28209
28210             { echo "$as_me:$LINENO: checking GSTREAMER_BASE_CFLAGS" >&5
28211 echo $ECHO_N "checking GSTREAMER_BASE_CFLAGS... $ECHO_C" >&6; }
28212             GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
28213             { echo "$as_me:$LINENO: result: $GSTREAMER_BASE_CFLAGS" >&5
28214 echo "${ECHO_T}$GSTREAMER_BASE_CFLAGS" >&6; }
28215
28216             { echo "$as_me:$LINENO: checking GSTREAMER_BASE_LIBS" >&5
28217 echo $ECHO_N "checking GSTREAMER_BASE_LIBS... $ECHO_C" >&6; }
28218             GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
28219             { echo "$as_me:$LINENO: result: $GSTREAMER_BASE_LIBS" >&5
28220 echo "${ECHO_T}$GSTREAMER_BASE_LIBS" >&6; }
28221         else
28222             GSTREAMER_BASE_CFLAGS=""
28223             GSTREAMER_BASE_LIBS=""
28224             ## If we have a custom action on failure, don't print errors, but
28225             ## do set a variable so people can do so.
28226             GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
28227             echo $GSTREAMER_BASE_PKG_ERRORS
28228         fi
28229
28230
28231
28232      else
28233         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28234         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28235      fi
28236   fi
28237
28238   if test $succeeded = yes; then
28239      :
28240   else
28241      { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28242 echo "$as_me: error: Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28243    { (exit 1); exit 1; }; }
28244   fi
28245
28246
28247
28248
28249
28250   succeeded=no
28251
28252   if test -z "$PKG_CONFIG"; then
28253     # Extract the first word of "pkg-config", so it can be a program name with args.
28254 set dummy pkg-config; ac_word=$2
28255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28257 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28258   echo $ECHO_N "(cached) $ECHO_C" >&6
28259 else
28260   case $PKG_CONFIG in
28261   [\\/]* | ?:[\\/]*)
28262   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28263   ;;
28264   *)
28265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28266 for as_dir in $PATH
28267 do
28268   IFS=$as_save_IFS
28269   test -z "$as_dir" && as_dir=.
28270   for ac_exec_ext in '' $ac_executable_extensions; do
28271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28272     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28274     break 2
28275   fi
28276 done
28277 done
28278 IFS=$as_save_IFS
28279
28280   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28281   ;;
28282 esac
28283 fi
28284 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28285 if test -n "$PKG_CONFIG"; then
28286   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28287 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28288 else
28289   { echo "$as_me:$LINENO: result: no" >&5
28290 echo "${ECHO_T}no" >&6; }
28291 fi
28292
28293
28294   fi
28295
28296   if test "$PKG_CONFIG" = "no" ; then
28297      echo "*** The pkg-config script could not be found. Make sure it is"
28298      echo "*** in your path, or set the PKG_CONFIG environment variable"
28299      echo "*** to the full path to pkg-config."
28300      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28301   else
28302      PKG_CONFIG_MIN_VERSION=0.9.0
28303      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28304         { echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
28305 echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6; }
28306
28307         if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
28308             { echo "$as_me:$LINENO: result: yes" >&5
28309 echo "${ECHO_T}yes" >&6; }
28310             succeeded=yes
28311
28312             { echo "$as_me:$LINENO: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
28313 echo $ECHO_N "checking GSTREAMER_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6; }
28314             GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
28315             { echo "$as_me:$LINENO: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
28316 echo "${ECHO_T}$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
28317
28318             { echo "$as_me:$LINENO: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
28319 echo $ECHO_N "checking GSTREAMER_PLUGINS_BASE_LIBS... $ECHO_C" >&6; }
28320             GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
28321             { echo "$as_me:$LINENO: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
28322 echo "${ECHO_T}$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
28323         else
28324             GSTREAMER_PLUGINS_BASE_CFLAGS=""
28325             GSTREAMER_PLUGINS_BASE_LIBS=""
28326             ## If we have a custom action on failure, don't print errors, but
28327             ## do set a variable so people can do so.
28328             GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
28329             echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
28330         fi
28331
28332
28333
28334      else
28335         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28336         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28337      fi
28338   fi
28339
28340   if test $succeeded = yes; then
28341      :
28342   else
28343      { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28344 echo "$as_me: error: Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28345    { (exit 1); exit 1; }; }
28346   fi
28347
28348
28349
28350
28351         GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
28352
28353
28354
28355   succeeded=no
28356
28357   if test -z "$PKG_CONFIG"; then
28358     # Extract the first word of "pkg-config", so it can be a program name with args.
28359 set dummy pkg-config; ac_word=$2
28360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28362 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28363   echo $ECHO_N "(cached) $ECHO_C" >&6
28364 else
28365   case $PKG_CONFIG in
28366   [\\/]* | ?:[\\/]*)
28367   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28368   ;;
28369   *)
28370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28371 for as_dir in $PATH
28372 do
28373   IFS=$as_save_IFS
28374   test -z "$as_dir" && as_dir=.
28375   for ac_exec_ext in '' $ac_executable_extensions; do
28376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28377     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28379     break 2
28380   fi
28381 done
28382 done
28383 IFS=$as_save_IFS
28384
28385   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28386   ;;
28387 esac
28388 fi
28389 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28390 if test -n "$PKG_CONFIG"; then
28391   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28392 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28393 else
28394   { echo "$as_me:$LINENO: result: no" >&5
28395 echo "${ECHO_T}no" >&6; }
28396 fi
28397
28398
28399   fi
28400
28401   if test "$PKG_CONFIG" = "no" ; then
28402      echo "*** The pkg-config script could not be found. Make sure it is"
28403      echo "*** in your path, or set the PKG_CONFIG environment variable"
28404      echo "*** to the full path to pkg-config."
28405      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28406   else
28407      PKG_CONFIG_MIN_VERSION=0.9.0
28408      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28409         { echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
28410 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6; }
28411
28412         if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
28413             { echo "$as_me:$LINENO: result: yes" >&5
28414 echo "${ECHO_T}yes" >&6; }
28415             succeeded=yes
28416
28417             { echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
28418 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6; }
28419             GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
28420             { echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
28421 echo "${ECHO_T}$GDK_CFLAGS" >&6; }
28422
28423             { echo "$as_me:$LINENO: checking GDK_LIBS" >&5
28424 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6; }
28425             GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
28426             { echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
28427 echo "${ECHO_T}$GDK_LIBS" >&6; }
28428         else
28429             GDK_CFLAGS=""
28430             GDK_LIBS=""
28431             ## If we have a custom action on failure, don't print errors, but
28432             ## do set a variable so people can do so.
28433             GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
28434             echo $GDK_PKG_ERRORS
28435         fi
28436
28437
28438
28439      else
28440         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28441         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28442      fi
28443   fi
28444
28445   if test $succeeded = yes; then
28446      :
28447   else
28448      { { echo "$as_me:$LINENO: error: Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28449 echo "$as_me: error: Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28450    { (exit 1); exit 1; }; }
28451   fi
28452
28453
28454
28455
28456                 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
28457         GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
28458   fi
28459
28460
28461
28462     if test "x${COMPILE_QT_PEER}" = xyes; then
28463
28464   succeeded=no
28465
28466   if test -z "$PKG_CONFIG"; then
28467     # Extract the first word of "pkg-config", so it can be a program name with args.
28468 set dummy pkg-config; ac_word=$2
28469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28472   echo $ECHO_N "(cached) $ECHO_C" >&6
28473 else
28474   case $PKG_CONFIG in
28475   [\\/]* | ?:[\\/]*)
28476   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28477   ;;
28478   *)
28479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28480 for as_dir in $PATH
28481 do
28482   IFS=$as_save_IFS
28483   test -z "$as_dir" && as_dir=.
28484   for ac_exec_ext in '' $ac_executable_extensions; do
28485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28486     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28488     break 2
28489   fi
28490 done
28491 done
28492 IFS=$as_save_IFS
28493
28494   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28495   ;;
28496 esac
28497 fi
28498 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28499 if test -n "$PKG_CONFIG"; then
28500   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28501 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28502 else
28503   { echo "$as_me:$LINENO: result: no" >&5
28504 echo "${ECHO_T}no" >&6; }
28505 fi
28506
28507
28508   fi
28509
28510   if test "$PKG_CONFIG" = "no" ; then
28511      echo "*** The pkg-config script could not be found. Make sure it is"
28512      echo "*** in your path, or set the PKG_CONFIG environment variable"
28513      echo "*** to the full path to pkg-config."
28514      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28515   else
28516      PKG_CONFIG_MIN_VERSION=0.9.0
28517      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28518         { echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
28519 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6; }
28520
28521         if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
28522             { echo "$as_me:$LINENO: result: yes" >&5
28523 echo "${ECHO_T}yes" >&6; }
28524             succeeded=yes
28525
28526             { echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
28527 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6; }
28528             QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
28529             { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
28530 echo "${ECHO_T}$QT_CFLAGS" >&6; }
28531
28532             { echo "$as_me:$LINENO: checking QT_LIBS" >&5
28533 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6; }
28534             QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
28535             { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
28536 echo "${ECHO_T}$QT_LIBS" >&6; }
28537         else
28538             QT_CFLAGS=""
28539             QT_LIBS=""
28540             ## If we have a custom action on failure, don't print errors, but
28541             ## do set a variable so people can do so.
28542             QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
28543
28544         fi
28545
28546
28547
28548      else
28549         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28550         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28551      fi
28552   fi
28553
28554   if test $succeeded = yes; then
28555      HAVE_QT4="yes"
28556   else
28557      HAVE_QT4="no"
28558   fi
28559
28560     if test "x$HAVE_QT4" = "xyes"; then
28561                   QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
28562       EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
28563       as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
28564 { echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
28565 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6; }
28566 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
28567   echo $ECHO_N "(cached) $ECHO_C" >&6
28568 else
28569   test "$cross_compiling" = yes &&
28570   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28571 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28572    { (exit 1); exit 1; }; }
28573 if test -r "$QT_INCLUDE_DIR/QWidget"; then
28574   eval "$as_ac_File=yes"
28575 else
28576   eval "$as_ac_File=no"
28577 fi
28578 fi
28579 ac_res=`eval echo '${'$as_ac_File'}'`
28580                { echo "$as_me:$LINENO: result: $ac_res" >&5
28581 echo "${ECHO_T}$ac_res" >&6; }
28582 if test `eval echo '${'$as_ac_File'}'` = yes; then
28583   { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
28584 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
28585 else
28586   as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
28587 { echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
28588 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6; }
28589 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
28590   echo $ECHO_N "(cached) $ECHO_C" >&6
28591 else
28592   test "$cross_compiling" = yes &&
28593   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28594 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28595    { (exit 1); exit 1; }; }
28596 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
28597   eval "$as_ac_File=yes"
28598 else
28599   eval "$as_ac_File=no"
28600 fi
28601 fi
28602 ac_res=`eval echo '${'$as_ac_File'}'`
28603                { echo "$as_me:$LINENO: result: $ac_res" >&5
28604 echo "${ECHO_T}$ac_res" >&6; }
28605 if test `eval echo '${'$as_ac_File'}'` = yes; then
28606   QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
28607 else
28608   { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
28609 echo "$as_me: WARNING: QWidget not found" >&2;}
28610 fi
28611
28612 fi
28613
28614         # Extract the first word of "moc", so it can be a program name with args.
28615 set dummy moc; ac_word=$2
28616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28618 if test "${ac_cv_prog_MOC+set}" = set; then
28619   echo $ECHO_N "(cached) $ECHO_C" >&6
28620 else
28621   if test -n "$MOC"; then
28622   ac_cv_prog_MOC="$MOC" # Let the user override the test.
28623 else
28624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28625 for as_dir in $PATH
28626 do
28627   IFS=$as_save_IFS
28628   test -z "$as_dir" && as_dir=.
28629   for ac_exec_ext in '' $ac_executable_extensions; do
28630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28631     ac_cv_prog_MOC="moc"
28632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28633     break 2
28634   fi
28635 done
28636 done
28637 IFS=$as_save_IFS
28638
28639 fi
28640 fi
28641 MOC=$ac_cv_prog_MOC
28642 if test -n "$MOC"; then
28643   { echo "$as_me:$LINENO: result: $MOC" >&5
28644 echo "${ECHO_T}$MOC" >&6; }
28645 else
28646   { echo "$as_me:$LINENO: result: no" >&5
28647 echo "${ECHO_T}no" >&6; }
28648 fi
28649
28650
28651         # Extract the first word of "moc-qt4", so it can be a program name with args.
28652 set dummy moc-qt4; ac_word=$2
28653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28655 if test "${ac_cv_prog_MOC+set}" = set; then
28656   echo $ECHO_N "(cached) $ECHO_C" >&6
28657 else
28658   if test -n "$MOC"; then
28659   ac_cv_prog_MOC="$MOC" # Let the user override the test.
28660 else
28661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28662 for as_dir in $PATH
28663 do
28664   IFS=$as_save_IFS
28665   test -z "$as_dir" && as_dir=.
28666   for ac_exec_ext in '' $ac_executable_extensions; do
28667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28668     ac_cv_prog_MOC="moc-qt4"
28669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28670     break 2
28671   fi
28672 done
28673 done
28674 IFS=$as_save_IFS
28675
28676 fi
28677 fi
28678 MOC=$ac_cv_prog_MOC
28679 if test -n "$MOC"; then
28680   { echo "$as_me:$LINENO: result: $MOC" >&5
28681 echo "${ECHO_T}$MOC" >&6; }
28682 else
28683   { echo "$as_me:$LINENO: result: no" >&5
28684 echo "${ECHO_T}no" >&6; }
28685 fi
28686
28687
28688     fi
28689     if test "x$HAVE_QT4" = "xno"; then
28690       { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
28691 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
28692       case "$host_os" in
28693         darwin*)
28694
28695 # Check whether --with-qt4dir was given.
28696 if test "${with_qt4dir+set}" = set; then
28697   withval=$with_qt4dir; QT4DIR=$withval
28698
28699 fi
28700
28701           if test x"$QT4DIR" = x ; then
28702             { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
28703 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
28704    { (exit 1); exit 1; }; }
28705           fi
28706           { echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
28707 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6; }
28708           # Extract the first word of "moc", so it can be a program name with args.
28709 set dummy moc; ac_word=$2
28710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28712 if test "${ac_cv_prog_MOC+set}" = set; then
28713   echo $ECHO_N "(cached) $ECHO_C" >&6
28714 else
28715   if test -n "$MOC"; then
28716   ac_cv_prog_MOC="$MOC" # Let the user override the test.
28717 else
28718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28719 for as_dir in $QT4DIR/bin
28720 do
28721   IFS=$as_save_IFS
28722   test -z "$as_dir" && as_dir=.
28723   for ac_exec_ext in '' $ac_executable_extensions; do
28724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28725     ac_cv_prog_MOC="$QT4DIR/bin/moc"
28726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28727     break 2
28728   fi
28729 done
28730 done
28731 IFS=$as_save_IFS
28732
28733 fi
28734 fi
28735 MOC=$ac_cv_prog_MOC
28736 if test -n "$MOC"; then
28737   { echo "$as_me:$LINENO: result: $MOC" >&5
28738 echo "${ECHO_T}$MOC" >&6; }
28739 else
28740   { echo "$as_me:$LINENO: result: no" >&5
28741 echo "${ECHO_T}no" >&6; }
28742 fi
28743
28744
28745           if test x"$MOC" = x; then
28746             { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
28747 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
28748    { (exit 1); exit 1; }; }
28749           fi
28750           QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
28751           QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
28752           QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
28753           QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
28754           ;;
28755         *)
28756           { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
28757           of your installed Qt4 installation." >&5
28758 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
28759           of your installed Qt4 installation." >&2;}
28760    { (exit 1); exit 1; }; }
28761           ;;
28762       esac
28763     fi
28764     { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
28765 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
28766
28767
28768   fi
28769         { echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
28770 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6; }
28771   cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h.  */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h.  */
28777 #include <sys/socket.h>
28778 int
28779 main ()
28780 {
28781  int f = MSG_NOSIGNAL;
28782   ;
28783   return 0;
28784 }
28785 _ACEOF
28786 rm -f conftest.$ac_objext
28787 if { (ac_try="$ac_compile"
28788 case "(($ac_try" in
28789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790   *) ac_try_echo=$ac_try;;
28791 esac
28792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793   (eval "$ac_compile") 2>conftest.er1
28794   ac_status=$?
28795   grep -v '^ *+' conftest.er1 >conftest.err
28796   rm -f conftest.er1
28797   cat conftest.err >&5
28798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799   (exit $ac_status); } && {
28800          test -z "$ac_c_werror_flag" ||
28801          test ! -s conftest.err
28802        } && test -s conftest.$ac_objext; then
28803    { echo "$as_me:$LINENO: result: yes" >&5
28804 echo "${ECHO_T}yes" >&6; }
28805
28806 cat >>confdefs.h <<\_ACEOF
28807 #define HAVE_MSG_NOSIGNAL 1
28808 _ACEOF
28809
28810 else
28811   echo "$as_me: failed program was:" >&5
28812 sed 's/^/| /' conftest.$ac_ext >&5
28813
28814          { echo "$as_me:$LINENO: result: no" >&5
28815 echo "${ECHO_T}no" >&6; }
28816
28817 fi
28818
28819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28820     { echo "$as_me:$LINENO: checking for SO_NOSIGPIPE " >&5
28821 echo $ECHO_N "checking for SO_NOSIGPIPE ... $ECHO_C" >&6; }
28822  cat >conftest.$ac_ext <<_ACEOF
28823 /* confdefs.h.  */
28824 _ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h.  */
28828 #include <sys/socket.h>
28829 int
28830 main ()
28831 {
28832  int f = SO_NOSIGPIPE;
28833   ;
28834   return 0;
28835 }
28836 _ACEOF
28837 rm -f conftest.$ac_objext
28838 if { (ac_try="$ac_compile"
28839 case "(($ac_try" in
28840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28841   *) ac_try_echo=$ac_try;;
28842 esac
28843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28844   (eval "$ac_compile") 2>conftest.er1
28845   ac_status=$?
28846   grep -v '^ *+' conftest.er1 >conftest.err
28847   rm -f conftest.er1
28848   cat conftest.err >&5
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); } && {
28851          test -z "$ac_c_werror_flag" ||
28852          test ! -s conftest.err
28853        } && test -s conftest.$ac_objext; then
28854    { echo "$as_me:$LINENO: result: yes" >&5
28855 echo "${ECHO_T}yes" >&6; }
28856
28857 cat >>confdefs.h <<\_ACEOF
28858 #define HAVE_SO_NOSIGPIPE 1
28859 _ACEOF
28860
28861 else
28862   echo "$as_me: failed program was:" >&5
28863 sed 's/^/| /' conftest.$ac_ext >&5
28864
28865          { echo "$as_me:$LINENO: result: no" >&5
28866 echo "${ECHO_T}no" >&6; }
28867
28868 fi
28869
28870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28871         { echo "$as_me:$LINENO: checking for MSG_WAITALL" >&5
28872 echo $ECHO_N "checking for MSG_WAITALL... $ECHO_C" >&6; }
28873   cat >conftest.$ac_ext <<_ACEOF
28874 /* confdefs.h.  */
28875 _ACEOF
28876 cat confdefs.h >>conftest.$ac_ext
28877 cat >>conftest.$ac_ext <<_ACEOF
28878 /* end confdefs.h.  */
28879 #include <sys/socket.h>
28880 int
28881 main ()
28882 {
28883  int f = MSG_WAITALL;
28884   ;
28885   return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest.$ac_objext
28889 if { (ac_try="$ac_compile"
28890 case "(($ac_try" in
28891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28892   *) ac_try_echo=$ac_try;;
28893 esac
28894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28895   (eval "$ac_compile") 2>conftest.er1
28896   ac_status=$?
28897   grep -v '^ *+' conftest.er1 >conftest.err
28898   rm -f conftest.er1
28899   cat conftest.err >&5
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); } && {
28902          test -z "$ac_c_werror_flag" ||
28903          test ! -s conftest.err
28904        } && test -s conftest.$ac_objext; then
28905    { echo "$as_me:$LINENO: result: yes" >&5
28906 echo "${ECHO_T}yes" >&6; }
28907
28908 cat >>confdefs.h <<\_ACEOF
28909 #define HAVE_MSG_WAITALL 1
28910 _ACEOF
28911
28912 else
28913   echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28915
28916          { echo "$as_me:$LINENO: result: no" >&5
28917 echo "${ECHO_T}no" >&6; }
28918
28919 fi
28920
28921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28922
28923     if test "x${COMPILE_PLUGIN}" = xyes; then
28924
28925   succeeded=no
28926
28927   if test -z "$PKG_CONFIG"; then
28928     # Extract the first word of "pkg-config", so it can be a program name with args.
28929 set dummy pkg-config; ac_word=$2
28930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28933   echo $ECHO_N "(cached) $ECHO_C" >&6
28934 else
28935   case $PKG_CONFIG in
28936   [\\/]* | ?:[\\/]*)
28937   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28938   ;;
28939   *)
28940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28941 for as_dir in $PATH
28942 do
28943   IFS=$as_save_IFS
28944   test -z "$as_dir" && as_dir=.
28945   for ac_exec_ext in '' $ac_executable_extensions; do
28946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28947     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28949     break 2
28950   fi
28951 done
28952 done
28953 IFS=$as_save_IFS
28954
28955   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28956   ;;
28957 esac
28958 fi
28959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28960 if test -n "$PKG_CONFIG"; then
28961   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28962 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28963 else
28964   { echo "$as_me:$LINENO: result: no" >&5
28965 echo "${ECHO_T}no" >&6; }
28966 fi
28967
28968
28969   fi
28970
28971   if test "$PKG_CONFIG" = "no" ; then
28972      echo "*** The pkg-config script could not be found. Make sure it is"
28973      echo "*** in your path, or set the PKG_CONFIG environment variable"
28974      echo "*** to the full path to pkg-config."
28975      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28976   else
28977      PKG_CONFIG_MIN_VERSION=0.9.0
28978      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28979         { echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
28980 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6; }
28981
28982         if $PKG_CONFIG --exists "mozilla-plugin" ; then
28983             { echo "$as_me:$LINENO: result: yes" >&5
28984 echo "${ECHO_T}yes" >&6; }
28985             succeeded=yes
28986
28987             { echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
28988 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6; }
28989             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
28990             { echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
28991 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6; }
28992
28993             { echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
28994 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6; }
28995             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
28996             { echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
28997 echo "${ECHO_T}$MOZILLA_LIBS" >&6; }
28998         else
28999             MOZILLA_CFLAGS=""
29000             MOZILLA_LIBS=""
29001             ## If we have a custom action on failure, don't print errors, but
29002             ## do set a variable so people can do so.
29003             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
29004
29005         fi
29006
29007
29008
29009      else
29010         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29011         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29012      fi
29013   fi
29014
29015   if test $succeeded = yes; then
29016      MOZILLA_FOUND=yes
29017   else
29018      MOZILLA_FOUND=no
29019   fi
29020
29021     if test "x${MOZILLA_FOUND}" = xno; then
29022
29023   succeeded=no
29024
29025   if test -z "$PKG_CONFIG"; then
29026     # Extract the first word of "pkg-config", so it can be a program name with args.
29027 set dummy pkg-config; ac_word=$2
29028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29030 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29031   echo $ECHO_N "(cached) $ECHO_C" >&6
29032 else
29033   case $PKG_CONFIG in
29034   [\\/]* | ?:[\\/]*)
29035   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29036   ;;
29037   *)
29038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29039 for as_dir in $PATH
29040 do
29041   IFS=$as_save_IFS
29042   test -z "$as_dir" && as_dir=.
29043   for ac_exec_ext in '' $ac_executable_extensions; do
29044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29045     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29047     break 2
29048   fi
29049 done
29050 done
29051 IFS=$as_save_IFS
29052
29053   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29054   ;;
29055 esac
29056 fi
29057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29058 if test -n "$PKG_CONFIG"; then
29059   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29060 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29061 else
29062   { echo "$as_me:$LINENO: result: no" >&5
29063 echo "${ECHO_T}no" >&6; }
29064 fi
29065
29066
29067   fi
29068
29069   if test "$PKG_CONFIG" = "no" ; then
29070      echo "*** The pkg-config script could not be found. Make sure it is"
29071      echo "*** in your path, or set the PKG_CONFIG environment variable"
29072      echo "*** to the full path to pkg-config."
29073      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29074   else
29075      PKG_CONFIG_MIN_VERSION=0.9.0
29076      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29077         { echo "$as_me:$LINENO: checking for firefox-plugin firefox-xpcom" >&5
29078 echo $ECHO_N "checking for firefox-plugin firefox-xpcom... $ECHO_C" >&6; }
29079
29080         if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
29081             { echo "$as_me:$LINENO: result: yes" >&5
29082 echo "${ECHO_T}yes" >&6; }
29083             succeeded=yes
29084
29085             { echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
29086 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6; }
29087             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
29088             { echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
29089 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6; }
29090
29091             { echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
29092 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6; }
29093             MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
29094             { echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
29095 echo "${ECHO_T}$MOZILLA_LIBS" >&6; }
29096         else
29097             MOZILLA_CFLAGS=""
29098             MOZILLA_LIBS=""
29099             ## If we have a custom action on failure, don't print errors, but
29100             ## do set a variable so people can do so.
29101             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
29102
29103         fi
29104
29105
29106
29107      else
29108         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29109         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29110      fi
29111   fi
29112
29113   if test $succeeded = yes; then
29114      MOZILLA_FOUND=yes
29115   else
29116      MOZILLA_FOUND=no
29117   fi
29118
29119     fi
29120     if test "x${MOZILLA_FOUND}" = xno; then
29121
29122   succeeded=no
29123
29124   if test -z "$PKG_CONFIG"; then
29125     # Extract the first word of "pkg-config", so it can be a program name with args.
29126 set dummy pkg-config; ac_word=$2
29127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29130   echo $ECHO_N "(cached) $ECHO_C" >&6
29131 else
29132   case $PKG_CONFIG in
29133   [\\/]* | ?:[\\/]*)
29134   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29135   ;;
29136   *)
29137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29138 for as_dir in $PATH
29139 do
29140   IFS=$as_save_IFS
29141   test -z "$as_dir" && as_dir=.
29142   for ac_exec_ext in '' $ac_executable_extensions; do
29143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29144     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29146     break 2
29147   fi
29148 done
29149 done
29150 IFS=$as_save_IFS
29151
29152   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29153   ;;
29154 esac
29155 fi
29156 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29157 if test -n "$PKG_CONFIG"; then
29158   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29159 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29160 else
29161   { echo "$as_me:$LINENO: result: no" >&5
29162 echo "${ECHO_T}no" >&6; }
29163 fi
29164
29165
29166   fi
29167
29168   if test "$PKG_CONFIG" = "no" ; then
29169      echo "*** The pkg-config script could not be found. Make sure it is"
29170      echo "*** in your path, or set the PKG_CONFIG environment variable"
29171      echo "*** to the full path to pkg-config."
29172      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29173   else
29174      PKG_CONFIG_MIN_VERSION=0.9.0
29175      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29176         { echo "$as_me:$LINENO: checking for xulrunner-plugin xulrunner-xpcom" >&5
29177 echo $ECHO_N "checking for xulrunner-plugin xulrunner-xpcom... $ECHO_C" >&6; }
29178
29179         if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
29180             { echo "$as_me:$LINENO: result: yes" >&5
29181 echo "${ECHO_T}yes" >&6; }
29182             succeeded=yes
29183
29184             { echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
29185 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6; }
29186             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
29187             { echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
29188 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6; }
29189
29190             { echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
29191 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6; }
29192             MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
29193             { echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
29194 echo "${ECHO_T}$MOZILLA_LIBS" >&6; }
29195         else
29196             MOZILLA_CFLAGS=""
29197             MOZILLA_LIBS=""
29198             ## If we have a custom action on failure, don't print errors, but
29199             ## do set a variable so people can do so.
29200             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
29201
29202         fi
29203
29204
29205
29206      else
29207         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29208         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29209      fi
29210   fi
29211
29212   if test $succeeded = yes; then
29213      MOZILLA_FOUND=yes
29214   else
29215      MOZILLA_FOUND=no
29216   fi
29217
29218     fi
29219     if test "x${MOZILLA_FOUND}" = xno; then
29220
29221   succeeded=no
29222
29223   if test -z "$PKG_CONFIG"; then
29224     # Extract the first word of "pkg-config", so it can be a program name with args.
29225 set dummy pkg-config; ac_word=$2
29226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29228 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29229   echo $ECHO_N "(cached) $ECHO_C" >&6
29230 else
29231   case $PKG_CONFIG in
29232   [\\/]* | ?:[\\/]*)
29233   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29234   ;;
29235   *)
29236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29237 for as_dir in $PATH
29238 do
29239   IFS=$as_save_IFS
29240   test -z "$as_dir" && as_dir=.
29241   for ac_exec_ext in '' $ac_executable_extensions; do
29242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29243     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29245     break 2
29246   fi
29247 done
29248 done
29249 IFS=$as_save_IFS
29250
29251   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29252   ;;
29253 esac
29254 fi
29255 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29256 if test -n "$PKG_CONFIG"; then
29257   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29258 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29259 else
29260   { echo "$as_me:$LINENO: result: no" >&5
29261 echo "${ECHO_T}no" >&6; }
29262 fi
29263
29264
29265   fi
29266
29267   if test "$PKG_CONFIG" = "no" ; then
29268      echo "*** The pkg-config script could not be found. Make sure it is"
29269      echo "*** in your path, or set the PKG_CONFIG environment variable"
29270      echo "*** to the full path to pkg-config."
29271      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29272   else
29273      PKG_CONFIG_MIN_VERSION=0.9.0
29274      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29275         { echo "$as_me:$LINENO: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
29276 echo $ECHO_N "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... $ECHO_C" >&6; }
29277
29278         if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
29279             { echo "$as_me:$LINENO: result: yes" >&5
29280 echo "${ECHO_T}yes" >&6; }
29281             succeeded=yes
29282
29283             { echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
29284 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6; }
29285             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
29286             { echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
29287 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6; }
29288
29289             { echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
29290 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6; }
29291             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
29292             { echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
29293 echo "${ECHO_T}$MOZILLA_LIBS" >&6; }
29294         else
29295             MOZILLA_CFLAGS=""
29296             MOZILLA_LIBS=""
29297             ## If we have a custom action on failure, don't print errors, but
29298             ## do set a variable so people can do so.
29299             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
29300
29301         fi
29302
29303
29304
29305      else
29306         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29307         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29308      fi
29309   fi
29310
29311   if test $succeeded = yes; then
29312      MOZILLA_FOUND=yes
29313   else
29314      MOZILLA_FOUND=no
29315   fi
29316
29317     fi
29318     if test "x${MOZILLA_FOUND}" = xno; then
29319
29320   succeeded=no
29321
29322   if test -z "$PKG_CONFIG"; then
29323     # Extract the first word of "pkg-config", so it can be a program name with args.
29324 set dummy pkg-config; ac_word=$2
29325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29327 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29328   echo $ECHO_N "(cached) $ECHO_C" >&6
29329 else
29330   case $PKG_CONFIG in
29331   [\\/]* | ?:[\\/]*)
29332   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29333   ;;
29334   *)
29335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29336 for as_dir in $PATH
29337 do
29338   IFS=$as_save_IFS
29339   test -z "$as_dir" && as_dir=.
29340   for ac_exec_ext in '' $ac_executable_extensions; do
29341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29342     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29344     break 2
29345   fi
29346 done
29347 done
29348 IFS=$as_save_IFS
29349
29350   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29351   ;;
29352 esac
29353 fi
29354 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29355 if test -n "$PKG_CONFIG"; then
29356   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29357 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29358 else
29359   { echo "$as_me:$LINENO: result: no" >&5
29360 echo "${ECHO_T}no" >&6; }
29361 fi
29362
29363
29364   fi
29365
29366   if test "$PKG_CONFIG" = "no" ; then
29367      echo "*** The pkg-config script could not be found. Make sure it is"
29368      echo "*** in your path, or set the PKG_CONFIG environment variable"
29369      echo "*** to the full path to pkg-config."
29370      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29371   else
29372      PKG_CONFIG_MIN_VERSION=0.9.0
29373      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29374         { echo "$as_me:$LINENO: checking for seamonkey-plugin seamonkey-xpcom" >&5
29375 echo $ECHO_N "checking for seamonkey-plugin seamonkey-xpcom... $ECHO_C" >&6; }
29376
29377         if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
29378             { echo "$as_me:$LINENO: result: yes" >&5
29379 echo "${ECHO_T}yes" >&6; }
29380             succeeded=yes
29381
29382             { echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
29383 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6; }
29384             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
29385             { echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
29386 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6; }
29387
29388             { echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
29389 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6; }
29390             MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
29391             { echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
29392 echo "${ECHO_T}$MOZILLA_LIBS" >&6; }
29393         else
29394             MOZILLA_CFLAGS=""
29395             MOZILLA_LIBS=""
29396             ## If we have a custom action on failure, don't print errors, but
29397             ## do set a variable so people can do so.
29398             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
29399
29400         fi
29401
29402
29403
29404      else
29405         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29406         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29407      fi
29408   fi
29409
29410   if test $succeeded = yes; then
29411      MOZILLA_FOUND=yes
29412   else
29413      MOZILLA_FOUND=no
29414   fi
29415
29416     fi
29417     if test "x${MOZILLA_FOUND}" = xno; then
29418
29419   succeeded=no
29420
29421   if test -z "$PKG_CONFIG"; then
29422     # Extract the first word of "pkg-config", so it can be a program name with args.
29423 set dummy pkg-config; ac_word=$2
29424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29427   echo $ECHO_N "(cached) $ECHO_C" >&6
29428 else
29429   case $PKG_CONFIG in
29430   [\\/]* | ?:[\\/]*)
29431   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29432   ;;
29433   *)
29434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29435 for as_dir in $PATH
29436 do
29437   IFS=$as_save_IFS
29438   test -z "$as_dir" && as_dir=.
29439   for ac_exec_ext in '' $ac_executable_extensions; do
29440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29441     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29443     break 2
29444   fi
29445 done
29446 done
29447 IFS=$as_save_IFS
29448
29449   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29450   ;;
29451 esac
29452 fi
29453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29454 if test -n "$PKG_CONFIG"; then
29455   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29456 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29457 else
29458   { echo "$as_me:$LINENO: result: no" >&5
29459 echo "${ECHO_T}no" >&6; }
29460 fi
29461
29462
29463   fi
29464
29465   if test "$PKG_CONFIG" = "no" ; then
29466      echo "*** The pkg-config script could not be found. Make sure it is"
29467      echo "*** in your path, or set the PKG_CONFIG environment variable"
29468      echo "*** to the full path to pkg-config."
29469      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29470   else
29471      PKG_CONFIG_MIN_VERSION=0.9.0
29472      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29473         { echo "$as_me:$LINENO: checking for iceape-plugin iceape-xpcom" >&5
29474 echo $ECHO_N "checking for iceape-plugin iceape-xpcom... $ECHO_C" >&6; }
29475
29476         if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
29477             { echo "$as_me:$LINENO: result: yes" >&5
29478 echo "${ECHO_T}yes" >&6; }
29479             succeeded=yes
29480
29481             { echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
29482 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6; }
29483             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
29484             { echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
29485 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6; }
29486
29487             { echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
29488 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6; }
29489             MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
29490             { echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
29491 echo "${ECHO_T}$MOZILLA_LIBS" >&6; }
29492         else
29493             MOZILLA_CFLAGS=""
29494             MOZILLA_LIBS=""
29495             ## If we have a custom action on failure, don't print errors, but
29496             ## do set a variable so people can do so.
29497             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
29498
29499         fi
29500
29501
29502
29503      else
29504         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29505         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29506      fi
29507   fi
29508
29509   if test $succeeded = yes; then
29510      MOZILLA_FOUND=yes
29511   else
29512      MOZILLA_FOUND=no
29513   fi
29514
29515     fi
29516     if test "x${MOZILLA_FOUND}" = xno; then
29517       { { echo "$as_me:$LINENO: error: Couldn't find plugin support headers and libraries, try --disable-plugin" >&5
29518 echo "$as_me: error: Couldn't find plugin support headers and libraries, try --disable-plugin" >&2;}
29519    { (exit 1); exit 1; }; }
29520     fi
29521
29522
29523   succeeded=no
29524
29525   if test -z "$PKG_CONFIG"; then
29526     # Extract the first word of "pkg-config", so it can be a program name with args.
29527 set dummy pkg-config; ac_word=$2
29528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29530 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29531   echo $ECHO_N "(cached) $ECHO_C" >&6
29532 else
29533   case $PKG_CONFIG in
29534   [\\/]* | ?:[\\/]*)
29535   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29536   ;;
29537   *)
29538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29539 for as_dir in $PATH
29540 do
29541   IFS=$as_save_IFS
29542   test -z "$as_dir" && as_dir=.
29543   for ac_exec_ext in '' $ac_executable_extensions; do
29544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29545     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29547     break 2
29548   fi
29549 done
29550 done
29551 IFS=$as_save_IFS
29552
29553   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29554   ;;
29555 esac
29556 fi
29557 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29558 if test -n "$PKG_CONFIG"; then
29559   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29560 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29561 else
29562   { echo "$as_me:$LINENO: result: no" >&5
29563 echo "${ECHO_T}no" >&6; }
29564 fi
29565
29566
29567   fi
29568
29569   if test "$PKG_CONFIG" = "no" ; then
29570      echo "*** The pkg-config script could not be found. Make sure it is"
29571      echo "*** in your path, or set the PKG_CONFIG environment variable"
29572      echo "*** to the full path to pkg-config."
29573      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29574   else
29575      PKG_CONFIG_MIN_VERSION=0.9.0
29576      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29577         { echo "$as_me:$LINENO: checking for glib-2.0" >&5
29578 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6; }
29579
29580         if $PKG_CONFIG --exists "glib-2.0" ; then
29581             { echo "$as_me:$LINENO: result: yes" >&5
29582 echo "${ECHO_T}yes" >&6; }
29583             succeeded=yes
29584
29585             { echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
29586 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6; }
29587             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
29588             { echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
29589 echo "${ECHO_T}$GLIB_CFLAGS" >&6; }
29590
29591             { echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
29592 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6; }
29593             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
29594             { echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
29595 echo "${ECHO_T}$GLIB_LIBS" >&6; }
29596         else
29597             GLIB_CFLAGS=""
29598             GLIB_LIBS=""
29599             ## If we have a custom action on failure, don't print errors, but
29600             ## do set a variable so people can do so.
29601             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
29602             echo $GLIB_PKG_ERRORS
29603         fi
29604
29605
29606
29607      else
29608         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29609         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29610      fi
29611   fi
29612
29613   if test $succeeded = yes; then
29614      :
29615   else
29616      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
29617 echo "$as_me: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
29618    { (exit 1); exit 1; }; }
29619   fi
29620
29621
29622   succeeded=no
29623
29624   if test -z "$PKG_CONFIG"; then
29625     # Extract the first word of "pkg-config", so it can be a program name with args.
29626 set dummy pkg-config; ac_word=$2
29627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29629 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29630   echo $ECHO_N "(cached) $ECHO_C" >&6
29631 else
29632   case $PKG_CONFIG in
29633   [\\/]* | ?:[\\/]*)
29634   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29635   ;;
29636   *)
29637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29638 for as_dir in $PATH
29639 do
29640   IFS=$as_save_IFS
29641   test -z "$as_dir" && as_dir=.
29642   for ac_exec_ext in '' $ac_executable_extensions; do
29643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29644     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29646     break 2
29647   fi
29648 done
29649 done
29650 IFS=$as_save_IFS
29651
29652   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29653   ;;
29654 esac
29655 fi
29656 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29657 if test -n "$PKG_CONFIG"; then
29658   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29659 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29660 else
29661   { echo "$as_me:$LINENO: result: no" >&5
29662 echo "${ECHO_T}no" >&6; }
29663 fi
29664
29665
29666   fi
29667
29668   if test "$PKG_CONFIG" = "no" ; then
29669      echo "*** The pkg-config script could not be found. Make sure it is"
29670      echo "*** in your path, or set the PKG_CONFIG environment variable"
29671      echo "*** to the full path to pkg-config."
29672      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29673   else
29674      PKG_CONFIG_MIN_VERSION=0.9.0
29675      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29676         { echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
29677 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6; }
29678
29679         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
29680             { echo "$as_me:$LINENO: result: yes" >&5
29681 echo "${ECHO_T}yes" >&6; }
29682             succeeded=yes
29683
29684             { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
29685 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
29686             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
29687             { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
29688 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
29689
29690             { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
29691 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
29692             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
29693             { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
29694 echo "${ECHO_T}$GTK_LIBS" >&6; }
29695         else
29696             GTK_CFLAGS=""
29697             GTK_LIBS=""
29698             ## If we have a custom action on failure, don't print errors, but
29699             ## do set a variable so people can do so.
29700             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
29701             echo $GTK_PKG_ERRORS
29702         fi
29703
29704
29705
29706      else
29707         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29708         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29709      fi
29710   fi
29711
29712   if test $succeeded = yes; then
29713      :
29714   else
29715      { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
29716 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
29717    { (exit 1); exit 1; }; }
29718   fi
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728     PLUGIN_DIR=$HOME/.mozilla/plugins/
29729
29730   fi
29731 fi
29732
29733 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
29734
29735
29736 # Check whether --with-javah was given.
29737 if test "${with_javah+set}" = set; then
29738   withval=$with_javah;
29739     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
29740
29741   if test "x${withval}" != x; then
29742     if test -f "${withval}"; then
29743       USER_JAVAH="${withval}"
29744     else
29745       # Extract the first word of ""${withval}"", so it can be a program name with args.
29746 set dummy "${withval}"; ac_word=$2
29747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29749 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
29750   echo $ECHO_N "(cached) $ECHO_C" >&6
29751 else
29752   case $USER_JAVAH in
29753   [\\/]* | ?:[\\/]*)
29754   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
29755   ;;
29756   *)
29757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29758 for as_dir in $PATH
29759 do
29760   IFS=$as_save_IFS
29761   test -z "$as_dir" && as_dir=.
29762   for ac_exec_ext in '' $ac_executable_extensions; do
29763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29764     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
29765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29766     break 2
29767   fi
29768 done
29769 done
29770 IFS=$as_save_IFS
29771
29772   ;;
29773 esac
29774 fi
29775 USER_JAVAH=$ac_cv_path_USER_JAVAH
29776 if test -n "$USER_JAVAH"; then
29777   { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
29778 echo "${ECHO_T}$USER_JAVAH" >&6; }
29779 else
29780   { echo "$as_me:$LINENO: result: no" >&5
29781 echo "${ECHO_T}no" >&6; }
29782 fi
29783
29784
29785     fi
29786   else
29787     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
29788 do
29789   # Extract the first word of "$ac_prog", so it can be a program name with args.
29790 set dummy $ac_prog; ac_word=$2
29791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29793 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
29794   echo $ECHO_N "(cached) $ECHO_C" >&6
29795 else
29796   case $USER_JAVAH in
29797   [\\/]* | ?:[\\/]*)
29798   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
29799   ;;
29800   *)
29801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29802 for as_dir in $PATH
29803 do
29804   IFS=$as_save_IFS
29805   test -z "$as_dir" && as_dir=.
29806   for ac_exec_ext in '' $ac_executable_extensions; do
29807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29808     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
29809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29810     break 2
29811   fi
29812 done
29813 done
29814 IFS=$as_save_IFS
29815
29816   ;;
29817 esac
29818 fi
29819 USER_JAVAH=$ac_cv_path_USER_JAVAH
29820 if test -n "$USER_JAVAH"; then
29821   { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
29822 echo "${ECHO_T}$USER_JAVAH" >&6; }
29823 else
29824   { echo "$as_me:$LINENO: result: no" >&5
29825 echo "${ECHO_T}no" >&6; }
29826 fi
29827
29828
29829   test -n "$USER_JAVAH" && break
29830 done
29831
29832   fi
29833
29834   if test "x${USER_JAVAH}" = x; then
29835     { { echo "$as_me:$LINENO: error: can not find javah" >&5
29836 echo "$as_me: error: can not find javah" >&2;}
29837    { (exit 1); exit 1; }; }
29838   fi
29839
29840     else
29841
29842   if test "x" != x; then
29843     if test -f ""; then
29844       USER_JAVAH=""
29845     else
29846       # Extract the first word of """", so it can be a program name with args.
29847 set dummy ""; ac_word=$2
29848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29850 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
29851   echo $ECHO_N "(cached) $ECHO_C" >&6
29852 else
29853   case $USER_JAVAH in
29854   [\\/]* | ?:[\\/]*)
29855   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
29856   ;;
29857   *)
29858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29859 for as_dir in $PATH
29860 do
29861   IFS=$as_save_IFS
29862   test -z "$as_dir" && as_dir=.
29863   for ac_exec_ext in '' $ac_executable_extensions; do
29864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29865     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
29866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29867     break 2
29868   fi
29869 done
29870 done
29871 IFS=$as_save_IFS
29872
29873   ;;
29874 esac
29875 fi
29876 USER_JAVAH=$ac_cv_path_USER_JAVAH
29877 if test -n "$USER_JAVAH"; then
29878   { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
29879 echo "${ECHO_T}$USER_JAVAH" >&6; }
29880 else
29881   { echo "$as_me:$LINENO: result: no" >&5
29882 echo "${ECHO_T}no" >&6; }
29883 fi
29884
29885
29886     fi
29887   else
29888     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
29889 do
29890   # Extract the first word of "$ac_prog", so it can be a program name with args.
29891 set dummy $ac_prog; ac_word=$2
29892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29894 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
29895   echo $ECHO_N "(cached) $ECHO_C" >&6
29896 else
29897   case $USER_JAVAH in
29898   [\\/]* | ?:[\\/]*)
29899   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
29900   ;;
29901   *)
29902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29903 for as_dir in $PATH
29904 do
29905   IFS=$as_save_IFS
29906   test -z "$as_dir" && as_dir=.
29907   for ac_exec_ext in '' $ac_executable_extensions; do
29908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29909     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
29910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29911     break 2
29912   fi
29913 done
29914 done
29915 IFS=$as_save_IFS
29916
29917   ;;
29918 esac
29919 fi
29920 USER_JAVAH=$ac_cv_path_USER_JAVAH
29921 if test -n "$USER_JAVAH"; then
29922   { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
29923 echo "${ECHO_T}$USER_JAVAH" >&6; }
29924 else
29925   { echo "$as_me:$LINENO: result: no" >&5
29926 echo "${ECHO_T}no" >&6; }
29927 fi
29928
29929
29930   test -n "$USER_JAVAH" && break
29931 done
29932
29933   fi
29934
29935   if test "x${USER_JAVAH}" = x; then
29936     { { echo "$as_me:$LINENO: error: can not find javah" >&5
29937 echo "$as_me: error: can not find javah" >&2;}
29938    { (exit 1); exit 1; }; }
29939   fi
29940
29941     fi
29942
29943 else
29944
29945
29946   if test "x" != x; then
29947     if test -f ""; then
29948       USER_JAVAH=""
29949     else
29950       # Extract the first word of """", so it can be a program name with args.
29951 set dummy ""; ac_word=$2
29952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29954 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
29955   echo $ECHO_N "(cached) $ECHO_C" >&6
29956 else
29957   case $USER_JAVAH in
29958   [\\/]* | ?:[\\/]*)
29959   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
29960   ;;
29961   *)
29962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29963 for as_dir in $PATH
29964 do
29965   IFS=$as_save_IFS
29966   test -z "$as_dir" && as_dir=.
29967   for ac_exec_ext in '' $ac_executable_extensions; do
29968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29969     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
29970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29971     break 2
29972   fi
29973 done
29974 done
29975 IFS=$as_save_IFS
29976
29977   ;;
29978 esac
29979 fi
29980 USER_JAVAH=$ac_cv_path_USER_JAVAH
29981 if test -n "$USER_JAVAH"; then
29982   { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
29983 echo "${ECHO_T}$USER_JAVAH" >&6; }
29984 else
29985   { echo "$as_me:$LINENO: result: no" >&5
29986 echo "${ECHO_T}no" >&6; }
29987 fi
29988
29989
29990     fi
29991   else
29992     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
29993 do
29994   # Extract the first word of "$ac_prog", so it can be a program name with args.
29995 set dummy $ac_prog; ac_word=$2
29996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29998 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
29999   echo $ECHO_N "(cached) $ECHO_C" >&6
30000 else
30001   case $USER_JAVAH in
30002   [\\/]* | ?:[\\/]*)
30003   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
30004   ;;
30005   *)
30006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30007 for as_dir in $PATH
30008 do
30009   IFS=$as_save_IFS
30010   test -z "$as_dir" && as_dir=.
30011   for ac_exec_ext in '' $ac_executable_extensions; do
30012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30013     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
30014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30015     break 2
30016   fi
30017 done
30018 done
30019 IFS=$as_save_IFS
30020
30021   ;;
30022 esac
30023 fi
30024 USER_JAVAH=$ac_cv_path_USER_JAVAH
30025 if test -n "$USER_JAVAH"; then
30026   { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
30027 echo "${ECHO_T}$USER_JAVAH" >&6; }
30028 else
30029   { echo "$as_me:$LINENO: result: no" >&5
30030 echo "${ECHO_T}no" >&6; }
30031 fi
30032
30033
30034   test -n "$USER_JAVAH" && break
30035 done
30036
30037   fi
30038
30039   if test "x${USER_JAVAH}" = x; then
30040     { { echo "$as_me:$LINENO: error: can not find javah" >&5
30041 echo "$as_me: error: can not find javah" >&2;}
30042    { (exit 1); exit 1; }; }
30043   fi
30044
30045
30046 fi
30047
30048
30049
30050 fi
30051
30052 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
30053
30054
30055 if test "x${COMPILE_JNI}" = xyes; then
30056   { echo "$as_me:$LINENO: checking jni_md.h support" >&5
30057 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6; }
30058   if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
30059     { echo "$as_me:$LINENO: result: yes" >&5
30060 echo "${ECHO_T}yes" >&6; }
30061   else
30062     target_cpu=x86
30063     target_os=linux-gnu
30064     { echo "$as_me:$LINENO: WARNING: no" >&5
30065 echo "$as_me: WARNING: no" >&2;}
30066   fi
30067   ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
30068   ac_dests="include/jni_md.h"
30069   while test -n "$ac_sources"; do
30070     set $ac_dests; ac_dest=$1; shift; ac_dests=$*
30071     set $ac_sources; ac_source=$1; shift; ac_sources=$*
30072     ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
30073   done
30074   ac_config_links="$ac_config_links $ac_config_links_1"
30075
30076 fi
30077
30078
30079
30080 # Check whether --with-vm-classes was given.
30081 if test "${with_vm_classes+set}" = set; then
30082   withval=$with_vm_classes; vm_classes="$with_vm_classes"
30083 else
30084   vm_classes='${top_srcdir}/vm/reference'
30085 fi
30086
30087
30088
30089
30090 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
30091 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
30092     # Check whether --enable-maintainer-mode was given.
30093 if test "${enable_maintainer_mode+set}" = set; then
30094   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
30095 else
30096   USE_MAINTAINER_MODE=no
30097 fi
30098
30099   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
30100 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
30101    if test $USE_MAINTAINER_MODE = yes; then
30102   MAINTAINER_MODE_TRUE=
30103   MAINTAINER_MODE_FALSE='#'
30104 else
30105   MAINTAINER_MODE_TRUE='#'
30106   MAINTAINER_MODE_FALSE=
30107 fi
30108
30109   MAINT=$MAINTAINER_MODE_TRUE
30110
30111
30112
30113 # Check whether --enable-debug was given.
30114 if test "${enable_debug+set}" = set; then
30115   enableval=$enable_debug; case "${enableval}" in
30116                 yes)
30117                 LIBDEBUG="true"
30118
30119 cat >>confdefs.h <<\_ACEOF
30120 #define DEBUG 1
30121 _ACEOF
30122
30123                 ;;
30124                 no)   LIBDEBUG="false" ;;
30125                 *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
30126 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
30127    { (exit 1); exit 1; }; } ;;
30128               esac
30129 else
30130   LIBDEBUG="false"
30131 fi
30132
30133
30134
30135 # Check whether --enable-load-library was given.
30136 if test "${enable_load_library+set}" = set; then
30137   enableval=$enable_load_library; case "${enableval}" in
30138                 yes) INIT_LOAD_LIBRARY="true" ;;
30139                 no) INIT_LOAD_LIBRARY="false" ;;
30140                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
30141 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
30142    { (exit 1); exit 1; }; } ;;
30143               esac
30144 else
30145   INIT_LOAD_LIBRARY="true"
30146 fi
30147
30148
30149
30150
30151
30152 # Check whether --with-ecj-jar was given.
30153 if test "${with_ecj_jar+set}" = set; then
30154   withval=$with_ecj_jar; ECJ_JAR=$withval
30155
30156 fi
30157
30158
30159
30160 # Check whether --enable-java-lang-system-explicit-initialization was given.
30161 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
30162   enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
30163                 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
30164                 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
30165                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
30166 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
30167    { (exit 1); exit 1; }; } ;;
30168               esac
30169 else
30170   JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
30171 fi
30172
30173
30174
30175
30176 REMOVE=""
30177
30178
30179 # Extract the first word of "mkdir", so it can be a program name with args.
30180 set dummy mkdir; ac_word=$2
30181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30183 if test "${ac_cv_path_MKDIR+set}" = set; then
30184   echo $ECHO_N "(cached) $ECHO_C" >&6
30185 else
30186   case $MKDIR in
30187   [\\/]* | ?:[\\/]*)
30188   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
30189   ;;
30190   *)
30191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30192 for as_dir in $PATH
30193 do
30194   IFS=$as_save_IFS
30195   test -z "$as_dir" && as_dir=.
30196   for ac_exec_ext in '' $ac_executable_extensions; do
30197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30198     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
30199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30200     break 2
30201   fi
30202 done
30203 done
30204 IFS=$as_save_IFS
30205
30206   ;;
30207 esac
30208 fi
30209 MKDIR=$ac_cv_path_MKDIR
30210 if test -n "$MKDIR"; then
30211   { echo "$as_me:$LINENO: result: $MKDIR" >&5
30212 echo "${ECHO_T}$MKDIR" >&6; }
30213 else
30214   { echo "$as_me:$LINENO: result: no" >&5
30215 echo "${ECHO_T}no" >&6; }
30216 fi
30217
30218
30219 # Extract the first word of "cp", so it can be a program name with args.
30220 set dummy cp; ac_word=$2
30221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30223 if test "${ac_cv_path_CP+set}" = set; then
30224   echo $ECHO_N "(cached) $ECHO_C" >&6
30225 else
30226   case $CP in
30227   [\\/]* | ?:[\\/]*)
30228   ac_cv_path_CP="$CP" # Let the user override the test with a path.
30229   ;;
30230   *)
30231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30232 for as_dir in $PATH
30233 do
30234   IFS=$as_save_IFS
30235   test -z "$as_dir" && as_dir=.
30236   for ac_exec_ext in '' $ac_executable_extensions; do
30237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30238     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
30239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30240     break 2
30241   fi
30242 done
30243 done
30244 IFS=$as_save_IFS
30245
30246   ;;
30247 esac
30248 fi
30249 CP=$ac_cv_path_CP
30250 if test -n "$CP"; then
30251   { echo "$as_me:$LINENO: result: $CP" >&5
30252 echo "${ECHO_T}$CP" >&6; }
30253 else
30254   { echo "$as_me:$LINENO: result: no" >&5
30255 echo "${ECHO_T}no" >&6; }
30256 fi
30257
30258
30259 # Extract the first word of "date", so it can be a program name with args.
30260 set dummy date; ac_word=$2
30261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30263 if test "${ac_cv_path_DATE+set}" = set; then
30264   echo $ECHO_N "(cached) $ECHO_C" >&6
30265 else
30266   case $DATE in
30267   [\\/]* | ?:[\\/]*)
30268   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
30269   ;;
30270   *)
30271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30272 for as_dir in $PATH
30273 do
30274   IFS=$as_save_IFS
30275   test -z "$as_dir" && as_dir=.
30276   for ac_exec_ext in '' $ac_executable_extensions; do
30277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30278     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
30279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30280     break 2
30281   fi
30282 done
30283 done
30284 IFS=$as_save_IFS
30285
30286   ;;
30287 esac
30288 fi
30289 DATE=$ac_cv_path_DATE
30290 if test -n "$DATE"; then
30291   { echo "$as_me:$LINENO: result: $DATE" >&5
30292 echo "${ECHO_T}$DATE" >&6; }
30293 else
30294   { echo "$as_me:$LINENO: result: no" >&5
30295 echo "${ECHO_T}no" >&6; }
30296 fi
30297
30298
30299
30300 # Extract the first word of "find", so it can be a program name with args.
30301 set dummy find; ac_word=$2
30302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30304 if test "${ac_cv_path_FIND+set}" = set; then
30305   echo $ECHO_N "(cached) $ECHO_C" >&6
30306 else
30307   case $FIND in
30308   [\\/]* | ?:[\\/]*)
30309   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
30310   ;;
30311   *)
30312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30313 for as_dir in $PATH
30314 do
30315   IFS=$as_save_IFS
30316   test -z "$as_dir" && as_dir=.
30317   for ac_exec_ext in '' $ac_executable_extensions; do
30318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30319     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
30320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30321     break 2
30322   fi
30323 done
30324 done
30325 IFS=$as_save_IFS
30326
30327   ;;
30328 esac
30329 fi
30330 FIND=$ac_cv_path_FIND
30331 if test -n "$FIND"; then
30332   { echo "$as_me:$LINENO: result: $FIND" >&5
30333 echo "${ECHO_T}$FIND" >&6; }
30334 else
30335   { echo "$as_me:$LINENO: result: no" >&5
30336 echo "${ECHO_T}no" >&6; }
30337 fi
30338
30339
30340
30341
30342   # Extract the first word of "zip", so it can be a program name with args.
30343 set dummy zip; ac_word=$2
30344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30346 if test "${ac_cv_path_ZIP+set}" = set; then
30347   echo $ECHO_N "(cached) $ECHO_C" >&6
30348 else
30349   case $ZIP in
30350   [\\/]* | ?:[\\/]*)
30351   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
30352   ;;
30353   *)
30354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30355 for as_dir in $PATH
30356 do
30357   IFS=$as_save_IFS
30358   test -z "$as_dir" && as_dir=.
30359   for ac_exec_ext in '' $ac_executable_extensions; do
30360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30361     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
30362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30363     break 2
30364   fi
30365 done
30366 done
30367 IFS=$as_save_IFS
30368
30369   ;;
30370 esac
30371 fi
30372 ZIP=$ac_cv_path_ZIP
30373 if test -n "$ZIP"; then
30374   { echo "$as_me:$LINENO: result: $ZIP" >&5
30375 echo "${ECHO_T}$ZIP" >&6; }
30376 else
30377   { echo "$as_me:$LINENO: result: no" >&5
30378 echo "${ECHO_T}no" >&6; }
30379 fi
30380
30381
30382
30383 # Check whether --with-fastjar was given.
30384 if test "${with_fastjar+set}" = set; then
30385   withval=$with_fastjar;
30386                 { echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
30387 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6; }
30388                 FASTJAR=${withval}
30389                 { echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
30390 echo "${ECHO_T}${FASTJAR}" >&6; }
30391
30392 else
30393   for ac_prog in fastjar gjar jar
30394 do
30395   # Extract the first word of "$ac_prog", so it can be a program name with args.
30396 set dummy $ac_prog; ac_word=$2
30397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30399 if test "${ac_cv_path_FASTJAR+set}" = set; then
30400   echo $ECHO_N "(cached) $ECHO_C" >&6
30401 else
30402   case $FASTJAR in
30403   [\\/]* | ?:[\\/]*)
30404   ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
30405   ;;
30406   *)
30407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30408 for as_dir in $PATH
30409 do
30410   IFS=$as_save_IFS
30411   test -z "$as_dir" && as_dir=.
30412   for ac_exec_ext in '' $ac_executable_extensions; do
30413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30414     ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
30415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30416     break 2
30417   fi
30418 done
30419 done
30420 IFS=$as_save_IFS
30421
30422   ;;
30423 esac
30424 fi
30425 FASTJAR=$ac_cv_path_FASTJAR
30426 if test -n "$FASTJAR"; then
30427   { echo "$as_me:$LINENO: result: $FASTJAR" >&5
30428 echo "${ECHO_T}$FASTJAR" >&6; }
30429 else
30430   { echo "$as_me:$LINENO: result: no" >&5
30431 echo "${ECHO_T}no" >&6; }
30432 fi
30433
30434
30435   test -n "$FASTJAR" && break
30436 done
30437
30438 fi
30439
30440   if test x"${FASTJAR}" != x; then
30441     ZIP=""
30442   fi
30443
30444
30445 # Check whether --with-glibj was given.
30446 if test "${with_glibj+set}" = set; then
30447   withval=$with_glibj;
30448                 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
30449                   install_class_files=no
30450                   build_class_files=yes
30451                   use_zip=yes
30452                 elif test "x${withval}" = xboth; then
30453                   install_class_files=yes
30454                   build_class_files=yes
30455                   use_zip=yes
30456                 elif test "x${withval}" = xflat; then
30457                   install_class_files=yes
30458                   build_class_files=yes
30459                   use_zip=no
30460                 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
30461                   install_class_files=no
30462                   build_class_files=no
30463                   use_zip=no
30464                 elif test "x${withval}" = xbuild; then
30465                   install_class_files=no
30466                   build_class_files=yes
30467                   use_zip=no
30468                 else
30469                   { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
30470 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
30471    { (exit 1); exit 1; }; }
30472                 fi
30473
30474 else
30475
30476                 install_class_files=no
30477                 use_zip=yes
30478
30479 fi
30480
30481    if test "x${use_zip}" = xyes; then
30482   INSTALL_GLIBJ_ZIP_TRUE=
30483   INSTALL_GLIBJ_ZIP_FALSE='#'
30484 else
30485   INSTALL_GLIBJ_ZIP_TRUE='#'
30486   INSTALL_GLIBJ_ZIP_FALSE=
30487 fi
30488
30489    if test "x${install_class_files}" = xyes; then
30490   INSTALL_CLASS_FILES_TRUE=
30491   INSTALL_CLASS_FILES_FALSE='#'
30492 else
30493   INSTALL_CLASS_FILES_TRUE='#'
30494   INSTALL_CLASS_FILES_FALSE=
30495 fi
30496
30497    if test "x${build_class_files}" = xyes; then
30498   BUILD_CLASS_FILES_TRUE=
30499   BUILD_CLASS_FILES_FALSE='#'
30500 else
30501   BUILD_CLASS_FILES_TRUE='#'
30502   BUILD_CLASS_FILES_FALSE=
30503 fi
30504
30505
30506   # Check whether --enable-examples was given.
30507 if test "${enable_examples+set}" = set; then
30508   enableval=$enable_examples; case "${enableval}" in
30509                   yes) EXAMPLESDIR="examples" ;;
30510                   no) EXAMPLESDIR="" ;;
30511                   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
30512 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
30513    { (exit 1); exit 1; }; } ;;
30514                 esac
30515 else
30516   EXAMPLESDIR="examples"
30517 fi
30518
30519   if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
30520     EXAMPLESDIR=""
30521   fi
30522
30523
30524   # Check whether --enable-tools was given.
30525 if test "${enable_tools+set}" = set; then
30526   enableval=$enable_tools; case "${enableval}" in
30527                   yes) TOOLSDIR="tools" ;;
30528                   no) TOOLSDIR="" ;;
30529                   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tools" >&5
30530 echo "$as_me: error: bad value ${enableval} for --enable-tools" >&2;}
30531    { (exit 1); exit 1; }; } ;;
30532                 esac
30533 else
30534   TOOLSDIR="tools"
30535 fi
30536
30537   if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
30538     TOOLSDIR=""
30539   fi
30540
30541
30542
30543
30544
30545 # Check whether --with-gjdoc was given.
30546 if test "${with_gjdoc+set}" = set; then
30547   withval=$with_gjdoc; if test "x${withval}" = xno; then
30548                  WITH_GJDOC=no;
30549                elif test "x${withval}" = xyes -o "x{withval}" = x; then
30550                  WITH_GJDOC=yes;
30551                  # Extract the first word of "gjdoc", so it can be a program name with args.
30552 set dummy gjdoc; ac_word=$2
30553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30555 if test "${ac_cv_path_GJDOC+set}" = set; then
30556   echo $ECHO_N "(cached) $ECHO_C" >&6
30557 else
30558   case $GJDOC in
30559   [\\/]* | ?:[\\/]*)
30560   ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
30561   ;;
30562   *)
30563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30564 for as_dir in $PATH
30565 do
30566   IFS=$as_save_IFS
30567   test -z "$as_dir" && as_dir=.
30568   for ac_exec_ext in '' $ac_executable_extensions; do
30569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30570     ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
30571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30572     break 2
30573   fi
30574 done
30575 done
30576 IFS=$as_save_IFS
30577
30578   test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
30579   ;;
30580 esac
30581 fi
30582 GJDOC=$ac_cv_path_GJDOC
30583 if test -n "$GJDOC"; then
30584   { echo "$as_me:$LINENO: result: $GJDOC" >&5
30585 echo "${ECHO_T}$GJDOC" >&6; }
30586 else
30587   { echo "$as_me:$LINENO: result: no" >&5
30588 echo "${ECHO_T}no" >&6; }
30589 fi
30590
30591
30592                  if test "x${GJDOC}" = xno; then
30593                    { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
30594 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
30595    { (exit 1); exit 1; }; };
30596                  fi
30597                else
30598                  WITH_GJDOC=yes
30599                  GJDOC="${withval}"
30600                  as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
30601 { echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
30602 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6; }
30603 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
30604   echo $ECHO_N "(cached) $ECHO_C" >&6
30605 else
30606   test "$cross_compiling" = yes &&
30607   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30608 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30609    { (exit 1); exit 1; }; }
30610 if test -r "${GJDOC}"; then
30611   eval "$as_ac_File=yes"
30612 else
30613   eval "$as_ac_File=no"
30614 fi
30615 fi
30616 ac_res=`eval echo '${'$as_ac_File'}'`
30617                { echo "$as_me:$LINENO: result: $ac_res" >&5
30618 echo "${ECHO_T}$ac_res" >&6; }
30619 if test `eval echo '${'$as_ac_File'}'` = yes; then
30620   :
30621 else
30622   { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
30623 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
30624    { (exit 1); exit 1; }; }
30625 fi
30626
30627                fi
30628 else
30629   WITH_GJDOC=no
30630 fi
30631
30632
30633    if test "x${WITH_GJDOC}" = xyes; then
30634   CREATE_API_DOCS_TRUE=
30635   CREATE_API_DOCS_FALSE='#'
30636 else
30637   CREATE_API_DOCS_TRUE='#'
30638   CREATE_API_DOCS_FALSE=
30639 fi
30640
30641
30642
30643
30644
30645 # Check whether --with-jay was given.
30646 if test "${with_jay+set}" = set; then
30647   withval=$with_jay;
30648     { echo "$as_me:$LINENO: checking whether to regenerate parsers with jay" >&5
30649 echo $ECHO_N "checking whether to regenerate parsers with jay... $ECHO_C" >&6; }
30650     JAY_FOUND=no
30651     JAY_DIR_PATH=
30652     if test "x${withval}" = xno; then
30653       { echo "$as_me:$LINENO: result: no" >&5
30654 echo "${ECHO_T}no" >&6; }
30655     elif test "x${withval}" = xyes; then
30656       { echo "$as_me:$LINENO: result: yes" >&5
30657 echo "${ECHO_T}yes" >&6; }
30658       JAY_DIR_PATH="/usr/share/jay"
30659     elif test -d "${withval}"; then
30660       { echo "$as_me:$LINENO: result: yes" >&5
30661 echo "${ECHO_T}yes" >&6; }
30662       JAY_DIR_PATH="${withval}"
30663     elif test -f "${withval}"; then
30664       { echo "$as_me:$LINENO: result: yes" >&5
30665 echo "${ECHO_T}yes" >&6; }
30666       JAY_DIR_PATH=`dirname "${withval}"`
30667       JAY="${withval}"
30668     else
30669         { { echo "$as_me:$LINENO: error: jay not found at ${withval}" >&5
30670 echo "$as_me: error: jay not found at ${withval}" >&2;}
30671    { (exit 1); exit 1; }; }
30672     fi
30673
30674     if test "x${JAY_DIR_PATH}" != x; then
30675       # Extract the first word of "jay", so it can be a program name with args.
30676 set dummy jay; ac_word=$2
30677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30679 if test "${ac_cv_path_JAY+set}" = set; then
30680   echo $ECHO_N "(cached) $ECHO_C" >&6
30681 else
30682   case $JAY in
30683   [\\/]* | ?:[\\/]*)
30684   ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
30685   ;;
30686   *)
30687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30688 as_dummy="${JAY_DIR_PATH}:${PATH}"
30689 for as_dir in $as_dummy
30690 do
30691   IFS=$as_save_IFS
30692   test -z "$as_dir" && as_dir=.
30693   for ac_exec_ext in '' $ac_executable_extensions; do
30694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30695     ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
30696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30697     break 2
30698   fi
30699 done
30700 done
30701 IFS=$as_save_IFS
30702
30703   test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
30704   ;;
30705 esac
30706 fi
30707 JAY=$ac_cv_path_JAY
30708 if test -n "$JAY"; then
30709   { echo "$as_me:$LINENO: result: $JAY" >&5
30710 echo "${ECHO_T}$JAY" >&6; }
30711 else
30712   { echo "$as_me:$LINENO: result: no" >&5
30713 echo "${ECHO_T}no" >&6; }
30714 fi
30715
30716
30717       if test "x${JAY}" = xno; then
30718         { { echo "$as_me:$LINENO: error: jay executable not found" >&5
30719 echo "$as_me: error: jay executable not found" >&2;}
30720    { (exit 1); exit 1; }; };
30721       fi
30722       JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
30723       as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
30724 { echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
30725 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6; }
30726 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
30727   echo $ECHO_N "(cached) $ECHO_C" >&6
30728 else
30729   test "$cross_compiling" = yes &&
30730   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30731 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30732    { (exit 1); exit 1; }; }
30733 if test -r "${JAY_SKELETON}"; then
30734   eval "$as_ac_File=yes"
30735 else
30736   eval "$as_ac_File=no"
30737 fi
30738 fi
30739 ac_res=`eval echo '${'$as_ac_File'}'`
30740                { echo "$as_me:$LINENO: result: $ac_res" >&5
30741 echo "${ECHO_T}$ac_res" >&6; }
30742 if test `eval echo '${'$as_ac_File'}'` = yes; then
30743   :
30744 else
30745   { { echo "$as_me:$LINENO: error: Expected skeleton file in ${JAY_DIR_PATH}" >&5
30746 echo "$as_me: error: Expected skeleton file in ${JAY_DIR_PATH}" >&2;}
30747    { (exit 1); exit 1; }; }
30748 fi
30749
30750       JAY_FOUND=yes
30751     fi
30752
30753 else
30754
30755     { echo "$as_me:$LINENO: checking whether to regenerate parsers with jay" >&5
30756 echo $ECHO_N "checking whether to regenerate parsers with jay... $ECHO_C" >&6; }
30757     { echo "$as_me:$LINENO: result: no" >&5
30758 echo "${ECHO_T}no" >&6; }
30759     JAY_FOUND=no
30760
30761 fi
30762
30763    if test "x${JAY_FOUND}" = xyes; then
30764   REGEN_PARSERS_TRUE=
30765   REGEN_PARSERS_FALSE='#'
30766 else
30767   REGEN_PARSERS_TRUE='#'
30768   REGEN_PARSERS_FALSE=
30769 fi
30770
30771
30772
30773 # Check whether --enable-portable-native-sync was given.
30774 if test "${enable_portable_native_sync+set}" = set; then
30775   enableval=$enable_portable_native_sync; case "${enableval}" in
30776                 yes)
30777
30778 cat >>confdefs.h <<\_ACEOF
30779 #define PORTABLE_NATIVE_SYNC 1
30780 _ACEOF
30781
30782                      ;;
30783                 no)  ;;
30784                 *)
30785                      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
30786 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
30787    { (exit 1); exit 1; }; }
30788                      ;;
30789               esac
30790 fi
30791
30792
30793 # ------ AX CREATE STDINT H -------------------------------------
30794 { echo "$as_me:$LINENO: checking for stdint types" >&5
30795 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6; }
30796 ac_stdint_h=`echo include/config-int.h`
30797 # try to shortcircuit - if the default include path of the compiler
30798 # can find a "stdint.h" header then we assume that all compilers can.
30799 if test "${ac_cv_header_stdint_t+set}" = set; then
30800   echo $ECHO_N "(cached) $ECHO_C" >&6
30801 else
30802
30803 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
30804 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
30805 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
30806 cat >conftest.$ac_ext <<_ACEOF
30807 /* confdefs.h.  */
30808 _ACEOF
30809 cat confdefs.h >>conftest.$ac_ext
30810 cat >>conftest.$ac_ext <<_ACEOF
30811 /* end confdefs.h.  */
30812 #include <stdint.h>
30813 int
30814 main ()
30815 {
30816 int_least32_t v = 0;
30817   ;
30818   return 0;
30819 }
30820 _ACEOF
30821 rm -f conftest.$ac_objext
30822 if { (ac_try="$ac_compile"
30823 case "(($ac_try" in
30824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825   *) ac_try_echo=$ac_try;;
30826 esac
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828   (eval "$ac_compile") 2>conftest.er1
30829   ac_status=$?
30830   grep -v '^ *+' conftest.er1 >conftest.err
30831   rm -f conftest.er1
30832   cat conftest.err >&5
30833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834   (exit $ac_status); } && {
30835          test -z "$ac_c_werror_flag" ||
30836          test ! -s conftest.err
30837        } && test -s conftest.$ac_objext; then
30838   ac_cv_stdint_result="(assuming C99 compatible system)"
30839  ac_cv_header_stdint_t="stdint.h";
30840 else
30841   echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30843
30844         ac_cv_header_stdint_t=""
30845 fi
30846
30847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30848 CXXFLAGS="$old_CXXFLAGS"
30849 CPPFLAGS="$old_CPPFLAGS"
30850 CFLAGS="$old_CFLAGS"
30851 fi
30852
30853
30854 v="... $ac_cv_header_stdint_h"
30855 if test "$ac_stdint_h" = "stdint.h" ; then
30856  { echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
30857 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6; }
30858 elif test "$ac_stdint_h" = "inttypes.h" ; then
30859  { echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
30860 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6; }
30861 elif test "_$ac_cv_header_stdint_t" = "_" ; then
30862  { echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
30863 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6; }
30864 else
30865  ac_cv_header_stdint="$ac_cv_header_stdint_t"
30866  { echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
30867 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6; }
30868 fi
30869
30870 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
30871
30872
30873 inttype_headers=`echo  | sed -e 's/,/ /g'`
30874
30875 ac_cv_stdint_result="(no helpful system typedefs seen)"
30876
30877 { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
30878 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
30879 if test "${ac_cv_header_stdint_x+set}" = set; then
30880   echo $ECHO_N "(cached) $ECHO_C" >&6
30881 else
30882
30883  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
30884   { echo "$as_me:$LINENO: result: (..)" >&5
30885 echo "${ECHO_T}(..)" >&6; }
30886   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
30887    unset ac_cv_type_uintptr_t
30888    unset ac_cv_type_uint64_t
30889    { echo "$as_me:$LINENO: checking for uintptr_t" >&5
30890 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
30891 if test "${ac_cv_type_uintptr_t+set}" = set; then
30892   echo $ECHO_N "(cached) $ECHO_C" >&6
30893 else
30894   cat >conftest.$ac_ext <<_ACEOF
30895 /* confdefs.h.  */
30896 _ACEOF
30897 cat confdefs.h >>conftest.$ac_ext
30898 cat >>conftest.$ac_ext <<_ACEOF
30899 /* end confdefs.h.  */
30900 #include <$i>
30901
30902 typedef uintptr_t ac__type_new_;
30903 int
30904 main ()
30905 {
30906 if ((ac__type_new_ *) 0)
30907   return 0;
30908 if (sizeof (ac__type_new_))
30909   return 0;
30910   ;
30911   return 0;
30912 }
30913 _ACEOF
30914 rm -f conftest.$ac_objext
30915 if { (ac_try="$ac_compile"
30916 case "(($ac_try" in
30917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30918   *) ac_try_echo=$ac_try;;
30919 esac
30920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30921   (eval "$ac_compile") 2>conftest.er1
30922   ac_status=$?
30923   grep -v '^ *+' conftest.er1 >conftest.err
30924   rm -f conftest.er1
30925   cat conftest.err >&5
30926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927   (exit $ac_status); } && {
30928          test -z "$ac_c_werror_flag" ||
30929          test ! -s conftest.err
30930        } && test -s conftest.$ac_objext; then
30931   ac_cv_type_uintptr_t=yes
30932 else
30933   echo "$as_me: failed program was:" >&5
30934 sed 's/^/| /' conftest.$ac_ext >&5
30935
30936         ac_cv_type_uintptr_t=no
30937 fi
30938
30939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30940 fi
30941 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
30942 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
30943 if test $ac_cv_type_uintptr_t = yes; then
30944   ac_cv_header_stdint_x=$i
30945 else
30946   continue
30947 fi
30948
30949    { echo "$as_me:$LINENO: checking for uint64_t" >&5
30950 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30951 if test "${ac_cv_type_uint64_t+set}" = set; then
30952   echo $ECHO_N "(cached) $ECHO_C" >&6
30953 else
30954   cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h.  */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h.  */
30960 #include<$i>
30961
30962 typedef uint64_t ac__type_new_;
30963 int
30964 main ()
30965 {
30966 if ((ac__type_new_ *) 0)
30967   return 0;
30968 if (sizeof (ac__type_new_))
30969   return 0;
30970   ;
30971   return 0;
30972 }
30973 _ACEOF
30974 rm -f conftest.$ac_objext
30975 if { (ac_try="$ac_compile"
30976 case "(($ac_try" in
30977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978   *) ac_try_echo=$ac_try;;
30979 esac
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981   (eval "$ac_compile") 2>conftest.er1
30982   ac_status=$?
30983   grep -v '^ *+' conftest.er1 >conftest.err
30984   rm -f conftest.er1
30985   cat conftest.err >&5
30986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987   (exit $ac_status); } && {
30988          test -z "$ac_c_werror_flag" ||
30989          test ! -s conftest.err
30990        } && test -s conftest.$ac_objext; then
30991   ac_cv_type_uint64_t=yes
30992 else
30993   echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30995
30996         ac_cv_type_uint64_t=no
30997 fi
30998
30999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31000 fi
31001 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31002 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31003 if test $ac_cv_type_uint64_t = yes; then
31004   and64="/uint64_t"
31005 else
31006   and64=""
31007 fi
31008
31009       stdint.h inttypes.h sys/inttypes.h $inttype_headers
31010  break
31011   done
31012   { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
31013 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
31014
31015 fi
31016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
31017 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6; }
31018
31019
31020 if test "_$ac_cv_header_stdint_x" = "_" ; then
31021
31022 { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
31023 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
31024 if test "${ac_cv_header_stdint_o+set}" = set; then
31025   echo $ECHO_N "(cached) $ECHO_C" >&6
31026 else
31027
31028  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
31029   { echo "$as_me:$LINENO: result: (..)" >&5
31030 echo "${ECHO_T}(..)" >&6; }
31031   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
31032    unset ac_cv_type_uint32_t
31033    unset ac_cv_type_uint64_t
31034    { echo "$as_me:$LINENO: checking for uint32_t" >&5
31035 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
31036 if test "${ac_cv_type_uint32_t+set}" = set; then
31037   echo $ECHO_N "(cached) $ECHO_C" >&6
31038 else
31039   cat >conftest.$ac_ext <<_ACEOF
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045 #include <$i>
31046
31047 typedef uint32_t ac__type_new_;
31048 int
31049 main ()
31050 {
31051 if ((ac__type_new_ *) 0)
31052   return 0;
31053 if (sizeof (ac__type_new_))
31054   return 0;
31055   ;
31056   return 0;
31057 }
31058 _ACEOF
31059 rm -f conftest.$ac_objext
31060 if { (ac_try="$ac_compile"
31061 case "(($ac_try" in
31062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063   *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066   (eval "$ac_compile") 2>conftest.er1
31067   ac_status=$?
31068   grep -v '^ *+' conftest.er1 >conftest.err
31069   rm -f conftest.er1
31070   cat conftest.err >&5
31071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072   (exit $ac_status); } && {
31073          test -z "$ac_c_werror_flag" ||
31074          test ! -s conftest.err
31075        } && test -s conftest.$ac_objext; then
31076   ac_cv_type_uint32_t=yes
31077 else
31078   echo "$as_me: failed program was:" >&5
31079 sed 's/^/| /' conftest.$ac_ext >&5
31080
31081         ac_cv_type_uint32_t=no
31082 fi
31083
31084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31085 fi
31086 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
31087 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
31088 if test $ac_cv_type_uint32_t = yes; then
31089   ac_cv_header_stdint_o=$i
31090 else
31091   continue
31092 fi
31093
31094    { echo "$as_me:$LINENO: checking for uint64_t" >&5
31095 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31096 if test "${ac_cv_type_uint64_t+set}" = set; then
31097   echo $ECHO_N "(cached) $ECHO_C" >&6
31098 else
31099   cat >conftest.$ac_ext <<_ACEOF
31100 /* confdefs.h.  */
31101 _ACEOF
31102 cat confdefs.h >>conftest.$ac_ext
31103 cat >>conftest.$ac_ext <<_ACEOF
31104 /* end confdefs.h.  */
31105 #include<$i>
31106
31107 typedef uint64_t ac__type_new_;
31108 int
31109 main ()
31110 {
31111 if ((ac__type_new_ *) 0)
31112   return 0;
31113 if (sizeof (ac__type_new_))
31114   return 0;
31115   ;
31116   return 0;
31117 }
31118 _ACEOF
31119 rm -f conftest.$ac_objext
31120 if { (ac_try="$ac_compile"
31121 case "(($ac_try" in
31122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31123   *) ac_try_echo=$ac_try;;
31124 esac
31125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31126   (eval "$ac_compile") 2>conftest.er1
31127   ac_status=$?
31128   grep -v '^ *+' conftest.er1 >conftest.err
31129   rm -f conftest.er1
31130   cat conftest.err >&5
31131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132   (exit $ac_status); } && {
31133          test -z "$ac_c_werror_flag" ||
31134          test ! -s conftest.err
31135        } && test -s conftest.$ac_objext; then
31136   ac_cv_type_uint64_t=yes
31137 else
31138   echo "$as_me: failed program was:" >&5
31139 sed 's/^/| /' conftest.$ac_ext >&5
31140
31141         ac_cv_type_uint64_t=no
31142 fi
31143
31144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31145 fi
31146 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31147 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31148 if test $ac_cv_type_uint64_t = yes; then
31149   and64="/uint64_t"
31150 else
31151   and64=""
31152 fi
31153
31154       inttypes.h sys/inttypes.h stdint.h $inttype_headers
31155  break
31156    break;
31157   done
31158   { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
31159 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
31160
31161 fi
31162 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
31163 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6; }
31164
31165 fi
31166
31167 if test "_$ac_cv_header_stdint_x" = "_" ; then
31168 if test "_$ac_cv_header_stdint_o" = "_" ; then
31169
31170 { echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
31171 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; }
31172 if test "${ac_cv_header_stdint_u+set}" = set; then
31173   echo $ECHO_N "(cached) $ECHO_C" >&6
31174 else
31175
31176  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
31177   { echo "$as_me:$LINENO: result: (..)" >&5
31178 echo "${ECHO_T}(..)" >&6; }
31179   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
31180    unset ac_cv_type_u_int32_t
31181    unset ac_cv_type_u_int64_t
31182    { echo "$as_me:$LINENO: checking for u_int32_t" >&5
31183 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
31184 if test "${ac_cv_type_u_int32_t+set}" = set; then
31185   echo $ECHO_N "(cached) $ECHO_C" >&6
31186 else
31187   cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h.  */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h.  */
31193 #include <$i>
31194
31195 typedef u_int32_t ac__type_new_;
31196 int
31197 main ()
31198 {
31199 if ((ac__type_new_ *) 0)
31200   return 0;
31201 if (sizeof (ac__type_new_))
31202   return 0;
31203   ;
31204   return 0;
31205 }
31206 _ACEOF
31207 rm -f conftest.$ac_objext
31208 if { (ac_try="$ac_compile"
31209 case "(($ac_try" in
31210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211   *) ac_try_echo=$ac_try;;
31212 esac
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214   (eval "$ac_compile") 2>conftest.er1
31215   ac_status=$?
31216   grep -v '^ *+' conftest.er1 >conftest.err
31217   rm -f conftest.er1
31218   cat conftest.err >&5
31219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220   (exit $ac_status); } && {
31221          test -z "$ac_c_werror_flag" ||
31222          test ! -s conftest.err
31223        } && test -s conftest.$ac_objext; then
31224   ac_cv_type_u_int32_t=yes
31225 else
31226   echo "$as_me: failed program was:" >&5
31227 sed 's/^/| /' conftest.$ac_ext >&5
31228
31229         ac_cv_type_u_int32_t=no
31230 fi
31231
31232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31233 fi
31234 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
31235 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
31236 if test $ac_cv_type_u_int32_t = yes; then
31237   ac_cv_header_stdint_u=$i
31238 else
31239   continue
31240 fi
31241
31242    { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31243 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31244 if test "${ac_cv_type_u_int64_t+set}" = set; then
31245   echo $ECHO_N "(cached) $ECHO_C" >&6
31246 else
31247   cat >conftest.$ac_ext <<_ACEOF
31248 /* confdefs.h.  */
31249 _ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h.  */
31253 #include<$i>
31254
31255 typedef u_int64_t ac__type_new_;
31256 int
31257 main ()
31258 {
31259 if ((ac__type_new_ *) 0)
31260   return 0;
31261 if (sizeof (ac__type_new_))
31262   return 0;
31263   ;
31264   return 0;
31265 }
31266 _ACEOF
31267 rm -f conftest.$ac_objext
31268 if { (ac_try="$ac_compile"
31269 case "(($ac_try" in
31270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31271   *) ac_try_echo=$ac_try;;
31272 esac
31273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31274   (eval "$ac_compile") 2>conftest.er1
31275   ac_status=$?
31276   grep -v '^ *+' conftest.er1 >conftest.err
31277   rm -f conftest.er1
31278   cat conftest.err >&5
31279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280   (exit $ac_status); } && {
31281          test -z "$ac_c_werror_flag" ||
31282          test ! -s conftest.err
31283        } && test -s conftest.$ac_objext; then
31284   ac_cv_type_u_int64_t=yes
31285 else
31286   echo "$as_me: failed program was:" >&5
31287 sed 's/^/| /' conftest.$ac_ext >&5
31288
31289         ac_cv_type_u_int64_t=no
31290 fi
31291
31292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31293 fi
31294 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31295 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31296 if test $ac_cv_type_u_int64_t = yes; then
31297   and64="/u_int64_t"
31298 else
31299   and64=""
31300 fi
31301
31302       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
31303  break
31304    break;
31305   done
31306   { echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
31307 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; }
31308
31309 fi
31310 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
31311 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6; }
31312
31313 fi fi
31314
31315 if test "_$ac_cv_header_stdint_x" = "_" ; then
31316    { echo "$as_me:$LINENO: checking for stdint datatype model" >&5
31317 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6; }
31318    { echo "$as_me:$LINENO: result: (..)" >&5
31319 echo "${ECHO_T}(..)" >&6; }
31320
31321    { echo "$as_me:$LINENO: checking for char" >&5
31322 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
31323 if test "${ac_cv_type_char+set}" = set; then
31324   echo $ECHO_N "(cached) $ECHO_C" >&6
31325 else
31326   cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332 $ac_includes_default
31333 typedef char ac__type_new_;
31334 int
31335 main ()
31336 {
31337 if ((ac__type_new_ *) 0)
31338   return 0;
31339 if (sizeof (ac__type_new_))
31340   return 0;
31341   ;
31342   return 0;
31343 }
31344 _ACEOF
31345 rm -f conftest.$ac_objext
31346 if { (ac_try="$ac_compile"
31347 case "(($ac_try" in
31348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31349   *) ac_try_echo=$ac_try;;
31350 esac
31351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31352   (eval "$ac_compile") 2>conftest.er1
31353   ac_status=$?
31354   grep -v '^ *+' conftest.er1 >conftest.err
31355   rm -f conftest.er1
31356   cat conftest.err >&5
31357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358   (exit $ac_status); } && {
31359          test -z "$ac_c_werror_flag" ||
31360          test ! -s conftest.err
31361        } && test -s conftest.$ac_objext; then
31362   ac_cv_type_char=yes
31363 else
31364   echo "$as_me: failed program was:" >&5
31365 sed 's/^/| /' conftest.$ac_ext >&5
31366
31367         ac_cv_type_char=no
31368 fi
31369
31370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31371 fi
31372 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
31373 echo "${ECHO_T}$ac_cv_type_char" >&6; }
31374
31375 # The cast to long int works around a bug in the HP C Compiler
31376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31378 # This bug is HP SR number 8606223364.
31379 { echo "$as_me:$LINENO: checking size of char" >&5
31380 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
31381 if test "${ac_cv_sizeof_char+set}" = set; then
31382   echo $ECHO_N "(cached) $ECHO_C" >&6
31383 else
31384   if test "$cross_compiling" = yes; then
31385   # Depending upon the size, compute the lo and hi bounds.
31386 cat >conftest.$ac_ext <<_ACEOF
31387 /* confdefs.h.  */
31388 _ACEOF
31389 cat confdefs.h >>conftest.$ac_ext
31390 cat >>conftest.$ac_ext <<_ACEOF
31391 /* end confdefs.h.  */
31392 $ac_includes_default
31393    typedef char ac__type_sizeof_;
31394 int
31395 main ()
31396 {
31397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
31398 test_array [0] = 0
31399
31400   ;
31401   return 0;
31402 }
31403 _ACEOF
31404 rm -f conftest.$ac_objext
31405 if { (ac_try="$ac_compile"
31406 case "(($ac_try" in
31407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408   *) ac_try_echo=$ac_try;;
31409 esac
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411   (eval "$ac_compile") 2>conftest.er1
31412   ac_status=$?
31413   grep -v '^ *+' conftest.er1 >conftest.err
31414   rm -f conftest.er1
31415   cat conftest.err >&5
31416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417   (exit $ac_status); } && {
31418          test -z "$ac_c_werror_flag" ||
31419          test ! -s conftest.err
31420        } && test -s conftest.$ac_objext; then
31421   ac_lo=0 ac_mid=0
31422   while :; do
31423     cat >conftest.$ac_ext <<_ACEOF
31424 /* confdefs.h.  */
31425 _ACEOF
31426 cat confdefs.h >>conftest.$ac_ext
31427 cat >>conftest.$ac_ext <<_ACEOF
31428 /* end confdefs.h.  */
31429 $ac_includes_default
31430    typedef char ac__type_sizeof_;
31431 int
31432 main ()
31433 {
31434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
31435 test_array [0] = 0
31436
31437   ;
31438   return 0;
31439 }
31440 _ACEOF
31441 rm -f conftest.$ac_objext
31442 if { (ac_try="$ac_compile"
31443 case "(($ac_try" in
31444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445   *) ac_try_echo=$ac_try;;
31446 esac
31447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448   (eval "$ac_compile") 2>conftest.er1
31449   ac_status=$?
31450   grep -v '^ *+' conftest.er1 >conftest.err
31451   rm -f conftest.er1
31452   cat conftest.err >&5
31453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454   (exit $ac_status); } && {
31455          test -z "$ac_c_werror_flag" ||
31456          test ! -s conftest.err
31457        } && test -s conftest.$ac_objext; then
31458   ac_hi=$ac_mid; break
31459 else
31460   echo "$as_me: failed program was:" >&5
31461 sed 's/^/| /' conftest.$ac_ext >&5
31462
31463         ac_lo=`expr $ac_mid + 1`
31464                         if test $ac_lo -le $ac_mid; then
31465                           ac_lo= ac_hi=
31466                           break
31467                         fi
31468                         ac_mid=`expr 2 '*' $ac_mid + 1`
31469 fi
31470
31471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31472   done
31473 else
31474   echo "$as_me: failed program was:" >&5
31475 sed 's/^/| /' conftest.$ac_ext >&5
31476
31477         cat >conftest.$ac_ext <<_ACEOF
31478 /* confdefs.h.  */
31479 _ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h.  */
31483 $ac_includes_default
31484    typedef char ac__type_sizeof_;
31485 int
31486 main ()
31487 {
31488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
31489 test_array [0] = 0
31490
31491   ;
31492   return 0;
31493 }
31494 _ACEOF
31495 rm -f conftest.$ac_objext
31496 if { (ac_try="$ac_compile"
31497 case "(($ac_try" in
31498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31499   *) ac_try_echo=$ac_try;;
31500 esac
31501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31502   (eval "$ac_compile") 2>conftest.er1
31503   ac_status=$?
31504   grep -v '^ *+' conftest.er1 >conftest.err
31505   rm -f conftest.er1
31506   cat conftest.err >&5
31507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508   (exit $ac_status); } && {
31509          test -z "$ac_c_werror_flag" ||
31510          test ! -s conftest.err
31511        } && test -s conftest.$ac_objext; then
31512   ac_hi=-1 ac_mid=-1
31513   while :; do
31514     cat >conftest.$ac_ext <<_ACEOF
31515 /* confdefs.h.  */
31516 _ACEOF
31517 cat confdefs.h >>conftest.$ac_ext
31518 cat >>conftest.$ac_ext <<_ACEOF
31519 /* end confdefs.h.  */
31520 $ac_includes_default
31521    typedef char ac__type_sizeof_;
31522 int
31523 main ()
31524 {
31525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
31526 test_array [0] = 0
31527
31528   ;
31529   return 0;
31530 }
31531 _ACEOF
31532 rm -f conftest.$ac_objext
31533 if { (ac_try="$ac_compile"
31534 case "(($ac_try" in
31535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31536   *) ac_try_echo=$ac_try;;
31537 esac
31538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31539   (eval "$ac_compile") 2>conftest.er1
31540   ac_status=$?
31541   grep -v '^ *+' conftest.er1 >conftest.err
31542   rm -f conftest.er1
31543   cat conftest.err >&5
31544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545   (exit $ac_status); } && {
31546          test -z "$ac_c_werror_flag" ||
31547          test ! -s conftest.err
31548        } && test -s conftest.$ac_objext; then
31549   ac_lo=$ac_mid; break
31550 else
31551   echo "$as_me: failed program was:" >&5
31552 sed 's/^/| /' conftest.$ac_ext >&5
31553
31554         ac_hi=`expr '(' $ac_mid ')' - 1`
31555                         if test $ac_mid -le $ac_hi; then
31556                           ac_lo= ac_hi=
31557                           break
31558                         fi
31559                         ac_mid=`expr 2 '*' $ac_mid`
31560 fi
31561
31562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31563   done
31564 else
31565   echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31567
31568         ac_lo= ac_hi=
31569 fi
31570
31571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31572 fi
31573
31574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31575 # Binary search between lo and hi bounds.
31576 while test "x$ac_lo" != "x$ac_hi"; do
31577   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31578   cat >conftest.$ac_ext <<_ACEOF
31579 /* confdefs.h.  */
31580 _ACEOF
31581 cat confdefs.h >>conftest.$ac_ext
31582 cat >>conftest.$ac_ext <<_ACEOF
31583 /* end confdefs.h.  */
31584 $ac_includes_default
31585    typedef char ac__type_sizeof_;
31586 int
31587 main ()
31588 {
31589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
31590 test_array [0] = 0
31591
31592   ;
31593   return 0;
31594 }
31595 _ACEOF
31596 rm -f conftest.$ac_objext
31597 if { (ac_try="$ac_compile"
31598 case "(($ac_try" in
31599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600   *) ac_try_echo=$ac_try;;
31601 esac
31602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603   (eval "$ac_compile") 2>conftest.er1
31604   ac_status=$?
31605   grep -v '^ *+' conftest.er1 >conftest.err
31606   rm -f conftest.er1
31607   cat conftest.err >&5
31608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609   (exit $ac_status); } && {
31610          test -z "$ac_c_werror_flag" ||
31611          test ! -s conftest.err
31612        } && test -s conftest.$ac_objext; then
31613   ac_hi=$ac_mid
31614 else
31615   echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31617
31618         ac_lo=`expr '(' $ac_mid ')' + 1`
31619 fi
31620
31621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31622 done
31623 case $ac_lo in
31624 ?*) ac_cv_sizeof_char=$ac_lo;;
31625 '') if test "$ac_cv_type_char" = yes; then
31626      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
31627 See \`config.log' for more details." >&5
31628 echo "$as_me: error: cannot compute sizeof (char)
31629 See \`config.log' for more details." >&2;}
31630    { (exit 77); exit 77; }; }
31631    else
31632      ac_cv_sizeof_char=0
31633    fi ;;
31634 esac
31635 else
31636   cat >conftest.$ac_ext <<_ACEOF
31637 /* confdefs.h.  */
31638 _ACEOF
31639 cat confdefs.h >>conftest.$ac_ext
31640 cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h.  */
31642 $ac_includes_default
31643    typedef char ac__type_sizeof_;
31644 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
31645 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
31646 #include <stdio.h>
31647 #include <stdlib.h>
31648 int
31649 main ()
31650 {
31651
31652   FILE *f = fopen ("conftest.val", "w");
31653   if (! f)
31654     return 1;
31655   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
31656     {
31657       long int i = longval ();
31658       if (i != ((long int) (sizeof (ac__type_sizeof_))))
31659         return 1;
31660       fprintf (f, "%ld\n", i);
31661     }
31662   else
31663     {
31664       unsigned long int i = ulongval ();
31665       if (i != ((long int) (sizeof (ac__type_sizeof_))))
31666         return 1;
31667       fprintf (f, "%lu\n", i);
31668     }
31669   return ferror (f) || fclose (f) != 0;
31670
31671   ;
31672   return 0;
31673 }
31674 _ACEOF
31675 rm -f conftest$ac_exeext
31676 if { (ac_try="$ac_link"
31677 case "(($ac_try" in
31678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679   *) ac_try_echo=$ac_try;;
31680 esac
31681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682   (eval "$ac_link") 2>&5
31683   ac_status=$?
31684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31686   { (case "(($ac_try" in
31687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31688   *) ac_try_echo=$ac_try;;
31689 esac
31690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31691   (eval "$ac_try") 2>&5
31692   ac_status=$?
31693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694   (exit $ac_status); }; }; then
31695   ac_cv_sizeof_char=`cat conftest.val`
31696 else
31697   echo "$as_me: program exited with status $ac_status" >&5
31698 echo "$as_me: failed program was:" >&5
31699 sed 's/^/| /' conftest.$ac_ext >&5
31700
31701 ( exit $ac_status )
31702 if test "$ac_cv_type_char" = yes; then
31703      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
31704 See \`config.log' for more details." >&5
31705 echo "$as_me: error: cannot compute sizeof (char)
31706 See \`config.log' for more details." >&2;}
31707    { (exit 77); exit 77; }; }
31708    else
31709      ac_cv_sizeof_char=0
31710    fi
31711 fi
31712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31713 fi
31714 rm -f conftest.val
31715 fi
31716 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
31717 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
31718
31719
31720
31721 cat >>confdefs.h <<_ACEOF
31722 #define SIZEOF_CHAR $ac_cv_sizeof_char
31723 _ACEOF
31724
31725
31726    { echo "$as_me:$LINENO: checking for short" >&5
31727 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
31728 if test "${ac_cv_type_short+set}" = set; then
31729   echo $ECHO_N "(cached) $ECHO_C" >&6
31730 else
31731   cat >conftest.$ac_ext <<_ACEOF
31732 /* confdefs.h.  */
31733 _ACEOF
31734 cat confdefs.h >>conftest.$ac_ext
31735 cat >>conftest.$ac_ext <<_ACEOF
31736 /* end confdefs.h.  */
31737 $ac_includes_default
31738 typedef short ac__type_new_;
31739 int
31740 main ()
31741 {
31742 if ((ac__type_new_ *) 0)
31743   return 0;
31744 if (sizeof (ac__type_new_))
31745   return 0;
31746   ;
31747   return 0;
31748 }
31749 _ACEOF
31750 rm -f conftest.$ac_objext
31751 if { (ac_try="$ac_compile"
31752 case "(($ac_try" in
31753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754   *) ac_try_echo=$ac_try;;
31755 esac
31756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757   (eval "$ac_compile") 2>conftest.er1
31758   ac_status=$?
31759   grep -v '^ *+' conftest.er1 >conftest.err
31760   rm -f conftest.er1
31761   cat conftest.err >&5
31762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763   (exit $ac_status); } && {
31764          test -z "$ac_c_werror_flag" ||
31765          test ! -s conftest.err
31766        } && test -s conftest.$ac_objext; then
31767   ac_cv_type_short=yes
31768 else
31769   echo "$as_me: failed program was:" >&5
31770 sed 's/^/| /' conftest.$ac_ext >&5
31771
31772         ac_cv_type_short=no
31773 fi
31774
31775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31776 fi
31777 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
31778 echo "${ECHO_T}$ac_cv_type_short" >&6; }
31779
31780 # The cast to long int works around a bug in the HP C Compiler
31781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31783 # This bug is HP SR number 8606223364.
31784 { echo "$as_me:$LINENO: checking size of short" >&5
31785 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
31786 if test "${ac_cv_sizeof_short+set}" = set; then
31787   echo $ECHO_N "(cached) $ECHO_C" >&6
31788 else
31789   if test "$cross_compiling" = yes; then
31790   # Depending upon the size, compute the lo and hi bounds.
31791 cat >conftest.$ac_ext <<_ACEOF
31792 /* confdefs.h.  */
31793 _ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h.  */
31797 $ac_includes_default
31798    typedef short ac__type_sizeof_;
31799 int
31800 main ()
31801 {
31802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
31803 test_array [0] = 0
31804
31805   ;
31806   return 0;
31807 }
31808 _ACEOF
31809 rm -f conftest.$ac_objext
31810 if { (ac_try="$ac_compile"
31811 case "(($ac_try" in
31812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813   *) ac_try_echo=$ac_try;;
31814 esac
31815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816   (eval "$ac_compile") 2>conftest.er1
31817   ac_status=$?
31818   grep -v '^ *+' conftest.er1 >conftest.err
31819   rm -f conftest.er1
31820   cat conftest.err >&5
31821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822   (exit $ac_status); } && {
31823          test -z "$ac_c_werror_flag" ||
31824          test ! -s conftest.err
31825        } && test -s conftest.$ac_objext; then
31826   ac_lo=0 ac_mid=0
31827   while :; do
31828     cat >conftest.$ac_ext <<_ACEOF
31829 /* confdefs.h.  */
31830 _ACEOF
31831 cat confdefs.h >>conftest.$ac_ext
31832 cat >>conftest.$ac_ext <<_ACEOF
31833 /* end confdefs.h.  */
31834 $ac_includes_default
31835    typedef short ac__type_sizeof_;
31836 int
31837 main ()
31838 {
31839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
31840 test_array [0] = 0
31841
31842   ;
31843   return 0;
31844 }
31845 _ACEOF
31846 rm -f conftest.$ac_objext
31847 if { (ac_try="$ac_compile"
31848 case "(($ac_try" in
31849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850   *) ac_try_echo=$ac_try;;
31851 esac
31852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853   (eval "$ac_compile") 2>conftest.er1
31854   ac_status=$?
31855   grep -v '^ *+' conftest.er1 >conftest.err
31856   rm -f conftest.er1
31857   cat conftest.err >&5
31858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859   (exit $ac_status); } && {
31860          test -z "$ac_c_werror_flag" ||
31861          test ! -s conftest.err
31862        } && test -s conftest.$ac_objext; then
31863   ac_hi=$ac_mid; break
31864 else
31865   echo "$as_me: failed program was:" >&5
31866 sed 's/^/| /' conftest.$ac_ext >&5
31867
31868         ac_lo=`expr $ac_mid + 1`
31869                         if test $ac_lo -le $ac_mid; then
31870                           ac_lo= ac_hi=
31871                           break
31872                         fi
31873                         ac_mid=`expr 2 '*' $ac_mid + 1`
31874 fi
31875
31876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31877   done
31878 else
31879   echo "$as_me: failed program was:" >&5
31880 sed 's/^/| /' conftest.$ac_ext >&5
31881
31882         cat >conftest.$ac_ext <<_ACEOF
31883 /* confdefs.h.  */
31884 _ACEOF
31885 cat confdefs.h >>conftest.$ac_ext
31886 cat >>conftest.$ac_ext <<_ACEOF
31887 /* end confdefs.h.  */
31888 $ac_includes_default
31889    typedef short ac__type_sizeof_;
31890 int
31891 main ()
31892 {
31893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
31894 test_array [0] = 0
31895
31896   ;
31897   return 0;
31898 }
31899 _ACEOF
31900 rm -f conftest.$ac_objext
31901 if { (ac_try="$ac_compile"
31902 case "(($ac_try" in
31903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904   *) ac_try_echo=$ac_try;;
31905 esac
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907   (eval "$ac_compile") 2>conftest.er1
31908   ac_status=$?
31909   grep -v '^ *+' conftest.er1 >conftest.err
31910   rm -f conftest.er1
31911   cat conftest.err >&5
31912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913   (exit $ac_status); } && {
31914          test -z "$ac_c_werror_flag" ||
31915          test ! -s conftest.err
31916        } && test -s conftest.$ac_objext; then
31917   ac_hi=-1 ac_mid=-1
31918   while :; do
31919     cat >conftest.$ac_ext <<_ACEOF
31920 /* confdefs.h.  */
31921 _ACEOF
31922 cat confdefs.h >>conftest.$ac_ext
31923 cat >>conftest.$ac_ext <<_ACEOF
31924 /* end confdefs.h.  */
31925 $ac_includes_default
31926    typedef short ac__type_sizeof_;
31927 int
31928 main ()
31929 {
31930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
31931 test_array [0] = 0
31932
31933   ;
31934   return 0;
31935 }
31936 _ACEOF
31937 rm -f conftest.$ac_objext
31938 if { (ac_try="$ac_compile"
31939 case "(($ac_try" in
31940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31941   *) ac_try_echo=$ac_try;;
31942 esac
31943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31944   (eval "$ac_compile") 2>conftest.er1
31945   ac_status=$?
31946   grep -v '^ *+' conftest.er1 >conftest.err
31947   rm -f conftest.er1
31948   cat conftest.err >&5
31949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950   (exit $ac_status); } && {
31951          test -z "$ac_c_werror_flag" ||
31952          test ! -s conftest.err
31953        } && test -s conftest.$ac_objext; then
31954   ac_lo=$ac_mid; break
31955 else
31956   echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31958
31959         ac_hi=`expr '(' $ac_mid ')' - 1`
31960                         if test $ac_mid -le $ac_hi; then
31961                           ac_lo= ac_hi=
31962                           break
31963                         fi
31964                         ac_mid=`expr 2 '*' $ac_mid`
31965 fi
31966
31967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31968   done
31969 else
31970   echo "$as_me: failed program was:" >&5
31971 sed 's/^/| /' conftest.$ac_ext >&5
31972
31973         ac_lo= ac_hi=
31974 fi
31975
31976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31977 fi
31978
31979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31980 # Binary search between lo and hi bounds.
31981 while test "x$ac_lo" != "x$ac_hi"; do
31982   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31983   cat >conftest.$ac_ext <<_ACEOF
31984 /* confdefs.h.  */
31985 _ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h.  */
31989 $ac_includes_default
31990    typedef short ac__type_sizeof_;
31991 int
31992 main ()
31993 {
31994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
31995 test_array [0] = 0
31996
31997   ;
31998   return 0;
31999 }
32000 _ACEOF
32001 rm -f conftest.$ac_objext
32002 if { (ac_try="$ac_compile"
32003 case "(($ac_try" in
32004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005   *) ac_try_echo=$ac_try;;
32006 esac
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008   (eval "$ac_compile") 2>conftest.er1
32009   ac_status=$?
32010   grep -v '^ *+' conftest.er1 >conftest.err
32011   rm -f conftest.er1
32012   cat conftest.err >&5
32013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014   (exit $ac_status); } && {
32015          test -z "$ac_c_werror_flag" ||
32016          test ! -s conftest.err
32017        } && test -s conftest.$ac_objext; then
32018   ac_hi=$ac_mid
32019 else
32020   echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32022
32023         ac_lo=`expr '(' $ac_mid ')' + 1`
32024 fi
32025
32026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32027 done
32028 case $ac_lo in
32029 ?*) ac_cv_sizeof_short=$ac_lo;;
32030 '') if test "$ac_cv_type_short" = yes; then
32031      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
32032 See \`config.log' for more details." >&5
32033 echo "$as_me: error: cannot compute sizeof (short)
32034 See \`config.log' for more details." >&2;}
32035    { (exit 77); exit 77; }; }
32036    else
32037      ac_cv_sizeof_short=0
32038    fi ;;
32039 esac
32040 else
32041   cat >conftest.$ac_ext <<_ACEOF
32042 /* confdefs.h.  */
32043 _ACEOF
32044 cat confdefs.h >>conftest.$ac_ext
32045 cat >>conftest.$ac_ext <<_ACEOF
32046 /* end confdefs.h.  */
32047 $ac_includes_default
32048    typedef short ac__type_sizeof_;
32049 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
32050 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
32051 #include <stdio.h>
32052 #include <stdlib.h>
32053 int
32054 main ()
32055 {
32056
32057   FILE *f = fopen ("conftest.val", "w");
32058   if (! f)
32059     return 1;
32060   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
32061     {
32062       long int i = longval ();
32063       if (i != ((long int) (sizeof (ac__type_sizeof_))))
32064         return 1;
32065       fprintf (f, "%ld\n", i);
32066     }
32067   else
32068     {
32069       unsigned long int i = ulongval ();
32070       if (i != ((long int) (sizeof (ac__type_sizeof_))))
32071         return 1;
32072       fprintf (f, "%lu\n", i);
32073     }
32074   return ferror (f) || fclose (f) != 0;
32075
32076   ;
32077   return 0;
32078 }
32079 _ACEOF
32080 rm -f conftest$ac_exeext
32081 if { (ac_try="$ac_link"
32082 case "(($ac_try" in
32083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32084   *) ac_try_echo=$ac_try;;
32085 esac
32086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32087   (eval "$ac_link") 2>&5
32088   ac_status=$?
32089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32091   { (case "(($ac_try" in
32092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093   *) ac_try_echo=$ac_try;;
32094 esac
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096   (eval "$ac_try") 2>&5
32097   ac_status=$?
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); }; }; then
32100   ac_cv_sizeof_short=`cat conftest.val`
32101 else
32102   echo "$as_me: program exited with status $ac_status" >&5
32103 echo "$as_me: failed program was:" >&5
32104 sed 's/^/| /' conftest.$ac_ext >&5
32105
32106 ( exit $ac_status )
32107 if test "$ac_cv_type_short" = yes; then
32108      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
32109 See \`config.log' for more details." >&5
32110 echo "$as_me: error: cannot compute sizeof (short)
32111 See \`config.log' for more details." >&2;}
32112    { (exit 77); exit 77; }; }
32113    else
32114      ac_cv_sizeof_short=0
32115    fi
32116 fi
32117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32118 fi
32119 rm -f conftest.val
32120 fi
32121 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
32122 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
32123
32124
32125
32126 cat >>confdefs.h <<_ACEOF
32127 #define SIZEOF_SHORT $ac_cv_sizeof_short
32128 _ACEOF
32129
32130
32131    { echo "$as_me:$LINENO: checking for int" >&5
32132 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
32133 if test "${ac_cv_type_int+set}" = set; then
32134   echo $ECHO_N "(cached) $ECHO_C" >&6
32135 else
32136   cat >conftest.$ac_ext <<_ACEOF
32137 /* confdefs.h.  */
32138 _ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h.  */
32142 $ac_includes_default
32143 typedef int ac__type_new_;
32144 int
32145 main ()
32146 {
32147 if ((ac__type_new_ *) 0)
32148   return 0;
32149 if (sizeof (ac__type_new_))
32150   return 0;
32151   ;
32152   return 0;
32153 }
32154 _ACEOF
32155 rm -f conftest.$ac_objext
32156 if { (ac_try="$ac_compile"
32157 case "(($ac_try" in
32158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32159   *) ac_try_echo=$ac_try;;
32160 esac
32161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32162   (eval "$ac_compile") 2>conftest.er1
32163   ac_status=$?
32164   grep -v '^ *+' conftest.er1 >conftest.err
32165   rm -f conftest.er1
32166   cat conftest.err >&5
32167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168   (exit $ac_status); } && {
32169          test -z "$ac_c_werror_flag" ||
32170          test ! -s conftest.err
32171        } && test -s conftest.$ac_objext; then
32172   ac_cv_type_int=yes
32173 else
32174   echo "$as_me: failed program was:" >&5
32175 sed 's/^/| /' conftest.$ac_ext >&5
32176
32177         ac_cv_type_int=no
32178 fi
32179
32180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32181 fi
32182 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
32183 echo "${ECHO_T}$ac_cv_type_int" >&6; }
32184
32185 # The cast to long int works around a bug in the HP C Compiler
32186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32188 # This bug is HP SR number 8606223364.
32189 { echo "$as_me:$LINENO: checking size of int" >&5
32190 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
32191 if test "${ac_cv_sizeof_int+set}" = set; then
32192   echo $ECHO_N "(cached) $ECHO_C" >&6
32193 else
32194   if test "$cross_compiling" = yes; then
32195   # Depending upon the size, compute the lo and hi bounds.
32196 cat >conftest.$ac_ext <<_ACEOF
32197 /* confdefs.h.  */
32198 _ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h.  */
32202 $ac_includes_default
32203    typedef int ac__type_sizeof_;
32204 int
32205 main ()
32206 {
32207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
32208 test_array [0] = 0
32209
32210   ;
32211   return 0;
32212 }
32213 _ACEOF
32214 rm -f conftest.$ac_objext
32215 if { (ac_try="$ac_compile"
32216 case "(($ac_try" in
32217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218   *) ac_try_echo=$ac_try;;
32219 esac
32220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221   (eval "$ac_compile") 2>conftest.er1
32222   ac_status=$?
32223   grep -v '^ *+' conftest.er1 >conftest.err
32224   rm -f conftest.er1
32225   cat conftest.err >&5
32226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227   (exit $ac_status); } && {
32228          test -z "$ac_c_werror_flag" ||
32229          test ! -s conftest.err
32230        } && test -s conftest.$ac_objext; then
32231   ac_lo=0 ac_mid=0
32232   while :; do
32233     cat >conftest.$ac_ext <<_ACEOF
32234 /* confdefs.h.  */
32235 _ACEOF
32236 cat confdefs.h >>conftest.$ac_ext
32237 cat >>conftest.$ac_ext <<_ACEOF
32238 /* end confdefs.h.  */
32239 $ac_includes_default
32240    typedef int ac__type_sizeof_;
32241 int
32242 main ()
32243 {
32244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
32245 test_array [0] = 0
32246
32247   ;
32248   return 0;
32249 }
32250 _ACEOF
32251 rm -f conftest.$ac_objext
32252 if { (ac_try="$ac_compile"
32253 case "(($ac_try" in
32254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255   *) ac_try_echo=$ac_try;;
32256 esac
32257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258   (eval "$ac_compile") 2>conftest.er1
32259   ac_status=$?
32260   grep -v '^ *+' conftest.er1 >conftest.err
32261   rm -f conftest.er1
32262   cat conftest.err >&5
32263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264   (exit $ac_status); } && {
32265          test -z "$ac_c_werror_flag" ||
32266          test ! -s conftest.err
32267        } && test -s conftest.$ac_objext; then
32268   ac_hi=$ac_mid; break
32269 else
32270   echo "$as_me: failed program was:" >&5
32271 sed 's/^/| /' conftest.$ac_ext >&5
32272
32273         ac_lo=`expr $ac_mid + 1`
32274                         if test $ac_lo -le $ac_mid; then
32275                           ac_lo= ac_hi=
32276                           break
32277                         fi
32278                         ac_mid=`expr 2 '*' $ac_mid + 1`
32279 fi
32280
32281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32282   done
32283 else
32284   echo "$as_me: failed program was:" >&5
32285 sed 's/^/| /' conftest.$ac_ext >&5
32286
32287         cat >conftest.$ac_ext <<_ACEOF
32288 /* confdefs.h.  */
32289 _ACEOF
32290 cat confdefs.h >>conftest.$ac_ext
32291 cat >>conftest.$ac_ext <<_ACEOF
32292 /* end confdefs.h.  */
32293 $ac_includes_default
32294    typedef int ac__type_sizeof_;
32295 int
32296 main ()
32297 {
32298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
32299 test_array [0] = 0
32300
32301   ;
32302   return 0;
32303 }
32304 _ACEOF
32305 rm -f conftest.$ac_objext
32306 if { (ac_try="$ac_compile"
32307 case "(($ac_try" in
32308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309   *) ac_try_echo=$ac_try;;
32310 esac
32311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312   (eval "$ac_compile") 2>conftest.er1
32313   ac_status=$?
32314   grep -v '^ *+' conftest.er1 >conftest.err
32315   rm -f conftest.er1
32316   cat conftest.err >&5
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); } && {
32319          test -z "$ac_c_werror_flag" ||
32320          test ! -s conftest.err
32321        } && test -s conftest.$ac_objext; then
32322   ac_hi=-1 ac_mid=-1
32323   while :; do
32324     cat >conftest.$ac_ext <<_ACEOF
32325 /* confdefs.h.  */
32326 _ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h.  */
32330 $ac_includes_default
32331    typedef int ac__type_sizeof_;
32332 int
32333 main ()
32334 {
32335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
32336 test_array [0] = 0
32337
32338   ;
32339   return 0;
32340 }
32341 _ACEOF
32342 rm -f conftest.$ac_objext
32343 if { (ac_try="$ac_compile"
32344 case "(($ac_try" in
32345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346   *) ac_try_echo=$ac_try;;
32347 esac
32348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349   (eval "$ac_compile") 2>conftest.er1
32350   ac_status=$?
32351   grep -v '^ *+' conftest.er1 >conftest.err
32352   rm -f conftest.er1
32353   cat conftest.err >&5
32354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355   (exit $ac_status); } && {
32356          test -z "$ac_c_werror_flag" ||
32357          test ! -s conftest.err
32358        } && test -s conftest.$ac_objext; then
32359   ac_lo=$ac_mid; break
32360 else
32361   echo "$as_me: failed program was:" >&5
32362 sed 's/^/| /' conftest.$ac_ext >&5
32363
32364         ac_hi=`expr '(' $ac_mid ')' - 1`
32365                         if test $ac_mid -le $ac_hi; then
32366                           ac_lo= ac_hi=
32367                           break
32368                         fi
32369                         ac_mid=`expr 2 '*' $ac_mid`
32370 fi
32371
32372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32373   done
32374 else
32375   echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32377
32378         ac_lo= ac_hi=
32379 fi
32380
32381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32382 fi
32383
32384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32385 # Binary search between lo and hi bounds.
32386 while test "x$ac_lo" != "x$ac_hi"; do
32387   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32388   cat >conftest.$ac_ext <<_ACEOF
32389 /* confdefs.h.  */
32390 _ACEOF
32391 cat confdefs.h >>conftest.$ac_ext
32392 cat >>conftest.$ac_ext <<_ACEOF
32393 /* end confdefs.h.  */
32394 $ac_includes_default
32395    typedef int ac__type_sizeof_;
32396 int
32397 main ()
32398 {
32399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
32400 test_array [0] = 0
32401
32402   ;
32403   return 0;
32404 }
32405 _ACEOF
32406 rm -f conftest.$ac_objext
32407 if { (ac_try="$ac_compile"
32408 case "(($ac_try" in
32409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32410   *) ac_try_echo=$ac_try;;
32411 esac
32412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32413   (eval "$ac_compile") 2>conftest.er1
32414   ac_status=$?
32415   grep -v '^ *+' conftest.er1 >conftest.err
32416   rm -f conftest.er1
32417   cat conftest.err >&5
32418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419   (exit $ac_status); } && {
32420          test -z "$ac_c_werror_flag" ||
32421          test ! -s conftest.err
32422        } && test -s conftest.$ac_objext; then
32423   ac_hi=$ac_mid
32424 else
32425   echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32427
32428         ac_lo=`expr '(' $ac_mid ')' + 1`
32429 fi
32430
32431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32432 done
32433 case $ac_lo in
32434 ?*) ac_cv_sizeof_int=$ac_lo;;
32435 '') if test "$ac_cv_type_int" = yes; then
32436      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
32437 See \`config.log' for more details." >&5
32438 echo "$as_me: error: cannot compute sizeof (int)
32439 See \`config.log' for more details." >&2;}
32440    { (exit 77); exit 77; }; }
32441    else
32442      ac_cv_sizeof_int=0
32443    fi ;;
32444 esac
32445 else
32446   cat >conftest.$ac_ext <<_ACEOF
32447 /* confdefs.h.  */
32448 _ACEOF
32449 cat confdefs.h >>conftest.$ac_ext
32450 cat >>conftest.$ac_ext <<_ACEOF
32451 /* end confdefs.h.  */
32452 $ac_includes_default
32453    typedef int ac__type_sizeof_;
32454 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
32455 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
32456 #include <stdio.h>
32457 #include <stdlib.h>
32458 int
32459 main ()
32460 {
32461
32462   FILE *f = fopen ("conftest.val", "w");
32463   if (! f)
32464     return 1;
32465   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
32466     {
32467       long int i = longval ();
32468       if (i != ((long int) (sizeof (ac__type_sizeof_))))
32469         return 1;
32470       fprintf (f, "%ld\n", i);
32471     }
32472   else
32473     {
32474       unsigned long int i = ulongval ();
32475       if (i != ((long int) (sizeof (ac__type_sizeof_))))
32476         return 1;
32477       fprintf (f, "%lu\n", i);
32478     }
32479   return ferror (f) || fclose (f) != 0;
32480
32481   ;
32482   return 0;
32483 }
32484 _ACEOF
32485 rm -f conftest$ac_exeext
32486 if { (ac_try="$ac_link"
32487 case "(($ac_try" in
32488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489   *) ac_try_echo=$ac_try;;
32490 esac
32491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492   (eval "$ac_link") 2>&5
32493   ac_status=$?
32494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32496   { (case "(($ac_try" in
32497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498   *) ac_try_echo=$ac_try;;
32499 esac
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501   (eval "$ac_try") 2>&5
32502   ac_status=$?
32503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504   (exit $ac_status); }; }; then
32505   ac_cv_sizeof_int=`cat conftest.val`
32506 else
32507   echo "$as_me: program exited with status $ac_status" >&5
32508 echo "$as_me: failed program was:" >&5
32509 sed 's/^/| /' conftest.$ac_ext >&5
32510
32511 ( exit $ac_status )
32512 if test "$ac_cv_type_int" = yes; then
32513      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
32514 See \`config.log' for more details." >&5
32515 echo "$as_me: error: cannot compute sizeof (int)
32516 See \`config.log' for more details." >&2;}
32517    { (exit 77); exit 77; }; }
32518    else
32519      ac_cv_sizeof_int=0
32520    fi
32521 fi
32522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32523 fi
32524 rm -f conftest.val
32525 fi
32526 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
32527 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
32528
32529
32530
32531 cat >>confdefs.h <<_ACEOF
32532 #define SIZEOF_INT $ac_cv_sizeof_int
32533 _ACEOF
32534
32535
32536    { echo "$as_me:$LINENO: checking for long" >&5
32537 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
32538 if test "${ac_cv_type_long+set}" = set; then
32539   echo $ECHO_N "(cached) $ECHO_C" >&6
32540 else
32541   cat >conftest.$ac_ext <<_ACEOF
32542 /* confdefs.h.  */
32543 _ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h.  */
32547 $ac_includes_default
32548 typedef long ac__type_new_;
32549 int
32550 main ()
32551 {
32552 if ((ac__type_new_ *) 0)
32553   return 0;
32554 if (sizeof (ac__type_new_))
32555   return 0;
32556   ;
32557   return 0;
32558 }
32559 _ACEOF
32560 rm -f conftest.$ac_objext
32561 if { (ac_try="$ac_compile"
32562 case "(($ac_try" in
32563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32564   *) ac_try_echo=$ac_try;;
32565 esac
32566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32567   (eval "$ac_compile") 2>conftest.er1
32568   ac_status=$?
32569   grep -v '^ *+' conftest.er1 >conftest.err
32570   rm -f conftest.er1
32571   cat conftest.err >&5
32572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573   (exit $ac_status); } && {
32574          test -z "$ac_c_werror_flag" ||
32575          test ! -s conftest.err
32576        } && test -s conftest.$ac_objext; then
32577   ac_cv_type_long=yes
32578 else
32579   echo "$as_me: failed program was:" >&5
32580 sed 's/^/| /' conftest.$ac_ext >&5
32581
32582         ac_cv_type_long=no
32583 fi
32584
32585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32586 fi
32587 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
32588 echo "${ECHO_T}$ac_cv_type_long" >&6; }
32589
32590 # The cast to long int works around a bug in the HP C Compiler
32591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32593 # This bug is HP SR number 8606223364.
32594 { echo "$as_me:$LINENO: checking size of long" >&5
32595 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
32596 if test "${ac_cv_sizeof_long+set}" = set; then
32597   echo $ECHO_N "(cached) $ECHO_C" >&6
32598 else
32599   if test "$cross_compiling" = yes; then
32600   # Depending upon the size, compute the lo and hi bounds.
32601 cat >conftest.$ac_ext <<_ACEOF
32602 /* confdefs.h.  */
32603 _ACEOF
32604 cat confdefs.h >>conftest.$ac_ext
32605 cat >>conftest.$ac_ext <<_ACEOF
32606 /* end confdefs.h.  */
32607 $ac_includes_default
32608    typedef long ac__type_sizeof_;
32609 int
32610 main ()
32611 {
32612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
32613 test_array [0] = 0
32614
32615   ;
32616   return 0;
32617 }
32618 _ACEOF
32619 rm -f conftest.$ac_objext
32620 if { (ac_try="$ac_compile"
32621 case "(($ac_try" in
32622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32623   *) ac_try_echo=$ac_try;;
32624 esac
32625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32626   (eval "$ac_compile") 2>conftest.er1
32627   ac_status=$?
32628   grep -v '^ *+' conftest.er1 >conftest.err
32629   rm -f conftest.er1
32630   cat conftest.err >&5
32631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632   (exit $ac_status); } && {
32633          test -z "$ac_c_werror_flag" ||
32634          test ! -s conftest.err
32635        } && test -s conftest.$ac_objext; then
32636   ac_lo=0 ac_mid=0
32637   while :; do
32638     cat >conftest.$ac_ext <<_ACEOF
32639 /* confdefs.h.  */
32640 _ACEOF
32641 cat confdefs.h >>conftest.$ac_ext
32642 cat >>conftest.$ac_ext <<_ACEOF
32643 /* end confdefs.h.  */
32644 $ac_includes_default
32645    typedef long ac__type_sizeof_;
32646 int
32647 main ()
32648 {
32649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
32650 test_array [0] = 0
32651
32652   ;
32653   return 0;
32654 }
32655 _ACEOF
32656 rm -f conftest.$ac_objext
32657 if { (ac_try="$ac_compile"
32658 case "(($ac_try" in
32659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660   *) ac_try_echo=$ac_try;;
32661 esac
32662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663   (eval "$ac_compile") 2>conftest.er1
32664   ac_status=$?
32665   grep -v '^ *+' conftest.er1 >conftest.err
32666   rm -f conftest.er1
32667   cat conftest.err >&5
32668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669   (exit $ac_status); } && {
32670          test -z "$ac_c_werror_flag" ||
32671          test ! -s conftest.err
32672        } && test -s conftest.$ac_objext; then
32673   ac_hi=$ac_mid; break
32674 else
32675   echo "$as_me: failed program was:" >&5
32676 sed 's/^/| /' conftest.$ac_ext >&5
32677
32678         ac_lo=`expr $ac_mid + 1`
32679                         if test $ac_lo -le $ac_mid; then
32680                           ac_lo= ac_hi=
32681                           break
32682                         fi
32683                         ac_mid=`expr 2 '*' $ac_mid + 1`
32684 fi
32685
32686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32687   done
32688 else
32689   echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32691
32692         cat >conftest.$ac_ext <<_ACEOF
32693 /* confdefs.h.  */
32694 _ACEOF
32695 cat confdefs.h >>conftest.$ac_ext
32696 cat >>conftest.$ac_ext <<_ACEOF
32697 /* end confdefs.h.  */
32698 $ac_includes_default
32699    typedef long ac__type_sizeof_;
32700 int
32701 main ()
32702 {
32703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
32704 test_array [0] = 0
32705
32706   ;
32707   return 0;
32708 }
32709 _ACEOF
32710 rm -f conftest.$ac_objext
32711 if { (ac_try="$ac_compile"
32712 case "(($ac_try" in
32713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714   *) ac_try_echo=$ac_try;;
32715 esac
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717   (eval "$ac_compile") 2>conftest.er1
32718   ac_status=$?
32719   grep -v '^ *+' conftest.er1 >conftest.err
32720   rm -f conftest.er1
32721   cat conftest.err >&5
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); } && {
32724          test -z "$ac_c_werror_flag" ||
32725          test ! -s conftest.err
32726        } && test -s conftest.$ac_objext; then
32727   ac_hi=-1 ac_mid=-1
32728   while :; do
32729     cat >conftest.$ac_ext <<_ACEOF
32730 /* confdefs.h.  */
32731 _ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h.  */
32735 $ac_includes_default
32736    typedef long ac__type_sizeof_;
32737 int
32738 main ()
32739 {
32740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
32741 test_array [0] = 0
32742
32743   ;
32744   return 0;
32745 }
32746 _ACEOF
32747 rm -f conftest.$ac_objext
32748 if { (ac_try="$ac_compile"
32749 case "(($ac_try" in
32750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751   *) ac_try_echo=$ac_try;;
32752 esac
32753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754   (eval "$ac_compile") 2>conftest.er1
32755   ac_status=$?
32756   grep -v '^ *+' conftest.er1 >conftest.err
32757   rm -f conftest.er1
32758   cat conftest.err >&5
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); } && {
32761          test -z "$ac_c_werror_flag" ||
32762          test ! -s conftest.err
32763        } && test -s conftest.$ac_objext; then
32764   ac_lo=$ac_mid; break
32765 else
32766   echo "$as_me: failed program was:" >&5
32767 sed 's/^/| /' conftest.$ac_ext >&5
32768
32769         ac_hi=`expr '(' $ac_mid ')' - 1`
32770                         if test $ac_mid -le $ac_hi; then
32771                           ac_lo= ac_hi=
32772                           break
32773                         fi
32774                         ac_mid=`expr 2 '*' $ac_mid`
32775 fi
32776
32777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32778   done
32779 else
32780   echo "$as_me: failed program was:" >&5
32781 sed 's/^/| /' conftest.$ac_ext >&5
32782
32783         ac_lo= ac_hi=
32784 fi
32785
32786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32787 fi
32788
32789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790 # Binary search between lo and hi bounds.
32791 while test "x$ac_lo" != "x$ac_hi"; do
32792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32793   cat >conftest.$ac_ext <<_ACEOF
32794 /* confdefs.h.  */
32795 _ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h.  */
32799 $ac_includes_default
32800    typedef long ac__type_sizeof_;
32801 int
32802 main ()
32803 {
32804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
32805 test_array [0] = 0
32806
32807   ;
32808   return 0;
32809 }
32810 _ACEOF
32811 rm -f conftest.$ac_objext
32812 if { (ac_try="$ac_compile"
32813 case "(($ac_try" in
32814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32815   *) ac_try_echo=$ac_try;;
32816 esac
32817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32818   (eval "$ac_compile") 2>conftest.er1
32819   ac_status=$?
32820   grep -v '^ *+' conftest.er1 >conftest.err
32821   rm -f conftest.er1
32822   cat conftest.err >&5
32823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824   (exit $ac_status); } && {
32825          test -z "$ac_c_werror_flag" ||
32826          test ! -s conftest.err
32827        } && test -s conftest.$ac_objext; then
32828   ac_hi=$ac_mid
32829 else
32830   echo "$as_me: failed program was:" >&5
32831 sed 's/^/| /' conftest.$ac_ext >&5
32832
32833         ac_lo=`expr '(' $ac_mid ')' + 1`
32834 fi
32835
32836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32837 done
32838 case $ac_lo in
32839 ?*) ac_cv_sizeof_long=$ac_lo;;
32840 '') if test "$ac_cv_type_long" = yes; then
32841      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
32842 See \`config.log' for more details." >&5
32843 echo "$as_me: error: cannot compute sizeof (long)
32844 See \`config.log' for more details." >&2;}
32845    { (exit 77); exit 77; }; }
32846    else
32847      ac_cv_sizeof_long=0
32848    fi ;;
32849 esac
32850 else
32851   cat >conftest.$ac_ext <<_ACEOF
32852 /* confdefs.h.  */
32853 _ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h.  */
32857 $ac_includes_default
32858    typedef long ac__type_sizeof_;
32859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
32860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
32861 #include <stdio.h>
32862 #include <stdlib.h>
32863 int
32864 main ()
32865 {
32866
32867   FILE *f = fopen ("conftest.val", "w");
32868   if (! f)
32869     return 1;
32870   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
32871     {
32872       long int i = longval ();
32873       if (i != ((long int) (sizeof (ac__type_sizeof_))))
32874         return 1;
32875       fprintf (f, "%ld\n", i);
32876     }
32877   else
32878     {
32879       unsigned long int i = ulongval ();
32880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
32881         return 1;
32882       fprintf (f, "%lu\n", i);
32883     }
32884   return ferror (f) || fclose (f) != 0;
32885
32886   ;
32887   return 0;
32888 }
32889 _ACEOF
32890 rm -f conftest$ac_exeext
32891 if { (ac_try="$ac_link"
32892 case "(($ac_try" in
32893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32894   *) ac_try_echo=$ac_try;;
32895 esac
32896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32897   (eval "$ac_link") 2>&5
32898   ac_status=$?
32899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32901   { (case "(($ac_try" in
32902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903   *) ac_try_echo=$ac_try;;
32904 esac
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906   (eval "$ac_try") 2>&5
32907   ac_status=$?
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); }; }; then
32910   ac_cv_sizeof_long=`cat conftest.val`
32911 else
32912   echo "$as_me: program exited with status $ac_status" >&5
32913 echo "$as_me: failed program was:" >&5
32914 sed 's/^/| /' conftest.$ac_ext >&5
32915
32916 ( exit $ac_status )
32917 if test "$ac_cv_type_long" = yes; then
32918      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
32919 See \`config.log' for more details." >&5
32920 echo "$as_me: error: cannot compute sizeof (long)
32921 See \`config.log' for more details." >&2;}
32922    { (exit 77); exit 77; }; }
32923    else
32924      ac_cv_sizeof_long=0
32925    fi
32926 fi
32927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32928 fi
32929 rm -f conftest.val
32930 fi
32931 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
32932 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
32933
32934
32935
32936 cat >>confdefs.h <<_ACEOF
32937 #define SIZEOF_LONG $ac_cv_sizeof_long
32938 _ACEOF
32939
32940
32941    { echo "$as_me:$LINENO: checking for void*" >&5
32942 echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
32943 if test "${ac_cv_type_voidp+set}" = set; then
32944   echo $ECHO_N "(cached) $ECHO_C" >&6
32945 else
32946   cat >conftest.$ac_ext <<_ACEOF
32947 /* confdefs.h.  */
32948 _ACEOF
32949 cat confdefs.h >>conftest.$ac_ext
32950 cat >>conftest.$ac_ext <<_ACEOF
32951 /* end confdefs.h.  */
32952 $ac_includes_default
32953 typedef void* ac__type_new_;
32954 int
32955 main ()
32956 {
32957 if ((ac__type_new_ *) 0)
32958   return 0;
32959 if (sizeof (ac__type_new_))
32960   return 0;
32961   ;
32962   return 0;
32963 }
32964 _ACEOF
32965 rm -f conftest.$ac_objext
32966 if { (ac_try="$ac_compile"
32967 case "(($ac_try" in
32968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969   *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972   (eval "$ac_compile") 2>conftest.er1
32973   ac_status=$?
32974   grep -v '^ *+' conftest.er1 >conftest.err
32975   rm -f conftest.er1
32976   cat conftest.err >&5
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); } && {
32979          test -z "$ac_c_werror_flag" ||
32980          test ! -s conftest.err
32981        } && test -s conftest.$ac_objext; then
32982   ac_cv_type_voidp=yes
32983 else
32984   echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32986
32987         ac_cv_type_voidp=no
32988 fi
32989
32990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32991 fi
32992 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
32993 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
32994
32995 # The cast to long int works around a bug in the HP C Compiler
32996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32998 # This bug is HP SR number 8606223364.
32999 { echo "$as_me:$LINENO: checking size of void*" >&5
33000 echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
33001 if test "${ac_cv_sizeof_voidp+set}" = set; then
33002   echo $ECHO_N "(cached) $ECHO_C" >&6
33003 else
33004   if test "$cross_compiling" = yes; then
33005   # Depending upon the size, compute the lo and hi bounds.
33006 cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012 $ac_includes_default
33013    typedef void* ac__type_sizeof_;
33014 int
33015 main ()
33016 {
33017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33018 test_array [0] = 0
33019
33020   ;
33021   return 0;
33022 }
33023 _ACEOF
33024 rm -f conftest.$ac_objext
33025 if { (ac_try="$ac_compile"
33026 case "(($ac_try" in
33027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028   *) ac_try_echo=$ac_try;;
33029 esac
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031   (eval "$ac_compile") 2>conftest.er1
33032   ac_status=$?
33033   grep -v '^ *+' conftest.er1 >conftest.err
33034   rm -f conftest.er1
33035   cat conftest.err >&5
33036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037   (exit $ac_status); } && {
33038          test -z "$ac_c_werror_flag" ||
33039          test ! -s conftest.err
33040        } && test -s conftest.$ac_objext; then
33041   ac_lo=0 ac_mid=0
33042   while :; do
33043     cat >conftest.$ac_ext <<_ACEOF
33044 /* confdefs.h.  */
33045 _ACEOF
33046 cat confdefs.h >>conftest.$ac_ext
33047 cat >>conftest.$ac_ext <<_ACEOF
33048 /* end confdefs.h.  */
33049 $ac_includes_default
33050    typedef void* ac__type_sizeof_;
33051 int
33052 main ()
33053 {
33054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33055 test_array [0] = 0
33056
33057   ;
33058   return 0;
33059 }
33060 _ACEOF
33061 rm -f conftest.$ac_objext
33062 if { (ac_try="$ac_compile"
33063 case "(($ac_try" in
33064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33065   *) ac_try_echo=$ac_try;;
33066 esac
33067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33068   (eval "$ac_compile") 2>conftest.er1
33069   ac_status=$?
33070   grep -v '^ *+' conftest.er1 >conftest.err
33071   rm -f conftest.er1
33072   cat conftest.err >&5
33073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074   (exit $ac_status); } && {
33075          test -z "$ac_c_werror_flag" ||
33076          test ! -s conftest.err
33077        } && test -s conftest.$ac_objext; then
33078   ac_hi=$ac_mid; break
33079 else
33080   echo "$as_me: failed program was:" >&5
33081 sed 's/^/| /' conftest.$ac_ext >&5
33082
33083         ac_lo=`expr $ac_mid + 1`
33084                         if test $ac_lo -le $ac_mid; then
33085                           ac_lo= ac_hi=
33086                           break
33087                         fi
33088                         ac_mid=`expr 2 '*' $ac_mid + 1`
33089 fi
33090
33091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33092   done
33093 else
33094   echo "$as_me: failed program was:" >&5
33095 sed 's/^/| /' conftest.$ac_ext >&5
33096
33097         cat >conftest.$ac_ext <<_ACEOF
33098 /* confdefs.h.  */
33099 _ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h.  */
33103 $ac_includes_default
33104    typedef void* ac__type_sizeof_;
33105 int
33106 main ()
33107 {
33108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33109 test_array [0] = 0
33110
33111   ;
33112   return 0;
33113 }
33114 _ACEOF
33115 rm -f conftest.$ac_objext
33116 if { (ac_try="$ac_compile"
33117 case "(($ac_try" in
33118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33119   *) ac_try_echo=$ac_try;;
33120 esac
33121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33122   (eval "$ac_compile") 2>conftest.er1
33123   ac_status=$?
33124   grep -v '^ *+' conftest.er1 >conftest.err
33125   rm -f conftest.er1
33126   cat conftest.err >&5
33127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128   (exit $ac_status); } && {
33129          test -z "$ac_c_werror_flag" ||
33130          test ! -s conftest.err
33131        } && test -s conftest.$ac_objext; then
33132   ac_hi=-1 ac_mid=-1
33133   while :; do
33134     cat >conftest.$ac_ext <<_ACEOF
33135 /* confdefs.h.  */
33136 _ACEOF
33137 cat confdefs.h >>conftest.$ac_ext
33138 cat >>conftest.$ac_ext <<_ACEOF
33139 /* end confdefs.h.  */
33140 $ac_includes_default
33141    typedef void* ac__type_sizeof_;
33142 int
33143 main ()
33144 {
33145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33146 test_array [0] = 0
33147
33148   ;
33149   return 0;
33150 }
33151 _ACEOF
33152 rm -f conftest.$ac_objext
33153 if { (ac_try="$ac_compile"
33154 case "(($ac_try" in
33155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33156   *) ac_try_echo=$ac_try;;
33157 esac
33158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33159   (eval "$ac_compile") 2>conftest.er1
33160   ac_status=$?
33161   grep -v '^ *+' conftest.er1 >conftest.err
33162   rm -f conftest.er1
33163   cat conftest.err >&5
33164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165   (exit $ac_status); } && {
33166          test -z "$ac_c_werror_flag" ||
33167          test ! -s conftest.err
33168        } && test -s conftest.$ac_objext; then
33169   ac_lo=$ac_mid; break
33170 else
33171   echo "$as_me: failed program was:" >&5
33172 sed 's/^/| /' conftest.$ac_ext >&5
33173
33174         ac_hi=`expr '(' $ac_mid ')' - 1`
33175                         if test $ac_mid -le $ac_hi; then
33176                           ac_lo= ac_hi=
33177                           break
33178                         fi
33179                         ac_mid=`expr 2 '*' $ac_mid`
33180 fi
33181
33182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33183   done
33184 else
33185   echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.$ac_ext >&5
33187
33188         ac_lo= ac_hi=
33189 fi
33190
33191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33192 fi
33193
33194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33195 # Binary search between lo and hi bounds.
33196 while test "x$ac_lo" != "x$ac_hi"; do
33197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33198   cat >conftest.$ac_ext <<_ACEOF
33199 /* confdefs.h.  */
33200 _ACEOF
33201 cat confdefs.h >>conftest.$ac_ext
33202 cat >>conftest.$ac_ext <<_ACEOF
33203 /* end confdefs.h.  */
33204 $ac_includes_default
33205    typedef void* ac__type_sizeof_;
33206 int
33207 main ()
33208 {
33209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33210 test_array [0] = 0
33211
33212   ;
33213   return 0;
33214 }
33215 _ACEOF
33216 rm -f conftest.$ac_objext
33217 if { (ac_try="$ac_compile"
33218 case "(($ac_try" in
33219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220   *) ac_try_echo=$ac_try;;
33221 esac
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223   (eval "$ac_compile") 2>conftest.er1
33224   ac_status=$?
33225   grep -v '^ *+' conftest.er1 >conftest.err
33226   rm -f conftest.er1
33227   cat conftest.err >&5
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); } && {
33230          test -z "$ac_c_werror_flag" ||
33231          test ! -s conftest.err
33232        } && test -s conftest.$ac_objext; then
33233   ac_hi=$ac_mid
33234 else
33235   echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33237
33238         ac_lo=`expr '(' $ac_mid ')' + 1`
33239 fi
33240
33241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33242 done
33243 case $ac_lo in
33244 ?*) ac_cv_sizeof_voidp=$ac_lo;;
33245 '') if test "$ac_cv_type_voidp" = yes; then
33246      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
33247 See \`config.log' for more details." >&5
33248 echo "$as_me: error: cannot compute sizeof (void*)
33249 See \`config.log' for more details." >&2;}
33250    { (exit 77); exit 77; }; }
33251    else
33252      ac_cv_sizeof_voidp=0
33253    fi ;;
33254 esac
33255 else
33256   cat >conftest.$ac_ext <<_ACEOF
33257 /* confdefs.h.  */
33258 _ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h.  */
33262 $ac_includes_default
33263    typedef void* ac__type_sizeof_;
33264 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33265 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33266 #include <stdio.h>
33267 #include <stdlib.h>
33268 int
33269 main ()
33270 {
33271
33272   FILE *f = fopen ("conftest.val", "w");
33273   if (! f)
33274     return 1;
33275   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33276     {
33277       long int i = longval ();
33278       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33279         return 1;
33280       fprintf (f, "%ld\n", i);
33281     }
33282   else
33283     {
33284       unsigned long int i = ulongval ();
33285       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33286         return 1;
33287       fprintf (f, "%lu\n", i);
33288     }
33289   return ferror (f) || fclose (f) != 0;
33290
33291   ;
33292   return 0;
33293 }
33294 _ACEOF
33295 rm -f conftest$ac_exeext
33296 if { (ac_try="$ac_link"
33297 case "(($ac_try" in
33298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299   *) ac_try_echo=$ac_try;;
33300 esac
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302   (eval "$ac_link") 2>&5
33303   ac_status=$?
33304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33306   { (case "(($ac_try" in
33307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33308   *) ac_try_echo=$ac_try;;
33309 esac
33310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33311   (eval "$ac_try") 2>&5
33312   ac_status=$?
33313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314   (exit $ac_status); }; }; then
33315   ac_cv_sizeof_voidp=`cat conftest.val`
33316 else
33317   echo "$as_me: program exited with status $ac_status" >&5
33318 echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33320
33321 ( exit $ac_status )
33322 if test "$ac_cv_type_voidp" = yes; then
33323      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
33324 See \`config.log' for more details." >&5
33325 echo "$as_me: error: cannot compute sizeof (void*)
33326 See \`config.log' for more details." >&2;}
33327    { (exit 77); exit 77; }; }
33328    else
33329      ac_cv_sizeof_voidp=0
33330    fi
33331 fi
33332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33333 fi
33334 rm -f conftest.val
33335 fi
33336 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
33337 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
33338
33339
33340
33341 cat >>confdefs.h <<_ACEOF
33342 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
33343 _ACEOF
33344
33345
33346    ac_cv_char_data_model=""
33347    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
33348    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
33349    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
33350    ac_cv_long_data_model=""
33351    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
33352    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
33353    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
33354    { echo "$as_me:$LINENO: checking data model" >&5
33355 echo $ECHO_N "checking data model... $ECHO_C" >&6; }
33356    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
33357     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
33358     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
33359     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
33360     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
33361     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
33362     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
33363     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
33364     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
33365     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
33366     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
33367     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
33368     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
33369     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
33370     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
33371     222/*|333/*|444/*|666/*|888/*) :
33372                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
33373      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
33374    esac
33375    { echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
33376 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
33377
33378 fi
33379
33380 if test "_$ac_cv_header_stdint_x" != "_" ; then
33381    ac_cv_header_stdint="$ac_cv_header_stdint_x"
33382 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
33383    ac_cv_header_stdint="$ac_cv_header_stdint_o"
33384 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
33385    ac_cv_header_stdint="$ac_cv_header_stdint_u"
33386 else
33387    ac_cv_header_stdint="stddef.h"
33388 fi
33389
33390 { echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
33391 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6; }
33392 { echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
33393 echo "${ECHO_T}($ac_cv_header_stdint)" >&6; }
33394 unset ac_cv_type_int_least32_t
33395 unset ac_cv_type_int_fast32_t
33396 { echo "$as_me:$LINENO: checking for int_least32_t" >&5
33397 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; }
33398 if test "${ac_cv_type_int_least32_t+set}" = set; then
33399   echo $ECHO_N "(cached) $ECHO_C" >&6
33400 else
33401   cat >conftest.$ac_ext <<_ACEOF
33402 /* confdefs.h.  */
33403 _ACEOF
33404 cat confdefs.h >>conftest.$ac_ext
33405 cat >>conftest.$ac_ext <<_ACEOF
33406 /* end confdefs.h.  */
33407 #include <$ac_cv_header_stdint>
33408
33409 typedef int_least32_t ac__type_new_;
33410 int
33411 main ()
33412 {
33413 if ((ac__type_new_ *) 0)
33414   return 0;
33415 if (sizeof (ac__type_new_))
33416   return 0;
33417   ;
33418   return 0;
33419 }
33420 _ACEOF
33421 rm -f conftest.$ac_objext
33422 if { (ac_try="$ac_compile"
33423 case "(($ac_try" in
33424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425   *) ac_try_echo=$ac_try;;
33426 esac
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428   (eval "$ac_compile") 2>conftest.er1
33429   ac_status=$?
33430   grep -v '^ *+' conftest.er1 >conftest.err
33431   rm -f conftest.er1
33432   cat conftest.err >&5
33433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434   (exit $ac_status); } && {
33435          test -z "$ac_c_werror_flag" ||
33436          test ! -s conftest.err
33437        } && test -s conftest.$ac_objext; then
33438   ac_cv_type_int_least32_t=yes
33439 else
33440   echo "$as_me: failed program was:" >&5
33441 sed 's/^/| /' conftest.$ac_ext >&5
33442
33443         ac_cv_type_int_least32_t=no
33444 fi
33445
33446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33447 fi
33448 { echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
33449 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
33450
33451 { echo "$as_me:$LINENO: checking for int_fast32_t" >&5
33452 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; }
33453 if test "${ac_cv_type_int_fast32_t+set}" = set; then
33454   echo $ECHO_N "(cached) $ECHO_C" >&6
33455 else
33456   cat >conftest.$ac_ext <<_ACEOF
33457 /* confdefs.h.  */
33458 _ACEOF
33459 cat confdefs.h >>conftest.$ac_ext
33460 cat >>conftest.$ac_ext <<_ACEOF
33461 /* end confdefs.h.  */
33462 #include<$ac_cv_header_stdint>
33463
33464 typedef int_fast32_t ac__type_new_;
33465 int
33466 main ()
33467 {
33468 if ((ac__type_new_ *) 0)
33469   return 0;
33470 if (sizeof (ac__type_new_))
33471   return 0;
33472   ;
33473   return 0;
33474 }
33475 _ACEOF
33476 rm -f conftest.$ac_objext
33477 if { (ac_try="$ac_compile"
33478 case "(($ac_try" in
33479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480   *) ac_try_echo=$ac_try;;
33481 esac
33482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483   (eval "$ac_compile") 2>conftest.er1
33484   ac_status=$?
33485   grep -v '^ *+' conftest.er1 >conftest.err
33486   rm -f conftest.er1
33487   cat conftest.err >&5
33488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489   (exit $ac_status); } && {
33490          test -z "$ac_c_werror_flag" ||
33491          test ! -s conftest.err
33492        } && test -s conftest.$ac_objext; then
33493   ac_cv_type_int_fast32_t=yes
33494 else
33495   echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33497
33498         ac_cv_type_int_fast32_t=no
33499 fi
33500
33501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33502 fi
33503 { echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
33504 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
33505
33506 { echo "$as_me:$LINENO: checking for intmax_t" >&5
33507 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
33508 if test "${ac_cv_type_intmax_t+set}" = set; then
33509   echo $ECHO_N "(cached) $ECHO_C" >&6
33510 else
33511   cat >conftest.$ac_ext <<_ACEOF
33512 /* confdefs.h.  */
33513 _ACEOF
33514 cat confdefs.h >>conftest.$ac_ext
33515 cat >>conftest.$ac_ext <<_ACEOF
33516 /* end confdefs.h.  */
33517 #include <$ac_cv_header_stdint>
33518
33519 typedef intmax_t ac__type_new_;
33520 int
33521 main ()
33522 {
33523 if ((ac__type_new_ *) 0)
33524   return 0;
33525 if (sizeof (ac__type_new_))
33526   return 0;
33527   ;
33528   return 0;
33529 }
33530 _ACEOF
33531 rm -f conftest.$ac_objext
33532 if { (ac_try="$ac_compile"
33533 case "(($ac_try" in
33534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535   *) ac_try_echo=$ac_try;;
33536 esac
33537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538   (eval "$ac_compile") 2>conftest.er1
33539   ac_status=$?
33540   grep -v '^ *+' conftest.er1 >conftest.err
33541   rm -f conftest.er1
33542   cat conftest.err >&5
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); } && {
33545          test -z "$ac_c_werror_flag" ||
33546          test ! -s conftest.err
33547        } && test -s conftest.$ac_objext; then
33548   ac_cv_type_intmax_t=yes
33549 else
33550   echo "$as_me: failed program was:" >&5
33551 sed 's/^/| /' conftest.$ac_ext >&5
33552
33553         ac_cv_type_intmax_t=no
33554 fi
33555
33556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33557 fi
33558 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
33559 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
33560
33561
33562 fi # shortcircut to system "stdint.h"
33563 # ------------------ PREPARE VARIABLES ------------------------------
33564 if test "$GCC" = "yes" ; then
33565 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
33566 else
33567 ac_cv_stdint_message="using $CC"
33568 fi
33569
33570 { echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
33571 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
33572
33573 # ----------------- DONE inttypes.h checks START header -------------
33574 ac_config_commands="$ac_config_commands $ac_stdint_h"
33575
33576
33577
33578
33579 # Check whether --with-glibj_zip was given.
33580 if test "${with_glibj_zip+set}" = set; then
33581   withval=$with_glibj_zip;
33582 fi
33583
33584
33585 case "$with_glibj_zip" in
33586 "")
33587         use_glibj_zip=false
33588         ;;
33589 "no" )
33590         use_glibj_zip=false
33591         ;;
33592 "yes")
33593         { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
33594 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
33595    { (exit 1); exit 1; }; }
33596         ;;
33597 *)
33598         use_glibj_zip=true
33599         PATH_TO_GLIBJ_ZIP=$with_glibj_zip
33600         ;;
33601 esac;
33602
33603  if test x$use_glibj_zip = xtrue; then
33604   USE_PREBUILT_GLIBJ_ZIP_TRUE=
33605   USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
33606 else
33607   USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
33608   USE_PREBUILT_GLIBJ_ZIP_FALSE=
33609 fi
33610
33611
33612
33613 # Check for javac if we need to build either the class library,
33614 # the examples or the tools
33615 if test "x${use_glibj_zip}" = xfalse || \
33616    test "x${EXAMPLESDIR}" != x || \
33617    test "x${TOOLSDIR}" != x && \
33618    test "x${build_class_files}" != xno; then
33619
33620 if test "x$JAVAPREFIX" = x; then
33621         test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT -warn:-deprecation,serial,unusedImport" "ecj-3.3$EXEEXT -warn:-deprecation,serial,unusedImport" "ecj-3.2$EXEEXT -warn:-deprecation,serial,unusedImport" "javac$EXEEXT -Xlint:unchecked" "gcj$EXEEXT -C"
33622 do
33623   # Extract the first word of "$ac_prog", so it can be a program name with args.
33624 set dummy $ac_prog; ac_word=$2
33625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33627 if test "${ac_cv_prog_JAVAC+set}" = set; then
33628   echo $ECHO_N "(cached) $ECHO_C" >&6
33629 else
33630   if test -n "$JAVAC"; then
33631   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
33632 else
33633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33634 for as_dir in $PATH
33635 do
33636   IFS=$as_save_IFS
33637   test -z "$as_dir" && as_dir=.
33638   for ac_exec_ext in '' $ac_executable_extensions; do
33639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33640     ac_cv_prog_JAVAC="$ac_prog"
33641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33642     break 2
33643   fi
33644 done
33645 done
33646 IFS=$as_save_IFS
33647
33648 fi
33649 fi
33650 JAVAC=$ac_cv_prog_JAVAC
33651 if test -n "$JAVAC"; then
33652   { echo "$as_me:$LINENO: result: $JAVAC" >&5
33653 echo "${ECHO_T}$JAVAC" >&6; }
33654 else
33655   { echo "$as_me:$LINENO: result: no" >&5
33656 echo "${ECHO_T}no" >&6; }
33657 fi
33658
33659
33660   test -n "$JAVAC" && break
33661 done
33662
33663 else
33664         test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT -warn:-deprecation,serial,unusedImport" "ecj-3.3$EXEEXT -warn:-deprecation,serial,unusedImport" "ecj-3.2$EXEEXT -warn:-deprecation,serial,unusedImport" "javac$EXEEXT -Xlint:unchecked" "gcj$EXEEXT -C"
33665 do
33666   # Extract the first word of "$ac_prog", so it can be a program name with args.
33667 set dummy $ac_prog; ac_word=$2
33668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33670 if test "${ac_cv_prog_JAVAC+set}" = set; then
33671   echo $ECHO_N "(cached) $ECHO_C" >&6
33672 else
33673   if test -n "$JAVAC"; then
33674   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
33675 else
33676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33677 for as_dir in $PATH
33678 do
33679   IFS=$as_save_IFS
33680   test -z "$as_dir" && as_dir=.
33681   for ac_exec_ext in '' $ac_executable_extensions; do
33682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33683     ac_cv_prog_JAVAC="$ac_prog"
33684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33685     break 2
33686   fi
33687 done
33688 done
33689 IFS=$as_save_IFS
33690
33691 fi
33692 fi
33693 JAVAC=$ac_cv_prog_JAVAC
33694 if test -n "$JAVAC"; then
33695   { echo "$as_me:$LINENO: result: $JAVAC" >&5
33696 echo "${ECHO_T}$JAVAC" >&6; }
33697 else
33698   { echo "$as_me:$LINENO: result: no" >&5
33699 echo "${ECHO_T}no" >&6; }
33700 fi
33701
33702
33703   test -n "$JAVAC" && break
33704 done
33705 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
33706
33707 fi
33708 test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
33709 echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
33710    { (exit 1); exit 1; }; }
33711
33712 { echo "$as_me:$LINENO: checking if $JAVAC works" >&5
33713 echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6; }
33714 if test "${ac_cv_prog_javac_works+set}" = set; then
33715   echo $ECHO_N "(cached) $ECHO_C" >&6
33716 else
33717
33718 JAVA_TEST=Object.java
33719 CLASS_TEST=Object.class
33720 cat << \EOF > $JAVA_TEST
33721 /* #line 33721 "configure" */
33722 package java.lang;
33723
33724 public class Object
33725 {
33726   static <T> void doStuff()
33727   {
33728   }
33729 }
33730 EOF
33731 if { ac_try='$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST'
33732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33733   (eval $ac_try) 2>&5
33734   ac_status=$?
33735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736   (exit $ac_status); }; } >/dev/null 2>&1; then
33737   ac_cv_prog_javac_works=yes
33738 else
33739   { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
33740 echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
33741    { (exit 1); exit 1; }; }
33742   echo "configure: failed program was:" >&5
33743   cat $JAVA_TEST >&5
33744 fi
33745 rm -f $JAVA_TEST $CLASS_TEST
33746
33747 fi
33748 { echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
33749 echo "${ECHO_T}$ac_cv_prog_javac_works" >&6; }
33750
33751
33752
33753   JAVA_TEST=Test.java
33754   CLASS_TEST=Test.class
33755   cat << \EOF > $JAVA_TEST
33756   /* #line 33756 "configure" */
33757   public class Test
33758   {
33759     public static void main(String args)
33760     {
33761       System.out.println("Hello World");
33762     }
33763   }
33764 EOF
33765   { echo "$as_me:$LINENO: checking whether javac supports -J" >&5
33766 echo $ECHO_N "checking whether javac supports -J... $ECHO_C" >&6; }
33767   $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
33768   javac_result=$?
33769   if test "x$javac_result" = "x0"; then
33770     { echo "$as_me:$LINENO: result: yes" >&5
33771 echo "${ECHO_T}yes" >&6; }
33772     JAVAC_MEM_OPT="-J-Xmx768M"
33773   else
33774     { echo "$as_me:$LINENO: result: no" >&5
33775 echo "${ECHO_T}no" >&6; }
33776   fi
33777   rm -f $JAVA_TEST $CLASS_TEST
33778
33779
33780 fi
33781
33782
33783 # Check whether --with-escher was given.
33784 if test "${with_escher+set}" = set; then
33785   withval=$with_escher;
33786 fi
33787
33788 case "$with_escher" in
33789 "")
33790         use_escher=false
33791         ;;
33792 "no")
33793         use_escher=false
33794         ;;
33795 "yes")
33796         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
33797 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
33798    { (exit 1); exit 1; }; }
33799         ;;
33800 *)
33801         use_escher=true
33802         PATH_TO_ESCHER=$with_escher
33803         ;;
33804 esac
33805
33806  if test x$use_escher = xtrue; then
33807   USE_ESCHER_TRUE=
33808   USE_ESCHER_FALSE='#'
33809 else
33810   USE_ESCHER_TRUE='#'
33811   USE_ESCHER_FALSE=
33812 fi
33813
33814
33815
33816 # Check whether --enable-local-sockets was given.
33817 if test "${enable_local_sockets+set}" = set; then
33818   enableval=$enable_local_sockets; case "${enableval}" in
33819                 yes)
33820                   ENABLE_LOCAL_SOCKETS=yes
33821                   ;;
33822                 *)
33823                   ENABLE_LOCAL_SOCKETS=no
33824                   ;;
33825                esac
33826 fi
33827
33828 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
33829 then
33830   if test "${ac_cv_header_sys_un_h+set}" = set; then
33831   { echo "$as_me:$LINENO: checking for sys/un.h" >&5
33832 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6; }
33833 if test "${ac_cv_header_sys_un_h+set}" = set; then
33834   echo $ECHO_N "(cached) $ECHO_C" >&6
33835 fi
33836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
33837 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6; }
33838 else
33839   # Is the header compilable?
33840 { echo "$as_me:$LINENO: checking sys/un.h usability" >&5
33841 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6; }
33842 cat >conftest.$ac_ext <<_ACEOF
33843 /* confdefs.h.  */
33844 _ACEOF
33845 cat confdefs.h >>conftest.$ac_ext
33846 cat >>conftest.$ac_ext <<_ACEOF
33847 /* end confdefs.h.  */
33848 $ac_includes_default
33849 #include <sys/un.h>
33850 _ACEOF
33851 rm -f conftest.$ac_objext
33852 if { (ac_try="$ac_compile"
33853 case "(($ac_try" in
33854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33855   *) ac_try_echo=$ac_try;;
33856 esac
33857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33858   (eval "$ac_compile") 2>conftest.er1
33859   ac_status=$?
33860   grep -v '^ *+' conftest.er1 >conftest.err
33861   rm -f conftest.er1
33862   cat conftest.err >&5
33863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864   (exit $ac_status); } && {
33865          test -z "$ac_c_werror_flag" ||
33866          test ! -s conftest.err
33867        } && test -s conftest.$ac_objext; then
33868   ac_header_compiler=yes
33869 else
33870   echo "$as_me: failed program was:" >&5
33871 sed 's/^/| /' conftest.$ac_ext >&5
33872
33873         ac_header_compiler=no
33874 fi
33875
33876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33878 echo "${ECHO_T}$ac_header_compiler" >&6; }
33879
33880 # Is the header present?
33881 { echo "$as_me:$LINENO: checking sys/un.h presence" >&5
33882 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6; }
33883 cat >conftest.$ac_ext <<_ACEOF
33884 /* confdefs.h.  */
33885 _ACEOF
33886 cat confdefs.h >>conftest.$ac_ext
33887 cat >>conftest.$ac_ext <<_ACEOF
33888 /* end confdefs.h.  */
33889 #include <sys/un.h>
33890 _ACEOF
33891 if { (ac_try="$ac_cpp conftest.$ac_ext"
33892 case "(($ac_try" in
33893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894   *) ac_try_echo=$ac_try;;
33895 esac
33896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33898   ac_status=$?
33899   grep -v '^ *+' conftest.er1 >conftest.err
33900   rm -f conftest.er1
33901   cat conftest.err >&5
33902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903   (exit $ac_status); } >/dev/null && {
33904          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33905          test ! -s conftest.err
33906        }; then
33907   ac_header_preproc=yes
33908 else
33909   echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.$ac_ext >&5
33911
33912   ac_header_preproc=no
33913 fi
33914
33915 rm -f conftest.err conftest.$ac_ext
33916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33917 echo "${ECHO_T}$ac_header_preproc" >&6; }
33918
33919 # So?  What about this header?
33920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33921   yes:no: )
33922     { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
33923 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33924     { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
33925 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
33926     ac_header_preproc=yes
33927     ;;
33928   no:yes:* )
33929     { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
33930 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
33931     { echo "$as_me:$LINENO: WARNING: sys/un.h:     check for missing prerequisite headers?" >&5
33932 echo "$as_me: WARNING: sys/un.h:     check for missing prerequisite headers?" >&2;}
33933     { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
33934 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
33935     { echo "$as_me:$LINENO: WARNING: sys/un.h:     section \"Present But Cannot Be Compiled\"" >&5
33936 echo "$as_me: WARNING: sys/un.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33937     { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
33938 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
33939     { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
33940 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
33941     ( cat <<\_ASBOX
33942 ## -------------------------------- ##
33943 ## Report this to classpath@gnu.org ##
33944 ## -------------------------------- ##
33945 _ASBOX
33946      ) | sed "s/^/$as_me: WARNING:     /" >&2
33947     ;;
33948 esac
33949 { echo "$as_me:$LINENO: checking for sys/un.h" >&5
33950 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6; }
33951 if test "${ac_cv_header_sys_un_h+set}" = set; then
33952   echo $ECHO_N "(cached) $ECHO_C" >&6
33953 else
33954   ac_cv_header_sys_un_h=$ac_header_preproc
33955 fi
33956 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
33957 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6; }
33958
33959 fi
33960
33961
33962
33963
33964
33965
33966
33967
33968 for ac_func in read write bind listen accept shutdown
33969 do
33970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33974   echo $ECHO_N "(cached) $ECHO_C" >&6
33975 else
33976   cat >conftest.$ac_ext <<_ACEOF
33977 /* confdefs.h.  */
33978 _ACEOF
33979 cat confdefs.h >>conftest.$ac_ext
33980 cat >>conftest.$ac_ext <<_ACEOF
33981 /* end confdefs.h.  */
33982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33984 #define $ac_func innocuous_$ac_func
33985
33986 /* System header to define __stub macros and hopefully few prototypes,
33987     which can conflict with char $ac_func (); below.
33988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33989     <limits.h> exists even on freestanding compilers.  */
33990
33991 #ifdef __STDC__
33992 # include <limits.h>
33993 #else
33994 # include <assert.h>
33995 #endif
33996
33997 #undef $ac_func
33998
33999 /* Override any GCC internal prototype to avoid an error.
34000    Use char because int might match the return type of a GCC
34001    builtin and then its argument prototype would still apply.  */
34002 #ifdef __cplusplus
34003 extern "C"
34004 #endif
34005 char $ac_func ();
34006 /* The GNU C library defines this for functions which it implements
34007     to always fail with ENOSYS.  Some functions are actually named
34008     something starting with __ and the normal name is an alias.  */
34009 #if defined __stub_$ac_func || defined __stub___$ac_func
34010 choke me
34011 #endif
34012
34013 int
34014 main ()
34015 {
34016 return $ac_func ();
34017   ;
34018   return 0;
34019 }
34020 _ACEOF
34021 rm -f conftest.$ac_objext conftest$ac_exeext
34022 if { (ac_try="$ac_link"
34023 case "(($ac_try" in
34024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34025   *) ac_try_echo=$ac_try;;
34026 esac
34027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34028   (eval "$ac_link") 2>conftest.er1
34029   ac_status=$?
34030   grep -v '^ *+' conftest.er1 >conftest.err
34031   rm -f conftest.er1
34032   cat conftest.err >&5
34033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034   (exit $ac_status); } && {
34035          test -z "$ac_c_werror_flag" ||
34036          test ! -s conftest.err
34037        } && test -s conftest$ac_exeext &&
34038        $as_test_x conftest$ac_exeext; then
34039   eval "$as_ac_var=yes"
34040 else
34041   echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34043
34044         eval "$as_ac_var=no"
34045 fi
34046
34047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34048       conftest$ac_exeext conftest.$ac_ext
34049 fi
34050 ac_res=`eval echo '${'$as_ac_var'}'`
34051                { echo "$as_me:$LINENO: result: $ac_res" >&5
34052 echo "${ECHO_T}$ac_res" >&6; }
34053 if test `eval echo '${'$as_ac_var'}'` = yes; then
34054   cat >>confdefs.h <<_ACEOF
34055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34056 _ACEOF
34057
34058 else
34059   { { echo "$as_me:$LINENO: error: networking support not available" >&5
34060 echo "$as_me: error: networking support not available" >&2;}
34061    { (exit 1); exit 1; }; }
34062 fi
34063 done
34064
34065
34066 cat >>confdefs.h <<\_ACEOF
34067 #define ENABLE_LOCAL_SOCKETS 1
34068 _ACEOF
34069
34070 fi
34071  if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
34072   ENABLE_LOCAL_SOCKETS_TRUE=
34073   ENABLE_LOCAL_SOCKETS_FALSE='#'
34074 else
34075   ENABLE_LOCAL_SOCKETS_TRUE='#'
34076   ENABLE_LOCAL_SOCKETS_FALSE=
34077 fi
34078
34079
34080
34081
34082 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/Makefile gnu/classpath/Configuration.java gnu/java/security/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/gconf-peer/Makefile native/jni/gstreamer-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/jni/native-lib/Makefile native/plugin/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader resource/META-INF/services/javax.sound.sampled.spi.MixerProvider scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh scripts/check_jni_methods.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
34083
34084
34085 if test "x${COMPILE_WRAPPERS}" = xno
34086 then
34087 ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
34088
34089 ac_config_commands="$ac_config_commands gappletviewer"
34090
34091 ac_config_commands="$ac_config_commands gjarsigner"
34092
34093 ac_config_commands="$ac_config_commands gkeytool"
34094
34095 ac_config_commands="$ac_config_commands gjar"
34096
34097 ac_config_commands="$ac_config_commands gnative2ascii"
34098
34099 ac_config_commands="$ac_config_commands gserialver"
34100
34101 ac_config_commands="$ac_config_commands grmiregistry"
34102
34103 ac_config_commands="$ac_config_commands gtnameserv"
34104
34105 ac_config_commands="$ac_config_commands gorbd"
34106
34107 ac_config_commands="$ac_config_commands grmid"
34108
34109 ac_config_commands="$ac_config_commands grmic"
34110
34111 ac_config_commands="$ac_config_commands gjavah"
34112
34113 fi
34114
34115 ac_config_commands="$ac_config_commands gen-classlist"
34116
34117 ac_config_commands="$ac_config_commands copy-vmresources"
34118
34119 cat >confcache <<\_ACEOF
34120 # This file is a shell script that caches the results of configure
34121 # tests run on this system so they can be shared between configure
34122 # scripts and configure runs, see configure's option --config-cache.
34123 # It is not useful on other systems.  If it contains results you don't
34124 # want to keep, you may remove or edit it.
34125 #
34126 # config.status only pays attention to the cache file if you give it
34127 # the --recheck option to rerun configure.
34128 #
34129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34131 # following values.
34132
34133 _ACEOF
34134
34135 # The following way of writing the cache mishandles newlines in values,
34136 # but we know of no workaround that is simple, portable, and efficient.
34137 # So, we kill variables containing newlines.
34138 # Ultrix sh set writes to stderr and can't be redirected directly,
34139 # and sets the high bit in the cache file unless we assign to the vars.
34140 (
34141   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34142     eval ac_val=\$$ac_var
34143     case $ac_val in #(
34144     *${as_nl}*)
34145       case $ac_var in #(
34146       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34147 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34148       esac
34149       case $ac_var in #(
34150       _ | IFS | as_nl) ;; #(
34151       *) $as_unset $ac_var ;;
34152       esac ;;
34153     esac
34154   done
34155
34156   (set) 2>&1 |
34157     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34158     *${as_nl}ac_space=\ *)
34159       # `set' does not quote correctly, so add quotes (double-quote
34160       # substitution turns \\\\ into \\, and sed turns \\ into \).
34161       sed -n \
34162         "s/'/'\\\\''/g;
34163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34164       ;; #(
34165     *)
34166       # `set' quotes correctly as required by POSIX, so do not add quotes.
34167       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34168       ;;
34169     esac |
34170     sort
34171 ) |
34172   sed '
34173      /^ac_cv_env_/b end
34174      t clear
34175      :clear
34176      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34177      t end
34178      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34179      :end' >>confcache
34180 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34181   if test -w "$cache_file"; then
34182     test "x$cache_file" != "x/dev/null" &&
34183       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34184 echo "$as_me: updating cache $cache_file" >&6;}
34185     cat confcache >$cache_file
34186   else
34187     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34188 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34189   fi
34190 fi
34191 rm -f confcache
34192
34193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34194 # Let make expand exec_prefix.
34195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34196
34197 DEFS=-DHAVE_CONFIG_H
34198
34199 ac_libobjs=
34200 ac_ltlibobjs=
34201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34202   # 1. Remove the extension, and $U if already installed.
34203   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34204   ac_i=`echo "$ac_i" | sed "$ac_script"`
34205   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34206   #    will be set to the directory where LIBOBJS objects are built.
34207   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34208   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34209 done
34210 LIBOBJS=$ac_libobjs
34211
34212 LTLIBOBJS=$ac_ltlibobjs
34213
34214
34215 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
34216   { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
34217 Usually this means the macro was only invoked conditionally." >&5
34218 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
34219 Usually this means the macro was only invoked conditionally." >&2;}
34220    { (exit 1); exit 1; }; }
34221 fi
34222 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
34223   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
34224 Usually this means the macro was only invoked conditionally." >&5
34225 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
34226 Usually this means the macro was only invoked conditionally." >&2;}
34227    { (exit 1); exit 1; }; }
34228 fi
34229 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
34230   { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
34231 Usually this means the macro was only invoked conditionally." >&5
34232 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
34233 Usually this means the macro was only invoked conditionally." >&2;}
34234    { (exit 1); exit 1; }; }
34235 fi
34236 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
34237   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
34238 Usually this means the macro was only invoked conditionally." >&5
34239 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
34240 Usually this means the macro was only invoked conditionally." >&2;}
34241    { (exit 1); exit 1; }; }
34242 fi
34243 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
34244   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
34245 Usually this means the macro was only invoked conditionally." >&5
34246 echo "$as_me: error: conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
34247 Usually this means the macro was only invoked conditionally." >&2;}
34248    { (exit 1); exit 1; }; }
34249 fi
34250 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
34251   { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
34252 Usually this means the macro was only invoked conditionally." >&5
34253 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
34254 Usually this means the macro was only invoked conditionally." >&2;}
34255    { (exit 1); exit 1; }; }
34256 fi
34257 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34258   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34259 Usually this means the macro was only invoked conditionally." >&5
34260 echo "$as_me: error: conditional \"AMDEP\" was never defined.
34261 Usually this means the macro was only invoked conditionally." >&2;}
34262    { (exit 1); exit 1; }; }
34263 fi
34264 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34265   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34266 Usually this means the macro was only invoked conditionally." >&5
34267 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34268 Usually this means the macro was only invoked conditionally." >&2;}
34269    { (exit 1); exit 1; }; }
34270 fi
34271 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
34272   { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
34273 Usually this means the macro was only invoked conditionally." >&5
34274 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
34275 Usually this means the macro was only invoked conditionally." >&2;}
34276    { (exit 1); exit 1; }; }
34277 fi
34278 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
34279   { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
34280 Usually this means the macro was only invoked conditionally." >&5
34281 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
34282 Usually this means the macro was only invoked conditionally." >&2;}
34283    { (exit 1); exit 1; }; }
34284 fi
34285 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
34286   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
34287 Usually this means the macro was only invoked conditionally." >&5
34288 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
34289 Usually this means the macro was only invoked conditionally." >&2;}
34290    { (exit 1); exit 1; }; }
34291 fi
34292 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
34293   { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
34294 Usually this means the macro was only invoked conditionally." >&5
34295 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
34296 Usually this means the macro was only invoked conditionally." >&2;}
34297    { (exit 1); exit 1; }; }
34298 fi
34299 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
34300   { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
34301 Usually this means the macro was only invoked conditionally." >&5
34302 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
34303 Usually this means the macro was only invoked conditionally." >&2;}
34304    { (exit 1); exit 1; }; }
34305 fi
34306 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
34307   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
34308 Usually this means the macro was only invoked conditionally." >&5
34309 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
34310 Usually this means the macro was only invoked conditionally." >&2;}
34311    { (exit 1); exit 1; }; }
34312 fi
34313 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
34314   { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
34315 Usually this means the macro was only invoked conditionally." >&5
34316 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
34317 Usually this means the macro was only invoked conditionally." >&2;}
34318    { (exit 1); exit 1; }; }
34319 fi
34320 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34321   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34322 Usually this means the macro was only invoked conditionally." >&5
34323 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34324 Usually this means the macro was only invoked conditionally." >&2;}
34325    { (exit 1); exit 1; }; }
34326 fi
34327 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34328   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34329 Usually this means the macro was only invoked conditionally." >&5
34330 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34331 Usually this means the macro was only invoked conditionally." >&2;}
34332    { (exit 1); exit 1; }; }
34333 fi
34334 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34335   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
34336 Usually this means the macro was only invoked conditionally." >&5
34337 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
34338 Usually this means the macro was only invoked conditionally." >&2;}
34339    { (exit 1); exit 1; }; }
34340 fi
34341 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
34342   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
34343 Usually this means the macro was only invoked conditionally." >&5
34344 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
34345 Usually this means the macro was only invoked conditionally." >&2;}
34346    { (exit 1); exit 1; }; }
34347 fi
34348 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
34349   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
34350 Usually this means the macro was only invoked conditionally." >&5
34351 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
34352 Usually this means the macro was only invoked conditionally." >&2;}
34353    { (exit 1); exit 1; }; }
34354 fi
34355 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
34356   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
34357 Usually this means the macro was only invoked conditionally." >&5
34358 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
34359 Usually this means the macro was only invoked conditionally." >&2;}
34360    { (exit 1); exit 1; }; }
34361 fi
34362 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
34363   { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
34364 Usually this means the macro was only invoked conditionally." >&5
34365 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
34366 Usually this means the macro was only invoked conditionally." >&2;}
34367    { (exit 1); exit 1; }; }
34368 fi
34369 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
34370   { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
34371 Usually this means the macro was only invoked conditionally." >&5
34372 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
34373 Usually this means the macro was only invoked conditionally." >&2;}
34374    { (exit 1); exit 1; }; }
34375 fi
34376 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
34377   { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
34378 Usually this means the macro was only invoked conditionally." >&5
34379 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
34380 Usually this means the macro was only invoked conditionally." >&2;}
34381    { (exit 1); exit 1; }; }
34382 fi
34383 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
34384   { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
34385 Usually this means the macro was only invoked conditionally." >&5
34386 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
34387 Usually this means the macro was only invoked conditionally." >&2;}
34388    { (exit 1); exit 1; }; }
34389 fi
34390 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
34391   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
34392 Usually this means the macro was only invoked conditionally." >&5
34393 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
34394 Usually this means the macro was only invoked conditionally." >&2;}
34395    { (exit 1); exit 1; }; }
34396 fi
34397
34398 : ${CONFIG_STATUS=./config.status}
34399 ac_clean_files_save=$ac_clean_files
34400 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34401 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34402 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34403 cat >$CONFIG_STATUS <<_ACEOF
34404 #! $SHELL
34405 # Generated by $as_me.
34406 # Run this file to recreate the current configuration.
34407 # Compiler output produced by configure, useful for debugging
34408 # configure, is in config.log if it exists.
34409
34410 debug=false
34411 ac_cs_recheck=false
34412 ac_cs_silent=false
34413 SHELL=\${CONFIG_SHELL-$SHELL}
34414 _ACEOF
34415
34416 cat >>$CONFIG_STATUS <<\_ACEOF
34417 ## --------------------- ##
34418 ## M4sh Initialization.  ##
34419 ## --------------------- ##
34420
34421 # Be more Bourne compatible
34422 DUALCASE=1; export DUALCASE # for MKS sh
34423 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34424   emulate sh
34425   NULLCMD=:
34426   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34427   # is contrary to our usage.  Disable this feature.
34428   alias -g '${1+"$@"}'='"$@"'
34429   setopt NO_GLOB_SUBST
34430 else
34431   case `(set -o) 2>/dev/null` in
34432   *posix*) set -o posix ;;
34433 esac
34434
34435 fi
34436
34437
34438
34439
34440 # PATH needs CR
34441 # Avoid depending upon Character Ranges.
34442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34445 as_cr_digits='0123456789'
34446 as_cr_alnum=$as_cr_Letters$as_cr_digits
34447
34448 # The user is always right.
34449 if test "${PATH_SEPARATOR+set}" != set; then
34450   echo "#! /bin/sh" >conf$$.sh
34451   echo  "exit 0"   >>conf$$.sh
34452   chmod +x conf$$.sh
34453   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34454     PATH_SEPARATOR=';'
34455   else
34456     PATH_SEPARATOR=:
34457   fi
34458   rm -f conf$$.sh
34459 fi
34460
34461 # Support unset when possible.
34462 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34463   as_unset=unset
34464 else
34465   as_unset=false
34466 fi
34467
34468
34469 # IFS
34470 # We need space, tab and new line, in precisely that order.  Quoting is
34471 # there to prevent editors from complaining about space-tab.
34472 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34473 # splitting by setting IFS to empty value.)
34474 as_nl='
34475 '
34476 IFS=" ""        $as_nl"
34477
34478 # Find who we are.  Look in the path if we contain no directory separator.
34479 case $0 in
34480   *[\\/]* ) as_myself=$0 ;;
34481   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34482 for as_dir in $PATH
34483 do
34484   IFS=$as_save_IFS
34485   test -z "$as_dir" && as_dir=.
34486   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34487 done
34488 IFS=$as_save_IFS
34489
34490      ;;
34491 esac
34492 # We did not find ourselves, most probably we were run as `sh COMMAND'
34493 # in which case we are not to be found in the path.
34494 if test "x$as_myself" = x; then
34495   as_myself=$0
34496 fi
34497 if test ! -f "$as_myself"; then
34498   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34499   { (exit 1); exit 1; }
34500 fi
34501
34502 # Work around bugs in pre-3.0 UWIN ksh.
34503 for as_var in ENV MAIL MAILPATH
34504 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34505 done
34506 PS1='$ '
34507 PS2='> '
34508 PS4='+ '
34509
34510 # NLS nuisances.
34511 for as_var in \
34512   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34513   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34514   LC_TELEPHONE LC_TIME
34515 do
34516   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34517     eval $as_var=C; export $as_var
34518   else
34519     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34520   fi
34521 done
34522
34523 # Required to use basename.
34524 if expr a : '\(a\)' >/dev/null 2>&1 &&
34525    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34526   as_expr=expr
34527 else
34528   as_expr=false
34529 fi
34530
34531 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34532   as_basename=basename
34533 else
34534   as_basename=false
34535 fi
34536
34537
34538 # Name of the executable.
34539 as_me=`$as_basename -- "$0" ||
34540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34541          X"$0" : 'X\(//\)$' \| \
34542          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34543 echo X/"$0" |
34544     sed '/^.*\/\([^/][^/]*\)\/*$/{
34545             s//\1/
34546             q
34547           }
34548           /^X\/\(\/\/\)$/{
34549             s//\1/
34550             q
34551           }
34552           /^X\/\(\/\).*/{
34553             s//\1/
34554             q
34555           }
34556           s/.*/./; q'`
34557
34558 # CDPATH.
34559 $as_unset CDPATH
34560
34561
34562
34563   as_lineno_1=$LINENO
34564   as_lineno_2=$LINENO
34565   test "x$as_lineno_1" != "x$as_lineno_2" &&
34566   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34567
34568   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34569   # uniformly replaced by the line number.  The first 'sed' inserts a
34570   # line-number line after each line using $LINENO; the second 'sed'
34571   # does the real work.  The second script uses 'N' to pair each
34572   # line-number line with the line containing $LINENO, and appends
34573   # trailing '-' during substitution so that $LINENO is not a special
34574   # case at line end.
34575   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34576   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34577   # E. McMahon (1931-1989) for sed's syntax.  :-)
34578   sed -n '
34579     p
34580     /[$]LINENO/=
34581   ' <$as_myself |
34582     sed '
34583       s/[$]LINENO.*/&-/
34584       t lineno
34585       b
34586       :lineno
34587       N
34588       :loop
34589       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34590       t loop
34591       s/-\n.*//
34592     ' >$as_me.lineno &&
34593   chmod +x "$as_me.lineno" ||
34594     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34595    { (exit 1); exit 1; }; }
34596
34597   # Don't try to exec as it changes $[0], causing all sort of problems
34598   # (the dirname of $[0] is not the place where we might find the
34599   # original and so on.  Autoconf is especially sensitive to this).
34600   . "./$as_me.lineno"
34601   # Exit status is that of the last command.
34602   exit
34603 }
34604
34605
34606 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34607   as_dirname=dirname
34608 else
34609   as_dirname=false
34610 fi
34611
34612 ECHO_C= ECHO_N= ECHO_T=
34613 case `echo -n x` in
34614 -n*)
34615   case `echo 'x\c'` in
34616   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34617   *)   ECHO_C='\c';;
34618   esac;;
34619 *)
34620   ECHO_N='-n';;
34621 esac
34622
34623 if expr a : '\(a\)' >/dev/null 2>&1 &&
34624    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34625   as_expr=expr
34626 else
34627   as_expr=false
34628 fi
34629
34630 rm -f conf$$ conf$$.exe conf$$.file
34631 if test -d conf$$.dir; then
34632   rm -f conf$$.dir/conf$$.file
34633 else
34634   rm -f conf$$.dir
34635   mkdir conf$$.dir
34636 fi
34637 echo >conf$$.file
34638 if ln -s conf$$.file conf$$ 2>/dev/null; then
34639   as_ln_s='ln -s'
34640   # ... but there are two gotchas:
34641   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34642   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34643   # In both cases, we have to default to `cp -p'.
34644   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34645     as_ln_s='cp -p'
34646 elif ln conf$$.file conf$$ 2>/dev/null; then
34647   as_ln_s=ln
34648 else
34649   as_ln_s='cp -p'
34650 fi
34651 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34652 rmdir conf$$.dir 2>/dev/null
34653
34654 if mkdir -p . 2>/dev/null; then
34655   as_mkdir_p=:
34656 else
34657   test -d ./-p && rmdir ./-p
34658   as_mkdir_p=false
34659 fi
34660
34661 if test -x / >/dev/null 2>&1; then
34662   as_test_x='test -x'
34663 else
34664   if ls -dL / >/dev/null 2>&1; then
34665     as_ls_L_option=L
34666   else
34667     as_ls_L_option=
34668   fi
34669   as_test_x='
34670     eval sh -c '\''
34671       if test -d "$1"; then
34672         test -d "$1/.";
34673       else
34674         case $1 in
34675         -*)set "./$1";;
34676         esac;
34677         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34678         ???[sx]*):;;*)false;;esac;fi
34679     '\'' sh
34680   '
34681 fi
34682 as_executable_p=$as_test_x
34683
34684 # Sed expression to map a string onto a valid CPP name.
34685 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34686
34687 # Sed expression to map a string onto a valid variable name.
34688 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34689
34690
34691 exec 6>&1
34692
34693 # Save the log message, to keep $[0] and so on meaningful, and to
34694 # report actual input values of CONFIG_FILES etc. instead of their
34695 # values after options handling.
34696 ac_log="
34697 This file was extended by GNU Classpath $as_me 0.97.2, which was
34698 generated by GNU Autoconf 2.61.  Invocation command line was
34699
34700   CONFIG_FILES    = $CONFIG_FILES
34701   CONFIG_HEADERS  = $CONFIG_HEADERS
34702   CONFIG_LINKS    = $CONFIG_LINKS
34703   CONFIG_COMMANDS = $CONFIG_COMMANDS
34704   $ $0 $@
34705
34706 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34707 "
34708
34709 _ACEOF
34710
34711 cat >>$CONFIG_STATUS <<_ACEOF
34712 # Files that config.status was made for.
34713 config_files="$ac_config_files"
34714 config_headers="$ac_config_headers"
34715 config_links="$ac_config_links"
34716 config_commands="$ac_config_commands"
34717
34718 _ACEOF
34719
34720 cat >>$CONFIG_STATUS <<\_ACEOF
34721 ac_cs_usage="\
34722 \`$as_me' instantiates files from templates according to the
34723 current configuration.
34724
34725 Usage: $0 [OPTIONS] [FILE]...
34726
34727   -h, --help       print this help, then exit
34728   -V, --version    print version number and configuration settings, then exit
34729   -q, --quiet      do not print progress messages
34730   -d, --debug      don't remove temporary files
34731       --recheck    update $as_me by reconfiguring in the same conditions
34732   --file=FILE[:TEMPLATE]
34733                    instantiate the configuration file FILE
34734   --header=FILE[:TEMPLATE]
34735                    instantiate the configuration header FILE
34736
34737 Configuration files:
34738 $config_files
34739
34740 Configuration headers:
34741 $config_headers
34742
34743 Configuration links:
34744 $config_links
34745
34746 Configuration commands:
34747 $config_commands
34748
34749 Report bugs to <bug-autoconf@gnu.org>."
34750
34751 _ACEOF
34752 cat >>$CONFIG_STATUS <<_ACEOF
34753 ac_cs_version="\\
34754 GNU Classpath config.status 0.97.2
34755 configured by $0, generated by GNU Autoconf 2.61,
34756   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34757
34758 Copyright (C) 2006 Free Software Foundation, Inc.
34759 This config.status script is free software; the Free Software Foundation
34760 gives unlimited permission to copy, distribute and modify it."
34761
34762 ac_pwd='$ac_pwd'
34763 srcdir='$srcdir'
34764 INSTALL='$INSTALL'
34765 MKDIR_P='$MKDIR_P'
34766 _ACEOF
34767
34768 cat >>$CONFIG_STATUS <<\_ACEOF
34769 # If no file are specified by the user, then we need to provide default
34770 # value.  By we need to know if files were specified by the user.
34771 ac_need_defaults=:
34772 while test $# != 0
34773 do
34774   case $1 in
34775   --*=*)
34776     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34777     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34778     ac_shift=:
34779     ;;
34780   *)
34781     ac_option=$1
34782     ac_optarg=$2
34783     ac_shift=shift
34784     ;;
34785   esac
34786
34787   case $ac_option in
34788   # Handling of the options.
34789   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34790     ac_cs_recheck=: ;;
34791   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34792     echo "$ac_cs_version"; exit ;;
34793   --debug | --debu | --deb | --de | --d | -d )
34794     debug=: ;;
34795   --file | --fil | --fi | --f )
34796     $ac_shift
34797     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34798     ac_need_defaults=false;;
34799   --header | --heade | --head | --hea )
34800     $ac_shift
34801     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34802     ac_need_defaults=false;;
34803   --he | --h)
34804     # Conflict between --help and --header
34805     { echo "$as_me: error: ambiguous option: $1
34806 Try \`$0 --help' for more information." >&2
34807    { (exit 1); exit 1; }; };;
34808   --help | --hel | -h )
34809     echo "$ac_cs_usage"; exit ;;
34810   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34811   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34812     ac_cs_silent=: ;;
34813
34814   # This is an error.
34815   -*) { echo "$as_me: error: unrecognized option: $1
34816 Try \`$0 --help' for more information." >&2
34817    { (exit 1); exit 1; }; } ;;
34818
34819   *) ac_config_targets="$ac_config_targets $1"
34820      ac_need_defaults=false ;;
34821
34822   esac
34823   shift
34824 done
34825
34826 ac_configure_extra_args=
34827
34828 if $ac_cs_silent; then
34829   exec 6>/dev/null
34830   ac_configure_extra_args="$ac_configure_extra_args --silent"
34831 fi
34832
34833 _ACEOF
34834 cat >>$CONFIG_STATUS <<_ACEOF
34835 if \$ac_cs_recheck; then
34836   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34837   CONFIG_SHELL=$SHELL
34838   export CONFIG_SHELL
34839   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34840 fi
34841
34842 _ACEOF
34843 cat >>$CONFIG_STATUS <<\_ACEOF
34844 exec 5>>config.log
34845 {
34846   echo
34847   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34848 ## Running $as_me. ##
34849 _ASBOX
34850   echo "$ac_log"
34851 } >&5
34852
34853 _ACEOF
34854 cat >>$CONFIG_STATUS <<_ACEOF
34855 #
34856 # INIT-COMMANDS
34857 #
34858 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34859 # variables for create stdint.h replacement
34860 PACKAGE="$PACKAGE"
34861 VERSION="$VERSION"
34862 ac_stdint_h="$ac_stdint_h"
34863 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
34864 ac_cv_stdint_message="$ac_cv_stdint_message"
34865 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
34866 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
34867 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
34868 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
34869 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
34870 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
34871 ac_cv_char_data_model="$ac_cv_char_data_model"
34872 ac_cv_long_data_model="$ac_cv_long_data_model"
34873 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
34874 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
34875 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
34876
34877
34878 _ACEOF
34879
34880 cat >>$CONFIG_STATUS <<\_ACEOF
34881
34882 # Handling of arguments.
34883 for ac_config_target in $ac_config_targets
34884 do
34885   case $ac_config_target in
34886     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
34887     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34888     "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
34889     "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
34890     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
34891     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
34892     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34893     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34894     "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
34895     "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
34896     "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
34897     "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
34898     "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
34899     "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
34900     "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
34901     "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
34902     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34903     "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
34904     "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
34905     "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
34906     "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
34907     "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
34908     "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
34909     "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
34910     "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
34911     "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
34912     "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
34913     "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
34914     "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
34915     "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
34916     "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
34917     "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
34918     "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
34919     "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
34920     "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
34921     "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
34922     "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
34923     "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
34924     "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
34925     "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
34926     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34927     "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
34928     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34929     "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
34930     "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
34931     "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
34932     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
34933     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
34934     "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
34935     "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
34936     "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
34937     "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
34938     "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
34939     "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
34940     "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
34941     "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
34942     "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
34943     "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
34944     "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
34945     "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
34946     "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
34947     "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
34948     "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
34949     "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
34950     "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
34951     "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
34952     "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
34953     "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
34954     "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
34955     "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
34956     "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
34957     "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
34958     "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
34959     "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
34960     "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
34961     "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
34962
34963   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34964 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34965    { (exit 1); exit 1; }; };;
34966   esac
34967 done
34968
34969
34970 # If the user did not use the arguments to specify the items to instantiate,
34971 # then the envvar interface is used.  Set only those that are not.
34972 # We use the long form for the default assignment because of an extremely
34973 # bizarre bug on SunOS 4.1.3.
34974 if $ac_need_defaults; then
34975   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34976   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34977   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
34978   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34979 fi
34980
34981 # Have a temporary directory for convenience.  Make it in the build tree
34982 # simply because there is no reason against having it here, and in addition,
34983 # creating and moving files from /tmp can sometimes cause problems.
34984 # Hook for its removal unless debugging.
34985 # Note that there is a small window in which the directory will not be cleaned:
34986 # after its creation but before its name has been assigned to `$tmp'.
34987 $debug ||
34988 {
34989   tmp=
34990   trap 'exit_status=$?
34991   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34992 ' 0
34993   trap '{ (exit 1); exit 1; }' 1 2 13 15
34994 }
34995 # Create a (secure) tmp directory for tmp files.
34996
34997 {
34998   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34999   test -n "$tmp" && test -d "$tmp"
35000 }  ||
35001 {
35002   tmp=./conf$$-$RANDOM
35003   (umask 077 && mkdir "$tmp")
35004 } ||
35005 {
35006    echo "$me: cannot create a temporary directory in ." >&2
35007    { (exit 1); exit 1; }
35008 }
35009
35010 #
35011 # Set up the sed scripts for CONFIG_FILES section.
35012 #
35013
35014 # No need to generate the scripts if there are no CONFIG_FILES.
35015 # This happens for instance when ./config.status config.h
35016 if test -n "$CONFIG_FILES"; then
35017
35018 _ACEOF
35019
35020
35021
35022 ac_delim='%!_!# '
35023 for ac_last_try in false false false false false :; do
35024   cat >conf$$subs.sed <<_ACEOF
35025 SHELL!$SHELL$ac_delim
35026 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35027 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35028 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35029 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35030 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35031 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35032 exec_prefix!$exec_prefix$ac_delim
35033 prefix!$prefix$ac_delim
35034 program_transform_name!$program_transform_name$ac_delim
35035 bindir!$bindir$ac_delim
35036 sbindir!$sbindir$ac_delim
35037 libexecdir!$libexecdir$ac_delim
35038 datarootdir!$datarootdir$ac_delim
35039 datadir!$datadir$ac_delim
35040 sysconfdir!$sysconfdir$ac_delim
35041 sharedstatedir!$sharedstatedir$ac_delim
35042 localstatedir!$localstatedir$ac_delim
35043 includedir!$includedir$ac_delim
35044 oldincludedir!$oldincludedir$ac_delim
35045 docdir!$docdir$ac_delim
35046 infodir!$infodir$ac_delim
35047 htmldir!$htmldir$ac_delim
35048 dvidir!$dvidir$ac_delim
35049 pdfdir!$pdfdir$ac_delim
35050 psdir!$psdir$ac_delim
35051 libdir!$libdir$ac_delim
35052 localedir!$localedir$ac_delim
35053 mandir!$mandir$ac_delim
35054 DEFS!$DEFS$ac_delim
35055 ECHO_C!$ECHO_C$ac_delim
35056 ECHO_N!$ECHO_N$ac_delim
35057 ECHO_T!$ECHO_T$ac_delim
35058 LIBS!$LIBS$ac_delim
35059 build_alias!$build_alias$ac_delim
35060 host_alias!$host_alias$ac_delim
35061 target_alias!$target_alias$ac_delim
35062 build!$build$ac_delim
35063 build_cpu!$build_cpu$ac_delim
35064 build_vendor!$build_vendor$ac_delim
35065 build_os!$build_os$ac_delim
35066 host!$host$ac_delim
35067 host_cpu!$host_cpu$ac_delim
35068 host_vendor!$host_vendor$ac_delim
35069 host_os!$host_os$ac_delim
35070 target!$target$ac_delim
35071 target_cpu!$target_cpu$ac_delim
35072 target_vendor!$target_vendor$ac_delim
35073 target_os!$target_os$ac_delim
35074 LIBVERSION!$LIBVERSION$ac_delim
35075 CLASSPATH_MODULE!$CLASSPATH_MODULE$ac_delim
35076 CLASSPATH_CONVENIENCE!$CLASSPATH_CONVENIENCE$ac_delim
35077 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35078 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35079 INSTALL_DATA!$INSTALL_DATA$ac_delim
35080 am__isrc!$am__isrc$ac_delim
35081 CYGPATH_W!$CYGPATH_W$ac_delim
35082 PACKAGE!$PACKAGE$ac_delim
35083 VERSION!$VERSION$ac_delim
35084 ACLOCAL!$ACLOCAL$ac_delim
35085 AUTOCONF!$AUTOCONF$ac_delim
35086 AUTOMAKE!$AUTOMAKE$ac_delim
35087 AUTOHEADER!$AUTOHEADER$ac_delim
35088 MAKEINFO!$MAKEINFO$ac_delim
35089 install_sh!$install_sh$ac_delim
35090 STRIP!$STRIP$ac_delim
35091 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
35092 mkdir_p!$mkdir_p$ac_delim
35093 AWK!$AWK$ac_delim
35094 SET_MAKE!$SET_MAKE$ac_delim
35095 am__leading_dot!$am__leading_dot$ac_delim
35096 AMTAR!$AMTAR$ac_delim
35097 am__tar!$am__tar$ac_delim
35098 am__untar!$am__untar$ac_delim
35099 CREATE_COLLECTIONS_TRUE!$CREATE_COLLECTIONS_TRUE$ac_delim
35100 CREATE_COLLECTIONS_FALSE!$CREATE_COLLECTIONS_FALSE$ac_delim
35101 CREATE_JNI_LIBRARIES_TRUE!$CREATE_JNI_LIBRARIES_TRUE$ac_delim
35102 CREATE_JNI_LIBRARIES_FALSE!$CREATE_JNI_LIBRARIES_FALSE$ac_delim
35103 CREATE_CORE_JNI_LIBRARIES_TRUE!$CREATE_CORE_JNI_LIBRARIES_TRUE$ac_delim
35104 CREATE_CORE_JNI_LIBRARIES_FALSE!$CREATE_CORE_JNI_LIBRARIES_FALSE$ac_delim
35105 CREATE_GCONF_PEER_LIBRARIES_TRUE!$CREATE_GCONF_PEER_LIBRARIES_TRUE$ac_delim
35106 CREATE_GCONF_PEER_LIBRARIES_FALSE!$CREATE_GCONF_PEER_LIBRARIES_FALSE$ac_delim
35107 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE!$CREATE_GSTREAMER_PEER_LIBRARIES_TRUE$ac_delim
35108 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE!$CREATE_GSTREAMER_PEER_LIBRARIES_FALSE$ac_delim
35109 default_toolkit!$default_toolkit$ac_delim
35110 CREATE_XMLJ_LIBRARY_TRUE!$CREATE_XMLJ_LIBRARY_TRUE$ac_delim
35111 CREATE_XMLJ_LIBRARY_FALSE!$CREATE_XMLJ_LIBRARY_FALSE$ac_delim
35112 CC!$CC$ac_delim
35113 CFLAGS!$CFLAGS$ac_delim
35114 LDFLAGS!$LDFLAGS$ac_delim
35115 CPPFLAGS!$CPPFLAGS$ac_delim
35116 ac_ct_CC!$ac_ct_CC$ac_delim
35117 EXEEXT!$EXEEXT$ac_delim
35118 OBJEXT!$OBJEXT$ac_delim
35119 DEPDIR!$DEPDIR$ac_delim
35120 am__include!$am__include$ac_delim
35121 am__quote!$am__quote$ac_delim
35122 _ACEOF
35123
35124   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35125     break
35126   elif $ac_last_try; then
35127     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35128 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35129    { (exit 1); exit 1; }; }
35130   else
35131     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35132   fi
35133 done
35134
35135 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35136 if test -n "$ac_eof"; then
35137   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35138   ac_eof=`expr $ac_eof + 1`
35139 fi
35140
35141 cat >>$CONFIG_STATUS <<_ACEOF
35142 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35144 _ACEOF
35145 sed '
35146 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35147 s/^/s,@/; s/!/@,|#_!!_#|/
35148 :n
35149 t n
35150 s/'"$ac_delim"'$/,g/; t
35151 s/$/\\/; p
35152 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35153 ' >>$CONFIG_STATUS <conf$$subs.sed
35154 rm -f conf$$subs.sed
35155 cat >>$CONFIG_STATUS <<_ACEOF
35156 CEOF$ac_eof
35157 _ACEOF
35158
35159
35160 ac_delim='%!_!# '
35161 for ac_last_try in false false false false false :; do
35162   cat >conf$$subs.sed <<_ACEOF
35163 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
35164 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
35165 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
35166 CCDEPMODE!$CCDEPMODE$ac_delim
35167 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
35168 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
35169 CPP!$CPP$ac_delim
35170 GREP!$GREP$ac_delim
35171 EGREP!$EGREP$ac_delim
35172 CREATE_ALSA_LIBRARIES_TRUE!$CREATE_ALSA_LIBRARIES_TRUE$ac_delim
35173 CREATE_ALSA_LIBRARIES_FALSE!$CREATE_ALSA_LIBRARIES_FALSE$ac_delim
35174 CREATE_DSSI_LIBRARIES_TRUE!$CREATE_DSSI_LIBRARIES_TRUE$ac_delim
35175 CREATE_DSSI_LIBRARIES_FALSE!$CREATE_DSSI_LIBRARIES_FALSE$ac_delim
35176 CREATE_GTK_PEER_LIBRARIES_TRUE!$CREATE_GTK_PEER_LIBRARIES_TRUE$ac_delim
35177 CREATE_GTK_PEER_LIBRARIES_FALSE!$CREATE_GTK_PEER_LIBRARIES_FALSE$ac_delim
35178 CREATE_QT_PEER_LIBRARIES_TRUE!$CREATE_QT_PEER_LIBRARIES_TRUE$ac_delim
35179 CREATE_QT_PEER_LIBRARIES_FALSE!$CREATE_QT_PEER_LIBRARIES_FALSE$ac_delim
35180 CREATE_PLUGIN_TRUE!$CREATE_PLUGIN_TRUE$ac_delim
35181 CREATE_PLUGIN_FALSE!$CREATE_PLUGIN_FALSE$ac_delim
35182 nativeexeclibdir!$nativeexeclibdir$ac_delim
35183 glibjdir!$glibjdir$ac_delim
35184 VM_BINARY!$VM_BINARY$ac_delim
35185 CREATE_JNI_HEADERS_TRUE!$CREATE_JNI_HEADERS_TRUE$ac_delim
35186 CREATE_JNI_HEADERS_FALSE!$CREATE_JNI_HEADERS_FALSE$ac_delim
35187 CREATE_WRAPPERS_TRUE!$CREATE_WRAPPERS_TRUE$ac_delim
35188 CREATE_WRAPPERS_FALSE!$CREATE_WRAPPERS_FALSE$ac_delim
35189 LN_S!$LN_S$ac_delim
35190 CXX!$CXX$ac_delim
35191 CXXFLAGS!$CXXFLAGS$ac_delim
35192 ac_ct_CXX!$ac_ct_CXX$ac_delim
35193 CXXDEPMODE!$CXXDEPMODE$ac_delim
35194 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
35195 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
35196 SED!$SED$ac_delim
35197 ECHO!$ECHO$ac_delim
35198 AR!$AR$ac_delim
35199 RANLIB!$RANLIB$ac_delim
35200 DSYMUTIL!$DSYMUTIL$ac_delim
35201 NMEDIT!$NMEDIT$ac_delim
35202 CXXCPP!$CXXCPP$ac_delim
35203 F77!$F77$ac_delim
35204 FFLAGS!$FFLAGS$ac_delim
35205 ac_ct_F77!$ac_ct_F77$ac_delim
35206 LIBTOOL!$LIBTOOL$ac_delim
35207 PERL!$PERL$ac_delim
35208 COLLECTIONS_PREFIX!$COLLECTIONS_PREFIX$ac_delim
35209 LIBMAGIC!$LIBMAGIC$ac_delim
35210 LIBICONV!$LIBICONV$ac_delim
35211 LTLIBICONV!$LTLIBICONV$ac_delim
35212 WARNING_CFLAGS!$WARNING_CFLAGS$ac_delim
35213 STRICT_WARNING_CFLAGS!$STRICT_WARNING_CFLAGS$ac_delim
35214 ERROR_CFLAGS!$ERROR_CFLAGS$ac_delim
35215 PKG_CONFIG!$PKG_CONFIG$ac_delim
35216 XML_CFLAGS!$XML_CFLAGS$ac_delim
35217 XML_LIBS!$XML_LIBS$ac_delim
35218 XSLT_CFLAGS!$XSLT_CFLAGS$ac_delim
35219 XSLT_LIBS!$XSLT_LIBS$ac_delim
35220 XMKMF!$XMKMF$ac_delim
35221 X_CFLAGS!$X_CFLAGS$ac_delim
35222 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35223 X_LIBS!$X_LIBS$ac_delim
35224 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35225 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
35226 GTK_LIBS!$GTK_LIBS$ac_delim
35227 FREETYPE2_CFLAGS!$FREETYPE2_CFLAGS$ac_delim
35228 FREETYPE2_LIBS!$FREETYPE2_LIBS$ac_delim
35229 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
35230 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
35231 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
35232 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
35233 XTEST_LIBS!$XTEST_LIBS$ac_delim
35234 GCONF_CFLAGS!$GCONF_CFLAGS$ac_delim
35235 GCONF_LIBS!$GCONF_LIBS$ac_delim
35236 GDK_CFLAGS!$GDK_CFLAGS$ac_delim
35237 GDK_LIBS!$GDK_LIBS$ac_delim
35238 GSTREAMER_CFLAGS!$GSTREAMER_CFLAGS$ac_delim
35239 GSTREAMER_LIBS!$GSTREAMER_LIBS$ac_delim
35240 GSTREAMER_BASE_CFLAGS!$GSTREAMER_BASE_CFLAGS$ac_delim
35241 GSTREAMER_BASE_LIBS!$GSTREAMER_BASE_LIBS$ac_delim
35242 GSTREAMER_PLUGINS_BASE_CFLAGS!$GSTREAMER_PLUGINS_BASE_CFLAGS$ac_delim
35243 GSTREAMER_PLUGINS_BASE_LIBS!$GSTREAMER_PLUGINS_BASE_LIBS$ac_delim
35244 GST_PLUGIN_LDFLAGS!$GST_PLUGIN_LDFLAGS$ac_delim
35245 GSTREAMER_FILE_READER!$GSTREAMER_FILE_READER$ac_delim
35246 GSTREAMER_MIXER_PROVIDER!$GSTREAMER_MIXER_PROVIDER$ac_delim
35247 QT_CFLAGS!$QT_CFLAGS$ac_delim
35248 QT_LIBS!$QT_LIBS$ac_delim
35249 MOC!$MOC$ac_delim
35250 MOZILLA_CFLAGS!$MOZILLA_CFLAGS$ac_delim
35251 MOZILLA_LIBS!$MOZILLA_LIBS$ac_delim
35252 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
35253 GLIB_LIBS!$GLIB_LIBS$ac_delim
35254 PLUGIN_DIR!$PLUGIN_DIR$ac_delim
35255 USER_JAVAH!$USER_JAVAH$ac_delim
35256 CLASSPATH_INCLUDES!$CLASSPATH_INCLUDES$ac_delim
35257 vm_classes!$vm_classes$ac_delim
35258 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
35259 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
35260 _ACEOF
35261
35262   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35263     break
35264   elif $ac_last_try; then
35265     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35266 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35267    { (exit 1); exit 1; }; }
35268   else
35269     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35270   fi
35271 done
35272
35273 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35274 if test -n "$ac_eof"; then
35275   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35276   ac_eof=`expr $ac_eof + 1`
35277 fi
35278
35279 cat >>$CONFIG_STATUS <<_ACEOF
35280 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35282 _ACEOF
35283 sed '
35284 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35285 s/^/s,@/; s/!/@,|#_!!_#|/
35286 :n
35287 t n
35288 s/'"$ac_delim"'$/,g/; t
35289 s/$/\\/; p
35290 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35291 ' >>$CONFIG_STATUS <conf$$subs.sed
35292 rm -f conf$$subs.sed
35293 cat >>$CONFIG_STATUS <<_ACEOF
35294 CEOF$ac_eof
35295 _ACEOF
35296
35297
35298 ac_delim='%!_!# '
35299 for ac_last_try in false false false false false :; do
35300   cat >conf$$subs.sed <<_ACEOF
35301 MAINT!$MAINT$ac_delim
35302 LIBDEBUG!$LIBDEBUG$ac_delim
35303 INIT_LOAD_LIBRARY!$INIT_LOAD_LIBRARY$ac_delim
35304 ECJ_JAR!$ECJ_JAR$ac_delim
35305 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION!$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION$ac_delim
35306 REMOVE!$REMOVE$ac_delim
35307 MKDIR!$MKDIR$ac_delim
35308 CP!$CP$ac_delim
35309 DATE!$DATE$ac_delim
35310 FIND!$FIND$ac_delim
35311 ZIP!$ZIP$ac_delim
35312 FASTJAR!$FASTJAR$ac_delim
35313 INSTALL_GLIBJ_ZIP_TRUE!$INSTALL_GLIBJ_ZIP_TRUE$ac_delim
35314 INSTALL_GLIBJ_ZIP_FALSE!$INSTALL_GLIBJ_ZIP_FALSE$ac_delim
35315 INSTALL_CLASS_FILES_TRUE!$INSTALL_CLASS_FILES_TRUE$ac_delim
35316 INSTALL_CLASS_FILES_FALSE!$INSTALL_CLASS_FILES_FALSE$ac_delim
35317 BUILD_CLASS_FILES_TRUE!$BUILD_CLASS_FILES_TRUE$ac_delim
35318 BUILD_CLASS_FILES_FALSE!$BUILD_CLASS_FILES_FALSE$ac_delim
35319 EXAMPLESDIR!$EXAMPLESDIR$ac_delim
35320 TOOLSDIR!$TOOLSDIR$ac_delim
35321 GJDOC!$GJDOC$ac_delim
35322 CREATE_API_DOCS_TRUE!$CREATE_API_DOCS_TRUE$ac_delim
35323 CREATE_API_DOCS_FALSE!$CREATE_API_DOCS_FALSE$ac_delim
35324 JAY!$JAY$ac_delim
35325 JAY_SKELETON!$JAY_SKELETON$ac_delim
35326 REGEN_PARSERS_TRUE!$REGEN_PARSERS_TRUE$ac_delim
35327 REGEN_PARSERS_FALSE!$REGEN_PARSERS_FALSE$ac_delim
35328 USE_PREBUILT_GLIBJ_ZIP_TRUE!$USE_PREBUILT_GLIBJ_ZIP_TRUE$ac_delim
35329 USE_PREBUILT_GLIBJ_ZIP_FALSE!$USE_PREBUILT_GLIBJ_ZIP_FALSE$ac_delim
35330 PATH_TO_GLIBJ_ZIP!$PATH_TO_GLIBJ_ZIP$ac_delim
35331 JAVAC!$JAVAC$ac_delim
35332 JAVAC_MEM_OPT!$JAVAC_MEM_OPT$ac_delim
35333 USE_ESCHER_TRUE!$USE_ESCHER_TRUE$ac_delim
35334 USE_ESCHER_FALSE!$USE_ESCHER_FALSE$ac_delim
35335 PATH_TO_ESCHER!$PATH_TO_ESCHER$ac_delim
35336 ENABLE_LOCAL_SOCKETS_TRUE!$ENABLE_LOCAL_SOCKETS_TRUE$ac_delim
35337 ENABLE_LOCAL_SOCKETS_FALSE!$ENABLE_LOCAL_SOCKETS_FALSE$ac_delim
35338 DEFAULT_PREFS_PEER!$DEFAULT_PREFS_PEER$ac_delim
35339 LIBOBJS!$LIBOBJS$ac_delim
35340 LTLIBOBJS!$LTLIBOBJS$ac_delim
35341 _ACEOF
35342
35343   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
35344     break
35345   elif $ac_last_try; then
35346     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35347 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35348    { (exit 1); exit 1; }; }
35349   else
35350     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35351   fi
35352 done
35353
35354 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35355 if test -n "$ac_eof"; then
35356   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35357   ac_eof=`expr $ac_eof + 1`
35358 fi
35359
35360 cat >>$CONFIG_STATUS <<_ACEOF
35361 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35363 _ACEOF
35364 sed '
35365 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35366 s/^/s,@/; s/!/@,|#_!!_#|/
35367 :n
35368 t n
35369 s/'"$ac_delim"'$/,g/; t
35370 s/$/\\/; p
35371 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35372 ' >>$CONFIG_STATUS <conf$$subs.sed
35373 rm -f conf$$subs.sed
35374 cat >>$CONFIG_STATUS <<_ACEOF
35375 :end
35376 s/|#_!!_#|//g
35377 CEOF$ac_eof
35378 _ACEOF
35379
35380
35381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35383 # trailing colons and then remove the whole line if VPATH becomes empty
35384 # (actually we leave an empty line to preserve line numbers).
35385 if test "x$srcdir" = x.; then
35386   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35387 s/:*\$(srcdir):*/:/
35388 s/:*\${srcdir}:*/:/
35389 s/:*@srcdir@:*/:/
35390 s/^\([^=]*=[     ]*\):*/\1/
35391 s/:*$//
35392 s/^[^=]*=[       ]*$//
35393 }'
35394 fi
35395
35396 cat >>$CONFIG_STATUS <<\_ACEOF
35397 fi # test -n "$CONFIG_FILES"
35398
35399
35400 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
35401 do
35402   case $ac_tag in
35403   :[FHLC]) ac_mode=$ac_tag; continue;;
35404   esac
35405   case $ac_mode$ac_tag in
35406   :[FHL]*:*);;
35407   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35408 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35409    { (exit 1); exit 1; }; };;
35410   :[FH]-) ac_tag=-:-;;
35411   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35412   esac
35413   ac_save_IFS=$IFS
35414   IFS=:
35415   set x $ac_tag
35416   IFS=$ac_save_IFS
35417   shift
35418   ac_file=$1
35419   shift
35420
35421   case $ac_mode in
35422   :L) ac_source=$1;;
35423   :[FH])
35424     ac_file_inputs=
35425     for ac_f
35426     do
35427       case $ac_f in
35428       -) ac_f="$tmp/stdin";;
35429       *) # Look for the file first in the build tree, then in the source tree
35430          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35431          # because $ac_f cannot contain `:'.
35432          test -f "$ac_f" ||
35433            case $ac_f in
35434            [\\/$]*) false;;
35435            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35436            esac ||
35437            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35438 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35439    { (exit 1); exit 1; }; };;
35440       esac
35441       ac_file_inputs="$ac_file_inputs $ac_f"
35442     done
35443
35444     # Let's still pretend it is `configure' which instantiates (i.e., don't
35445     # use $as_me), people would be surprised to read:
35446     #    /* config.h.  Generated by config.status.  */
35447     configure_input="Generated from "`IFS=:
35448           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35449     if test x"$ac_file" != x-; then
35450       configure_input="$ac_file.  $configure_input"
35451       { echo "$as_me:$LINENO: creating $ac_file" >&5
35452 echo "$as_me: creating $ac_file" >&6;}
35453     fi
35454
35455     case $ac_tag in
35456     *:-:* | *:-) cat >"$tmp/stdin";;
35457     esac
35458     ;;
35459   esac
35460
35461   ac_dir=`$as_dirname -- "$ac_file" ||
35462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35463          X"$ac_file" : 'X\(//\)[^/]' \| \
35464          X"$ac_file" : 'X\(//\)$' \| \
35465          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35466 echo X"$ac_file" |
35467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35468             s//\1/
35469             q
35470           }
35471           /^X\(\/\/\)[^/].*/{
35472             s//\1/
35473             q
35474           }
35475           /^X\(\/\/\)$/{
35476             s//\1/
35477             q
35478           }
35479           /^X\(\/\).*/{
35480             s//\1/
35481             q
35482           }
35483           s/.*/./; q'`
35484   { as_dir="$ac_dir"
35485   case $as_dir in #(
35486   -*) as_dir=./$as_dir;;
35487   esac
35488   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35489     as_dirs=
35490     while :; do
35491       case $as_dir in #(
35492       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35493       *) as_qdir=$as_dir;;
35494       esac
35495       as_dirs="'$as_qdir' $as_dirs"
35496       as_dir=`$as_dirname -- "$as_dir" ||
35497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35498          X"$as_dir" : 'X\(//\)[^/]' \| \
35499          X"$as_dir" : 'X\(//\)$' \| \
35500          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35501 echo X"$as_dir" |
35502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35503             s//\1/
35504             q
35505           }
35506           /^X\(\/\/\)[^/].*/{
35507             s//\1/
35508             q
35509           }
35510           /^X\(\/\/\)$/{
35511             s//\1/
35512             q
35513           }
35514           /^X\(\/\).*/{
35515             s//\1/
35516             q
35517           }
35518           s/.*/./; q'`
35519       test -d "$as_dir" && break
35520     done
35521     test -z "$as_dirs" || eval "mkdir $as_dirs"
35522   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35523 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35524    { (exit 1); exit 1; }; }; }
35525   ac_builddir=.
35526
35527 case "$ac_dir" in
35528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35529 *)
35530   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35531   # A ".." for each directory in $ac_dir_suffix.
35532   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35533   case $ac_top_builddir_sub in
35534   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35535   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35536   esac ;;
35537 esac
35538 ac_abs_top_builddir=$ac_pwd
35539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35540 # for backward compatibility:
35541 ac_top_builddir=$ac_top_build_prefix
35542
35543 case $srcdir in
35544   .)  # We are building in place.
35545     ac_srcdir=.
35546     ac_top_srcdir=$ac_top_builddir_sub
35547     ac_abs_top_srcdir=$ac_pwd ;;
35548   [\\/]* | ?:[\\/]* )  # Absolute name.
35549     ac_srcdir=$srcdir$ac_dir_suffix;
35550     ac_top_srcdir=$srcdir
35551     ac_abs_top_srcdir=$srcdir ;;
35552   *) # Relative name.
35553     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35554     ac_top_srcdir=$ac_top_build_prefix$srcdir
35555     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35556 esac
35557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35558
35559
35560   case $ac_mode in
35561   :F)
35562   #
35563   # CONFIG_FILE
35564   #
35565
35566   case $INSTALL in
35567   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35568   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35569   esac
35570   ac_MKDIR_P=$MKDIR_P
35571   case $MKDIR_P in
35572   [\\/$]* | ?:[\\/]* ) ;;
35573   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35574   esac
35575 _ACEOF
35576
35577 cat >>$CONFIG_STATUS <<\_ACEOF
35578 # If the template does not know about datarootdir, expand it.
35579 # FIXME: This hack should be removed a few years after 2.60.
35580 ac_datarootdir_hack=; ac_datarootdir_seen=
35581
35582 case `sed -n '/datarootdir/ {
35583   p
35584   q
35585 }
35586 /@datadir@/p
35587 /@docdir@/p
35588 /@infodir@/p
35589 /@localedir@/p
35590 /@mandir@/p
35591 ' $ac_file_inputs` in
35592 *datarootdir*) ac_datarootdir_seen=yes;;
35593 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35594   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35595 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35596 _ACEOF
35597 cat >>$CONFIG_STATUS <<_ACEOF
35598   ac_datarootdir_hack='
35599   s&@datadir@&$datadir&g
35600   s&@docdir@&$docdir&g
35601   s&@infodir@&$infodir&g
35602   s&@localedir@&$localedir&g
35603   s&@mandir@&$mandir&g
35604     s&\\\${datarootdir}&$datarootdir&g' ;;
35605 esac
35606 _ACEOF
35607
35608 # Neutralize VPATH when `$srcdir' = `.'.
35609 # Shell code in configure.ac might set extrasub.
35610 # FIXME: do we really want to maintain this feature?
35611 cat >>$CONFIG_STATUS <<_ACEOF
35612   sed "$ac_vpsub
35613 $extrasub
35614 _ACEOF
35615 cat >>$CONFIG_STATUS <<\_ACEOF
35616 :t
35617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35618 s&@configure_input@&$configure_input&;t t
35619 s&@top_builddir@&$ac_top_builddir_sub&;t t
35620 s&@srcdir@&$ac_srcdir&;t t
35621 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35622 s&@top_srcdir@&$ac_top_srcdir&;t t
35623 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35624 s&@builddir@&$ac_builddir&;t t
35625 s&@abs_builddir@&$ac_abs_builddir&;t t
35626 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35627 s&@INSTALL@&$ac_INSTALL&;t t
35628 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35629 $ac_datarootdir_hack
35630 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35631
35632 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35633   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35634   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35635   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35636 which seems to be undefined.  Please make sure it is defined." >&5
35637 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35638 which seems to be undefined.  Please make sure it is defined." >&2;}
35639
35640   rm -f "$tmp/stdin"
35641   case $ac_file in
35642   -) cat "$tmp/out"; rm -f "$tmp/out";;
35643   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35644   esac
35645  ;;
35646   :H)
35647   #
35648   # CONFIG_HEADER
35649   #
35650 _ACEOF
35651
35652 # Transform confdefs.h into a sed script `conftest.defines', that
35653 # substitutes the proper values into config.h.in to produce config.h.
35654 rm -f conftest.defines conftest.tail
35655 # First, append a space to every undef/define line, to ease matching.
35656 echo 's/$/ /' >conftest.defines
35657 # Then, protect against being on the right side of a sed subst, or in
35658 # an unquoted here document, in config.status.  If some macros were
35659 # called several times there might be several #defines for the same
35660 # symbol, which is useless.  But do not sort them, since the last
35661 # AC_DEFINE must be honored.
35662 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35663 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35664 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35665 # PARAMS is the parameter list in the macro definition--in most cases, it's
35666 # just an empty string.
35667 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35668 ac_dB='\\)[      (].*,\\1define\\2'
35669 ac_dC=' '
35670 ac_dD=' ,'
35671
35672 uniq confdefs.h |
35673   sed -n '
35674         t rset
35675         :rset
35676         s/^[     ]*#[    ]*define[       ][      ]*//
35677         t ok
35678         d
35679         :ok
35680         s/[\\&,]/\\&/g
35681         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35682         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35683   ' >>conftest.defines
35684
35685 # Remove the space that was appended to ease matching.
35686 # Then replace #undef with comments.  This is necessary, for
35687 # example, in the case of _POSIX_SOURCE, which is predefined and required
35688 # on some systems where configure will not decide to define it.
35689 # (The regexp can be short, since the line contains either #define or #undef.)
35690 echo 's/ $//
35691 s,^[     #]*u.*,/* & */,' >>conftest.defines
35692
35693 # Break up conftest.defines:
35694 ac_max_sed_lines=50
35695
35696 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35697 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35698 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35699 # et cetera.
35700 ac_in='$ac_file_inputs'
35701 ac_out='"$tmp/out1"'
35702 ac_nxt='"$tmp/out2"'
35703
35704 while :
35705 do
35706   # Write a here document:
35707     cat >>$CONFIG_STATUS <<_ACEOF
35708     # First, check the format of the line:
35709     cat >"\$tmp/defines.sed" <<\\CEOF
35710 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35711 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35712 b
35713 :def
35714 _ACEOF
35715   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35716   echo 'CEOF
35717     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35718   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35719   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35720   grep . conftest.tail >/dev/null || break
35721   rm -f conftest.defines
35722   mv conftest.tail conftest.defines
35723 done
35724 rm -f conftest.defines conftest.tail
35725
35726 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35727 cat >>$CONFIG_STATUS <<\_ACEOF
35728   if test x"$ac_file" != x-; then
35729     echo "/* $configure_input  */" >"$tmp/config.h"
35730     cat "$ac_result" >>"$tmp/config.h"
35731     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35732       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35733 echo "$as_me: $ac_file is unchanged" >&6;}
35734     else
35735       rm -f $ac_file
35736       mv "$tmp/config.h" $ac_file
35737     fi
35738   else
35739     echo "/* $configure_input  */"
35740     cat "$ac_result"
35741   fi
35742   rm -f "$tmp/out12"
35743 # Compute $ac_file's index in $config_headers.
35744 _am_arg=$ac_file
35745 _am_stamp_count=1
35746 for _am_header in $config_headers :; do
35747   case $_am_header in
35748     $_am_arg | $_am_arg:* )
35749       break ;;
35750     * )
35751       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35752   esac
35753 done
35754 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35755 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35756          X"$_am_arg" : 'X\(//\)[^/]' \| \
35757          X"$_am_arg" : 'X\(//\)$' \| \
35758          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35759 echo X"$_am_arg" |
35760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35761             s//\1/
35762             q
35763           }
35764           /^X\(\/\/\)[^/].*/{
35765             s//\1/
35766             q
35767           }
35768           /^X\(\/\/\)$/{
35769             s//\1/
35770             q
35771           }
35772           /^X\(\/\).*/{
35773             s//\1/
35774             q
35775           }
35776           s/.*/./; q'`/stamp-h$_am_stamp_count
35777  ;;
35778   :L)
35779   #
35780   # CONFIG_LINK
35781   #
35782
35783   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
35784 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
35785
35786   if test ! -r "$srcdir/$ac_source"; then
35787     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
35788 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
35789    { (exit 1); exit 1; }; }
35790   fi
35791   rm -f "$ac_file"
35792
35793   # Try a relative symlink, then a hard link, then a copy.
35794   case $srcdir in
35795   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
35796       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
35797   esac
35798   ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
35799     ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
35800     cp -p "$srcdir/$ac_source" "$ac_file" ||
35801     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
35802 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
35803    { (exit 1); exit 1; }; }
35804  ;;
35805   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35806 echo "$as_me: executing $ac_file commands" >&6;}
35807  ;;
35808   esac
35809
35810
35811   case $ac_file$ac_mode in
35812     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35813   # Strip MF so we end up with the name of the file.
35814   mf=`echo "$mf" | sed -e 's/:.*$//'`
35815   # Check whether this is an Automake generated Makefile or not.
35816   # We used to match only the files named `Makefile.in', but
35817   # some people rename them; so instead we look at the file content.
35818   # Grep'ing the first line is not enough: some people post-process
35819   # each Makefile.in and add a new line on top of each file to say so.
35820   # Grep'ing the whole file is not good either: AIX grep has a line
35821   # limit of 2048, but all sed's we know have understand at least 4000.
35822   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35823     dirpart=`$as_dirname -- "$mf" ||
35824 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35825          X"$mf" : 'X\(//\)[^/]' \| \
35826          X"$mf" : 'X\(//\)$' \| \
35827          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35828 echo X"$mf" |
35829     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35830             s//\1/
35831             q
35832           }
35833           /^X\(\/\/\)[^/].*/{
35834             s//\1/
35835             q
35836           }
35837           /^X\(\/\/\)$/{
35838             s//\1/
35839             q
35840           }
35841           /^X\(\/\).*/{
35842             s//\1/
35843             q
35844           }
35845           s/.*/./; q'`
35846   else
35847     continue
35848   fi
35849   # Extract the definition of DEPDIR, am__include, and am__quote
35850   # from the Makefile without running `make'.
35851   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35852   test -z "$DEPDIR" && continue
35853   am__include=`sed -n 's/^am__include = //p' < "$mf"`
35854   test -z "am__include" && continue
35855   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35856   # When using ansi2knr, U may be empty or an underscore; expand it
35857   U=`sed -n 's/^U = //p' < "$mf"`
35858   # Find all dependency output files, they are included files with
35859   # $(DEPDIR) in their names.  We invoke sed twice because it is the
35860   # simplest approach to changing $(DEPDIR) to its actual value in the
35861   # expansion.
35862   for file in `sed -n "
35863     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35864        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35865     # Make sure the directory exists.
35866     test -f "$dirpart/$file" && continue
35867     fdir=`$as_dirname -- "$file" ||
35868 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35869          X"$file" : 'X\(//\)[^/]' \| \
35870          X"$file" : 'X\(//\)$' \| \
35871          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35872 echo X"$file" |
35873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35874             s//\1/
35875             q
35876           }
35877           /^X\(\/\/\)[^/].*/{
35878             s//\1/
35879             q
35880           }
35881           /^X\(\/\/\)$/{
35882             s//\1/
35883             q
35884           }
35885           /^X\(\/\).*/{
35886             s//\1/
35887             q
35888           }
35889           s/.*/./; q'`
35890     { as_dir=$dirpart/$fdir
35891   case $as_dir in #(
35892   -*) as_dir=./$as_dir;;
35893   esac
35894   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35895     as_dirs=
35896     while :; do
35897       case $as_dir in #(
35898       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35899       *) as_qdir=$as_dir;;
35900       esac
35901       as_dirs="'$as_qdir' $as_dirs"
35902       as_dir=`$as_dirname -- "$as_dir" ||
35903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35904          X"$as_dir" : 'X\(//\)[^/]' \| \
35905          X"$as_dir" : 'X\(//\)$' \| \
35906          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35907 echo X"$as_dir" |
35908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35909             s//\1/
35910             q
35911           }
35912           /^X\(\/\/\)[^/].*/{
35913             s//\1/
35914             q
35915           }
35916           /^X\(\/\/\)$/{
35917             s//\1/
35918             q
35919           }
35920           /^X\(\/\).*/{
35921             s//\1/
35922             q
35923           }
35924           s/.*/./; q'`
35925       test -d "$as_dir" && break
35926     done
35927     test -z "$as_dirs" || eval "mkdir $as_dirs"
35928   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35929 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35930    { (exit 1); exit 1; }; }; }
35931     # echo "creating $dirpart/$file"
35932     echo '# dummy' > "$dirpart/$file"
35933   done
35934 done
35935  ;;
35936     "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
35937     "$ac_stdint_h":C)
35938 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
35939 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
35940 ac_stdint=$tmp/_stdint.h
35941
35942 echo "#ifndef" $_ac_stdint_h >$ac_stdint
35943 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
35944 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
35945 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
35946 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
35947 if test "_$ac_cv_header_stdint_t" != "_" ; then
35948 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
35949 echo "#include <stdint.h>" >>$ac_stdint
35950 echo "#endif" >>$ac_stdint
35951 echo "#endif" >>$ac_stdint
35952 else
35953
35954 cat >>$ac_stdint <<STDINT_EOF
35955
35956 /* ................... shortcircuit part ........................... */
35957
35958 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
35959 #include <stdint.h>
35960 #else
35961 #include <stddef.h>
35962
35963 /* .................... configured part ............................ */
35964
35965 STDINT_EOF
35966
35967 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
35968 if test "_$ac_cv_header_stdint_x" != "_" ; then
35969   ac_header="$ac_cv_header_stdint_x"
35970   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
35971 else
35972   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
35973 fi
35974
35975 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
35976 if  test "_$ac_cv_header_stdint_o" != "_" ; then
35977   ac_header="$ac_cv_header_stdint_o"
35978   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
35979 else
35980   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
35981 fi
35982
35983 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
35984 if  test "_$ac_cv_header_stdint_u" != "_" ; then
35985   ac_header="$ac_cv_header_stdint_u"
35986   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
35987 else
35988   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
35989 fi
35990
35991 echo "" >>$ac_stdint
35992
35993 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
35994   echo "#include <$ac_header>" >>$ac_stdint
35995   echo "" >>$ac_stdint
35996 fi fi
35997
35998 echo "/* which 64bit typedef has been found */" >>$ac_stdint
35999 if test "$ac_cv_type_uint64_t" = "yes" ; then
36000 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
36001 else
36002 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
36003 fi
36004 if test "$ac_cv_type_u_int64_t" = "yes" ; then
36005 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
36006 else
36007 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
36008 fi
36009 echo "" >>$ac_stdint
36010
36011 echo "/* which type model has been detected */" >>$ac_stdint
36012 if test "_$ac_cv_char_data_model" != "_" ; then
36013 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
36014 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
36015 else
36016 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
36017 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
36018 fi
36019 echo "" >>$ac_stdint
36020
36021 echo "/* whether int_least types were detected */" >>$ac_stdint
36022 if test "$ac_cv_type_int_least32_t" = "yes"; then
36023 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
36024 else
36025 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
36026 fi
36027 echo "/* whether int_fast types were detected */" >>$ac_stdint
36028 if test "$ac_cv_type_int_fast32_t" = "yes"; then
36029 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
36030 else
36031 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
36032 fi
36033 echo "/* whether intmax_t type was detected */" >>$ac_stdint
36034 if test "$ac_cv_type_intmax_t" = "yes"; then
36035 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
36036 else
36037 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
36038 fi
36039 echo "" >>$ac_stdint
36040
36041   cat >>$ac_stdint <<STDINT_EOF
36042 /* .................... detections part ............................ */
36043
36044 /* whether we need to define bitspecific types from compiler base types */
36045 #ifndef _STDINT_HEADER_INTPTR
36046 #ifndef _STDINT_HEADER_UINT32
36047 #ifndef _STDINT_HEADER_U_INT32
36048 #define _STDINT_NEED_INT_MODEL_T
36049 #else
36050 #define _STDINT_HAVE_U_INT_TYPES
36051 #endif
36052 #endif
36053 #endif
36054
36055 #ifdef _STDINT_HAVE_U_INT_TYPES
36056 #undef _STDINT_NEED_INT_MODEL_T
36057 #endif
36058
36059 #ifdef  _STDINT_CHAR_MODEL
36060 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
36061 #ifndef _STDINT_BYTE_MODEL
36062 #define _STDINT_BYTE_MODEL 12
36063 #endif
36064 #endif
36065 #endif
36066
36067 #ifndef _STDINT_HAVE_INT_LEAST32_T
36068 #define _STDINT_NEED_INT_LEAST_T
36069 #endif
36070
36071 #ifndef _STDINT_HAVE_INT_FAST32_T
36072 #define _STDINT_NEED_INT_FAST_T
36073 #endif
36074
36075 #ifndef _STDINT_HEADER_INTPTR
36076 #define _STDINT_NEED_INTPTR_T
36077 #ifndef _STDINT_HAVE_INTMAX_T
36078 #define _STDINT_NEED_INTMAX_T
36079 #endif
36080 #endif
36081
36082
36083 /* .................... definition part ............................ */
36084
36085 /* some system headers have good uint64_t */
36086 #ifndef _HAVE_UINT64_T
36087 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
36088 #define _HAVE_UINT64_T
36089 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
36090 #define _HAVE_UINT64_T
36091 typedef u_int64_t uint64_t;
36092 #endif
36093 #endif
36094
36095 #ifndef _HAVE_UINT64_T
36096 /* .. here are some common heuristics using compiler runtime specifics */
36097 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
36098 #define _HAVE_UINT64_T
36099 #define _HAVE_LONGLONG_UINT64_T
36100 typedef long long int64_t;
36101 typedef unsigned long long uint64_t;
36102
36103 #elif !defined __STRICT_ANSI__
36104 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
36105 #define _HAVE_UINT64_T
36106 typedef __int64 int64_t;
36107 typedef unsigned __int64 uint64_t;
36108
36109 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
36110 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
36111 #if !defined _NO_LONGLONG
36112 #define _HAVE_UINT64_T
36113 #define _HAVE_LONGLONG_UINT64_T
36114 typedef long long int64_t;
36115 typedef unsigned long long uint64_t;
36116 #endif
36117
36118 #elif defined __alpha || (defined __mips && defined _ABIN32)
36119 #if !defined _NO_LONGLONG
36120 typedef long int64_t;
36121 typedef unsigned long uint64_t;
36122 #endif
36123   /* compiler/cpu type to define int64_t */
36124 #endif
36125 #endif
36126 #endif
36127
36128 #if defined _STDINT_HAVE_U_INT_TYPES
36129 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
36130 typedef u_int8_t uint8_t;
36131 typedef u_int16_t uint16_t;
36132 typedef u_int32_t uint32_t;
36133
36134 /* glibc compatibility */
36135 #ifndef __int8_t_defined
36136 #define __int8_t_defined
36137 #endif
36138 #endif
36139
36140 #ifdef _STDINT_NEED_INT_MODEL_T
36141 /* we must guess all the basic types. Apart from byte-adressable system, */
36142 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
36143 /* (btw, those nibble-addressable systems are way off, or so we assume) */
36144
36145
36146 #if defined _STDINT_BYTE_MODEL
36147 #if _STDINT_LONG_MODEL+0 == 242
36148 /* 2:4:2 =  IP16 = a normal 16-bit system                */
36149 typedef unsigned char   uint8_t;
36150 typedef unsigned short  uint16_t;
36151 typedef unsigned long   uint32_t;
36152 #ifndef __int8_t_defined
36153 #define __int8_t_defined
36154 typedef          char    int8_t;
36155 typedef          short   int16_t;
36156 typedef          long    int32_t;
36157 #endif
36158 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
36159 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
36160 /* 4:4:4 = ILP32 = a normal 32-bit system                */
36161 typedef unsigned char   uint8_t;
36162 typedef unsigned short  uint16_t;
36163 typedef unsigned int    uint32_t;
36164 #ifndef __int8_t_defined
36165 #define __int8_t_defined
36166 typedef          char    int8_t;
36167 typedef          short   int16_t;
36168 typedef          int     int32_t;
36169 #endif
36170 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
36171 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
36172 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
36173 typedef unsigned char   uint8_t;
36174 typedef unsigned short  uint16_t;
36175 typedef unsigned int    uint32_t;
36176 #ifndef __int8_t_defined
36177 #define __int8_t_defined
36178 typedef          char    int8_t;
36179 typedef          short   int16_t;
36180 typedef          int     int32_t;
36181 #endif
36182 /* this system has a "long" of 64bit */
36183 #ifndef _HAVE_UINT64_T
36184 #define _HAVE_UINT64_T
36185 typedef unsigned long   uint64_t;
36186 typedef          long    int64_t;
36187 #endif
36188 #elif _STDINT_LONG_MODEL+0 == 448
36189 /*      LLP64   a 64-bit system derived from a 32-bit system */
36190 typedef unsigned char   uint8_t;
36191 typedef unsigned short  uint16_t;
36192 typedef unsigned int    uint32_t;
36193 #ifndef __int8_t_defined
36194 #define __int8_t_defined
36195 typedef          char    int8_t;
36196 typedef          short   int16_t;
36197 typedef          int     int32_t;
36198 #endif
36199 /* assuming the system has a "long long" */
36200 #ifndef _HAVE_UINT64_T
36201 #define _HAVE_UINT64_T
36202 #define _HAVE_LONGLONG_UINT64_T
36203 typedef unsigned long long uint64_t;
36204 typedef          long long  int64_t;
36205 #endif
36206 #else
36207 #define _STDINT_NO_INT32_T
36208 #endif
36209 #else
36210 #define _STDINT_NO_INT8_T
36211 #define _STDINT_NO_INT32_T
36212 #endif
36213 #endif
36214
36215 /*
36216  * quote from SunOS-5.8 sys/inttypes.h:
36217  * Use at your own risk.  As of February 1996, the committee is squarely
36218  * behind the fixed sized types; the "least" and "fast" types are still being
36219  * discussed.  The probability that the "fast" types may be removed before
36220  * the standard is finalized is high enough that they are not currently
36221  * implemented.
36222  */
36223
36224 #if defined _STDINT_NEED_INT_LEAST_T
36225 typedef  int8_t    int_least8_t;
36226 typedef  int16_t   int_least16_t;
36227 typedef  int32_t   int_least32_t;
36228 #ifdef _HAVE_UINT64_T
36229 typedef  int64_t   int_least64_t;
36230 #endif
36231
36232 typedef uint8_t   uint_least8_t;
36233 typedef uint16_t  uint_least16_t;
36234 typedef uint32_t  uint_least32_t;
36235 #ifdef _HAVE_UINT64_T
36236 typedef uint64_t  uint_least64_t;
36237 #endif
36238   /* least types */
36239 #endif
36240
36241 #if defined _STDINT_NEED_INT_FAST_T
36242 typedef  int8_t    int_fast8_t;
36243 typedef  int       int_fast16_t;
36244 typedef  int32_t   int_fast32_t;
36245 #ifdef _HAVE_UINT64_T
36246 typedef  int64_t   int_fast64_t;
36247 #endif
36248
36249 typedef uint8_t   uint_fast8_t;
36250 typedef unsigned  uint_fast16_t;
36251 typedef uint32_t  uint_fast32_t;
36252 #ifdef _HAVE_UINT64_T
36253 typedef uint64_t  uint_fast64_t;
36254 #endif
36255   /* fast types */
36256 #endif
36257
36258 #ifdef _STDINT_NEED_INTMAX_T
36259 #ifdef _HAVE_UINT64_T
36260 typedef  int64_t       intmax_t;
36261 typedef uint64_t      uintmax_t;
36262 #else
36263 typedef          long  intmax_t;
36264 typedef unsigned long uintmax_t;
36265 #endif
36266 #endif
36267
36268 #ifdef _STDINT_NEED_INTPTR_T
36269 #ifndef __intptr_t_defined
36270 #define __intptr_t_defined
36271 /* we encourage using "long" to store pointer values, never use "int" ! */
36272 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
36273 typedef  unsigned int   uintptr_t;
36274 typedef           int    intptr_t;
36275 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
36276 typedef  unsigned long  uintptr_t;
36277 typedef           long   intptr_t;
36278 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
36279 typedef        uint64_t uintptr_t;
36280 typedef         int64_t  intptr_t;
36281 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
36282 typedef  unsigned long  uintptr_t;
36283 typedef           long   intptr_t;
36284 #endif
36285 #endif
36286 #endif
36287
36288 /* The ISO C99 standard specifies that in C++ implementations these
36289    should only be defined if explicitly requested.  */
36290 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
36291 #ifndef UINT32_C
36292
36293 /* Signed.  */
36294 # define INT8_C(c)      c
36295 # define INT16_C(c)     c
36296 # define INT32_C(c)     c
36297 # ifdef _HAVE_LONGLONG_UINT64_T
36298 #  define INT64_C(c)    c ## L
36299 # else
36300 #  define INT64_C(c)    c ## LL
36301 # endif
36302
36303 /* Unsigned.  */
36304 # define UINT8_C(c)     c ## U
36305 # define UINT16_C(c)    c ## U
36306 # define UINT32_C(c)    c ## U
36307 # ifdef _HAVE_LONGLONG_UINT64_T
36308 #  define UINT64_C(c)   c ## UL
36309 # else
36310 #  define UINT64_C(c)   c ## ULL
36311 # endif
36312
36313 /* Maximal type.  */
36314 # ifdef _HAVE_LONGLONG_UINT64_T
36315 #  define INTMAX_C(c)   c ## L
36316 #  define UINTMAX_C(c)  c ## UL
36317 # else
36318 #  define INTMAX_C(c)   c ## LL
36319 #  define UINTMAX_C(c)  c ## ULL
36320 # endif
36321
36322   /* literalnumbers */
36323 #endif
36324 #endif
36325
36326 /* These limits are merily those of a two complement byte-oriented system */
36327
36328 /* Minimum of signed integral types.  */
36329 #ifndef INT8_MIN
36330 # define INT8_MIN               (-128)
36331 #endif
36332 #ifndef INT16_MIN
36333 # define INT16_MIN              (-32767-1)
36334 #endif
36335 #ifndef INT32_MIN
36336 # define INT32_MIN              (-2147483647-1)
36337 #endif
36338 #ifndef INT64_MIN
36339 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
36340 #endif
36341
36342 /* Maximum of signed integral types.  */
36343 #ifndef INT8_MAX
36344 # define INT8_MAX               (127)
36345 #endif
36346 #ifndef INT16_MAX
36347 # define INT16_MAX              (32767)
36348 #endif
36349 #ifndef INT32_MAX
36350 # define INT32_MAX              (2147483647)
36351 #endif
36352 #ifndef INT64_MAX
36353 # define INT64_MAX              (__INT64_C(9223372036854775807))
36354 #endif
36355
36356 /* Maximum of unsigned integral types.  */
36357 #ifndef UINT8_MAX
36358 # define UINT8_MAX              (255)
36359 #endif
36360 #ifndef UINT16_MAX
36361 # define UINT16_MAX             (65535)
36362 #endif
36363 #ifndef UINT32_MAX
36364 # define UINT32_MAX             (4294967295U)
36365 #endif
36366 #ifndef UINT64_MAX
36367 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
36368 #endif
36369
36370 /* Minimum of signed integral types having a minimum size.  */
36371 # define INT_LEAST8_MIN         INT8_MIN
36372 # define INT_LEAST16_MIN        INT16_MIN
36373 # define INT_LEAST32_MIN        INT32_MIN
36374 # define INT_LEAST64_MIN        INT64_MIN
36375 /* Maximum of signed integral types having a minimum size.  */
36376 # define INT_LEAST8_MAX         INT8_MAX
36377 # define INT_LEAST16_MAX        INT16_MAX
36378 # define INT_LEAST32_MAX        INT32_MAX
36379 # define INT_LEAST64_MAX        INT64_MAX
36380
36381 /* Maximum of unsigned integral types having a minimum size.  */
36382 # define UINT_LEAST8_MAX        UINT8_MAX
36383 # define UINT_LEAST16_MAX       UINT16_MAX
36384 # define UINT_LEAST32_MAX       UINT32_MAX
36385 # define UINT_LEAST64_MAX       UINT64_MAX
36386
36387   /* shortcircuit*/
36388 #endif
36389   /* once */
36390 #endif
36391 #endif
36392 STDINT_EOF
36393 fi
36394     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
36395       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
36396 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
36397     else
36398       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
36399 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36400          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
36401          X"$ac_stdint_h" : 'X\(//\)$' \| \
36402          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
36403 echo X"$ac_stdint_h" |
36404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36405             s//\1/
36406             q
36407           }
36408           /^X\(\/\/\)[^/].*/{
36409             s//\1/
36410             q
36411           }
36412           /^X\(\/\/\)$/{
36413             s//\1/
36414             q
36415           }
36416           /^X\(\/\).*/{
36417             s//\1/
36418             q
36419           }
36420           s/.*/./; q'`
36421       { as_dir="$ac_dir"
36422   case $as_dir in #(
36423   -*) as_dir=./$as_dir;;
36424   esac
36425   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36426     as_dirs=
36427     while :; do
36428       case $as_dir in #(
36429       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36430       *) as_qdir=$as_dir;;
36431       esac
36432       as_dirs="'$as_qdir' $as_dirs"
36433       as_dir=`$as_dirname -- "$as_dir" ||
36434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36435          X"$as_dir" : 'X\(//\)[^/]' \| \
36436          X"$as_dir" : 'X\(//\)$' \| \
36437          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36438 echo X"$as_dir" |
36439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36440             s//\1/
36441             q
36442           }
36443           /^X\(\/\/\)[^/].*/{
36444             s//\1/
36445             q
36446           }
36447           /^X\(\/\/\)$/{
36448             s//\1/
36449             q
36450           }
36451           /^X\(\/\).*/{
36452             s//\1/
36453             q
36454           }
36455           s/.*/./; q'`
36456       test -d "$as_dir" && break
36457     done
36458     test -z "$as_dirs" || eval "mkdir $as_dirs"
36459   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36460 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36461    { (exit 1); exit 1; }; }; }
36462       rm -f $ac_stdint_h
36463       mv $ac_stdint $ac_stdint_h
36464     fi
36465  ;;
36466     "gappletviewer":C) chmod 755 tools/gappletviewer ;;
36467     "gjarsigner":C) chmod 755 tools/gjarsigner ;;
36468     "gkeytool":C) chmod 755 tools/gkeytool ;;
36469     "gjar":C) chmod 755 tools/gjar ;;
36470     "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
36471     "gserialver":C) chmod 755 tools/gserialver ;;
36472     "grmiregistry":C) chmod 755 tools/grmiregistry ;;
36473     "gtnameserv":C) chmod 755 tools/gtnameserv ;;
36474     "gorbd":C) chmod 755 tools/gorbd ;;
36475     "grmid":C) chmod 755 tools/grmid ;;
36476     "grmic":C) chmod 755 tools/grmic ;;
36477     "gjavah":C) chmod 755 tools/gjavah ;;
36478     "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
36479     "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
36480
36481   esac
36482 done # for ac_tag
36483
36484
36485 { (exit 0); exit 0; }
36486 _ACEOF
36487 chmod +x $CONFIG_STATUS
36488 ac_clean_files=$ac_clean_files_save
36489
36490
36491 # configure is writing to config.log, and then calls config.status.
36492 # config.status does its own redirection, appending to config.log.
36493 # Unfortunately, on DOS this fails, as config.log is still kept open
36494 # by configure, so config.status won't be able to write to it; its
36495 # output is simply discarded.  So we exec the FD to /dev/null,
36496 # effectively closing config.log, so it can be properly (re)opened and
36497 # appended to by config.status.  When coming back to configure, we
36498 # need to make the FD available again.
36499 if test "$no_create" != yes; then
36500   ac_cs_success=:
36501   ac_config_status_args=
36502   test "$silent" = yes &&
36503     ac_config_status_args="$ac_config_status_args --quiet"
36504   exec 5>/dev/null
36505   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36506   exec 5>>config.log
36507   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36508   # would make configure fail if this is the last instruction.
36509   $ac_cs_success || { (exit 1); exit 1; }
36510 fi
36511
36512
36513 # Create standard.omit based on decisions we just made.
36514 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
36515 if test x$use_escher != xtrue; then
36516    echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
36517 fi